From: Richard Huxton <dev@archonet.com>
To: Premsun Choltanwanich <Premsun@nsasia.co.th>
Cc: pgsql-sql@postgresql.org
Subject: Re: How to delete Large Object from Database?
Date: Fri, 07 Oct 2005 08:30:05 +0100
Message-ID: <434623FD.7000408@archonet.com> (raw)
In-Reply-To: <43465BAA.C5F7.004C.0@nsasia.co.th>
References: <43465BAA.C5F7.004C.0@nsasia.co.th>
Premsun Choltanwanich wrote:
>
> Dear All,
>
> I use '$libdir/lo' for manage my PostgreSQL Large Object. It work fine
> for me to get and put Large Object from and to database. However I
> found something that may not correct when I try to backup my data. It
> seem that I cannot delete Large Object from database. It seem the thing
> I can do is only delete the reference oid from table but Object still in
> database.
> So,How to delete Large Object from Database? or Is my understanding wrong?
Deleting the OID does not remove the object itself - see details of
lo_unlink() in Chapter 28 of the manuals.
I seem to recall some other utilities in the contrib/ directory of the
source distribution too.
--
Richard Huxton
Archonet Ltd
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: dev@archonet.com, Premsun@nsasia.co.th
Subject: Re: How to delete Large Object from Database?
In-Reply-To: <434623FD.7000408@archonet.com>
* 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