From: | Tatsuo Ishii <ishii(at)postgresql(dot)org> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Proposal: new large object API |
Date: | 2008-03-19 00:42:08 |
Message-ID: | 20080319.094208.42502510.t-ishii@sraoss.co.jp |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-patches |
lo_import_with_oid added.
Note that actually committed function signature is:
Oid lo_import_with_oid(PGconn *conn, const char *filename, Oid lobjId);
--
Tatsuo Ishii
SRA OSS, Inc. Japan
> 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(at)postgresql(dot)org)
> > To make changes to your subscription:
> > http://www.postgresql.org/mailpref/pgsql-hackers
>
> --
> 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
From | Date | Subject | |
---|---|---|---|
Next Message | patrick | 2008-03-19 01:27:23 | tsearch2 in postgresql 8.3.1 - invalid byte sequence for encoding "UTF8": 0xc3 |
Previous Message | Bruce Momjian | 2008-03-19 00:37:42 | Re: Re: pgsql: Add URLs for : * Speed WAL recovery by allowing more than one |
From | Date | Subject | |
---|---|---|---|
Next Message | ITAGAKI Takahiro | 2008-03-19 01:37:22 | Re: Patch for testing query modes on pgbench |
Previous Message | Tatsuo Ishii | 2008-03-19 00:31:04 | Re: Patch for testing query modes on pgbench |