Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YILk9-0006t6-3E for pgsql-bugs@arkaria.postgresql.org; Mon, 02 Feb 2015 18:29:05 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YILk7-0008QL-8e for pgsql-bugs@arkaria.postgresql.org; Mon, 02 Feb 2015 18:29:03 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YILk5-0008QC-Cf for pgsql-bugs@postgresql.org; Mon, 02 Feb 2015 18:29:01 +0000 Received: from mwork.nabble.com ([162.253.133.43]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YILk0-0004nf-H8 for pgsql-bugs@postgresql.org; Mon, 02 Feb 2015 18:28:59 +0000 Received: from msam.nabble.com (unknown [162.253.133.85]) by mwork.nabble.com (Postfix) with ESMTP id 2B4C31296B39 for ; Mon, 2 Feb 2015 10:28:54 -0800 (PST) Date: Mon, 2 Feb 2015 11:28:53 -0700 (MST) From: David G Johnston To: pgsql-bugs@postgresql.org Message-ID: <1422901733612-5836435.post@n5.nabble.com> 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> Subject: Re: BUG #12725: psql: no interpretation of option -F MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: -0.3 (/) 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 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. >=20 > 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=3D'\n'). > But consensus is '\N' to distinguiahs from new line. >=20 > 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 [=3D version_number] > * or an positive one: --moderm-postgres where such mistakes would be > repaired > and the level of =E2=80=9Cconservatism=E2=80=9D 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-n= o-interpretation-of-option-F-tp5836358p5836435.html Sent from the PostgreSQL - bugs mailing list archive at Nabble.com. --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs