>>>>> "Chapman" == Chapman Flack <chap@anastigmatix.net> writes:
Chapman> There's precedent for that kind of thing in PL/Java already
Chapman> ... objects that Java considers alive as long as some code
Chapman> holds a reference to them, but proxy for things in PG that may
Chapman> only have function-call lifetime or cursor-row lifetime, etc.
Chapman> If they are closed by Java code (or the Java GC finds them
Chapman> unreachable) first, they have to remember to release their PG
Chapman> stuff; if the PG stuff goes first, they have to update
Chapman> themselves to throw a suitable "you've kept me past my sell-by
Chapman> date" exception if the Java code tries to use them again.
How's the code doing this? I couldn't find it in a cursory scan.
--
Andrew (irc:RhodiumToad)