Re: [HACKERS] Proposal: new large object API

From: Tatsuo Ishii <ishii(at)postgresql(dot)org>
To: pgsql-patches(at)postgresql(dot)org
Subject: Re: [HACKERS] Proposal: new large object API
Date: 2008-03-18 01:09:31
Message-ID: 20080318.100931.77051329.t-ishii@sraoss.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Here is the proposed patches. If there's no objection, I will
commit(or Shall I wait for next "commit festa"?).

Note that I decide to use lo_import_with_oid, but the signature is
changed(the second and the third arguments are swapped because it
seems more natural).
--
Tatsuo Ishii
SRA OSS, Inc. Japan

> 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
>
> --
> Sent via pgsql-hackers mailing list (pgsql-hackers(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-hackers

Attachment Content-Type Size
unknown_filename text/plain 4.7 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tatsuo Ishii 2008-03-18 01:10:06 Re: Proposal: new large object API
Previous Message Tom Lane 2008-03-18 01:01:13 Re: Better error message for select_common_type()

Browse pgsql-patches by date

  From Date Subject
Next Message Tatsuo Ishii 2008-03-18 01:10:06 Re: Proposal: new large object API
Previous Message Tom Lane 2008-03-17 22:40:49 Re: UPDATE using sub selects