pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Yuan HOng <hongyuan1306@gmail.com>
To: pgsql-admin@postgresql.org
Subject: Statement logging for a particular database
Date: Fri, 8 Dec 2006 17:43:33 +0800
Message-ID: <91320d220612080143u60bb5a94ne7f6703b67e9516@mail.gmail.com> (raw)

I am running PostgreSQL 7.4, and I'd like to turn on statement logging
for only one database rather than the server instance.

The log_statement = true option doesn't distinguish between databases.
Is there another option? In 8.1 one can put the database name into the
log string for filtering, but this doesn't seem to be available in
7.4.

-- 
Hong Yuan

大管家网上建材超市
装修装潢建材一站式购物
http://www.homemaster.cn


view thread (2+ messages)  latest in thread

Message-ID: <91320d220612080143u60bb5a94ne7f6703b67e9516@mail.gmail.com>
Permalink:  ../91320d220612080143u60bb5a94ne7f6703b67e9516@mail.gmail.com/
Also on:    postgresql.org/message-id/91320d220612080143u60bb5a94ne7f6703b67e9516@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: hongyuan1306@gmail.com
  Subject: Re: Statement logging for a particular database
  In-Reply-To: <91320d220612080143u60bb5a94ne7f6703b67e9516@mail.gmail.com>
  References: <91320d220612080143u60bb5a94ne7f6703b67e9516@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox