pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gregory W Burnham <gburnham@sfu.ca>
To: pgsql-interfaces@postgresql.org
Subject: lo_open() - truncate a large object?
Date: Wed, 17 Mar 1999 14:52:38 -0800
Message-ID: <008301be70c8$dbb69a20$3d063a8e@educ.sfu.ca> (raw)

RedHat 5.1
Kernel 2.0.35 (i686)
Postgresql 6.3.2

I'd like to be able to open a large object and have it truncated,
something like this:

	int fd = lo_open(conn, oid, INV_READ | INV_WRITE | O_TRUNC);

But of course that doesn't work.  Is there a way to do this
with postgresql?

Gregory W Burnham
Software Engineer
Excite Labs
Simon Fraser University
Vancouver, BC
V5A 1S6
604 291 3615 ph
604 291 5679 fx





Message-ID: <008301be70c8$dbb69a20$3d063a8e@educ.sfu.ca>
Permalink:  ../008301be70c8$dbb69a20$3d063a8e@educ.sfu.ca/
Also on:    postgresql.org/message-id/008301be70c8$dbb69a20$3d063a8e@educ.sfu.ca

 · 

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: gburnham@sfu.ca
  Subject: Re: lo_open() - truncate a large object?
  In-Reply-To: <008301be70c8$dbb69a20$3d063a8e@educ.sfu.ca>

* 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