From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | stefan(dot)goldener(at)theprosperity(dot)company |
Cc: | pgsql-bugs(at)lists(dot)postgresql(dot)org |
Subject: | Re: BUG #17841: COPY Command Invalid QUOTES |
Date: | 2023-03-14 15:27:34 |
Message-ID: | 2631431.1678807654@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
PG Bug reporting form <noreply(at)postgresql(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | PG Bug reporting form | 2023-03-14 15:48:29 | BUG #17842: Adding a qual to a working query gets bogus syntax error |
Previous Message | Tom Lane | 2023-03-14 15:11:16 | Re: ERROR: PlaceHolderVar found where not expected |