X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 6CEB6D1C4C1 for ; Mon, 28 Jul 2003 00:31:22 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 48009-01 for ; Sun, 27 Jul 2003 21:30:28 -0300 (ADT) Received: from brasileiro.net (slxwy.dorms.usu.edu [129.123.227.103]) by svr1.postgresql.org (Postfix) with ESMTP id 5C6F3D1C4C9 for ; Sun, 27 Jul 2003 21:31:07 -0300 (ADT) Received: from roberto by brasileiro.net with local (Exim 3.35 #1 (Debian)) id 19gvrm-00031b-00; Sun, 27 Jul 2003 18:27:54 -0600 Date: Sun, 27 Jul 2003 18:27:54 -0600 From: Roberto Mello To: Tom Lane Cc: Denis Zaitsev , pgsql-sql@postgresql.org Subject: Re: Very strange 'now' behaviour in nested triggers. Message-ID: <20030728002754.GD10589@cc.usu.edu> References: <20030726193947.B1636@natasha.ward.six> <9412.1059229904@sss.pgh.pa.us> <20030727020104.A19865@natasha.ward.six> <4629.1059320950@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: <4629.1059320950@sss.pgh.pa.us> User-Agent: Mutt/1.4i X-message-flag: Please consider using an e-mail program other than Outlook. It's insecure. X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/403 X-Sequence-Number: 14517 On Sun, Jul 27, 2003 at 11:49:10AM -0400, Tom Lane wrote: > > I put up a proposal in pgsql-hackers to change this behavior: > http://archives.postgresql.org/pgsql-hackers/2003-07/msg00818.php > If we made that change then the "wrong" way of defining the default > would fail in an obvious fashion --- the 'now' would get reduced to a > particular time immediately at CREATE TABLE. Doubtless this would annoy > some people, but the "right" way of defining the default isn't really > any harder, and it would save folks from getting burnt in corner cases, > like you were. > > Any comments? I think that is a preferred behavior. -Roberto -- +----| Roberto Mello - http://www.brasileiro.net/ |------+ + Computer Science Graduate Student, Utah State University + + USU Free Software & GNU/Linux Club - http://fslc.usu.edu/ + רררררררררררררררררררררררר-----°*'. (Explosive Tagline)