From: | lucas at mcsnw(dot)com (Lucas Madar) |
---|---|
To: | |
Subject: | [Pljava-dev] ResultSetHandle and TupleDesc reference leak? |
Date: | 2008-01-05 09:57:44 |
Message-ID: | E7B8DAEA-F046-4272-9C84-BBCB05BE373F@mcsnw.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pljava-dev |
I have a program using ResultSetHandle and the first time a new
session uses the function, a warning pops up:
WARNING: TupleDesc reference leak: TupleDesc 0x750bcb0 (10307,-1)
still referenced
To be sure this wasn't my code, I used the exact example code shown in http://wiki.tada.se/display/pljava/Functions+returning+sets
.
# select * from javatest.listNonSupers();
WARNING: TupleDesc reference leak: TupleDesc 0x57aba8 (10307,-1)
still referenced
usename | usesysid | usecreatedb | usesuper | usecatupd | passwd
| valuntil | useconfig
----------+----------+-------------+----------+-----------+----------
+----------+-----------
xxxxxxxx | 24576 | f | f | f | ********
| |
xxxxxxxx | 32768 | f | f | f | ********
| |
Everything seems to work properly, but the warning is somewhat
disconcerting.
Also, I've run into an issue using setSavePoint()... after the
function ends and the savepoint has been released, the results
returned in the resultsethandle cannot be used in anything except a
simple select. Using them as a select into or inside another function
fails, saying 'ERROR: buffer xxx is not owned by resource
owner TopTransaction.' If I don't use savepoints, I don't run into
this issue. My workaround has been to wrap the java function in a
plsql function and use commit/rollback there.
Thanks,
Lucas Madar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pgfoundry.org/pipermail/pljava-dev/attachments/20080105/97f1ab87/attachment.html>
From | Date | Subject | |
---|---|---|---|
Next Message | Marion Davenport | 2008-01-07 01:44:22 | [Pljava-dev] server closed the connection unexpectedly errors |
Previous Message | Lucas Madar | 2007-12-20 08:52:15 | [Pljava-dev] Calling pl/pgsql functions from pl/java? |