Re: defer statement logging until after parse

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: "Patches (PostgreSQL)" <pgsql-patches(at)postgresql(dot)org>
Subject: Re: defer statement logging until after parse
Date: 2004-03-12 15:28:50
Message-ID: 4051D732.2020902@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

Tom Lane wrote:

>Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
>
>
>>My idea was to take log_statement, and instead of true/false, have it be
>>all, ddl, mod, or off/none/false(?). You keep the existing test for
>>log_statement where it is, but test for 'all' now, and after parse, you
>>check for ddl or mod, and print in those cases if the tag matches.
>>
>>
>
>Has any of this discussion taken into account the fact that a
>querystring may contain multiple commands?
>
>
>

It is certainly in my mind - hence the array of parse trees, no?

What does the parser do if one of the statements has an error and the
others are OK? I was (perhaps unwarrantedly) assuming that if you got a
clean return from the parser then none of the statements had a parse error.

cheers

andrew

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Andrew Dunstan 2004-03-12 15:31:13 Re: defer statement logging until after parse
Previous Message Tom Lane 2004-03-12 15:18:08 Re: defer statement logging until after parse