Re: selective statement logging

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: selective statement logging
Дата
Msg-id 200403102239.i2AMd7G11618@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: selective statement logging  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-hackers
Andrew Dunstan wrote:
> >Sure you sure?  I didn't think you would get a tag on a syntax error, so
> >no log would print, which I think is OK.
> >
> >  
> >
> If people are happy with suppressing statement logging on a parse error, 
> OK. For the remainder I would just defer the logging till immediately 
> after the parse and get the tags for the statements - and suppress 
> logging the query string if they were all SELECT or all 
> SELECT|INSERT|UPDATE|DELETE|COPY according to the setting.

Good.  My feeling is that if there is a parse error, we can't be sure
what type of query was sent, and it isn't going to be executed anyway
because it threw an error.

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 


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

Предыдущее
От: Dennis Bjorklund
Дата:
Сообщение: Re: unsafe floats
Следующее
От: Tom Lane
Дата:
Сообщение: Re: unsafe floats