pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: stefan.goldener@theprosperity.company
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #17841: COPY Command Invalid QUOTES
Date: Tue, 14 Mar 2023 11:27:34 -0400
Message-ID: <2631431.1678807654@sss.pgh.pa.us> (raw)
In-Reply-To: <17841-1910e7275380c7d1@postgresql.org>
References: <17841-1910e7275380c7d1@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





view thread (2+ messages)

Message-ID: <2631431.1678807654@sss.pgh.pa.us>
Permalink:  ../2631431.1678807654@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/2631431.1678807654@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, stefan.goldener@theprosperity.company, pgsql-bugs@lists.postgresql.org
  Subject: Re: BUG #17841: COPY Command Invalid QUOTES
  In-Reply-To: <2631431.1678807654@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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