Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ncAaI-0007zl-L9 for pgsql-hackers@arkaria.postgresql.org; Wed, 06 Apr 2022 18:40:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ncAaH-0003qz-7l for pgsql-hackers@arkaria.postgresql.org; Wed, 06 Apr 2022 18:40:49 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ncAaG-0003nJ-UZ for pgsql-hackers@lists.postgresql.org; Wed, 06 Apr 2022 18:40:48 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ncAaE-0006M2-LC for pgsql-hackers@lists.postgresql.org; Wed, 06 Apr 2022 18:40:47 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 236IeesK3123260; Wed, 6 Apr 2022 14:40:40 -0400 From: Tom Lane To: Joe Conway cc: Alvaro Herrera , pgsql-hackers@lists.postgresql.org, Mark Dilger Subject: Re: How about a psql backslash command to show GUCs? In-reply-to: References: <202204061758.leffczewl4kd@alvherre.pgsql> Comments: In-reply-to Joe Conway message dated "Wed, 06 Apr 2022 14:26:36 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3123258.1649270440.1@sss.pgh.pa.us> Date: Wed, 06 Apr 2022 14:40:40 -0400 Message-ID: <3123259.1649270440@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Joe Conway writes: > No as sure about \show though. That seems like it could be confused with > showing other stuff. Maybe consistent with \sf[+] and \sv[+] we could > add \sc[+]? Hmm ... my first reaction to that was "no, it should be \sp for 'parameter'". But with the neighboring \sf for 'function', it'd be easy to think that maybe 'p' means 'procedure'. I do agree that \show might be a bad choice, the reason being that the adjacent \set command is for psql variables not GUCs; if we had a \show I'd sort of expect it to be a variant spelling of "\echo :variable". "\sc" isn't awful perhaps. Ah, naming ... the hardest problem in computer science. regards, tom lane