Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YIIrY-0000TI-M4 for pgsql-bugs@arkaria.postgresql.org; Mon, 02 Feb 2015 15:24:32 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YIIrY-0003cs-5T for pgsql-bugs@arkaria.postgresql.org; Mon, 02 Feb 2015 15:24:32 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YIIrW-0003a6-Js for pgsql-bugs@postgresql.org; Mon, 02 Feb 2015 15:24:30 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YIIrP-0001Gf-CC for pgsql-bugs@postgresql.org; Mon, 02 Feb 2015 15:24:28 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id t12FOIea016014; Mon, 2 Feb 2015 10:24:18 -0500 From: Tom Lane To: hans@matfyz.cz cc: pgsql-bugs@postgresql.org Subject: Re: BUG #12725: psql: no interpretation of option -F In-reply-to: <20150202071925.2581.10482@wrigleys.postgresql.org> References: <20150202071925.2581.10482@wrigleys.postgresql.org> Comments: In-reply-to hans@matfyz.cz message dated "Mon, 02 Feb 2015 07:19:25 +0000" Date: Mon, 02 Feb 2015 10:24:18 -0500 Message-ID: <16013.1422890658@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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