BUG #17841: COPY Command Invalid QUOTES

From: PG Bug reporting form <noreply(at)postgresql(dot)org>
To: pgsql-bugs(at)lists(dot)postgresql(dot)org
Cc: stefan(dot)goldener(at)theprosperity(dot)company
Subject: BUG #17841: COPY Command Invalid QUOTES
Date: 2023-03-14 14:50:16
Message-ID: 17841-1910e7275380c7d1@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 17841
Logged by: Stefan Goldener
Email address: stefan(dot)goldener(at)theprosperity(dot)company
PostgreSQL version: 11.16
Operating system: x86_64-pc-linux-gnu
Description:

The COPY command doesn't quote properly e.g.:

COPY (SELECT *, CURRENT_DATE as partitiondate FROM {table}) TO STDOUT WITH
(DELIMITER '|', QUOTE '\"', FORCE_QUOTE *, FORMAT CSV, HEADER)

delivers:
faasdfagdf|"1234"||
as output

so the first column is not quoted properly

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2023-03-14 15:11:16 Re: ERROR: PlaceHolderVar found where not expected
Previous Message Tom Lane 2023-03-14 14:10:48 Re: BUG #17840: Failing to execute auto_explain for logging leads to transaction rollback.