From: Tom Lane <tgl@sss.pgh.pa.us>
To: shreedhar <shreedhar@lucidindia.net>
Cc: Postgres <pgsql-admin@postgresql.org>
Subject: Re: How can I make note of time taken by each query to execute in Triggers
Date: Thu, 23 Jan 2003 00:19:15 -0500
Message-ID: <23340.1043299155@sss.pgh.pa.us> (raw)
In-Reply-To: <001001c2c296$babff360$1201a8c0@a4005>
References: <001001c2c296$babff360$1201a8c0@a4005>
"shreedhar" <shreedhar@lucidindia.net> writes:
> I would like read time taken by each query in my triggers.
> so i created a temporary table and inserted timestamp before i start qurey
> and inserted again timestamp after completion of the query. But i am getting
> same time. How can I get the time taken by each query.
timeofday(). See
http://www.ca.postgresql.org/users-lounge/docs/7.3/postgres/functions-datetime.html#FUNCTIONS-DATETI...
regards, tom lane
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-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, shreedhar@lucidindia.net
Subject: Re: How can I make note of time taken by each query to execute in Triggers
In-Reply-To: <23340.1043299155@sss.pgh.pa.us>
References: <001001c2c296$babff360$1201a8c0@a4005> <23340.1043299155@sss.pgh.pa.us>
* 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