From: | Tatsuo Ishii <ishii(at)postgresql(dot)org> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Proposal: new large object API |
Date: | 2008-03-13 08:22:40 |
Message-ID: | 20080313.172240.58437291.t-ishii@sraoss.co.jp |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-patches |
I would like to propose new large object client side API for 8.4.
Currently we have:
Oid lo_import(PGconn *conn, const char *filename);
But we do not have an API which imports a large object specifying the
object id. This is inconvenient and inconsistent since we already have
lo_create() and lo_open() which allow to specify the large object id.
So I propose to add new API:
int lo_import_with_oid(PGconn *conn, Oid lobjId, const char *filename);
Another idea is changing the signature of lo_import:
Oid lo_import(PGconn *conn, Oid lobjId, const char *filename);
which will be cleaner but break the backward compatibility.
Comments are welcome.
--
Tatsuo Ishii
SRA OSS, Inc. Japan
From | Date | Subject | |
---|---|---|---|
Next Message | Simon Riggs | 2008-03-13 08:24:45 | Re: CSStorm occurred again by postgreSQL8.2 |
Previous Message | Simon Riggs | 2008-03-13 08:13:18 | Re: Reducing Transaction Start/End Contention |
From | Date | Subject | |
---|---|---|---|
Next Message | Simon Riggs | 2008-03-13 08:24:45 | Re: CSStorm occurred again by postgreSQL8.2 |
Previous Message | Bruce Momjian | 2008-03-13 00:13:20 | Re: CSStorm occurred again by postgreSQL8.2 |