How To free resources used by large object Relations?

From: "Maurice Gittens" <mgittens(at)gits(dot)nl>
To: <pgsql-hackers(at)postgresql(dot)org>
Subject: How To free resources used by large object Relations?
Date: 1998-02-20 13:14:22
Message-ID: 018001bd3e01$7651be80$fcf3b2c2@caleb..gits.nl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

I've changed the large object memory managment strategy to ensure that
each large object has it's own memory context.
This way I can free all memory for a large object when I lo_close
is called for it's oid. This seems to work.

I've noticed that the heap_close function used to close the heap used
by a large object doesn't really do any thing. (It calls RelationClose
which decrements some reference count).

Somehow I have to free the relation from the cache in the following
situations:
1. In a transaction I must free the stuff when the transaction is
commited/aborted.
2. Otherwise it must happen when lo_close is called.

Is this right?

Can anyone point me in the right direction?

Thanks Maurice.

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Thomas G. Lockhart 1998-02-20 13:26:50 Re: [HACKERS] RE: New ecgp code problem.
Previous Message The Hermit Hacker 1998-02-20 13:03:14 Re: [HACKERS] libpgtcl undefined symbol error with pgaccess-0.76