From: | thhal at mailblocks(dot)com (Thomas Hallgren) |
---|---|
To: | |
Subject: | [Pljava-dev] LargeObject |
Date: | 2005-06-20 07:06:05 |
Message-ID: | thhal-0YAOSAzfxzjYjTary4NYm+a/GJe5nLz@mailblocks.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pljava-dev |
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
>
>
From | Date | Subject | |
---|---|---|---|
Next Message | 池上 | 2005-06-20 09:00:54 | [Pljava-dev] LargeObject |
Previous Message | Shunsuke Ikegami | 2005-06-20 05:13:41 | [Pljava-dev] LargeObject |