Re: enable database user login/logout information

Lists: pgsql-performance
From: muthu krishnan <muthu(dot)krishnan(dot)linux(at)gmail(dot)com>
To: pgsql-performance(at)postgresql(dot)org
Subject: enable database user login/logout information
Date: 2011-06-09 07:50:32
Message-ID: BANLkTinoSsbi_3xBp-8=_tX8nmSgHuynWA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-performance

Hi,

We are running postgresql database server on itanium box.

Database - Postgresql 8.3.9
OS - SUSE Linux 11 SP 3
Server - Itanium (ia64)

We are trying to enable user login / logout information in postgresql log
file, to do this we enabled the following in postgresql.conf,

log_connections = on

log_disconnections = on

After this we are getting both database user login / logout information as
well as getting SQL queries executed by the application which increase the
log file size.

Please guide me how to get only the database user connection (without SQL
statements) information in logfile.

Thank you for spending your valuable time to read this.

Regards

Muthu


From: Alexander Shulgin <alex(dot)shulgin(at)gmail(dot)com>
To: muthu krishnan <muthu(dot)krishnan(dot)linux(at)gmail(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: enable database user login/logout information
Date: 2011-06-09 07:54:55
Message-ID: BANLkTimEniWxA9pKapS2mm57Ns1XyzUCJg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-performance

On Thu, Jun 9, 2011 at 10:50, muthu krishnan
<muthu(dot)krishnan(dot)linux(at)gmail(dot)com> wrote:
>
> Please guide me how to get only the database user connection (without SQL
> statements) information in logfile.

log_statement = none