Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 500C59F9418 for ; Sun, 4 Nov 2007 20:27:12 -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 89948-02-5 for ; Sun, 4 Nov 2007 20:26:58 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 067449F9291 for ; Sun, 4 Nov 2007 20:26:55 -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 lA50Qr5k029839; Sun, 4 Nov 2007 19:26:53 -0500 (EST) To: "Michael Goldner" cc: pgsql-admin@postgresql.org Subject: Re: Database size with large objects In-reply-to: References: Comments: In-reply-to "Michael Goldner" message dated "Sun, 04 Nov 2007 17:49:13 -0500" Date: Sun, 04 Nov 2007 19:26:53 -0500 Message-ID: <29838.1194222413@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200711/43 X-Sequence-Number: 27286 "Michael Goldner" writes: > I have a database with a single table that includes an oid reference to a > large object. After loading 100GB of large objects using lo_import(), I > find that my total database size has grown by about 270GB. What is the > reason for the difference in space usage? Try VACUUM VERBOSE on your table and also on pg_largeobject to get a sense of where the space went. I'm wondering whether you allowed for indexes and for other data in your table. regards, tom lane