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 1nXTTx-00020e-9F for pgsql-hackers@arkaria.postgresql.org; Thu, 24 Mar 2022 19:50:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nXTTw-0007al-39 for pgsql-hackers@arkaria.postgresql.org; Thu, 24 Mar 2022 19:50:52 +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 1nXTTv-0007ab-Dp for pgsql-hackers@lists.postgresql.org; Thu, 24 Mar 2022 19:50:51 +0000 Received: from mail-pj1-x1036.google.com ([2607:f8b0:4864:20::1036]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nXTTr-0003wU-99 for pgsql-hackers@postgresql.org; Thu, 24 Mar 2022 19:50:50 +0000 Received: by mail-pj1-x1036.google.com with SMTP id a16-20020a17090a6d9000b001c7d6c1bb13so1129778pjk.4 for ; Thu, 24 Mar 2022 12:50:46 -0700 (PDT) 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=hkn/+aJOfCcXZSUik+awcUPW+ri4II3yMv10YcHSDws=; b=OqXLT0Qpgz1lSfuVTWnhFY0mzNIyTwXexcc0b2bHUM3QGgHdjQ72Y6vfU8jfgQjrAV 77KM6/o2SvqPqnid3qpeAQTwlRocDXHGncoe0XqzHQAklXykWmVk9zPuozRFFuTUagaW EHH0wy9kTnU73y2sHJP5e7COUtViYHRJxA0zHjChHkxPOgdkYOqsSosy7fPogIHzwvck Fx1uDFu0vD2wGKGxnLQNr90bwNDK35hwCJmBhl6XTUYVoO26ogCWgeblhy8cqOKsuE3K cWyBDMczO1H1EZrFqudv4DUFdMqq4mXbrWu0aezLWJFRyvamBl9E3GV/cCsFr6ctG1gD 1XCg== 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=hkn/+aJOfCcXZSUik+awcUPW+ri4II3yMv10YcHSDws=; b=IQKfTO21cWZsiqGvGpSSsdJOk8XdFoDeDso7E6iCPSPLviFaNsAlxH9RWDVQzs5tLO 7a3ouAwxwU75ktFwxcMyJTE0wIMWxdlYjg/L6DFcv8zNGkfxq/aqdjOoAro+KIm5TGlp kAoBraPph3SrOQhNTdGBR9FsBJhjyyxvNe5/h5ttzErdelzhS7AjuTa9nBHPpjbfqBB5 4Z/2OLJGnsDIitWBY8l6M6t4xLZ03992WQIcPZbJi4wkiJhituMClViVZp302g6NT0YG XeVk+aVGclj4yGT8e/yFzatD77PACermmM+9iHILlUFRF7fbVOrQ16XpqkYY4yV6mb2h 9IHw== X-Gm-Message-State: AOAM533//CKnSrbI2I3C0C8xXEjN1AQk+48X5829T4CXyDRE3kgDYIzQ t9pa75z7hRVe4Oh45VQsMkOm9bEbqgg6sR3f3zR3F2IQMkhLOURh5Hp5rKBor/TidDJV62oIfEH mIwG/0SsS3SKe5/D2M7dl5zSSEb1Z4JplSBTX4s+8GxsikZ7ZBJqOtIePXpoC/87cf0DN6H7hpf XvOim74P9v+ZX18UapmOsHn17SAlXPitMp+juT X-Google-Smtp-Source: ABdhPJwhr0DdxHFxE0A53HXeQ45tsLJYmuAuEDxI1nK7CTbAAHGnAe2SORU0dWz8dz8f0s2eu8Xxxw== X-Received: by 2002:a17:90a:9dc6:b0:1bc:5c73:522b with SMTP id x6-20020a17090a9dc600b001bc5c73522bmr8316206pjv.35.1648151443851; Thu, 24 Mar 2022 12:50:43 -0700 (PDT) Received: from laptop280-ma-us.hitronhub.home (24-113-193-150.wavecable.com. [24.113.193.150]) by smtp.gmail.com with ESMTPSA id m14-20020a637d4e000000b00380b83e2e1fsm3175833pgn.70.2022.03.24.12.50.43 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 Mar 2022 12:50:43 -0700 (PDT) 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: <6e514873-0185-d3b0-e3b2-4546be5e76f8@dunslane.net> Date: Thu, 24 Mar 2022 12:50:42 -0700 Cc: Tom Lane , Peter Eisentraut , Joshua Brindle , Robert Haas , Jeff Davis , PostgreSQL-development , Joe Conway Content-Transfer-Encoding: quoted-printable Message-Id: <1785FFEA-77C0-4939-AB52-1A91C49B65AD@enterprisedb.com> References: <3D691E20-C1D5-4B80-8BA5-6BEB63AF3029@enterprisedb.com> <2D6C1081-DB7D-4260-8987-5B4912E95917@enterprisedb.com> <1A6DA47B-2D5F-427E-AD72-1D8BD23BF94C@enterprisedb.com> <79685.1646604824@sss.pgh.pa.us> <83814.1646607430@sss.pgh.pa.us> <78889A65-CA7A-4015-866D-33460967071D@enterprisedb.com> <92485.1646609263@sss.pgh.pa.us> <43857434-3f9b-3! 66f-0401-7aea558827e1@dunslane.net> <664799.1647456444@sss.pgh.pa.us> <771410.1647528423@sss.pgh.pa.us> <9b37fa41-a068-8166-78c3-4503a867de07@dunslane.net> <6e514873-0185-d3b0-e3b2-4546be5e76f8@dunslane.net> To: Andrew Dunstan 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 Mar 24, 2022, at 12:06 PM, Andrew Dunstan = wrote: >=20 >=20 > On 3/24/22 12:49, Mark Dilger wrote: >>=20 >>> On Mar 17, 2022, at 8:41 AM, Andrew Dunstan = wrote: >>>=20 >>> If we abandoned that for this form of GRANT/REVOKE I think we could >>> probably get away with >>>=20 >>>=20 >>> GRANT { SET | ALTER SYSTEM } ON setting_name ... >>>=20 >>>=20 >>> I haven't tried it, so I could be all wrong. >> Version 12 of the patch uses SET and ALTER SYSTEM as the names of the = privileges, and PARAMETER as the name of the thing on which the = privilege is granted. The catalog table which tracks these grants is = now named pg_parameter_acl, and various other parts of the patch have = been adjusted to use a "parameter" based, rather than a "setting" based, = naming scheme. One exception to this rule is the "setacl" column in = pg_parameter_acl, which is much more compact than the "parameteracl" = name would be, so that remains under the old name. >=20 >=20 > I can live with it I guess, but it seems perverse to me to have > pg_settings but pg_paramater_acl effectively referring to the same set > of things. If we're going to do this perhaps we should create a > pg_parameters view which is identical to pg_settings and deprecate > pg_settings. I don;t want to hold up this patch, I think this can > probably be managed as a follow up item. Right, the version 12 patch was following Peter's and Tom's comments = upthread: > On Mar 17, 2022, at 7:47 AM, Tom Lane wrote: >=20 > Well, I still say that "SET" is sufficient for the one privilege name > (unless we really can't make Bison handle that, which I doubt). But > I'm willing to yield on using "ALTER SYSTEM" for the other. >=20 > If we go with s/SETTING/PARAMETER/ as per your other message, then > that would be adequately consistent with the docs I think. So it'd > be >=20 > GRANT { SET | ALTER SYSTEM } ON PARAMETER foo TO ... >=20 > and the new catalog would be pg_parameter_acl, and so on. We could debate that again, but it seems awfully late in the development = cycle. I'd rather just get this committed, barring any objections? =E2=80=94 Mark Dilger EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company