Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 8A6E66340CE for ; Sat, 19 Sep 2009 15:52:54 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 27868-05 for ; Sat, 19 Sep 2009 18:52:41 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id CAE03632703 for ; Sat, 19 Sep 2009 15:52:43 -0300 (ADT) 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 n8JIqdjb019332; Sat, 19 Sep 2009 14:52:39 -0400 (EDT) To: Kris Jurka cc: Dave Cramer , Andre Rothe , pgsql-jdbc@postgresql.org Subject: Re: Wrong column default values In-reply-to: References: <491f66a50909181307q147e92b4g58a6d5ef47cc0518@mail.gmail.com> <5562.1253304906@sss.pgh.pa.us> Comments: In-reply-to Kris Jurka message dated "Sat, 19 Sep 2009 14:45:09 -0400" Date: Sat, 19 Sep 2009 14:52:39 -0400 Message-ID: <19331.1253386359@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.59 tagged_above=-10 required=5 tests=AWL=0.009, BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 200909/33 X-Sequence-Number: 19980 Kris Jurka writes: > On Fri, 18 Sep 2009, Tom Lane wrote: >> Indeed. In 8.3 it seems that even if you try to set the default that >> way, the system will throw away the cast: > That's only true without a typmod. Hmm, maybe that could use improvement. regards, tom lane