pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Edward Amsden <amsden_linux@embarqmail.com>
To: pgsql-interfaces@postgresql.org
Subject: Re: pqlib large object error
Date: Tue, 10 Jun 2008 21:04:51 -0400
Message-ID: <1213146291.19203.4.camel@dad-desktop2> (raw)
In-Reply-To: <26209.1213139125@sss.pgh.pa.us>
References: <1213118594.9123.11.camel@dad-desktop2>
	<21991.1213122593@sss.pgh.pa.us>
	<1213130242.15557.3.camel@dad-desktop2>
	<24396.1213130996@sss.pgh.pa.us>
	<1213134089.15557.22.camel@dad-desktop2>
	<26209.1213139125@sss.pgh.pa.us>

Thanks for all your help. I'm somewhat amateur with C and even less
experienced with PostgreSQL (I'm a recent MySQL convert). Even after
some googling, I have no idea what this BEGIN block is. Is it C or is it
SQL? That probably makes me a n00b. :-| If you could explain I'd
appreciate it :-)

BTW once I get this working I'm going to write a PostgreSQL Large Object
tutorial on my blog, so others don't have to struggle with the code like
I am :-)
On Tue, 2008-06-10 at 19:05 -0400, Tom Lane wrote:
> Edward Amsden <amsden_linux@embarqmail.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




view thread (13+ messages)  latest in thread

Message-ID: <1213146291.19203.4.camel@dad-desktop2>
Permalink:  ../1213146291.19203.4.camel@dad-desktop2/
Also on:    postgresql.org/message-id/1213146291.19203.4.camel@dad-desktop2

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: amsden_linux@embarqmail.com
  Subject: Re: pqlib large object error
  In-Reply-To: <1213146291.19203.4.camel@dad-desktop2>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox