Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ctEhP-0007wi-Lf for pgsql-bugs@arkaria.postgresql.org; Wed, 29 Mar 2017 14:35:47 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1ctEhP-0002Wr-3U for pgsql-bugs@arkaria.postgresql.org; Wed, 29 Mar 2017 14:35:47 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ctEhO-0002WZ-Dw for pgsql-bugs@postgresql.org; Wed, 29 Mar 2017 14:35:46 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ctEhM-0003Xi-2e for pgsql-bugs@postgresql.org; Wed, 29 Mar 2017 14:35:45 +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 v2TEZgKN022578; Wed, 29 Mar 2017 10:35:42 -0400 From: Tom Lane To: Daniele Varrazzo cc: pgsql-bugs Subject: Re: psqlrc overrides command line flags in PG 9.6 In-reply-to: References: Comments: In-reply-to Daniele Varrazzo message dated "Wed, 29 Mar 2017 15:28:06 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <22576.1490798142.1@sss.pgh.pa.us> Date: Wed, 29 Mar 2017 10:35:42 -0400 Message-ID: <22577.1490798142@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 Daniele Varrazzo writes: > In PG 9.6 -c doesn't imply -X anymore, that's fine (well, not really, > but let's say it is). > However it seems it is no more possible to *override* what's in the > psqlrc unless the config file is disabled altogether. It was never possible to do that; the behavior has always been to process the command line switches and then to run ~/.psqlrc. Changing that would probably break at least as many things as it fixes, not to mention being a complete mess implementation-wise. You might be able to achieve the effect you're looking for with a shell alias instead of ~/.psqlrc: alias psql='psql --pset format=wrapped' 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