Re: Determine unused / not referenced large Objects

From: Thomas Kellerer <spam_eater(at)gmx(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Determine unused / not referenced large Objects
Date: 2012-11-28 09:20:41
Message-ID: k94l0d$7s5$1@ger.gmane.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Tobias Meyer, 28.11.2012 10:02:
> Hello list,
>
> we have a database with several tables containing blobs (as oid),
> that reference large objects in pg_largeobject.
>
> It is my understanding, that the large objects will not be deleted if
> a row containing the oid is deleted – you have to do that yourself in
> application logic. (please correct me if wrong)
>
> I think we might not have done that consistently in the past.
>
> Is it safe to assume that pg_largeobject only contains large objects
> added by application code, or might there be any postgresql-internal
> objects?
>

Isn't vacuumlo supposed to do this kind of cleanup?

http://www.postgresql.org/docs/current/static/vacuumlo.html

Regards
Thomas

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tobias Meyer 2012-11-28 09:28:46 Re: Determine unused / not referenced large Objects
Previous Message Tobias Meyer 2012-11-28 09:02:56 Determine unused / not referenced large Objects