X-Original-To: pgsql-hackers-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 5869F329D5A for ; Sat, 2 Oct 2004 20:54:57 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 60547-07 for ; Sat, 2 Oct 2004 19:54:50 +0000 (GMT) Received: from wolff.to (wolff.to [66.93.249.74]) by svr1.postgresql.org (Postfix) with SMTP id C4B86329D4D for ; Sat, 2 Oct 2004 20:54:49 +0100 (BST) Received: (qmail 14895 invoked by uid 500); 2 Oct 2004 20:04:51 -0000 Date: Sat, 2 Oct 2004 15:04:51 -0500 From: Bruno Wolff III To: Gaetano Mendola Cc: Tom Lane , pgsql-hackers@postgresql.org Subject: Re: Mislabeled timestamp functions (was Re: [SQL] [NOVICE] date_trunc'd Message-ID: <20041002200451.GA14830@wolff.to> Mail-Followup-To: Gaetano Mendola , Tom Lane , pgsql-hackers@postgresql.org References: <20041001182830.GA20624@wolff.to> <13492.1096656574@sss.pgh.pa.us> <15677.1096671183@sss.pgh.pa.us> <415E6A15.1090105@bigfoot.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <415E6A15.1090105@bigfoot.com> User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200410/45 X-Sequence-Number: 59548 On Sat, Oct 02, 2004 at 10:43:01 +0200, Gaetano Mendola 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.