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 1ncAMg-0006uE-1P for pgsql-hackers@arkaria.postgresql.org; Wed, 06 Apr 2022 18:26:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ncAMe-0002WP-4T for pgsql-hackers@arkaria.postgresql.org; Wed, 06 Apr 2022 18:26:44 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ncAMd-0002Vz-HJ for pgsql-hackers@lists.postgresql.org; Wed, 06 Apr 2022 18:26:43 +0000 Received: from mail-vs1-xe33.google.com ([2607:f8b0:4864:20::e33]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ncAMa-0000Ge-8o for pgsql-hackers@lists.postgresql.org; Wed, 06 Apr 2022 18:26:43 +0000 Received: by mail-vs1-xe33.google.com with SMTP id i10so1344506vsr.6 for ; Wed, 06 Apr 2022 11:26:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joeconway.com; s=google; h=message-id:date:mime-version:user-agent:content-language:to:cc :references:from:subject:in-reply-to:content-transfer-encoding; bh=ezEGzfYIc3Ifw93KF90gk4rmvR5fpGELNueYJQE00VE=; b=SFPRgpRW2TNWdoPFtl4E0X61Lvb0Pq3mi+qEMnWTpizV+mdGgcpNQwPQzK3dyJGDHE ssD+D0e7Hb58omefktK3Y28yXJ2DREL0QA8+3wPauwUuUxXR9bjNfa+JyMEwE9Rnx2IT 9oxm25Aeam+E3tzlAU/iAU0Rl4jzPZ45K2MyLiIn4oz59zhS29zkNDHXrkyvT2C/suUK E5e3NPkkcAVraC7oSKE0CS2eBD2nkokm4fOuTjS8vCL6Qc0XSKM5QAtVe4FOlTYlNRM2 5YZCIcIDf7wMsWQtzcsq+q/hETlWFWGOOM3ytm7dQhUMp0JYXadft5+HALtneAe079l5 zp6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent :content-language:to:cc:references:from:subject:in-reply-to :content-transfer-encoding; bh=ezEGzfYIc3Ifw93KF90gk4rmvR5fpGELNueYJQE00VE=; b=2cQ0gbvPfD856/a17UweTZx+3qingm9qR/iy4BdCA3ZeUJABKorlSodR2a6i1GEdfj /BmGZ1ccQLrcfIKaDD7Jv2uelBxJpO4NdA5rR1H8Re84p58qomaAzS92VrPQ268LV8F/ Ln6Xk4dLrpysFJK8bLEQP5GgGMF8X+dmqmqeiVmRoXeqmdV5xRc0YzXeNdY1jLEoyuE0 UUM2ajMp9H4LT1vfMeY9TbKodyALs6HpVPdyRsfuLqDpza6Cm4lONtmgTqAs9H3NRfgT g0M9ykLd7Lnuo8Ix2Mu/tg8KLTS0mrVxzVll0uyzTZJ4BwgfgmrXmsV1ss37buL9f6NK J+hA== X-Gm-Message-State: AOAM531MUFh1y8TTGC0SU1qf+YjcMJ6Vhl58aPpg/cuRGVEvtBT5+DXd C+WX7OhkA4kSajQU7IBRCPjd3A== X-Google-Smtp-Source: ABdhPJzI0Cg35azCOwZqugDa6KcP1fDh0/Jm6yWwtAIdAQNspq0HZSDvSA0gGVQYAosWpteFIcV/Tg== X-Received: by 2002:a05:6102:2378:b0:325:ee05:85e8 with SMTP id o24-20020a056102237800b00325ee0585e8mr3140289vsa.9.1649269598186; Wed, 06 Apr 2022 11:26:38 -0700 (PDT) Received: from [192.168.4.41] (072-017-018-098.res.spectrum.com. [72.17.18.98]) by smtp.gmail.com with ESMTPSA id v24-20020a67f6d8000000b003208cfd16d5sm1873091vso.33.2022.04.06.11.26.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 06 Apr 2022 11:26:37 -0700 (PDT) Message-ID: Date: Wed, 6 Apr 2022 14:26:36 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Content-Language: en-US To: Alvaro Herrera , Tom Lane Cc: pgsql-hackers@lists.postgresql.org, Mark Dilger References: <202204061758.leffczewl4kd@alvherre.pgsql> From: Joe Conway Subject: Re: How about a psql backslash command to show GUCs? In-Reply-To: <202204061758.leffczewl4kd@alvherre.pgsql> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 4/6/22 13:58, Alvaro Herrera wrote: > On 2022-Apr-06, Tom Lane wrote: > >> However, I very often find myself resorting to the much more tedious >> >> select * from pg_settings where name like '%foo%'; >> >> when I want to see some related parameters, or when I'm a bit >> fuzzy on the exact name of the parameter. > > Been there many times, so +1 for the general idea. > >> In the discussion about adding privileges for GUCs [1], there >> was a proposal to add a new psql backslash command to show GUCs, >> which could reduce this problem to something like >> >> \dcp *foo* > > +1. As for command name, I like \show as proposed by Pavel. +1 I'd love something for the same reasons. 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[+]? Joe