Received: from mail.premiernet.net (root@mail.premiernet.net [205.229.224.233]) by hub.org (8.9.3/8.9.3) with ESMTP id OAA03204; Fri, 31 Mar 2000 14:39:42 -0500 (EST) (envelope-from ken@premiernet.net) Received: from win (win.ineffable.com [205.229.224.253]) by mail.premiernet.net (8.9.3/8.9.3) with SMTP id NAA19007; Fri, 31 Mar 2000 13:38:45 -0600 Message-Id: <3.0.1.32.20000331133906.017ba9f0@premiernet.net> X-Sender: ken@premiernet.net (Unverified) X-Mailer: Windows Eudora Pro Version 3.0.1 (32) Date: Fri, 31 Mar 2000 13:39:06 -0600 To: Tom Lane From: Ken Causey Subject: Re: [INTERFACES] Problem with Large Object Interface of pgsql_perl5 Cc: pgsql-interfaces@postgresql.org, pgsql-general@postgresql.org In-Reply-To: <9673.954526278@sss.pgh.pa.us> References: <3.0.1.32.20000331101855.016db34c@premiernet.net> <3.0.1.32.20000331101855.016db34c@premiernet.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Archive-Number: 200003/22 Edmund Mergl was kind enough to point out my error and now that I look back at the Programmer's documentation I see it. Someone might want to update the Pg man page to reflect this. Thanks! Ken Causey PremierNET, Inc. At 01:11 PM 3/31/00 -0500, Tom Lane wrote: >Ken Causey writes: >> Can anyone tell me what I'm doing wrong? > >Not doing the lo_open inside a transaction. You need begin ... end >around any use of an open large object. (This has always been true, >but older versions of Postgres didn't enforce it --- they'd just die >occasionally if you broke the rule. Now, open LO handles are auto- >closed at transaction commit, which is to say at end of statement >if you're not inside a BEGIN block.) > > regards, tom lane > >