agora inbox for pljava-dev@postgresql.org  
help / color / mirror / Atom feed
Subject: [Pljava-dev] LargeObject
Date: Mon, 20 Jun 2005 14:13:41 +0900
Message-ID: <15C57556D2BBFDshun@datasection.co.jp> (raw)

Hello,

I tried to use LargeObject from pljava.
Do you have some sample code? I cannnot find it.

- pljava-1.1.0
- psql (PostgreSQL) 7.4.7
- java version "1.4.2_04"
- Fedora Core 2

--- I tried. ---
  import org.postgresql.pljava.internal.LargeObject;
  import org.postgresql.pljava.internal.Oid;
  
  
  Oid oid = (Oid)rs.getObject(1);
  Logger.getAnonymousLogger().info("oid.hashCode() : " + oid.hashCode());
  LargeObject largeObj = LargeObject.open(oid, LargeObject.INV_READ);
  largeObj.close();

--- result. ----
INFO:  20 6 05 13:42:21 test.LargeObjectTest oid.hashCode() : 19688167
ERROR:  java.lang.UnsatisfiedLinkError: _open



Thanks

Shunsuke




view thread (3+ messages)  latest in thread

Message-ID: <15C57556D2BBFDshun@datasection.co.jp>
Permalink:  ../15C57556D2BBFDshun@datasection.co.jp/
Also on:    postgresql.org/message-id/15C57556D2BBFDshun@datasection.co.jp

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: pljava-dev@postgresql.org
  Subject: Re: [Pljava-dev] LargeObject
  In-Reply-To: <15C57556D2BBFDshun@datasection.co.jp>

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

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