Re: Problem with Large Object Interface of pgsql_perl5

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Ken Causey <ken(at)premiernet(dot)net>
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: Problem with Large Object Interface of pgsql_perl5
Date: 2000-03-31 18:11:18
Message-ID: 9673.954526278@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-interfaces

Ken Causey <ken(at)premiernet(dot)net> 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ross J. Reedstrom 2000-03-31 18:16:06 Re: What is the default port for postmaster?
Previous Message Guido Goldstein 2000-03-31 17:16:37 Re: How do I change the default editor in psql

Browse pgsql-interfaces by date

  From Date Subject
Next Message Ken Causey 2000-03-31 19:39:06 Re: [INTERFACES] Problem with Large Object Interface of pgsql_perl5
Previous Message Ken Causey 2000-03-31 16:18:55 Problem with Large Object Interface of pgsql_perl5