Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id 6D4219FA3B1 for ; Fri, 13 Oct 2006 11:28:19 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 54599-06 for ; Fri, 13 Oct 2006 14:28:08 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail.mnc.ch (62-2-77-205.static.cablecom.ch [62.2.77.205]) by postgresql.org (Postfix) with ESMTP id 42E6D9F9EF3 for ; Fri, 13 Oct 2006 11:28:08 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by mail.mnc.ch (Postfix) with ESMTP id 34056A82D9; Fri, 13 Oct 2006 16:32:31 +0200 (CEST) Received: from mail.mnc.ch ([127.0.0.1]) by localhost (mail.test.lan [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id 20328-01; Fri, 13 Oct 2006 16:32:29 +0200 (CEST) Received: from meuh.mnc.lan (62-2-77-204.static.cablecom.ch [62.2.77.204]) by mail.mnc.ch (Postfix) with ESMTP id C0DE7A82B2; Fri, 13 Oct 2006 16:32:29 +0200 (CEST) Received: by meuh.mnc.lan (Postfix, from userid 1000) id 65D77183732; Fri, 13 Oct 2006 16:27:22 +0200 (CEST) To: Tom Lane Cc: pgsql-jdbc@postgresql.org Subject: Re: 'now' is sometimes not now - but current_timestamp is References: <87pscwk65j.fsf@meuh.mnc.lan> <29408.1160748863@sss.pgh.pa.us> X-Hashcash: 1:20:061013:tgl@sss.pgh.pa.us::mvOcijmWzz/lO2YL:0000000000000000000000000000000000000000000031Dk X-Hashcash: 1:20:061013:pgsql-jdbc@postgresql.org::cfd87EJ2ots9lI2A:00000000000000000000000000000000000041Oz From: Guillaume Cottenceau Date: 13 Oct 2006 16:27:22 +0200 In-Reply-To: <29408.1160748863@sss.pgh.pa.us> Message-ID: <87irioguk5.fsf@meuh.mnc.lan> Lines: 16 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: amavisd-new at mnc.ch X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.135 tagged_above=0 required=5 tests=FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200610/89 X-Sequence-Number: 15972 Tom Lane writes: > If you are going to copy the implementation of CURRENT_TIMESTAMP, > you should at least copy it accurately. (Hint: the cast from > text to timestamp is not immutable.) But why are you not just > using CURRENT_TIMESTAMP, rather than trying to outsmart the system? I was just trying to use what is best and wrongly picked up 'now'::TIMESTAMP WITH TIME ZONE. I know now this was wrong :), I only claimed that maybe the table description was a little misleading (I know the difference was the ::text cast but for a non postgresql expert, it didn't look crucial). -- Guillaume Cottenceau Create your personal SMS or WAP Service - visit http://mobilefriends.ch/