Re: How to log query's from servers ? - Mailing list pgsql-general

From Craig Ringer
Subject Re: How to log query's from servers ?
Date
Msg-id 4DECB1C5.70801@postnewspapers.com.au
Whole thread Raw
In response to How to log query's from servers ?  (Condor <condor@stz-bg.com>)
Responses Re: How to log query's from servers?
List 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/

pgsql-general by date:

Previous
From: Craig Ringer
Date:
Subject: Re: SQLite-PostgreSQL comparison
Next
From: Thomas Guettler
Date:
Subject: Recurring events