Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 461706328F9 for ; Sat, 10 Oct 2009 16:05:36 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 13718-07 for ; Sat, 10 Oct 2009 19:05:28 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail.ecpi.com (mail.ecpi.com [64.128.16.3]) by mail.postgresql.org (Postfix) with ESMTP id 5D109632391 for ; Sat, 10 Oct 2009 16:05:28 -0300 (ADT) Received: (qmail 9474 invoked by uid 89); 10 Oct 2009 19:05:15 -0000 Received: from unknown (HELO paulsen.homeip.net) (64.128.19.172) by mail4.ecpi.com with SMTP; 10 Oct 2009 19:05:15 -0000 Received: by paulsen.homeip.net (Postfix, from userid 1000) id 04C6211CB11; Sat, 10 Oct 2009 14:05:26 -0500 (CDT) From: Robert Paulsen To: pgsql-sql@postgresql.org Subject: Re: ERROR: null value in column "id" violates not-null constraint Date: Sat, 10 Oct 2009 14:05:26 -0500 User-Agent: KMail/1.9.1 Cc: Tom Lane References: <200910101056.24051.robert@paulsenonline.net> <17323.1255200405@sss.pgh.pa.us> <200910101400.47182.robert@paulsenonline.net> In-Reply-To: <200910101400.47182.robert@paulsenonline.net> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200910101405.26853.robert@paulsenonline.net> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-10 required=5 tests=BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 200910/44 X-Sequence-Number: 33243 On Saturday 10 October 2009 2:00 pm, Robert Paulsen wrote: > > So no default for id. What should it be? > > Something like one of this? > > default nextval('vault_id_seq') > Should have tried that before posting last message -- it worked. Thanks!