Re: PQconninfo function for libpq

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: PQconninfo function for libpq
Дата
Msg-id 12669.1354064031@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: PQconninfo function for libpq  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Ответы Re: PQconninfo function for libpq  (Magnus Hagander <magnus@hagander.net>)
Список pgsql-hackers
Alvaro Herrera <alvherre@2ndquadrant.com> writes:
> Peter Eisentraut wrote:
>> There is already the PQconninfoOption.dispchar field for this purpose.

> I had the impression that that field would go away with this patch, but
> then again it might not be worth the compatibility break.  I find the
> dispchar thingy somewhat unsightly.

It is that, without a doubt, but that API has been that way longer than
any of us have been working on the code.  I'm not excited about changing
it just to have an allegedly-cleaner API.  And we cannot have the field
simply "go away", because it's been exposed to applications for lo these
many years, and surely some of them are using it.  So in practice we'd
be maintaining both the old API and the new one.

I think we should leave it as-is until there are more reasons to change
it than seem to be provided in this thread.
        regards, tom lane



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

Предыдущее
От: John R Pierce
Дата:
Сообщение: Re: MySQL search query is not executing in Postgres DB
Следующее
От: Kyotaro HORIGUCHI
Дата:
Сообщение: Re: the number of pending entries in GIN index with FASTUPDATE=on