Re: [HACKERS] More thoughts about FE/BE protocol

Поиск
Список
Период
Сортировка
От Peter Galbavy
Тема Re: [HACKERS] More thoughts about FE/BE protocol
Дата
Msg-id 003f01c2ff40$9f1a0e70$7c28a8c0@cblan.mblox.com
обсуждение исходный текст
Ответ на More thoughts about FE/BE protocol  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: [HACKERS] More thoughts about FE/BE protocol
Список pgsql-interfaces
Tom Lane wrote:
> I'm coming around to the idea that the cleanest solution is to require
> *all* protocol messages, in both directions, to have an initial length
> word.  That is, the general message format would look like
> <message type> 1 byte
> <payload length> number of following bytes (4 bytes MSB-first)
> ... message data as needed ...

Is there any message - speaking from a standpoint of a normal user and not a
source hacker WRT postgresql - where knowing the length of the response is
either unknown or is expensive (in buffering) to find out ? This would be
the only disadvantage I can immediately see.

Sorry if I have the wrong end of the stick.

Peter



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

Предыдущее
От: "Matt Fitzgerald"
Дата:
Сообщение: Re: Getting to learn libpqxx
Следующее
От: Himmet Karaman
Дата:
Сообщение: PLEASE HELP ME URGENT about choosing only the ones that i want while entering the data to postgresql with pgaccess on linux or windows or pgadmin II