pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Kevin Kempter <kevin@kevinkempterllc.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: more blob questions
Date: Fri, 18 Jan 2008 11:23:32 -0500
Message-ID: <9642.1200673412@sss.pgh.pa.us> (raw)
In-Reply-To: <200801172145.25911.kevin@kevinkempterllc.com>
References: <200801172145.25911.kevin@kevinkempterllc.com>

Kevin Kempter <kevin@kevinkempterllc.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:
http://developer.postgresql.org/pgdocs/postgres/vacuumlo.html
The contrib/lo module is also worth reading about.

			regards, tom lane



view thread (2+ messages)

Message-ID: <9642.1200673412@sss.pgh.pa.us>
Permalink:  ../9642.1200673412@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/9642.1200673412@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, kevin@kevinkempterllc.com
  Subject: Re: more blob questions
  In-Reply-To: <9642.1200673412@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox