Re: [GENERAL] drop/rename table and transactions

1999-11-28 Thread Jaco de Groot
> Is it possible to achieve your goals by using things like > "delete * from table1 where id!=stuffIwant" instead of dropping it? Yes, I think I better use delete statements instead of drop statements knowing PostgreSQL can't always handle drop/rename statements in transactions correctly. Jaco d

Re: [HACKERS] Re: [GENERAL] drop/rename table and transactions

1999-11-28 Thread Jaco de Groot
Mike Mascari wrote: > > >From an otherwise EXTREMELY happy user :-) (full smile...), I see 3 > scenarios: > > (1) Disallow DDL statements in transactions > (2) Send NOTICE's asking for the user to not trigger the bug until the bugs > can be fixed -or- > (3) Have all DDL statements implicity comm

[GENERAL] Quoting/Escaping

1999-11-28 Thread Bill Sneed
I'd like to be able to find a book title that contain C++ in the title select * from books where title ~* 'C++' doesn't work. I've tried all the basic methods of quoting the Plus (+) signs but none seem to work... Any hints would be most appreciated Thanks... Bill Sneed, Pro

[GENERAL] BSDI shared mem

1999-11-28 Thread John Henderson
Hi, Perhaps this is useful for the FAQ as it was very difficult for me to discover... To increase shared mem and semaphores on BSDI (courtesy of Sin'ichiro Miyatani on bsdi-users list) In /usr/src/sys/sys/sem.h, #ifndef SEMMNI #define SEMMNI 10 /* # of semaphore identifiers */ #

Re: [GENERAL] Mail to DB.

1999-11-28 Thread Howie
On Sat, 27 Nov 1999, Jason C. Leach wrote: > hi, > > I've read that a few of you are putting email into a postgres DB. I'd > be interested in doing something similar. Would any of you care to > share the secret that allows sendmail to deposit the email to a db, or > how you get it from /var/sp

[GENERAL] memory

1999-11-28 Thread John Henderson
Hi, I could really use some help understanding where exactly the limits are in my use of memory and how postgres uses memory. I am running PostgreSQL 6.4 on BSDI 3.0 with 64M ram and 262M virtmem. table sessions is 74M and 371K records isfiji=> explain select user_name from sessions; NOTICE: QU

RE: [GENERAL] Mail to DB.

1999-11-28 Thread Darvin Zuch
I understand Oracle 8i does something like this (also acting as an FTP backend). You might want to scower their site for good ideas Darvin Zuch -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Howie Sent: Sunday, November 28, 1999 3:39 PM To: Jason C. Lea

Re: [GENERAL] Quoting/Escaping

1999-11-28 Thread Ed Loehr
Bill Sneed wrote: > I'd like to be able to find a book title that contain C++ in the > title > > select * from books where title ~* 'C++' doesn't work. > > I've tried all the basic methods of quoting the Plus (+) signs but > none seem to work... > > Any hints would be most appreciated >

Re: [HACKERS] Re: [GENERAL] drop/rename table and transactions

1999-11-28 Thread Bruce Momjian
> if PostgreSQL could successfully rollback DDL statements sanely (and thus > diverge from ORACLE). I guess I don't expect that to happen successfully > until > something the equivalent of TABLESPACES is implemented and there is a > disassociation between table names, index names and their file

Re: [HACKERS] Re: [GENERAL] drop/rename table and transactions

1999-11-28 Thread Vadim Mikheev
Bruce Momjian wrote: > > > if PostgreSQL could successfully rollback DDL statements sanely (and thus > > diverge from ORACLE). I guess I don't expect that to happen successfully > > until > > something the equivalent of TABLESPACES is implemented and there is a > > disassociation between table na

Re: [HACKERS] Re: [GENERAL] drop/rename table and transactions

1999-11-28 Thread Mike Mascari
> Vadim Mikheev wrote: > Bruce Momjian wrote: > > > > > if PostgreSQL could successfully rollback DDL statements sanely (and thus > > > diverge from ORACLE). I guess I don't expect that to happen successfully > > > until > > > something the equivalent of TABLESPACES is implemented and there is a

Re: [GENERAL] memory

1999-11-28 Thread Ken Gunderson
At 05:11 PM 11/29/99 +1200, John Henderson wrote: >Here are the questions... > >1) Can someone explain how postgreSQL uses memory so that I can understand >what I should be doing here. >BTW, I am running postgres with -B 884. Can someone also explain how >postgres uses shared mem so that I can

Re: [HACKERS] Re: [GENERAL] drop/rename table and transactions

1999-11-28 Thread Bruce Momjian
> I have to say that I'm going to change on-disk database/table/index > file names to _OID_! This is required by WAL because of inside of > log records there will be just database/table/index oids, not names, > and after crash recovery will not be able to read pg_class to get > database/table/

Re: [HACKERS] Re: [GENERAL] drop/rename table and transactions

1999-11-28 Thread Vadim Mikheev
Mike Mascari wrote: > > Will that aid in fixing a problem such as this: > > session 1: > > CREATE TABLE example1(value int4); > BEGIN; > > session 2: > > BEGIN; > ALTER TABLE example1 RENAME TO example2; > > session 1: > > INSERT INTO example1 VALUES (1); > END; > NOTICE: Abort Transaction

Re: [HACKERS] Re: [GENERAL] drop/rename table and transactions

1999-11-28 Thread Vadim Mikheev
Bruce Momjian wrote: > > > I have to say that I'm going to change on-disk database/table/index > > file names to _OID_! This is required by WAL because of inside of > > log records there will be just database/table/index oids, not names, > > and after crash recovery will not be able to read pg_cl

Re: [HACKERS] Re: [GENERAL] drop/rename table and transactions

1999-11-28 Thread Tom Lane
Bruce Momjian <[EMAIL PROTECTED]> writes: >> I have to say that I'm going to change on-disk database/table/index >> file names to _OID_! This is required by WAL because of inside of >> log records there will be just database/table/index oids, not names, >> and after crash recovery will not be a

Re: [HACKERS] Re: [GENERAL] drop/rename table and transactions

1999-11-28 Thread Bruce Momjian
> Bruce Momjian wrote: > > > > > I have to say that I'm going to change on-disk database/table/index > > > file names to _OID_! This is required by WAL because of inside of > > > log records there will be just database/table/index oids, not names, > > > and after crash recovery will not be able t