Re: Implementing Frontend/Backend Protocol TCP/IP

Поиск
Список
Период
Сортировка
От Merlin Moncure
Тема Re: Implementing Frontend/Backend Protocol TCP/IP
Дата
Msg-id b42b73150910270707n62fdd776x11dae4f0e3c48b43@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Implementing Frontend/Backend Protocol TCP/IP  (John R Pierce <pierce@hogranch.com>)
Список pgsql-general
On Mon, Oct 26, 2009 at 7:17 PM, John R Pierce <pierce@hogranch.com> wrote:
> Alvaro Herrera wrote:
>>>
>>> I'm trying to implement the front-end protocol with TCP from
>>> REALbasic to PostgreSQL.
>>>
>>
>> That sounds the most difficult way to do it.  Can't you just embed
>> libpq?
>>
>
> yah, seriously.   the binary protocol is not considered stable, it can
> change in subtle ways in each version.  libpq handles the current version
> and all previous versions, and exposes all methods.

small clarification:

There is only one protocol and it is binary.  For example the length
of datums is never sent as a string.  The protocol is quite
stable...it hasn't changed since 7.4 and there hasn't really been a
big call (some of the quite interesting comments in this thread aside)
for it to change IMO.

The protocol has a binary or text mode, so that user data can be
sent/received in text or binary. Using the binary mode is not stable,
which is what I think you were basically saying.

Now, (self serving pitch here) if you use libpqtypes, you get all the
benefits of binary protocol mode (performance, easy data marshaling)
without having to worry about data format changes between versions
:-D.

merlin

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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: Implementing Frontend/Backend Protocol TCP/IP
Следующее
От: JC Praud
Дата:
Сообщение: auto truncate/vacuum full