agora inbox for pljava-dev@postgresql.org  
help / color / mirror / Atom feed
Subject: [Pljava-dev] LargeObject
Date: Mon, 20 Jun 2005 09:06:05 +0200
Message-ID: <thhal-0YAOSAzfxzjYjTary4NYm+a/GJe5nLz@mailblocks.com> (raw)
In-Reply-To: <15C57556D2BBFDshun@datasection.co.jp>
References: <15C57556D2BBFDshun@datasection.co.jp>
	<42B66ADD.5070602@mailblocks.com>
	<thhal-0XwOSAzXxzjYrSiWT1T3SIwGMKfPX5U@mailblocks.com>

Shunsuke,
The LargeObject support in PL/Java is experimental and in the current 
version, the C-code will not be initialized (hence the error that you 
get). The code is there though, and if you want to play around with it, 
my guess is that the only thing you need to do in order to get it to 
work is to add the line:

    LargeObject_initialize(fcinfo);

somewhere near the end of function Type_initialize in the file 
pljava/type/Type.c, recompile and try again.

Regards,
Thomas Hallgren


Shunsuke Ikegami wrote:

>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
>_______________________________________________
>Pljava-dev mailing list
>Pljava-dev at gborg.postgresql.org
>http://gborg.postgresql.org/mailman/listinfo/pljava-dev
>  
>






view thread (3+ messages)  latest in thread

Message-ID: <thhal-0YAOSAzfxzjYjTary4NYm+a/GJe5nLz@mailblocks.com>
Permalink:  ../thhal-0YAOSAzfxzjYjTary4NYm+a%2FGJe5nLz@mailblocks.com/
Also on:    postgresql.org/message-id/thhal-0YAOSAzfxzjYjTary4NYm+a/GJe5nLz@mailblocks.com

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: <thhal-0YAOSAzfxzjYjTary4NYm+a/GJe5nLz@mailblocks.com>

* 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