Re: [PERFORM] now() gives same time within the session

2010-07-18 Thread Heikki Linnakangas
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 Enterpri

Re: [PERFORM] now() gives same time within the session

2010-07-12 Thread Kenneth Marshall
On Mon, Jul 12, 2010 at 06:11:31AM -0700, Rob Wultsch wrote: > On Mon, Jul 12, 2010 at 4:15 AM, A. Kretschmer > 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

Re: [PERFORM] now() gives same time within the session

2010-07-12 Thread A. Kretschmer
In response to Rob Wultsch : > On Mon, Jul 12, 2010 at 4:15 AM, A. Kretschmer > 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: Heynitz: 035242/47150, D1: 016

Re: [PERFORM] now() gives same time within the session

2010-07-12 Thread Thom Brown
On 12 July 2010 14:11, Rob Wultsch wrote: > On Mon, Jul 12, 2010 at 4:15 AM, A. Kretschmer > 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 r

Re: [PERFORM] now() gives same time within the session

2010-07-12 Thread Rob Wultsch
On Mon, Jul 12, 2010 at 4:15 AM, A. Kretschmer 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 table test_time

Re: [PERFORM] now() gives same time within the session

2010-07-12 Thread Atul.Goel
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

Re: [PERFORM] now() gives same time within the session

2010-07-12 Thread A. Kretschmer
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