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

From: Peter Eisentraut <peter(dot)eisentraut(at)enterprisedb(dot)com>
To: Tyler Brock <tyler(dot)brock(at)gmail(dot)com>, "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: DataRow message for Integer(int4) returns result as text?
Date: 2022-04-21 13:56:58
Message-ID: fc382692-ff0a-b0cb-866e-c6b900f461bf@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 21.04.22 02:11, Tyler Brock wrote:
> 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.

psql only handles results in text format.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2022-04-21 13:59:49 Re: typos
Previous Message Tomas Vondra 2022-04-21 13:49:21 Re: effective_io_concurrency and NVMe devices