Re: Proposal: new large object API - Mailing list pgsql-hackers

From Tatsuo Ishii
Subject Re: Proposal: new large object API
Date
Msg-id 20080318.101006.119283462.t-ishii@sraoss.co.jp
Whole thread Raw
In response to Proposal: new large object API  (Tatsuo Ishii <ishii@postgresql.org>)
Responses Re: Proposal: new large object API
List pgsql-hackers
I have posted proposed patches to pgsql-patches.
--
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@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-hackers


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Better error message for select_common_type()
Next
From: KaiGai Kohei
Date:
Subject: Re: [0/4] Proposal of SE-PostgreSQL patches