Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id B42D59FB2E2 for ; Wed, 6 Jun 2007 22:52:51 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 49928-08 for ; Wed, 6 Jun 2007 22:52:35 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from lists.commandprompt.com (host-254.commandprompt.net [207.173.203.254]) by postgresql.org (Postfix) with ESMTP id 3DC269FB2DB for ; Wed, 6 Jun 2007 22:52:46 -0300 (ADT) Received: from perhan.alvh.no-ip.org (201-221-217-243.bk12-dsl.surnet.cl [201.221.217.243]) (authenticated bits=0) by lists.commandprompt.com (8.13.7/8.13.6) with ESMTP id l571qhmG028895; Wed, 6 Jun 2007 18:52:48 -0700 Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 8F4F032A28; Wed, 6 Jun 2007 21:52:37 -0400 (CLT) Date: Wed, 6 Jun 2007 21:52:37 -0400 From: Alvaro Herrera To: Tom Lane Cc: Chris Hoover , "pgsql-admin@postgresql.org Admin" Subject: Re: 8.2.4 Won't Build 8.1 Functional Indexes Message-ID: <20070607015237.GA30257@alvh.no-ip.org> References: <1d219a6f0706061112p355fc6cexb30a6b4b4bf187c3@mail.gmail.com> <20070606195459.GH11800@alvh.no-ip.org> <17138.1181173286@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <17138.1181173286@sss.pgh.pa.us> User-Agent: Mutt/1.5.13 (2006-08-11) X-Virus-Scanned: ClamAV version 0.88.5, clamav-milter version 0.88.5 on projects.commandprompt.com X-Virus-Status: Clean X-Greylist: Sender succeded SMTP AUTH authentication, not delayed by milter-greylist-1.6 (lists.commandprompt.com [192.168.2.159]); Wed, 06 Jun 2007 18:52:48 -0700 (PDT) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200706/54 X-Sequence-Number: 25722 Tom Lane escribió: > Alvaro Herrera writes: > > You can't do this because to_date and other functions are not immutable. > > 8.2 seems to be more picky about this -- the date conversions of > > timestamptz columns are dependent on the current timezone. > > The reason 8.2 is more picky is that the function is less immutable > thanks to the addition of locale-dependent functionality: > http://archives.postgresql.org/pgsql-committers/2006-11/msg00264.php Ah. It was a good try in any case I think :-P The reason I confused the issue is that I had been fiddling with date_trunc on a timestamptz column and found that it didn't really work as I expected. (I can't recall exactly ATM but I think it was 8.1 anyway). -- Alvaro Herrera http://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc.