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 A86BED1B4FC for ; Tue, 7 Oct 2003 04:25:08 +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 21585-05 for ; Tue, 7 Oct 2003 01:24:23 -0300 (ADT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id 8E1C7D1B523 for ; Tue, 7 Oct 2003 01:24:22 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.10/8.12.10) with ESMTP id h974OJhn020682; Tue, 7 Oct 2003 00:24:19 -0400 (EDT) To: cjwhite@cisco.com Cc: "'Robert Treat'" , pgsql-admin@postgresql.org Subject: Re: Question about DB VACUUM In-reply-to: <000401c38c8a$6270f010$0400a8c0@amer.cisco.com> References: <000401c38c8a$6270f010$0400a8c0@amer.cisco.com> Comments: In-reply-to "Chris White \(cjwhite\)" message dated "Mon, 06 Oct 2003 21:20:43 -0700" Date: Tue, 07 Oct 2003 00:24:19 -0400 Message-ID: <20681.1065500659@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/72 X-Sequence-Number: 10633 "Chris White \(cjwhite\)" writes: > Okay now I understand what is going on. I have a second thread which is > being used to read these objects out of the database to present to the > user, and because large objects can only be accessed in a transaction > mode I have not closed the transaction on this thread. Should I do a > commit or rollback to terminate the transaction, once I have closed the > large object, even though I have not done any modifications to the large > objects? Yes, if you need to reclaim the space from recently-deleted large objects. Under ordinary scenarios I'd not think that you have to be real tense about this. However, if your reader thread was in the habit of holding open the same transaction for hours or days, that would be a Bad Thing ... regards, tom lane