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

From Bruce Momjian
Subject Re: [HACKERS] logging statement levels
Date
Msg-id 200404061500.i36F0SU11644@candle.pha.pa.us
Whole thread Raw
In response to Re: [HACKERS] logging statement levels  (Andrew Dunstan <andrew@dunslane.net>)
Responses Re: [HACKERS] logging statement levels
List pgsql-patches
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.

--
  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, Pennsylvania 19073

pgsql-patches by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: WIN32 psql Ctrl+C support
Next
From: Manfred Koizar
Date:
Subject: Re: O(samplesize) tuple sampling, proof of concept