Re: gettime() - a timeofday() alternative - Mailing list pgsql-hackers

From Brendan Jurd
Subject Re: gettime() - a timeofday() alternative
Date
Msg-id 37ed240d05081312511423cb58@mail.gmail.com
Whole thread Raw
In response to Re: gettime() - a timeofday() alternative  (Brendan Jurd <direvus@gmail.com>)
Responses Re: gettime() - a timeofday() alternative  (mark@mark.mielke.cc)
Re: gettime() - a timeofday() alternative  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On 8/14/05, Bruce Momjian <pgman@candle.pha.pa.us> wrote:
> Brendan Jurd wrote:
> > > We already have a TODO for this:
> > >
> > >         * Add transaction_timestamp(), statement_timestamp(), clock_timestamp()
> > >           functionality
> >
> > I like the idea of having a function for statement start time.  I
> > think I'll incorporate it into my patch.
> >

Regarding the statement_timestamp() ... if the entire query path is
parser -> rewriter -> planner/optimiser -> executor, what point in
that path would be considered the true start of the "statement"?  I
would assume that it's right at the beginning, when it is first handed
to the parser, but that's a very naive assumption.


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: win32 _dosmaperr()
Next
From: mark@mark.mielke.cc
Date:
Subject: Re: gettime() - a timeofday() alternative