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 1mn7Cb-0001oB-NU for pgsql-hackers@arkaria.postgresql.org; Tue, 16 Nov 2021 22:45:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mn7Ca-0007cs-LM for pgsql-hackers@arkaria.postgresql.org; Tue, 16 Nov 2021 22:45:20 +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 1mn7CZ-0007cj-Vg for pgsql-hackers@lists.postgresql.org; Tue, 16 Nov 2021 22:45:20 +0000 Received: from mail-pg1-x52e.google.com ([2607:f8b0:4864:20::52e]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mn7CV-0000Le-LD for pgsql-hackers@postgresql.org; Tue, 16 Nov 2021 22:45:19 +0000 Received: by mail-pg1-x52e.google.com with SMTP id m15so426981pgu.11 for ; Tue, 16 Nov 2021 14:45:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb.com; s=google; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=3nYu19DKlyc/DTJ97Xf21FwlRIAhOeT1BQgMfTXkkpU=; b=kbFzs96HtOH6bL9xGossrsv3a4nhuPQ9+Wnn6dFaz6OEO0viCpFV3Kug7MlZM/DRYh fjwxNF/ELnv9pIhe9XXoMYVuELz7QqZSUYmXghA1wggN/Y2kBHC1ZTvnsQAahT2TzeeQ FmkrUXphxWudv9aU+upWvT3oOMK8ktVSbxxYQV+EIhan+5Tim7u7//1MeSDSEG5xoa8F pg41WB2jdJIk/rs+9SiFaH26f5Z03JJPKABDEK3y0RGWnPhYJXC2/gcVVXvR2KxtvWwr Cn+Iyyw1fArF2YAHsnLK8k1XsK1H/7ihaQv7f/+PqooXgblqljgp8qcbE3UKWakldr+m LkTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=3nYu19DKlyc/DTJ97Xf21FwlRIAhOeT1BQgMfTXkkpU=; b=zA1R/Tde/+HoYWGOh7kz0VNHE6NqEZIay9qMhwe2jOU9guW1+v3GQfseqS52U6+8ax IDAJo6XLVUYw/pdNxtz2qGgpFYNXBl/WM4TVJy7HZ43tXpXgJPLKSbZSIlxPd2pE2E5x alvc4Fq4hE2ubBlfIp/90zfRR+MQN+petO8o0njHVN2DLsIj9l93yCtvmdu2YWpICXTG zCDcEg7wkqL79HTk0wBBYVRprnXBQTRqDTFAQPmiQ0o68ZyizdlVe7vssinPUs7MFT/H fpSiHPVC3ssqFx0fL8RcyFOlgY7ZPRSNE5uipm/ayzhGTqBD3H7U85RKre4XxoxUwPTF YlLA== X-Gm-Message-State: AOAM531F+EBVgo0+3NIZYBaZkwDzPPvqb+4fCAPhGKwOdfswgKfQ8Zch QFm2O9m7IhYAS9H41V6/rWGLGEvQSj6FDSBZP6rzDpNUrDDYDC4EQsol7///64e5l5nhHPcUmm6 zNH0oVz/8TpDNNT5sSig9vCiREFC/jjjqUyFxWRwqNACCsA1FXPsYXEXr5/gtmWdfy5I+LQQCZf wl/NWmEx5327b2xUDKUj4KS0jKDc6gOvavmf4+ X-Google-Smtp-Source: ABdhPJza19Rg/aSb7n89zMvXTzMRufLwwQSiIUN3VBwfO9UUpeYcTOGOfGz2xUB58NA2bk/pxgS2Sw== X-Received: by 2002:a63:d110:: with SMTP id k16mr1892368pgg.90.1637102713389; Tue, 16 Nov 2021 14:45:13 -0800 (PST) Received: from laptop280-ma-us.hitronhub.home (24-113-193-150.wavecable.com. [24.113.193.150]) by smtp.gmail.com with ESMTPSA id d9sm15729956pgd.40.2021.11.16.14.45.12 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Nov 2021 14:45:13 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.7\)) Subject: Re: Granting SET and ALTER SYSTE privileges for GUCs From: Mark Dilger In-Reply-To: <2347082.1637100769@sss.pgh.pa.us> Date: Tue, 16 Nov 2021 14:45:12 -0800 Cc: Andrew Dunstan , Robert Haas , PostgreSQL-development Content-Transfer-Encoding: quoted-printable Message-Id: <8F320DC8-C312-40C0-AF41-7B3D8F21584A@enterprisedb.com> References: <3D691E20-C1D5-4B80-8BA5-6BEB63AF3029@enterprisedb.com> <2226110.1637075835@sss.pgh.pa.us> <2226903.1637076537@sss.pgh.pa.us> <2231899.1637081047@sss.pgh.pa.us> <38BEC583-DB34-4918-BCBC-DC896F0D3844@enterprisedb.com> <055d86ff-9c95-f1d4-c974-29896767561e@dunslane.net> <7DFFECF0-373B-40B0-BCA0-A5ADD9266FFA@enterprisedb.com> <2347082.1637100769@sss.pgh.pa.us> To: Tom Lane X-Mailer: Apple Mail (2.3608.120.23.2.7) X-CLOUD-SEC-AV-Info: enterprisedb,google_mail,monitor X-CLOUD-SEC-AV-Sent: true X-Gm-Spam: 0 X-Gm-Phishy: 0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On Nov 16, 2021, at 2:12 PM, Tom Lane wrote: >=20 > BTW, another objection to pg_config_param as designed here is that > a "name" is not an appropriate way to store possibly-qualified > custom GUC names. It's not long enough (cf. = valid_custom_variable_name). I was aware of that, but figured not all GUCs have to be grantable. If = it doesn't fit in a NameData, you can't grant on it. If we want to be more accommodating than that, we can store it as text, = just like pg_db_role_names does, but then we need more code complexity = to look it up and to verify that it is unique. (We wouldn't want = multiple records for the same pair.)=20 =E2=80=94 Mark Dilger EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company