Re: Statements with syntax errors are not logged

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Statements with syntax errors are not logged
Date: 2006-10-19 15:03:08
Message-ID: 200610191703.09368.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane wrote:
> The 'mod' and 'ddl' settings obviously can't be handled until after
> basic parsing. We could create a completely separate code path for
> 'all' but I'm not sure I see the point.

The users are evidently expecting that "log all statements" means to log
all statements issued by the client. These implementation details are
not obvious to a user.

> To some extent the logging
> settings are only meant to capture successfully executed statements

Then it should be changed to log *only* successfully executed statements
and explicitly documented as such.

> (eg, you don't get duration for a failed command, either) --- which
> should be OK since failed ones won't change the database state.

I don't think tracking changes to the database state is the only
motivation for wanting to see all statements.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Jim C. Nasby 2006-10-19 15:08:38 Re: Additional stats for Relations
Previous Message Tom Lane 2006-10-19 14:45:06 Re: Statements with syntax errors are not logged