From: David G Johnston <david.g.johnston@gmail.com>
To: pgsql-bugs@postgresql.org
Subject: Re: BUG #12725: psql: no interpretation of option -F
Date: Mon, 2 Feb 2015 11:28:53 -0700 (MST)
Message-ID: <1422901733612-5836435.post@n5.nabble.com> (raw)
In-Reply-To: <20150202170001.GA52451@artax.karlin.mff.cuni.cz>
References: <20150202071925.2581.10482@wrigleys.postgresql.org>
<16013.1422890658@sss.pgh.pa.us>
<20150202170001.GA52451@artax.karlin.mff.cuni.cz>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Hans Ginzel wrote
> On Mon, Feb 02, 2015 at 10:24:18AM -0500, Tom Lane wrote:
>>
> hans@
> writes:
>>> It seems that that the command line parameter of the -F option is not
>>> interpreted for escape sequences. Please add this.
>>
>>I think the odds of breaking things would be higher than the odds of
>>improving anyone's life.
>
> I am sorry, but I disagree. I cannot immagine someone who wants
> literal \t as delimiter.
> But I can imagine anyone who wants \n literaly for NULLs (-Pnull='\n').
> But consensus is '\N' to distinguiahs from new line.
>
> You can
> * schedule the repair to 9.5 or 10.0,
> * or you can add option like --dont-interpret-escape-seq-in-sperator
> * or you can add commandline/configuration option
> like --backward-compatible [= version_number]
> * or an positive one: --moderm-postgres where such mistakes would be
> repaired
> and the level of “conservatism” would be lowered.
> Workaround is ugly and is almost not possible under Windows
> unless tab completition is switched off
> (http://serverfault.com/questions/210978/escape-tab-in-cmd-exe).
Any solution would need to continue treating existing syntax the same - so
adding flags to enable the existing behavior is not really viable.
How about allowing passing in the SQL "escape me" literal:
-F E'\t'
David J.
--
View this message in context: http://postgresql.nabble.com/BUG-12725-psql-no-interpretation-of-option-F-tp5836358p5836435.html
Sent from the PostgreSQL - bugs mailing list archive at Nabble.com.
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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: david.g.johnston@gmail.com
Subject: Re: BUG #12725: psql: no interpretation of option -F
In-Reply-To: <1422901733612-5836435.post@n5.nabble.com>
References: <20150202071925.2581.10482@wrigleys.postgresql.org> <16013.1422890658@sss.pgh.pa.us> <20150202170001.GA52451@artax.karlin.mff.cuni.cz> <1422901733612-5836435.post@n5.nabble.com>
* 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