Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 4A5F3989B4D for ; Wed, 11 Jan 2012 11:21:32 -0400 (AST) Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RkzzT-0004sr-Vv for pgsql-bugs@postgresql.org; Wed, 11 Jan 2012 15:21:32 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id q0BFLF5B019648; Wed, 11 Jan 2012 10:21:15 -0500 (EST) To: john.udick@zionsbancorp.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #6391: insert does not insert correct value In-reply-to: References: Comments: In-reply-to john.udick@zionsbancorp.com message dated "Tue, 10 Jan 2012 22:52:58 +0000" Date: Wed, 11 Jan 2012 10:21:14 -0500 Message-ID: <19647.1326295274@sss.pgh.pa.us> From: Tom Lane X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201201/80 X-Sequence-Number: 32147 john.udick@zionsbancorp.com writes: > I would expect that at the time/date of the of now() and clock_timestamp() > to be equal; which they are. Well, they are not in general, but that doesn't appear to be your problem. You have not shown us a reproducible test case, but I wonder whether your table has a trigger that is doing date_trunc('year',...) or something like that on the column value. regards, tom lane