Re: [SQL] How to Log SELECT Statements Having Errors

2005-11-15 Thread Richard Huxton
Lane Van Ingen wrote: We are putting a new application on PostgreSQL 8.0.1 (Windows 2003); we are coming off of MySQL, and are having a hard time finding all of the offending SQL calls. It would help a great deal if I could log the content of any SQL calls that fail. Am only interested in SELECT

Re: [SQL] How to Log SELECT Statements Having Errors

2005-11-15 Thread Magnus Hagander
> We are putting a new application on PostgreSQL 8.0.1 (Windows > 2003); we are coming off of MySQL, and are having a hard time > finding all of the offending SQL calls. > > It would help a great deal if I could log the content of any > SQL calls that fail. Am only interested in SELECT statemen

Re: [SQL] pg_dump

2005-11-15 Thread Oliver Elphick
On Fri, 2005-11-11 at 17:04 -0600, Judith Altamirano Figueroa wrote: > Hi > > how could I restore a db if I did next: > > pg_dump -Z 9 soi > $DESTINO/soi.bkp Since you don't specify any dump format, your dump should be plain text and is compressed with gzip, so the restore command is going t

Re: [SQL] How to Log SELECT Statements Having Errors

2005-11-15 Thread Lane Van Ingen
Many thanks for your helpful suggestions To answer your question about 'log_statement' not appearing to handle SELECT statements: could be a documentation omission. I got that from version 8.0.1 documentation PDF, p 268, section 16.4.6.3 where 'log_statement(string)' is discussed: http://www