Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id CC8B9633FED for ; Fri, 23 Oct 2009 12:51:49 -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 22978-10 for ; Fri, 23 Oct 2009 15:51:42 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-iw0-f186.google.com (mail-iw0-f186.google.com [209.85.223.186]) by mail.postgresql.org (Postfix) with ESMTP id 9E5BC633968 for ; Fri, 23 Oct 2009 12:51:41 -0300 (ADT) Received: by iwn16 with SMTP id 16so5229933iwn.29 for ; Fri, 23 Oct 2009 08:51:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=F4AWXs9sp9L2hx+M8XxstKKDeTbVi9w6Slu9XuWdLYU=; b=Xcqxmh4+NSeUnh7YayC2jh2fT8gEHyBTYJwi+/biRBVtCburbzz88YGnJjVhpfTY9X fxpAUmVHNozo85I8oIiOCyHY+3kzgYk2dp7fEg5gjLSmCy8JPv21DbUb9IHMCr7X6AIC X6RsmNGM+nQgfGNRwN2xBNAnmt+iQV9yXQcp4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=j70azD3zTA1jpzcu1ut7HvpARaya9br8U0YL4kI/BIsKbpz4ZIFyjobN+iwP1uZxk1 VX4FAWuYzm1xIQtu0sxUAv9j2NbUj/wo/KeGNWjQ2o7LmX1QLwtIy5Yr43UdatjL2yqG arsRyghD9UY1kLHSdYCT1kZr9a3bR+F/tUTts= MIME-Version: 1.0 Received: by 10.231.124.227 with SMTP id v35mr4710752ibr.18.1256313100532; Fri, 23 Oct 2009 08:51:40 -0700 (PDT) Date: Fri, 23 Oct 2009 08:51:40 -0700 Message-ID: <396486430910230851k3dc931c6y72216e152e7e3691@mail.gmail.com> Subject: INSERT malfunction between MS-Access - PostgreSQL - LO From: Richard Broersma To: pgsql-odbc Content-Type: text/plain; charset=ISO-8859-1 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/24 X-Sequence-Number: 10049 Can anyone help me identify the source of following misbehavior and correct it? I'm test how MS-Access handles large objects (LO) when using linked tables that are mapped to the OLE Object datatype. When I insert a new record, the record always returns with a #Deleted. When I close the form and refresh, the record displays. I checked the PostgreSQL logs generated after an insert to see why I getting #Deleted. Here is what I saw: 2009-10-23 08:31:06 PDTLOG: statement: BEGIN 2009-10-23 08:31:06 PDTLOG: fastpath function call: "lo_creat" (OID 957) 2009-10-23 08:31:06 PDTLOG: fastpath function call: "lo_open" (OID 952) 2009-10-23 08:31:06 PDTLOG: fastpath function call: "lo_lseek" (OID 956) 2009-10-23 08:31:06 PDTLOG: fastpath function call: "lowrite" (OID 955) 2009-10-23 08:31:06 PDTLOG: fastpath function call: "lowrite" (OID 955) ... [ then hundreds repeats of the previous log] 2009-10-23 08:31:09 PDTLOG: fastpath function call: "lowrite" (OID 955) 2009-10-23 08:31:09 PDTLOG: fastpath function call: "lo_close" (OID 953) 2009-10-23 08:31:09 PDTLOG: statement: INSERT INTO "public"."testtable" ("object") VALUES ('48509'::lo) 2009-10-23 08:31:09 PDTLOG: statement: SELECT "id","object","xmin" FROM "public"."testtable" WHERE "id" IS NULL 2009-10-23 08:31:09 PDTLOG: statement: COMMIT 2009-10-23 08:31:09 PDTLOG: statement: SELECT "id","object","xmin" FROM "public"."testtable" WHERE "id" IS NULL For some reason, a record is being selected with id IS NULL, rather than selecting the next id. Is there anyway to correct this behavior? -- Regards, Richard Broersma Jr. Visit the Los Angeles PostgreSQL Users Group (LAPUG) http://pugs.postgresql.org/lapug