Re: per user logging

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: snacktime(at)gmail(dot)com, pgsql-general(at)postgresql(dot)org
Subject: Re: per user logging
Date: 2005-09-08 20:36:16
Message-ID: 25530.1126211776@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> snacktime wrote:
>> I'm pretty sure the answer to this is no, but just in case I've
>> missed something. Is there a way to configure the server so it only
>> logs for specific users?

> No, but you can configure PostgreSQL to insert the user name into each
> log message, and then you could configure your syslog daemon to
> redirect (or delete) messages according to that user name.

I believe it is possible for a superuser to do something like
"ALTER USER victim SET log_min_messages = whatever", so that the
log verbosity is different for different users.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Matthew Peter 2005-09-08 20:52:35 Re: back references using regex
Previous Message ngoncalves81@cantv.net 2005-09-08 20:23:44 data Transfer rate priority on Postgres ?