On 12/07/10 14:15, A. Kretschmer wrote:
Use timeofday() instead, now() returns the transaction starting time.
timeofday() is a legacy function kept only for backwards-compatibility.
It returns a string, which is quite awkward. Use clock_timestamp() instead.
--
Heikki Linnakangas
Hi,
I need to log the start and end time of the procedures in a table. But the
start and end time are same. This is how I recreated the issue.
create table test_time (time timestamp);
delete from test_time;
insert into test_time select now();
SELECT pg_sleep(10);
insert into test_time select
In response to atul.g...@globaldatapoint.com :
Hi,
I need to log the start and end time of the procedures in a table. But the
start and end time are same. This is how I recreated the issue.
create table test_time (time timestamp);
delete from test_time;
insert into
Sure thanks a lot.
Regards,
Atul Goel
-Original Message-
From: pgsql-performance-ow...@postgresql.org
[mailto:pgsql-performance-ow...@postgresql.org] On Behalf Of A. Kretschmer
Sent: 12 July 2010 12:15
To: pgsql-performance@postgresql.org
Subject: Re: [PERFORM] now() gives same time
On Mon, Jul 12, 2010 at 4:15 AM, A. Kretschmer
andreas.kretsch...@schollglas.com wrote:
In response to atul.g...@globaldatapoint.com :
Hi,
I need to log the start and end time of the procedures in a table. But the
start and end time are same. This is how I recreated the issue.
create
On 12 July 2010 14:11, Rob Wultsch wult...@gmail.com wrote:
On Mon, Jul 12, 2010 at 4:15 AM, A. Kretschmer
andreas.kretsch...@schollglas.com wrote:
In response to atul.g...@globaldatapoint.com :
Hi,
I need to log the start and end time of the procedures in a table. But the
start and end
In response to Rob Wultsch :
On Mon, Jul 12, 2010 at 4:15 AM, A. Kretschmer
andreas.kretsch...@schollglas.com wrote:
Use timeofday() instead, now() returns the transaction starting time.
Is this part of the SQL standard?
Don't know, sorry.
Andreas
--
Andreas Kretschmer
Kontakt:
On Mon, Jul 12, 2010 at 06:11:31AM -0700, Rob Wultsch wrote:
On Mon, Jul 12, 2010 at 4:15 AM, A. Kretschmer
andreas.kretsch...@schollglas.com wrote:
In response to atul.g...@globaldatapoint.com :
Hi,
I need to log the start and end time of the procedures in a table. But the
start