Re: How to log query's from servers ?

From: Craig Ringer <craig(at)postnewspapers(dot)com(dot)au>
To: condor(at)stz-bg(dot)com
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: How to log query's from servers ?
Date: 2011-06-06 10:53:57
Message-ID: 4DECB1C5.70801@postnewspapers.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 6/06/2011 4:14 PM, Condor wrote:
> Hello ppl,
> any one can tell me how i make my postgresql server to log commands
> coming from another postgres server ? I have one postgresql and give to
> 2 other sql server to access my db. I want to log all query's coming
> only from one of the servers. Is that possibly ?

If the different servers log in with different user accounts or log into
different databases you could use database-level or user-level SET
commands to set log_statement for only one of them.

Otherwise: just grep the logs.

--
Craig Ringer

Tech-related writing at http://soapyfrogs.blogspot.com/

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Thomas Guettler 2011-06-06 10:59:44 Recurring events
Previous Message Craig Ringer 2011-06-06 10:52:37 Re: SQLite-PostgreSQL comparison