pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #6254: COPY ... TO .. CSV sometimes doesn't escape strings
2+ messages / 2 participants
[nested] [flat]
* BUG #6254: COPY ... TO .. CSV sometimes doesn't escape strings
@ 2011-10-13 16:28 Andrew Kerr <andrew.kerr@unrulymedia.com>
2011-10-13 20:31 ` Re: BUG #6254: COPY ... TO .. CSV sometimes doesn't escape strings Bruce Momjian <bruce@momjian.us>
0 siblings, 1 reply; 2+ messages in thread
From: Andrew Kerr @ 2011-10-13 16:28 UTC (permalink / raw)
To: pgsql-bugs
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.
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: BUG #6254: COPY ... TO .. CSV sometimes doesn't escape strings
2011-10-13 16:28 BUG #6254: COPY ... TO .. CSV sometimes doesn't escape strings Andrew Kerr <andrew.kerr@unrulymedia.com>
@ 2011-10-13 20:31 ` Bruce Momjian <bruce@momjian.us>
0 siblings, 0 replies; 2+ messages in thread
From: Bruce Momjian @ 2011-10-13 20:31 UTC (permalink / raw)
To: Andrew Kerr <andrew.kerr@unrulymedia.com>; +Cc: pgsql-bugs
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. +
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2011-10-13 20:31 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2011-10-13 16:28 BUG #6254: COPY ... TO .. CSV sometimes doesn't escape strings Andrew Kerr <andrew.kerr@unrulymedia.com>
2011-10-13 20:31 ` Bruce Momjian <bruce@momjian.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