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/ -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general