pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #17841: COPY Command Invalid QUOTES
2+ messages / 2 participants
[nested] [flat]
* BUG #17841: COPY Command Invalid QUOTES
@ 2023-03-14 14:50 PG Bug reporting form <noreply@postgresql.org>
2023-03-14 15:27 ` Re: BUG #17841: COPY Command Invalid QUOTES Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 2+ messages in thread
From: PG Bug reporting form @ 2023-03-14 14:50 UTC (permalink / raw)
To: pgsql-bugs@lists.postgresql.org; +Cc: stefan.goldener@theprosperity.company
The following bug has been logged on the website:
Bug reference: 17841
Logged by: Stefan Goldener
Email address: stefan.goldener@theprosperity.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
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: BUG #17841: COPY Command Invalid QUOTES
2023-03-14 14:50 BUG #17841: COPY Command Invalid QUOTES PG Bug reporting form <noreply@postgresql.org>
@ 2023-03-14 15:27 ` Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2023-03-14 15:27 UTC (permalink / raw)
To: stefan.goldener@theprosperity.company; +Cc: pgsql-bugs@lists.postgresql.org
PG Bug reporting form <noreply@postgresql.org> writes:
> 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
Hm, I failed to duplicate that here, and the relevant code looks
pretty straightforward. Can you give a more concrete example?
Is this server unmodified community Postgres? (The fact that it's
taking QUOTE '\"' without complaint indicates that you're at least
running with some nondefault settings.)
regards, tom lane
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2023-03-14 15:27 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2023-03-14 14:50 BUG #17841: COPY Command Invalid QUOTES PG Bug reporting form <noreply@postgresql.org>
2023-03-14 15:27 ` Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox