Re: DataRow message for Integer(int4) returns result as text?

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: DataRow message for Integer(int4) returns result as text?
Дата
Msg-id CAKFQuwbxCFSq6=U+35DrDQq446gXr-tWbsBpc2=P+ASaJyTUkA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: DataRow message for Integer(int4) returns result as text?  (Tyler Brock <tyler.brock@gmail.com>)
Ответы Re: DataRow message for Integer(int4) returns result as text?  (Tyler Brock <tyler.brock@gmail.com>)
Список pgsql-hackers
On Wed, Apr 20, 2022 at 5:11 PM Tyler Brock <tyler.brock@gmail.com> wrote:
For sure, I’m thinking of it that way. Thanks for confirming.

What I don’t understand is that if I respond to psql with the RowDescription indicating the format code is 1 for binary (and encode it that way, with 4 bytes, in the DataRow) it doesn’t render the number in the results.


Please don't top-post.

psql is a command line program, the server is PostgreSQL or postgres.

I'm not familiar with interacting with the server in C or at the protocol level; I have no idea what that sentence is supposed to mean.  But RowDescription seems to be strictly informative so how would you "respond to psql with [it]"?

David J.


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

Предыдущее
От: Tyler Brock
Дата:
Сообщение: Re: DataRow message for Integer(int4) returns result as text?
Следующее
От: Peter Geoghegan
Дата:
Сообщение: Re: CLUSTER sort on abbreviated expressions is broken