Re: Logging function calls to figure out lo_close log entries? - Mailing list pgsql-general

From Tom Lane
Subject Re: Logging function calls to figure out lo_close log entries?
Date
Msg-id 29475.1020835570@sss.pgh.pa.us
Whole thread Raw
In response to Logging function calls to figure out lo_close log entries?  (Ron Snyder <snyder@roguewave.com>)
List pgsql-general
Ron Snyder <snyder@roguewave.com> writes:
> May  7 09:40:08 vault pgqv[13698]: [362] ERROR:  lo_close: invalid large obj
> descriptor (0)

This generally suggests that someone is trying to use a LO handle beyond
the end of the transaction in which they did lo_open() --- or more to
the point, they forgot to wrap usage of the handle in a begin/commit
transaction block.  But I'm not enough of a JDBC user to be sure what
that translates to on the JDBC side.

> I was wondering if there is anything on the server end that I could
> change to help them track this down.

Turn up the debug level?  AFAICT your log includes only some of the
queries that are relevant.  Could their application be deliberately
suppressing query log entries, perhaps via PGOPTIONS?

            regards, tom lane

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: How can I speed up this search?
Next
From: Holger Marzen
Date:
Subject: Re: Performance issues with compaq server