Re: [ADMIN] Config option log_statement

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: S Murthy Kambhampaty <smk_va(at)yahoo(dot)com>
Cc: PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: [ADMIN] Config option log_statement
Date: 2005-05-30 19:38:03
Message-ID: 200505301938.j4UJc3218101@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-patches

S Murthy Kambhampaty wrote:
> In postgresql 8.0, "create table <> as ..." statements
> appear not to logged unless log_statement = 'all' in
> postgresql.conf. We are trying to reduce noise in the
> logs from pgAdminIII and phpPgAdmin, but we use a lot
> of 'create table <> as ...' queries that need to be
> logged, and their duration tracked. Is there a
> combination of settings that will do the trick? Can
> postgresql be upgraded to log "create table <> as ..."
> statements with log_statment = 'ddl' and/or
> log_statment = 'mod'?

Ah, I see I forgot about SELECT INTO when doing this for 8.0. The
attached patch fixes it. I will apply it to 8.0.X and CVS current.
Thanks for the report.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

Attachment Content-Type Size
unknown_filename text/plain 1.3 KB

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Ann 2005-05-30 21:35:14 The Stock Radar
Previous Message CD DO DIREITO 2005-05-30 17:17:25 ARQUIVOS JURIDICOS

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2005-05-30 19:41:19 Re: Adding \x escape processing to COPY, psql, backend
Previous Message Bruce Momjian 2005-05-30 19:33:38 Adding \x escape processing to COPY, psql, backend