Re: Changing behavior of BEGIN...sleep...do something...COMMIT - Mailing list pgsql-hackers

From Doug McNaught
Subject Re: Changing behavior of BEGIN...sleep...do something...COMMIT
Date
Msg-id m3k7ehvj0b.fsf@varsoon.wireboard.com
Whole thread Raw
In response to Re: Changing behavior of BEGIN...sleep...do something...COMMIT  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: Changing behavior of BEGIN...sleep...do something...COMMIT  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-hackers
Tom Lane <tgl@sss.pgh.pa.us> writes:

> Accordingly, it's a bad idea to invent now('clock') and make it the
> same function as the other flavors.  We could get away with making
> now('transaction') and now('statement') ---- but the argument for this
> was consistency, and that argument pretty much falls flat if those two
> are one function while clock time is something else.
> 
> So I'm back in the camp of thinking three separate parameterless
> functions are the way to do it.  We already know what now() does,
> and we're not going to change it --- anyone want to propose names
> for the other two?

Maybe clock_time() and statement_time(), with transaction_time() an
alias for now() (if that's seemed necessary)?

A little verbose perhaps, but clear...

-Doug



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Changing behavior of BEGIN...sleep...do something...COMMIT
Next
From: Bruce Momjian
Date:
Subject: Re: Changing behavior of BEGIN...sleep...do something...COMMIT