Re: lo_create(oid, bytea) breaks every extant release of libpq

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: lo_create(oid, bytea) breaks every extant release of libpq
Дата
Msg-id 20140612145604.GK18688@eldon.alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: lo_create(oid, bytea) breaks every extant release of libpq  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: lo_create(oid, bytea) breaks every extant release of libpq
Re: lo_create(oid, bytea) breaks every extant release of libpq
Список pgsql-hackers
Tom Lane wrote:
> Noah Misch <noah@leadboat.com> writes:
> >> lo_new() or lo_make()?  An earlier draft of the patch that added
> >> lo_create(oid, bytea) had a similar function named make_lo().
> 
> It appears that lo_make() has a small plurality, but before we lock
> that name in, there was one other idea that occurred to me: the
> underlying C function is currently named lo_create_bytea(), and
> that seems like not an awful choice for the SQL name either.
> 
> 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).

-- 
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: lo_create(oid, bytea) breaks every extant release of libpq
Следующее
От: Robert Haas
Дата:
Сообщение: Re: Shared memory changes in 9.4?