From: Tom Lane <tgl@sss.pgh.pa.us>
To: Bruce Momjian <pgman@candle.pha.pa.us>
Cc: Jim C. Nasby <jnasby@pervasive.com>
Cc: Brendan Jurd <direvus@gmail.com>
Cc: pgsql-hackers@postgresql.org
Subject: Re: gettime() - a timeofday() alternative
Date: Wed, 17 Aug 2005 18:17:50 -0400
Message-ID: <20044.1124317070@sss.pgh.pa.us> (raw)
In-Reply-To: <200508172208.j7HM8sr17714@candle.pha.pa.us>
References: <200508172208.j7HM8sr17714@candle.pha.pa.us>
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> Jim C. Nasby wrote:
>> On Sat, Aug 13, 2005 at 06:24:01PM -0400, Tom Lane wrote:
>>> IIRC, what we actually intended that to mean is the time of receipt of
>>> the current interactive command --- that is, it gets set in the
>>> postgres.c outer loop, not anywhere in the parser/etc path. Otherwise
>>> there's not a unique answer (consider statements issued inside SQL
>>> functions for instance).
>> Would it be reasonable to add one more timestamp that works the same
>> inside and outside a function? In either case, can anyone think of a
>> less-ambiguous name for timestamp_statement?
> timestamp_client_statement? That highlights it is when the client sends
> the statement.
timestamp_command, maybe, would convey the right image.
(I don't think we need yet a fourth flavor of this, nor do I see anything
about it that "works differently inside and outside a function".)
regards, tom lane
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: tgl@sss.pgh.pa.us, pgman@candle.pha.pa.us, jnasby@pervasive.com, direvus@gmail.com
Subject: Re: gettime() - a timeofday() alternative
In-Reply-To: <20044.1124317070@sss.pgh.pa.us>
References: <200508172208.j7HM8sr17714@candle.pha.pa.us> <20044.1124317070@sss.pgh.pa.us>
* 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