Skip site navigation (1) Skip section navigation (2)

Re: [PATCHES] allow CSV quote in NULL

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: Stephen Frost <sfrost(at)snowman(dot)net>, Gregory Stark <stark(at)enterprisedb(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [PATCHES] allow CSV quote in NULL
Date: 2007-07-31 17:21:20
Message-ID: 26707.1185902480@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-patches
Andrew Dunstan <andrew(at)dunslane(dot)net> writes:
> ... Oh, and if we did allow the 
> quote char we should surely only allow it on input - just because other 
> programs produce absurd output there is not reason we should.

Yeah.  The *real* problem with the patch as proposed is that it allows a
COPY OUT to emit a file that cannot be reloaded correctly, even given
the same options used to prepare it.  I think that the restrictions were
put there more to prevent that scenario than to restrict COPY IN.

			regards, tom lane

In response to

Responses

pgsql-hackers by date

Next:From: Tom LaneDate: 2007-07-31 17:25:40
Subject: Re: stats_block_level
Previous:From: Tom LaneDate: 2007-07-31 17:17:29
Subject: Re: stats_block_level

pgsql-patches by date

Next:From: Gregory StarkDate: 2007-07-31 17:28:25
Subject: Re: Export user visible function to make use of convert_to_scalar
Previous:From: Tom LaneDate: 2007-07-31 17:10:13
Subject: Re: Export user visible function to make use of convert_to_scalar

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group