From: Kynn Jones <kynnjo@gmail.com>
To: pgsql-performance@postgresql.org
Subject: How to profile an "SQL script"?
Date: Wed, 3 Dec 2008 14:31:02 -0500
Message-ID: <c2350ba40812031131r1acd66a9idd2869a4899b1798@mail.gmail.com> (raw)
Hi. I have a longish collection of SQL statements stored in a file that I
run periodically via cron. Running this "script" takes a bit too long, even
for a cron job, and I would like to streamline it.
Is there a way to tell Postgres to print out, after each SQL statement is
executed, how long it took to execute?
Thanks!
Kynn
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-performance@postgresql.org
Cc: kynnjo@gmail.com
Subject: Re: How to profile an "SQL script"?
In-Reply-To: <c2350ba40812031131r1acd66a9idd2869a4899b1798@mail.gmail.com>
References: <c2350ba40812031131r1acd66a9idd2869a4899b1798@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