From: | Joe Conway <mail(at)joeconway(dot)com> |
---|---|
To: | Dean Rasheed <dean(dot)a(dot)rasheed(at)gmail(dot)com> |
Cc: | Daniel Verite <daniel(at)manitou-mail(dot)org>, Andrew Dunstan <andrew(at)dunslane(dot)net>, Davin Shearer <davin(at)apache(dot)org>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Emitting JSON to file using COPY TO |
Date: | 2024-01-08 20:40:23 |
Message-ID: | 153b71b8-b6fb-4930-aaff-a7334cb3f6d6@joeconway.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers |
On 1/8/24 14:36, Dean Rasheed wrote:
> On Thu, 7 Dec 2023 at 01:10, Joe Conway <mail(at)joeconway(dot)com> wrote:
>>
>> The attached should fix the CopyOut response to say one column.
>>
>
> Playing around with this, I found a couple of cases that generate an error:
>
> COPY (SELECT 1 UNION ALL SELECT 2) TO stdout WITH (format json);
>
> COPY (VALUES (1), (2)) TO stdout WITH (format json);
>
> both of those generate the following:
>
> ERROR: record type has not been registered
Thanks -- will have a look
--
Joe Conway
PostgreSQL Contributors Team
RDS Open Source Databases
Amazon Web Services: https://aws.amazon.com
From | Date | Subject | |
---|---|---|---|
Next Message | 1111hqshj | 2024-01-09 03:22:12 | Make NUM_XLOGINSERT_LOCKS configurable |
Previous Message | Dean Rasheed | 2024-01-08 19:36:34 | Re: Emitting JSON to file using COPY TO |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2024-01-08 20:48:32 | Make psql ignore trailing semicolons in \sf, \ef, etc |
Previous Message | Alexander Korotkov | 2024-01-08 20:20:36 | Re: Removing unneeded self joins |