Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iycte-0001Q4-Tb for pgsql-hackers@arkaria.postgresql.org; Mon, 03 Feb 2020 14:40:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iyctd-0003AG-IG for pgsql-hackers@arkaria.postgresql.org; Mon, 03 Feb 2020 14:40:17 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iyctd-0003A4-8x for pgsql-hackers@lists.postgresql.org; Mon, 03 Feb 2020 14:40:17 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iycta-0000iC-TR for pgsql-hackers@postgresql.org; Mon, 03 Feb 2020 14:40:16 +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 013Ee1m2006750; Mon, 3 Feb 2020 09:40:01 -0500 From: Tom Lane To: Daniel Gustafsson cc: Michael Paquier , Vik Fearing , Fabien COELHO , PostgreSQL-development Subject: Re: Add %x to PROMPT1 and PROMPT2 In-reply-to: <5E008326-2335-4FB2-8513-D9018EC94F02@yesql.se> References: <09502c40-cfe1-bb29-10f9-4b3fa7b2bbb2@2ndquadrant.com> <13bc9081-2cf8-bf99-bedb-ce70c82bebc8@2ndquadrant.com> <20200203070807.GD2180@paquier.xyz> <5E008326-2335-4FB2-8513-D9018EC94F02@yesql.se> Comments: In-reply-to Daniel Gustafsson message dated "Mon, 03 Feb 2020 13:40:48 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <6748.1580740801.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Mon, 03 Feb 2020 09:40:01 -0500 Message-ID: <6749.1580740801@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Daniel Gustafsson writes: > On 3 Feb 2020, at 08:08, Michael Paquier wrote: >> FWIW, I am not really in favor of changing a default old enough that >> it could vote (a45195a). > That by itself doesn't seem a good reason to not change things. > My concern would be that users who have never ever considered that the p= rompt > can be changed, all of sudden wonder why the prompt is showing character= s it > normally isn't, thus causing confusion. That being said, I agree that t= his is > a better default long-term. I've got the same misgivings as Michael. In a green field this'd likely be a good idea, but after so many years I'm afraid it will make fewer people happy than unhappy. Now on the other hand, we did change the server's default log_line_prefix not so long ago (7d3235ba4), and the feared storm of complaints was pretty much undetectable. So maybe this'd go down the same way. Worth noting also is that this shouldn't be able to break any applications, since the prompt is an interactive-only behavior. regards, tom lane