pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: sandhya <sandhyar@amiindia.co.in>
To: Michael Fuhr <mike@fuhr.org>
Cc: Postgres <pgsql-admin@postgresql.org>
Subject: Re: large object unlinking
Date: Fri, 24 Feb 2006 11:57:57 +0530
Message-ID: <013d01c6390b$73cf5970$cd00000a@sandhyar> (raw)
References: <00ce01c6384e$68e3c540$cd00000a@sandhyar>
	<20060223152838.GA36720@winnie.fuhr.org>

Thank You Fuhr.
In select lo_unlink(objid) from (select distinct objid from filetbl)AS s;
the above query what is that 'S' stands for in AS 'S'
Can u pls explain me.....



----- Original Message -----
From: "Michael Fuhr" <mike@fuhr.org>
To: "sandhya" <sandhyar@amiindia.co.in>
Cc: "Postgres" <pgsql-admin@postgresql.org>
Sent: Thursday, February 23, 2006 8:58 PM
Subject: Re: [ADMIN] large object unlinking


> 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
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: explain analyze is your friend
>





view thread (4+ messages)  latest in thread

Message-ID: <013d01c6390b$73cf5970$cd00000a@sandhyar>
Permalink:  ../013d01c6390b$73cf5970$cd00000a@sandhyar/
Also on:    postgresql.org/message-id/013d01c6390b$73cf5970$cd00000a@sandhyar

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: sandhyar@amiindia.co.in, mike@fuhr.org
  Subject: Re: large object unlinking
  In-Reply-To: <013d01c6390b$73cf5970$cd00000a@sandhyar>
  References: <00ce01c6384e$68e3c540$cd00000a@sandhyar> <20060223152838.GA36720@winnie.fuhr.org> <013d01c6390b$73cf5970$cd00000a@sandhyar>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox