How to profile an "SQL script"? - Mailing list pgsql-performance

From Kynn Jones
Subject How to profile an "SQL script"?
Date
Msg-id c2350ba40812031131r1acd66a9idd2869a4899b1798@mail.gmail.com
Whole thread Raw
Responses Re: How to profile an "SQL script"?
List pgsql-performance
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

pgsql-performance by date:

Previous
From: "Scott Marlowe"
Date:
Subject: Re: Postgres using more memory than it should
Next
From: Andreas Kretschmer
Date:
Subject: Re: How to profile an "SQL script"?