pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: mark@mark.mielke.cc
To: Brendan Jurd <direvus@gmail.com>
Cc: Bruce Momjian <pgman@candle.pha.pa.us>
Cc: pgsql-hackers@postgresql.org
Subject: Re: gettime() - a timeofday() alternative
Date: Sat, 13 Aug 2005 17:35:38 -0400
Message-ID: <20050813213538.GA30952@mark.mielke.cc> (raw)
In-Reply-To: <37ed240d05081312511423cb58@mail.gmail.com>
References: <37ed240d0508122330105cbf1@mail.gmail.com>
	<200508131435.j7DEZU013689@candle.pha.pa.us>
	<37ed240d05081312511423cb58@mail.gmail.com>

On Sun, Aug 14, 2005 at 05:51:16AM +1000, Brendan Jurd wrote:
> 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.

The latest time before any index or table has been accessed to derive
results?

For prepared statements, for example, the time the statement was prepared
doesn't seem useful to me.

Cheers,
mark

-- 
mark@mielke.cc / markm@ncf.ca / markm@nortel.com     __________________________
.  .  _  ._  . .   .__    .  . ._. .__ .   . . .__  | Neighbourhood Coder
|\/| |_| |_| |/    |_     |\/|  |  |_  |   |/  |_   | 
|  | | | | \ | \   |__ .  |  | .|. |__ |__ | \ |__  | Ottawa, Ontario, Canada

  One ring to rule them all, one ring to find them, one ring to bring them all
                       and in the darkness bind them...

                           http://mark.mielke.cc/




view thread (12+ messages)  latest in thread

Message-ID: <20050813213538.GA30952@mark.mielke.cc>
Permalink:  ../20050813213538.GA30952@mark.mielke.cc/
Also on:    postgresql.org/message-id/20050813213538.GA30952@mark.mielke.cc

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: mark@mark.mielke.cc, direvus@gmail.com, pgman@candle.pha.pa.us
  Subject: Re: gettime() - a timeofday() alternative
  In-Reply-To: <20050813213538.GA30952@mark.mielke.cc>
  References: <37ed240d0508122330105cbf1@mail.gmail.com> <200508131435.j7DEZU013689@candle.pha.pa.us> <37ed240d05081312511423cb58@mail.gmail.com> <20050813213538.GA30952@mark.mielke.cc>

* 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