Re: clock_timestamp() and transaction_timestamp() function

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, Wang Mike <itlist(at)msn(dot)com>, pgsql-patches(at)postgresql(dot)org
Subject: Re: clock_timestamp() and transaction_timestamp() function
Date: 2003-12-01 15:50:55
Message-ID: 22628.1070293855@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> Tom Lane wrote:
>> This is a nonstarter,

> Oh, I forgot about that. Peter seems only to want statement_timestamp
> and transaction_timestamp. Aren't those both stable if
> statement_timestamp is set from exec_simple_query?

Hm. If you restricted the option to only those two values, it might be
safe as far as the stability argument goes, but it would be the sort
of thing where we'd have to be perpetually on our guard against someone
making the "obvious extension" and thereby subtly breaking things.

In general, I do not like options that subtly change the behavior of
long-established functions, anyway. Seems like a great recipe for
breaking people's applications. I'm okay with adding new functions as
per the already-agreed-to set of names (though like Peter I wish we
could think of something clearer than clock_timestamp()). Rejiggering
the behavior of already-existing functions was not part of what had
been agreed to.

regards, tom lane

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2003-12-01 15:52:36 Re: clock_timestamp() and transaction_timestamp() function
Previous Message Peter Eisentraut 2003-12-01 15:50:29 Re: clock_timestamp() and transaction_timestamp() function