Re: How to log full substituted queries?

From: "A(dot) Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: How to log full substituted queries?
Date: 2006-01-19 06:07:56
Message-ID: 20060119060756.GA22896@webserv.wug-glas.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

am 18.01.2006, um 20:47:23 -0800 mailte andrew fabbro folgendes:
> I'm trying to debug some queries and have
>
> log_statement = 'all'
>
> in my postgresql.conf. When I look in the resultant log file, I see
> entries like this:
>
> INSERT INTO servers (
> hostname, last_modified, serial,
> asset_tag, grid, admin )
> VALUES
> ( $1,CURRENT_DATE,$2,
> $3,$4,$5
> )

Which version?

My guess: prior as 8.1. With 8.1 PG logs the resolved variables.

HTH, Andreas
--
Andreas Kretschmer (Kontakt: siehe Header)
Heynitz: 035242/47212, D1: 0160/7141639
GnuPG-ID 0x3FFF606C http://wwwkeys.de.pgp.net
=== Schollglas Unternehmensgruppe ===

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tony Caduto 2006-01-19 06:18:45 Re: PostgreSQL Top 10 Wishlist
Previous Message Tom Lane 2006-01-19 05:06:41 Re: Surrogate keys (Was: enums)