don't bother to call lo_close.as we ever open a few LOs at most in a transaction, just let them be closedautomatically at the end of the transaction.
reduce number of SQL statements for inactivate
isempty: fix a query result type.
tweak some sql statements to improve chances to use the index.
puffs file system server backed by postgresql