Re: Postgres Logs question

From: akp geek <akpgeek(at)gmail(dot)com>
To: Chris Travers <chris(dot)travers(at)gmail(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Postgres Logs question
Date: 2011-12-21 18:57:52
Message-ID: CACnhOfJG+WewsbWCMCA5w=Mtd4yLSoFL7tNoWcLBBe38NBSeGA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

thanks for the help. The way I did it was

I have log_statement=all in the postgresql.conf
then I have alter user akp set log_statements='none';

Still it writes the log for akp.

I am still missing some configuration to make sure I don't write log for
the user akp

Regards

On Tue, Dec 20, 2011 at 5:35 PM, Chris Travers <chris(dot)travers(at)gmail(dot)com>wrote:

> On Tue, Dec 20, 2011 at 11:53 AM, akp geek <akpgeek(at)gmail(dot)com> wrote:
> > Hi All -
> >
> > Is there way that we write the logs specific to only one
> user
> > in postgres? What I want to do is, Write the log files that are coming
> from
> > one user or block the log entry for a pariticular user. Can you please
> > help? We have postgres 9.0.4
>
> I don't know about redirecting based on a specific user. You can.
> however, set which statements to log per user (alter user akp set
> log_statements='all')
>
> Not sure if that helps. Also if youlog to a syslog facility, it might
> be possible to get some additional capabilities that way.
>
> Chris Travers
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2011-12-21 19:46:55 Re: How to create database with default system locale is set to et_EE.UTF-8
Previous Message Xiaoning Xu 2011-12-21 18:50:43 [partition table] fetchall or fetchone function can not get the returning rows