Re: [HACKERS] logging statement levels - Mailing list pgsql-patches

From Andrew Dunstan
Subject Re: [HACKERS] logging statement levels
Date
Msg-id 4072CB12.5040407@dunslane.net
Whole thread Raw
In response to Re: [HACKERS] logging statement levels  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: [HACKERS] logging statement levels
List pgsql-patches
Bruce Momjian wrote:

>Andrew Dunstan wrote:
>
>
>>Unless I'm missing something, this patch has the effect that with values
>>of "ddl" or "mod"  for log_statement, a statement with a parse error
>>will not be logged, which was what I hoped to avoid.
>>
>>
>
>Right.  The query type can't be determined during a syntax error because
>the parser couldn't identify the supplied command.  I think that is
>fine.
>
>What it does allow is to for 'all' to display the command before the
>syntax error.
>
>
>

If I had to make a choice I'd go the other way.

However, I think with a little extra work it might be possible to have both.

I will look into it at some stage.

cheers

andrew


pgsql-patches by date:

Previous
From: Fabien COELHO
Date:
Subject: Re: hint infrastructure setup (v3)
Next
From: Andrew Dunstan
Date:
Subject: Re: [HACKERS] logging statement levels