Re: libpq object hooks

Поиск
Список
Период
Сортировка
От Merlin Moncure
Тема Re: libpq object hooks
Дата
Msg-id b42b73150805141330t635df4fchf4f94891d095467a@mail.gmail.com
обсуждение исходный текст
Ответ на Re: libpq object hooks  (daveg <daveg@sonic.net>)
Список pgsql-patches
On Wed, May 14, 2008 at 3:47 PM, daveg <daveg@sonic.net> wrote:
> On Wed, May 14, 2008 at 10:52:43AM -0400, Bruce Momjian wrote:
>>
>> One idea would be to add the libpq hooks but not document them.  This
>> way, we can modify or remove the API as needed in the future.  As
>> libpqtypes matures and we are sure what the API should be, we can
>> document it as stable and permanent.
>
> Perhaps it is just me, but undocumented interface are evil. Simply document
> it with the changable bits labled as such.

Well, in defense of Bruce, there is some precedent for that.  Anything
that queries binary currently falls under that umbrella (mostly
undocumented and changeable).  For functions exported by libpq
though...it's probably better to nail things down as much as possible
up front.

This is a big advantage of the hooks strategy overall, it allows us to
mature the library except for the interaction with libpq (ISTM Bruce
was trying to give us a little leeway here as well, and we appreciate
that).

merlin

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

Предыдущее
От: daveg
Дата:
Сообщение: Re: libpq object hooks
Следующее
От: Bruce Momjian
Дата:
Сообщение: Fix for psql pager computations