Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 14901633380 for ; Tue, 6 Jul 2010 12:17:48 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 22199-02; Tue, 6 Jul 2010 15:17:40 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 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 EA5006335A8; Tue, 6 Jul 2010 12:17:39 -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 o66FHc3g028565; Tue, 6 Jul 2010 11:17:38 -0400 (EDT) To: arnaud.listes@codata.eu cc: pgsql-odbc@postgresql.org, pgsql-general Subject: Re: 'default nextval()' loses schema-qualification in dump ? In-reply-to: <4C334593.7030300@codata.eu> References: <4C32FF36.8030604@codata.eu> <27289.1278426134@sss.pgh.pa.us> <4C334593.7030300@codata.eu> Comments: In-reply-to Arnaud Lesauvage message dated "Tue, 06 Jul 2010 17:02:43 +0200" Date: Tue, 06 Jul 2010 11:17:38 -0400 Message-ID: <28564.1278429458@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201007/169 X-Sequence-Number: 165054 Arnaud Lesauvage writes: > As you have understood, I am not very savvy about postgresql's > internals, but from what you say my guess is that the problem is int the > psqlODBC is getting the default value of the sequence ? I have no idea, because you haven't showed us what's happening, only your oversimplified description of what's happening. We really need to see the exact SQL used to define the table (copy that from your dump, perhaps) as well as the exact SQL used in the misbehaving insert commands. regards, tom lane