pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: John Huttley <john@mwk.co.nz>
Cc: PGSQL-Interfaces <pgsql-interfaces@postgreSQL.org>
Subject: Re: [INTERFACES] libpq, large Objects
Date: Sun, 20 Jun 1999 19:28:03 -0400
Message-ID: <13175.929921283@sss.pgh.pa.us> (raw)
In-Reply-To: <001401bebb56$a8787240$1401a8c0@Mr_Creosote.MWK.co.nz>

"John Huttley" <john@mwk.co.nz> writes:
> How do you destroy a large_object?

lo_unlink(oid_of_large_object)

> AFAIK, the only way to do it is to put its OID into a tuple in a table and
> then delete that tuple.

AFAIK, that will *not* remove the LO, just the referencing tuple ...

> How do you truncate a large_object?

I don't believe there's any way to do that.  It's an oversight, for
sure.

			regards, tom lane



view thread (5+ messages)  latest in thread

Message-ID: <13175.929921283@sss.pgh.pa.us>
Permalink:  ../13175.929921283@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/13175.929921283@sss.pgh.pa.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: tgl@sss.pgh.pa.us, john@mwk.co.nz
  Subject: Re: [INTERFACES] libpq, large Objects
  In-Reply-To: <13175.929921283@sss.pgh.pa.us>

* 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