Re: lo_create(oid, bytea) breaks every extant release of libpq
| От | Tom Lane |
|---|---|
| Тема | Re: lo_create(oid, bytea) breaks every extant release of libpq |
| Дата | |
| Msg-id | 24762.1402586028@sss.pgh.pa.us обсуждение |
| Ответ на | Re: lo_create(oid, bytea) breaks every extant release of libpq (Alvaro Herrera <alvherre@2ndquadrant.com>) |
| Ответы |
Re: lo_create(oid, bytea) breaks every extant release of libpq
Re: lo_create(oid, bytea) breaks every extant release of libpq |
| Список | pgsql-hackers |
Alvaro Herrera <alvherre@2ndquadrant.com> writes:
> Tom Lane wrote:
>> Any other votes out there?
> I was also going to suggest lo_create_bytea(). Another similar
> possibility would be lo_from_bytea() -- or, since we have overloading
> (and we can actually use it in this case without breaking libpq), we
> could just have lo_from(oid, bytea).
Andres also mentioned lo_from_bytea(), and I kinda like it too.
I don't like plain lo_from(), as it's not too apparent what it's
supposed to get data "from" --- someone might think the second
parameter was supposed to be a file name a la lo_import(),
for example.
regards, tom lane
В списке pgsql-hackers по дате отправления: