Re: Request for comment on setting binary format output per session - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Request for comment on setting binary format output per session
Date
Msg-id f68b87ee-91e2-0130-d44b-65053ebe614c@enterprisedb.com
Whole thread Raw
In response to Re: Request for comment on setting binary format output per session  (Jeff Davis <pgsql@j-davis.com>)
List pgsql-hackers
On 20.03.23 18:04, Jeff Davis wrote:
> 2. Easy to confuse psql:
> 
>    CREATE TABLE a(d date, t timestamptz);
>    SET format_binary='25,1082,1184';
>    SELECT * FROM a;
>     d | t
>    ---+---
>     ! |
>    (1 row)

You can already send binary data to psql using DECLARE BINARY CURSOR. 
It might be sensible to have psql check that the data it is getting is 
text format before trying to print it.




pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Request for comment on setting binary format output per session
Next
From: Peter Eisentraut
Date:
Subject: Re: Request for comment on setting binary format output per session