How to Log SELECT Statements Having Errors

Поиск
Список
Период
Сортировка
От Lane Van Ingen
Тема How to Log SELECT Statements Having Errors
Дата
Msg-id EKEMKEFLOMKDDLIALABIAEAICFAA.lvaningen@esncc.com
обсуждение исходный текст
Ответы Re: How to Log SELECT Statements Having Errors  (Richard Huxton <dev@archonet.com>)
Список pgsql-sql
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 statements.

Noticed the following:
(1) The PostgreSQL manual says that config parm 'log_statement' does    not appear to handle SELECT statements; true?

(2) Noticed that config parm 'log_min_error_statement' might do it, but   not sure what each of the DEBUG* and other
parameterswill buy me 
 
vs ERROR. I want any statement issued by a client that cannot be executed 
due to an SQL error of any kind.

Can someone advise on this ?



В списке pgsql-sql по дате отправления:

Предыдущее
От: "Dinesh Pandey"
Дата:
Сообщение: Connection Oracle database from Postgres function
Следующее
От: Richard Huxton
Дата:
Сообщение: Re: How to Log SELECT Statements Having Errors