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 1iycpf-0001Il-Ot for pgsql-hackers@arkaria.postgresql.org; Mon, 03 Feb 2020 14:36:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iycog-0000iA-Fp for pgsql-hackers@arkaria.postgresql.org; Mon, 03 Feb 2020 14:35:10 +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 1iycog-0000hi-16 for pgsql-hackers@lists.postgresql.org; Mon, 03 Feb 2020 14:35:10 +0000 Received: from mail-qt1-x843.google.com ([2607:f8b0:4864:20::843]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1iycod-0000fJ-0g for pgsql-hackers@postgresql.org; Mon, 03 Feb 2020 14:35:09 +0000 Received: by mail-qt1-x843.google.com with SMTP id l19so11531215qtq.8 for ; Mon, 03 Feb 2020 06:35:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=C9K7mgR+1qoN11KuiaeDLpxAgV8dR2WCiiqeMAUymWw=; b=D1ZDS8sdaysnPi/2F0VoOoth1/zekdH8VH39Jm29NAS/EU/Hwj0v+DjvfjSOkvBjuS LYLl7Kmju9kZW3ACgbVAm66Estfg4Q++xZbbtIm79FlJm4q6jziwG6OdQwvz8qS1tnFd ywzfbClb74eAi+F5/RKO0KFEJ43Flx3BmT/mquKZOgXawaLD1DDfkVt4intP0mlSnK1D FskTDZjge8uz5eHAwMivgDOxt+gwU+eRpWFFDbr3MgWBp6V1dBXBbDK+7kb6H+w1gat/ yp13k0h/IlyzdvWOXGRoapwo88aKlZrzzVfvqTxWOQBZ49UqoAJMXVfXEqkZMh3lTLvg 5csg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=C9K7mgR+1qoN11KuiaeDLpxAgV8dR2WCiiqeMAUymWw=; b=he5RDYrxTL/ZZt/+CHxIJGM6czELl/tbVTcSi1SuAmXyu8LTuIoNRKfD80z//81m2C oar3eDquSKLl/Bnkl+1n8zTpSv4eKs+cC3GkBWEtLYBcumAfP0HAknCNOn5jYjKQOPXS LvPmvX4+makW9BKoCEvHsh380+5+xekCpyE1eMS4tFxCvsQP91yKTkJg1xcewrTQbCOP PaxHkmAM409YpdmhuOvH0zvAGIMssbUC/k6KNNhYrlF2mcOxI1FOIknG68dfozG1+J2H wYPnmMHAN/J7Lo7CuQKuvdfs042XoynUIcXIBkDFexPSg5PTLB9j25ELH4vILT/Vfprd y1hA== X-Gm-Message-State: APjAAAUazsvgFkgddFsTN3z3XTdl1ukjDthcu2ZIqJxgU60eGvRxtrhu 1IxZ0U8mkJrAmfWEPFtLisZRdA== X-Google-Smtp-Source: APXvYqxV/fZEG6apmzs2grYMrgTKMDluvO3gbTqC01j7FkCj4szKutPgQRY7jhM22SbZZsu0BZBOqg== X-Received: by 2002:ac8:1a19:: with SMTP id v25mr24126746qtj.146.1580740502958; Mon, 03 Feb 2020 06:35:02 -0800 (PST) Received: from nimloth.alvh.no-ip.org ([179.56.30.174]) by smtp.gmail.com with ESMTPSA id 124sm9245721qko.11.2020.02.03.06.35.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Feb 2020 06:35:02 -0800 (PST) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id C0F5030076A; Mon, 3 Feb 2020 11:34:56 -0300 (-03) Date: Mon, 3 Feb 2020 11:34:56 -0300 From: Alvaro Herrera To: Daniel Gustafsson Cc: Michael Paquier , Vik Fearing , Fabien COELHO , PostgreSQL-development Subject: Re: Add %x to PROMPT1 and PROMPT2 Message-ID: <20200203143456.GA12688@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <5E008326-2335-4FB2-8513-D9018EC94F02@yesql.se> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-Feb-03, Daniel Gustafsson wrote: > > 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. Yeah. > My concern would be that users who have never ever considered that the prompt > can be changed, all of sudden wonder why the prompt is showing characters it > normally isn't, thus causing confusion. That being said, I agree that this is > a better default long-term. I think this is the good kind of surprise, not the bad kind. I think the only kind of user that would be negatively affected would be those that have scripted psql under expect(1) and would fail to read the new prompt correctly. But I would say that that kind of user is the one most likely to be able to fix things as needed. Everybody else is just looking at an extra char in the screen, and they don't really care. I'm +1 for the default change. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services