From: Bruce Momjian <bruce@momjian.us>
To: Andrew Kerr <andrew.kerr@unrulymedia.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6254: COPY ... TO .. CSV sometimes doesn't escape strings
Date: Thu, 13 Oct 2011 16:31:31 -0400 (EDT)
Message-ID: <201110132031.p9DKVVM03514@momjian.us> (raw)
In-Reply-To: <201110131628.p9DGSFFf007210@wwwmaster.postgresql.org>
Andrew Kerr wrote:
>
> The following bug has been logged online:
>
> Bug reference: 6254
> Logged by: Andrew Kerr
> Email address: andrew.kerr@unrulymedia.com
> PostgreSQL version: 9.0.5
> Operating system: CentOS 5.4
> Description: COPY ... TO .. CSV sometimes doesn't escape strings
> Details:
>
> Query of this form:
>
> copy (select
> col1,col2
> from mytable)
> to 'output.csv' with (format csv, force_quote *);
>
> where some selected columns are text sometimes fails to escape quotes (with
> another quote) in text.
>
> On which rows this happens varies with different runs.
>
> Sometimes a field will have some quotes escaped and some not.
>
> Running on a 90 million row table.
Please show us an example.
--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://enterprisedb.com
+ It's impossible for everything to be true. +
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: bruce@momjian.us, andrew.kerr@unrulymedia.com
Subject: Re: BUG #6254: COPY ... TO .. CSV sometimes doesn't escape strings
In-Reply-To: <201110132031.p9DKVVM03514@momjian.us>
References: <201110131628.p9DGSFFf007210@wwwmaster.postgresql.org> <201110132031.p9DKVVM03514@momjian.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