pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: John David Garza <garza@cjas.org>
To: pgsql-interfaces@postgresql.org
Subject: jdbc, pgsql6.5.1, large objects
Date: Thu, 29 Jul 1999 21:30:34 -0400 (EDT)
Message-ID: <Pine.BSF.4.10.9907292129190.46423-100000@localhost> (raw)

Hey folks,

Let's see, my admin just upgraded postgresql to 6.5.1 and now it looks
like FastPath isn't working. More specifically, after creating and opening
a large object using the LargeObjectManager class, any other access
attempts throws the following:

FastPath call returned ERROR:  lo_write: invalid large obj descriptor (0)
FastPath call returned ERROR:  lo_write: invalid large obj descriptor (0)
        at postgresql.fastpath.Fastpath.fastpath(Fastpath.java:141)
        at postgresql.fastpath.Fastpath.fastpath(Fastpath.java:188)
        at postgresql.largeobject.LargeObject.write(LargeObject.java:173)
        at postgresql.largeobject.LargeObject.write(LargeObject.java:188)
        at uploadImage.main(uploadImage.java:87)

In this case, line 87 in uploadImage is:
...
85      LargeObject pict = lobjm.open(num);
86      while ((s=fblob.read(buf, 0, 256)) > 0) {
87              pict.write(buf, 0, s);}
...

Before upgrading to 6.5.1, this program worked fine. Calls to tell, size,
read all cause the same type of exceptions.

Any help would be appreciated.

Other info: FreeBSD 3.2, jdk1.1.8

Thanks,
John David Garza
garza@keyframe.cjas.org





view thread (3+ messages)  latest in thread

Message-ID: <Pine.BSF.4.10.9907292129190.46423-100000@localhost>
Permalink:  ../Pine.BSF.4.10.9907292129190.46423-100000@localhost/
Also on:    postgresql.org/message-id/Pine.BSF.4.10.9907292129190.46423-100000@localhost

 · 

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: garza@cjas.org
  Subject: Re: jdbc, pgsql6.5.1, large objects
  In-Reply-To: <Pine.BSF.4.10.9907292129190.46423-100000@localhost>

* 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