From: Tomasz Myrta <jasiek@klaster.net>
To: Kerv <keresztes_m@yahoo.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: now() in loop statement
Date: Mon, 29 Sep 2003 15:14:10 +0200
Message-ID: <3F783022.8030207@klaster.net> (raw)
In-Reply-To: <bl9a9i$15g5$1@news.hub.org>
References: <bl9a9i$15g5$1@news.hub.org>
> Hello,
>
> What is wrong with this function because the mytime variable contain the
> same value in each iteration:
Just like it should be.
now() gives you always the same value inside single transaction. If you
need time for performance tests - use "timeofday".
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-sql@postgresql.org
Cc: jasiek@klaster.net, keresztes_m@yahoo.com
Subject: Re: now() in loop statement
In-Reply-To: <3F783022.8030207@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