Re: Dangling large objects

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Adam Haberlach <adam(at)newsnipple(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Dangling large objects
Date: 2001-01-08 22:36:09
Message-ID: 19636.978993369@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Adam Haberlach <adam(at)newsnipple(dot)com> writes:
> Is there any simple way for me to get a list of all large objects
> in a database, so I can see if there are actually rows referring to them
> and delete the ones that were not unlinked earlier?

Look at the vacuum_lo contrib module.

BTW, I believe lo_unlink doesn't need to be in a transaction block,
only lo_open/read/write/close do.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Thomas T. Thai 2001-01-08 22:45:24 pgsql & mnogosearch
Previous Message Tom Lane 2001-01-08 22:33:56 Re: SELECT INTO Troubles