Skip site navigation (1) Skip section navigation (2)

Re: more blob questions

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Kevin Kempter <kevin(at)kevinkempterllc(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: more blob questions
Date: 2008-01-18 16:23:32
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-admin
Kevin Kempter <kevin(at)kevinkempterllc(dot)com> writes:
> Suppose I have a table with say an integer key, a char column and a large 
> object column.

> can I simply delete a row from the table (delete from bigtable where...), then 
> run a vacuum (or vacuum full) ? If so, in this scenario will postgres release 
> the space back to the OS or must I first remove the large object with 
> lo_unlink() ?

That would release only the row's space, not the large object's.  You
need to do the lo_unlink().

> also, does the contrib vacuumlo perform tasks I cannot do via vacuum and  
> lo_unlink ?

It doesn't do any magic.  You might want to read the latest cleaned-up
documentation for it:
The contrib/lo module is also worth reading about.

			regards, tom lane

In response to

pgsql-admin by date

Next:From: M.KhaledDate: 2008-01-18 16:42:36
Subject: Can not access the public schema
Previous:From: Tom LaneDate: 2008-01-18 15:42:04
Subject: Re: Cannot bind socket

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group