Protocol Question

Поиск
Список
Период
Сортировка
От Thomas Heller
Тема Protocol Question
Дата
Msg-id CAGTxmOvGwPoBC01-XnS-1cTNE29T2+QRuheQBPSrKNpbgVpmXQ@mail.gmail.com
обсуждение исходный текст
Ответы Re: Protocol Question
Список pgsql-interfaces
Hello,

I wrote a new Postgresql Client in Java to directly talk to the server without the mess that is JDBC.

Anyways, I have a fairly low level Question:

The first 16 bits (well skip the first 40) in every DataRow ('D') packet refer to the number of columns following. Is there any way that this number is different from the number received in the RowDescription ('T')? I only plan to supported the Extended Query flow, so I assume I'll always have RowDescription first.

Currently I use an assert since I assume it always is the same, however I only have tested with a very limited dataset so far.

Just curious if there are possible exceptions? I'd assume not, just sanity checking.

Thanks,
/thomas

PS: Is there some sort of test-suite or dataset I could use to test my client implementation?

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

Предыдущее
От: "frank ernest"
Дата:
Сообщение: Re: C where are oids defined?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Protocol Question