Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YIMXb-00009J-7z for pgsql-bugs@arkaria.postgresql.org; Mon, 02 Feb 2015 19:20:11 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YIMXa-0006ao-Ey for pgsql-bugs@arkaria.postgresql.org; Mon, 02 Feb 2015 19:20:10 +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 1YIMXZ-0006aU-N6 for pgsql-bugs@postgresql.org; Mon, 02 Feb 2015 19:20:09 +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 1YIMXW-0005dD-Nj for pgsql-bugs@postgresql.org; Mon, 02 Feb 2015 19:20:07 +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 t12JK2Um002373; Mon, 2 Feb 2015 14:20:02 -0500 From: Tom Lane To: David G Johnston cc: pgsql-bugs@postgresql.org 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> Comments: In-reply-to David G Johnston message dated "Mon, 02 Feb 2015 11:28:53 -0700" Date: Mon, 02 Feb 2015 14:20:02 -0500 Message-ID: <2372.1422904802@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 David G Johnston 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