X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 1C6FA9DC809 for ; Thu, 23 Feb 2006 11:28:49 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 76699-07 for ; Thu, 23 Feb 2006 11:28:53 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from tigger.fuhr.org (tigger.fuhr.org [63.214.45.158]) by postgresql.org (Postfix) with ESMTP id BC0B99DC806 for ; Thu, 23 Feb 2006 11:28:46 -0400 (AST) Received: from winnie.fuhr.org (winnie.fuhr.org [10.1.0.1]) by tigger.fuhr.org (8.13.3/8.13.3) with ESMTP id k1NFSg1b069463 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 23 Feb 2006 08:28:45 -0700 (MST) (envelope-from mfuhr@winnie.fuhr.org) Received: from winnie.fuhr.org (localhost [127.0.0.1]) by winnie.fuhr.org (8.13.4/8.13.4) with ESMTP id k1NFSgCO036877; Thu, 23 Feb 2006 08:28:42 -0700 (MST) (envelope-from mfuhr@winnie.fuhr.org) Received: (from mfuhr@localhost) by winnie.fuhr.org (8.13.4/8.13.4/Submit) id k1NFSc5a036876; Thu, 23 Feb 2006 08:28:38 -0700 (MST) (envelope-from mfuhr) Date: Thu, 23 Feb 2006 08:28:38 -0700 From: Michael Fuhr To: sandhya Cc: Postgres Subject: Re: large object unlinking Message-ID: <20060223152838.GA36720@winnie.fuhr.org> References: <00ce01c6384e$68e3c540$cd00000a@sandhyar> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <00ce01c6384e$68e3c540$cd00000a@sandhyar> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.122 required=5 tests=[AWL=0.122] X-Spam-Score: 0.122 X-Spam-Level: X-Archive-Number: 200602/274 X-Sequence-Number: 20695 On Thu, Feb 23, 2006 at 01:24:43PM +0530, sandhya wrote: > Is there any possibility to delete /Unlink a group of large objects at a time? > Please tell me .To test my application i have loaded somany files into database. > Now i want to unlink all those objects. You could call lo_unlink() in a query. Example: SELECT lo_unlink(loid) FROM (SELECT DISTINCT loid FROM foo) AS s; See also contrib/vacuumlo, which will automatically remove large objects that aren't referenced anywhere. -- Michael Fuhr