Skip site navigation (1) Skip section navigation (2)

Re: pqlib large object error

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Edward Amsden <amsden_linux(at)embarqmail(dot)com>
Cc: pgsql-interfaces(at)postgreSQL(dot)org
Subject: Re: pqlib large object error
Date: 2008-06-10 23:05:25
Message-ID: 26209.1213139125@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-interfaces
Edward Amsden <amsden_linux(at)embarqmail(dot)com> writes:
> On Tue, 2008-06-10 at 16:49 -0400, Tom Lane wrote:
>> Hmph.  The only thing I can think of is that that index is corrupt,
>> but it seems unlikely that it would be so in all databases.  What
>> happens if you REINDEX pg_largeobject?

> The error has disappeared.

Hmm, so something did happen to your index.

> Now it can't write to the object. lo_open
> seems to be successful, but lo_write is failing with:
>> ERROR:  invalid large-object descriptor: 0

You forgot to put the open-and-use-descriptor sequence inside a 
BEGIN block.

			regards, tom lane

In response to

Responses

pgsql-interfaces by date

Next:From: Edward AmsdenDate: 2008-06-11 01:04:51
Subject: Re: pqlib large object error
Previous:From: Edward AmsdenDate: 2008-06-10 21:46:41
Subject: Re: pqlib large object error

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group