pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Vladimir Rusinov <vladimir@greenmice.info>
To: pgsql-admin@postgresql.org
Subject: log_min_duration_statement log parsing
Date: Mon, 31 Mar 2008 16:06:26 +0400
Message-ID: <f6fdfb550803310506r4fea74ecre3018158529fefff@mail.gmail.com> (raw)

Hello!

I need a daily list of log-running statements. I've turned on
log_min_duraion_statement and going to write script which would daily parse
postgresql log and mail it to me, but I have no long-running statements (and
don't wanna do specially) and I can't see any in my log file. How does they
look?

And may be someone have such script or other ideas how to log long-running
statements in order to optimize them?

-- 
Vladimir Rusinov
Voronezh, Russia
UNIX Admin @ Murano Software

view thread (3+ messages)  latest in thread

Message-ID: <f6fdfb550803310506r4fea74ecre3018158529fefff@mail.gmail.com>
Permalink:  ../f6fdfb550803310506r4fea74ecre3018158529fefff@mail.gmail.com/
Also on:    postgresql.org/message-id/f6fdfb550803310506r4fea74ecre3018158529fefff@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: vladimir@greenmice.info
  Subject: Re: log_min_duration_statement log parsing
  In-Reply-To: <f6fdfb550803310506r4fea74ecre3018158529fefff@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