From: Tom Lane <tgl@sss.pgh.pa.us>
To: David G Johnston <david.g.johnston@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #12725: psql: no interpretation of option -F
Date: Mon, 02 Feb 2015 14:20:02 -0500
Message-ID: <2372.1422904802@sss.pgh.pa.us> (raw)
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>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
David G Johnston <david.g.johnston@gmail.com> writes:
> Any solution would need to continue treating existing syntax the same - so
> adding flags to enable the existing behavior is not really viable.
Yeah, that's not gonna fly.
> How about allowing passing in the SQL "escape me" literal:
> -F E'\t'
Meh. That's still going to amount to an incompatible change, because
that's valid syntax now, even if you think it's a case people are unlikely
to be using. Also, as written the quotes would get stripped by the shell,
making it even less clearly distinguishable from other cases.
This whole business of trying to devise syntax that both follows typical
SQL escape behavior and plays nicely with shell quoting behavior is a
mess. As I mentioned, we gave up on it years ago with regards to
identifier case folding (but not for lack of having tried). I'm not
really eager to spend effort on it for this case, especially not when
there are multiple alternative solutions available already.
regards, tom lane
--
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: tgl@sss.pgh.pa.us, david.g.johnston@gmail.com
Subject: Re: BUG #12725: psql: no interpretation of option -F
In-Reply-To: <2372.1422904802@sss.pgh.pa.us>
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> <2372.1422904802@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