Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id EF10A2E2E84 for ; Fri, 18 Jan 2008 12:23:42 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 40900-06 for ; Fri, 18 Jan 2008 12:23:26 -0400 (AST) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 42AA12E3357 for ; Fri, 18 Jan 2008 12:23:35 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.1/8.14.1) with ESMTP id m0IGNW6M009643; Fri, 18 Jan 2008 11:23:33 -0500 (EST) To: Kevin Kempter cc: pgsql-admin@postgresql.org Subject: Re: more blob questions In-reply-to: <200801172145.25911.kevin@kevinkempterllc.com> References: <200801172145.25911.kevin@kevinkempterllc.com> Comments: In-reply-to Kevin Kempter message dated "Thu, 17 Jan 2008 21:45:25 -0700" Date: Fri, 18 Jan 2008 11:23:32 -0500 Message-ID: <9642.1200673412@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200801/212 X-Sequence-Number: 27986 Kevin Kempter 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