Re: Mislabeled timestamp functions (was Re: [SQL] [NOVICE] date_trunc'd

Bruno Wolff III <bruno@wolff.to>

From: Bruno Wolff III <bruno@wolff.to>
To: Gaetano Mendola <mendola@bigfoot.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, pgsql-hackers@postgresql.org
Date: 2004-10-02T20:04:51Z
Lists: pgsql-hackers, pgsql-novice, pgsql-sql
On Sat, Oct 02, 2004 at 10:43:01 +0200,
  Gaetano Mendola <mendola@bigfoot.com> wrote:
> Tom Lane wrote:
> >I wrote:
> >Do you see any other mislabelings?
> 
> I don't but I think that the concept of immutable shall be expanded.
> I mean I can use safely a date_trunc immutable in a query ( I think this
> is a sort of "immutable per statement" ) but not in a index definition
> ( the index mantainance is affected by the current timezonesettings ).
> So may be another modifier shall be introduced that reflect the "immutable
> per statement"

There has been such a distinction for a major release or two. "Stable"
is how you mark a function that will return the same value within a
single transaction.