Re: logging statements in PostgreSQL

From: Albe Laurenz <laurenz(dot)albe(at)wien(dot)gv(dot)at>
To: "Jayadevan M *EXTERN*" <maymala(dot)jayadevan(at)gmail(dot)com>, Amit Langote <amitlangote09(at)gmail(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: logging statements in PostgreSQL
Date: 2013-09-30 11:38:05
Message-ID: A737B7A37273E048B164557ADEF4A58B17C2505E@ntex2010a.host.magwien.gv.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Jayadevan M wrote:
> Thanks for the pointer. I do not really want to log the plans of queries, just the queries, execution
> time and a couple of other details (database,user). If I use the auto-explain module, it will end up
> printing the plan for all query execution in the log files?

You can configure it so that only statements exceeding a certain
duration will be logged.

Yours,
Laurenz Albe

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Carlos Eduardo Sotelo Pinto 2013-09-30 15:03:02 Help on ṕerformance
Previous Message hubert depesz lubaczewski 2013-09-30 06:48:15 Re: Quotes, double quotes...