pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rajesh Kumar Mallah <mallah.rajesh@gmail.com>
To: Achilleas Mantzios <achill@matrix.gatewaynet.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: conditional logging based on client
Date: Tue, 22 Jul 2008 23:10:11 +0530
Message-ID: <a97c77030807221040n4a791582tb098b0ba9c54944c@mail.gmail.com> (raw)
In-Reply-To: <200807221524.45181.achill@matrix.gatewaynet.com>
References: <a97c77030807220517u2324a0cckb8400a359123426a@mail.gmail.com>
	<200807221524.45181.achill@matrix.gatewaynet.com>

On Tue, Jul 22, 2008 at 5:54 PM, Achilleas Mantzios
<achill@matrix.gatewaynet.com> wrote:
> Óôéò Tuesday 22 July 2008 15:17:42 ï/ç Rajesh Kumar Mallah Ýãñáøå:
>> Hi,
>>
>> We want to log all SQLs that has been executed by using psql client.
>> we do not want to use .psql_history as it is distributed and may be
>> deleted by users .
>>
>> The original objective is that we should be able to know what all hand made
>> SQLs have  been executed in past  (which can date back as long as 1 year even)
>
> You have to adjust log_statement in your postgresql.conf
> however you will have to bear in mind the performance implications of this.
> Normal production sites dont do this.
> You can enable/disable this kind of logging any time by killing -HUP

thanks for reply.
any hit on performance is not desired.
is it possible to alter logging behaviour just for the
psql session ?

>>
>> regds
>> Mallah.
>>
>
>
>
> --
> Achilleas Mantzios
>


view thread (7+ messages)  latest in thread

Message-ID: <a97c77030807221040n4a791582tb098b0ba9c54944c@mail.gmail.com>
Permalink:  ../a97c77030807221040n4a791582tb098b0ba9c54944c@mail.gmail.com/
Also on:    postgresql.org/message-id/a97c77030807221040n4a791582tb098b0ba9c54944c@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: mallah.rajesh@gmail.com, achill@matrix.gatewaynet.com
  Subject: Re: conditional logging based on client
  In-Reply-To: <a97c77030807221040n4a791582tb098b0ba9c54944c@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox