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 1mn0KQ-0004v2-Cz for pgsql-hackers@arkaria.postgresql.org; Tue, 16 Nov 2021 15:24:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mn0KP-0003Kj-CL for pgsql-hackers@arkaria.postgresql.org; Tue, 16 Nov 2021 15:24:57 +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 1mn0KO-0003Ka-Mm for pgsql-hackers@lists.postgresql.org; Tue, 16 Nov 2021 15:24:57 +0000 Received: from mail-pg1-x52d.google.com ([2607:f8b0:4864:20::52d]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mn0KL-0000ia-UA for pgsql-hackers@postgresql.org; Tue, 16 Nov 2021 15:24:55 +0000 Received: by mail-pg1-x52d.google.com with SMTP id 188so17885471pgb.7 for ; Tue, 16 Nov 2021 07:24:53 -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=dn+39tRAV8lX/CxofbYQqYmkFqIA9JXjFzuF6Tn16K8=; b=FPFTT6p4VANcWIvM7FURbuDdcReTUmm7bvuuefoq2MMPeKeftDp/Zzh3JwIAE6LnF1 wt0dO0kgQTNSKmweslG54rJBZ0Nw9ya2HKLI2RSczpwdJD/DxeLV88GukYMqQD+ly9Il h9kJO1GpxRbRtdzdh6u3SaQvWDXbePQpcz+wKUAh4rLcvk3Jm/8Qi78TREWsUxOLxXTN oiBszY5PRZ5oQojewP3MjAi23DJDyiDVSXKz6fFOCJbi2IFk+Mk3Q4TQvHXeoip8mQTT 5J1NTULtjuS0lCprZdQ8eVlaDQrq2uZSyOlUnlc/+ANkIKu7L2clxDD6mP6byHEqw2Vl UkLg== 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=dn+39tRAV8lX/CxofbYQqYmkFqIA9JXjFzuF6Tn16K8=; b=HDwBHlMx7rAPPxVMHnHhCM/UHUpEzTDHvo6d5SWOHbSq0JzyiFDQj8+MeJwoanev7a EUzvl3zdDrMK1+ueOcKvXiK5Kl/04vbyh1NwpNsuoVroT90PpM73wGtweGAXahTOtFyl PfP3DzAW1X1MVDNNgjZFGBQCt+HfSVSQbBLwNQ0i2cNbpkr3HHZCjQFzw+IjLa0IBX7/ w2XTPyPjBw66cYMKl1dcLNsFptvxICxlIkAAzdff8SGHLXIrNNjsfHOWXLxXkhjzvShf tvYoF5yDj1Qo1j+jXsAYstOLqpfd+5vQbw3uBOmha/nm2357L5/pEslJGkb2aEKaURdi uOgA== X-Gm-Message-State: AOAM531VB6kbzTaTR6aYXdFw3ul5Ws3n2962s+klFQh+YmjcmAKQAQE8 gCent6YWK4Ax1JuFyOEILSA9HmzpNMsmLi2YVAeJGCVzBDb3oqBKyYI2RMVlGsthdGOGjPOYtfn rqMRvb2S+QIj8HXCnyuYvmPorPCTfF7UIamwnmETUifLGkBpQVR7uFXRDhZsOCxbyNMoHlf5MYj rSvJF3Xn7Q2k1MREZG9FkMHy/XLp7BuyQsw17p X-Google-Smtp-Source: ABdhPJyUcDlVk2Fy4TVq4dzAC+jiYae8T8DecXrgjz/xZFUhMKLzOGgYxDTUJw/+V5NvJ6oGd2cJ7A== X-Received: by 2002:a62:52cd:0:b0:49f:a7b8:69ad with SMTP id g196-20020a6252cd000000b0049fa7b869admr41771138pfb.3.1637076292650; Tue, 16 Nov 2021 07:24:52 -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 gv23sm2687100pjb.17.2021.11.16.07.24.51 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Nov 2021 07:24:51 -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: Date: Tue, 16 Nov 2021 07:24:51 -0800 Cc: PostgreSQL-development , Andrew Dunstan Content-Transfer-Encoding: quoted-printable Message-Id: <0C86AB2D-87F0-43C0-A03C-02A28FFD3D9C@enterprisedb.com> References: <3D691E20-C1D5-4B80-8BA5-6BEB63AF3029@enterprisedb.com> To: Robert Haas 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 7:03 AM, Robert Haas = wrote: >=20 > It's also going to be important to think about what happens with > extension GUCs. If somebody installs an extension, we can't ask them > to perform a manual step in order to be able to grant privileges. The burden isn't on the installer of an extension. As implemented, it's = the extension's installation .sql file that sets it up, and the upgrade = .sql files that make adjustments, if necessary. > And > if somebody then loads up a different .so for that extension, the set > of GUCs that it provides can change without any DDL being executed. > New GUCs could appear, and old GUCs could vanish. Well, the same is true for functions, right? If you add, remove, or = redefine functions in the extension, you need an upgrade script that = defines the new functions, removes the old ones, changes function = signatures, or whatever. The same is true here for GUCs. I don't think we support using a .so that is mismatched against the = version of the extension that is installed. =E2=80=94 Mark Dilger EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company