X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id CE6C0D1B52A for ; Thu, 2 Oct 2003 23:39:56 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 99067-09 for ; Thu, 2 Oct 2003 20:39:09 -0300 (ADT) Received: from sj-iport-3.cisco.com (sj-iport-3-in.cisco.com [171.71.176.72]) by svr1.postgresql.org (Postfix) with ESMTP id E6182D1B506 for ; Thu, 2 Oct 2003 20:39:04 -0300 (ADT) Received: from cisco.com (171.68.223.138) by sj-iport-3.cisco.com with ESMTP; 02 Oct 2003 16:44:53 -0700 Received: from cjwhitew2k01 (dhcp-128-107-151-92.cisco.com [128.107.151.92]) by sj-core-4.cisco.com (8.12.6/8.12.6) with ESMTP id h92Nd4xW029148; Thu, 2 Oct 2003 16:39:06 -0700 (PDT) Reply-To: From: "Chris White (cjwhite)" To: "'Tom Lane'" Cc: "'Robert Treat'" , Subject: Re: Question about DB VACUUM Date: Thu, 2 Oct 2003 16:40:08 -0700 Message-ID: <001c01c3893e$871dca40$5c976b80@amer.cisco.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4024 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4927.1200 In-Reply-To: <12586.1065134741@sss.pgh.pa.us> Importance: Normal X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/35 X-Sequence-Number: 10596 Tom, You were right, 1 or 2 of the large objects weren't actually getting removed from the table, each cycle. I wasn't running on a completely empty database when I first started, so I didn't notice the undeleted objects. The program which interfaces to the database uses the JDBC method LargeObject.delete() to delete the large object associated to the entry in the users data table. Plus every night I have a program which goes through the database and checks for and removes large objects which are no longer being referenced by any table. I am now trying to find out why the occasion entry doesn't get deleted. Chris -----Original Message----- From: Tom Lane [mailto:tgl@sss.pgh.pa.us] Sent: Thursday, October 02, 2003 3:46 PM To: cjwhite@cisco.com Cc: 'Robert Treat'; pgsql-admin@postgresql.org Subject: Re: [ADMIN] Question about DB VACUUM "Chris White (cjwhite)" writes: > The index has grown by 4 pages and the table has grown by 10 pages. > BTW, what is a page size? Why is this happening as this is the table > that I am theoretically keeping the same size by adding/deleting the > same objects from. Kinda looks like you aren't doing anything to remove no-longer-referenced large objects. An LO is not a BLOB; it has an independent existence. You may care to look into contrib/lo and/or contrib/vacuumlo. Or possibly you should be using wide text or bytea fields, not large objects at all... regards, tom lane