From: Stephen Crawley <crawley@dstc.edu.au>
To: pgsql-sql@postgresql.org
Subject: Is it possible to "truncate" a LOB?
Date: Fri, 09 Jun 2000 09:29:30 +1000
Message-ID: <200006082329.e58NTUb02892@piglet.dstc.edu.au> (raw)
[I asked this question on the "interfaces" list, but nobody answered ...]
Suppose that I have created a LOB, written a bunch of data to it, and
committed.
Is it now possible to rewrite the LOB to contain a lesser amount of data?
In other words can I do the equivalent of UNIX open(..., O_WRONLY | O_TRUNC)
or ftruncate(...) on a LOB?
Or am I forced to delete the existing LOB and create a new one if I want
to shrink the size of the stored data?
-- Steve
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-sql@postgresql.org
Cc: crawley@dstc.edu.au
Subject: Re: Is it possible to "truncate" a LOB?
In-Reply-To: <200006082329.e58NTUb02892@piglet.dstc.edu.au>
References: <200006082329.e58NTUb02892@piglet.dstc.edu.au>
* 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