From: Tomasz Myrta <jasiek@klaster.net>
To: Aram Kananov <aram@kananov.com>
Cc: pgsql-performance@postgresql.org <pgsql-performance@postgresql.org>
Subject: Re: Measuring execution time for sql called from PL/pgSQL
Date: Fri, 12 Dec 2003 08:46:37 +0100
Message-ID: <3FD9725D.9030304@klaster.net> (raw)
In-Reply-To: <1071191825.5163.164.camel@localhost.localdomain>
References: <1071191825.5163.164.camel@localhost.localdomain>
Dnia 2003-12-12 02:17, Użytkownik Aram Kananov napisał:
> select localtimestamp into v;
> raise notice ''Timestamp: %'', v;
Don't use localtimestamp, now() neither any transaction based time
function. They all return the same value among whole transaction. The
only time function, which can be used for performance tests is timeofday().
You can read more about time functions in manual.
Regards,
Tomasz Myrta
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-performance@postgresql.org
Cc: jasiek@klaster.net, aram@kananov.com
Subject: Re: Measuring execution time for sql called from PL/pgSQL
In-Reply-To: <3FD9725D.9030304@klaster.net>
* 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