lo_open() - truncate a large object?

From: "Gregory W Burnham" <gburnham(at)sfu(dot)ca>
To: <pgsql-interfaces(at)postgresql(dot)org>
Subject: lo_open() - truncate a large object?
Date: 1999-03-17 22:52:38
Message-ID: 008301be70c8$dbb69a20$3d063a8e@educ.sfu.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

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

Browse pgsql-interfaces by date

  From Date Subject
Next Message Postgres mailing lists 1999-03-18 08:53:36 JDBC Query performance
Previous Message pacilli 1999-03-17 19:07:39 My problem with iODBC->psqlodbc