Re: gettime() - a timeofday() alternative

From: Brendan Jurd <direvus(at)gmail(dot)com>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: gettime() - a timeofday() alternative
Date: 2005-08-13 19:51:16
Message-ID: 37ed240d05081312511423cb58@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

On 8/14/05, Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)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.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message mark 2005-08-13 21:35:38 Re: gettime() - a timeofday() alternative
Previous Message Tom Lane 2005-08-13 19:34:28 Re: win32 _dosmaperr()

Browse pgsql-patches by date

  From Date Subject
Next Message Martijn van Oosterhout 2005-08-13 19:57:05 [PATCH] Proposed: Have SPI_connect fail if there is no current snapshot
Previous Message Martijn van Oosterhout 2005-08-13 19:12:21 [PATCH] Clarify issues with SPI and C language function limitations