Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id E88606333B4 for ; Sat, 10 Oct 2009 17:16:47 -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 42361-06 for ; Sat, 10 Oct 2009 20:16:32 +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 D08B36332FF for ; Sat, 10 Oct 2009 17:16:36 -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 n9AKGUqw020766; Sat, 10 Oct 2009 16:16:30 -0400 (EDT) To: Robert Paulsen cc: pgsql-sql@postgresql.org Subject: Re: ERROR: null value in column "id" violates not-null constraint In-reply-to: <200910101405.26853.robert@paulsenonline.net> References: <200910101056.24051.robert@paulsenonline.net> <17323.1255200405@sss.pgh.pa.us> <200910101400.47182.robert@paulsenonline.net> <200910101405.26853.robert@paulsenonline.net> Comments: In-reply-to Robert Paulsen message dated "Sat, 10 Oct 2009 14:05:26 -0500" Date: Sat, 10 Oct 2009 16:16:30 -0400 Message-ID: <20765.1255205790@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.587 tagged_above=-10 required=5 tests=AWL=0.012, BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 200910/45 X-Sequence-Number: 33244 Robert Paulsen writes: > On Saturday 10 October 2009 2:00 pm, Robert Paulsen wrote: >> So no default for id. What should it be? >> default nextval('vault_id_seq') > Should have tried that before posting last message -- it worked. Thanks! So the next question is just what happened and whether you're missing anything else from the original database state ... regards, tom lane