pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: hans@matfyz.cz
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #12725: psql: no interpretation of option -F
Date: Mon, 02 Feb 2015 10:24:18 -0500
Message-ID: <16013.1422890658@sss.pgh.pa.us> (raw)
In-Reply-To: <20150202071925.2581.10482@wrigleys.postgresql.org>
References: <20150202071925.2581.10482@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

hans@matfyz.cz 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.

It's not unusual for command line parameters to be interpreted more
strictly than the "same" parameters within SQL; an example is that
table names in pg_dump switches, or database names in just about any
client's command line, are taken literally rather than case-folded.
There are a number of reasons for this, one being that the quoting
conventions of a shell don't mix very nicely with SQL's conventions,
and another being that if the parameter is coming from some shell
script's internal variable you don't really want to insist on it
having to be re-quoted to be preserved.  That second argument seems
to apply to the arguments of -F and related switches, too.

Between that, and the question of backwards compatibility, and the
existence of easy workarounds, I don't think we should change this.

			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



view thread (5+ messages)  latest in thread

Message-ID: <16013.1422890658@sss.pgh.pa.us>
Permalink:  ../16013.1422890658@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/16013.1422890658@sss.pgh.pa.us

 · 

reply

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, hans@matfyz.cz
  Subject: Re: BUG #12725: psql: no interpretation of option -F
  In-Reply-To: <16013.1422890658@sss.pgh.pa.us>
  References: <20150202071925.2581.10482@wrigleys.postgresql.org> <16013.1422890658@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