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 1mn0eB-0006Gi-EJ for pgsql-hackers@arkaria.postgresql.org; Tue, 16 Nov 2021 15:45:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mn0eA-0007r5-Dz for pgsql-hackers@arkaria.postgresql.org; Tue, 16 Nov 2021 15:45:22 +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 1mn0e9-0007qu-Oy for pgsql-hackers@lists.postgresql.org; Tue, 16 Nov 2021 15:45:22 +0000 Received: from mail-pl1-x630.google.com ([2607:f8b0:4864:20::630]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mn0e6-0000t1-M9 for pgsql-hackers@postgresql.org; Tue, 16 Nov 2021 15:45:20 +0000 Received: by mail-pl1-x630.google.com with SMTP id u11so17804017plf.3 for ; Tue, 16 Nov 2021 07:45:18 -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=iDhkzbRSjBurpR2fCTp8icHms7wBNZq7lICBqVBNKWM=; b=FfXauMW21DTMbHX3b5wpFGJ1ZRAXyKD6Qzik4FoeLc7zlva23uPbCbahbZ3IlmNQz5 VYng+oNJ3cGlMiuOzx1UhUQSkodT9cPtI9hgxfDPfnsHw+3121CRT34la+eDY8yUqrrh Q0GCID6iik5R91RzSf8dDpf7+C/NWvlu5/LXqFcNc54ISnB83ZG54SCD1LkE+0fMYe+M l5kvKKK+Rm7nqtAXpdpaywVOlct8aAkEjQwe7VtJTCJ+x0ylMa1oHvBOdjcgq6fJb2Kv ziKB82pBAzln+4Z52u2khTUywfv+baK6lxUODtiycPonIcvOlsr/hQnoZS9hg9Ai51UW BaWg== 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=iDhkzbRSjBurpR2fCTp8icHms7wBNZq7lICBqVBNKWM=; b=4OJKhhZSpgjLD0jYwYaZ+sYgvBI53YlkGtFM/4O44A6Dw4ll67ocMkQZpaKNrcXsFo LWeA/MX4sbgf279CoUN5Cx+LDox/YjewmknK0+vBq/tK1ImhQX66T09BDnaha4sbpaEC E81f4aaWDRb1yWbF1BCc1nReF27ANKbvDHofx3C6YhY9K1G8XD1RiiGBy9t9ldXDK9Mz k9I7C0pGEeLZXIGA/kJ1+WWXmbxo/o8P/xIKLA7PGL+jZ5k5K/4bJ3J474avo++QmKLl oJpfKMQK1riUmJqPtyuobYWFMyh5jkSHTI6cHCEDm1A78isp4/wxjSvFf6z65YeUnv+5 0NHw== X-Gm-Message-State: AOAM533i2xTj8MJTG9G4hYxY+SAkE+86AVo8z68CoE5NgwKUMrD5WE6z tvRl28MxyK5siWWNAPL/7jUVMYAG2bSMgIuqGgQLeKy8g703fP2atE9IUuVMorY3Fz4IennXEDp 1uDhwqVXZNiege4g9Vn2DO7kkA4w15tXlwEf5AoeH2sqQBtKE0P2xv93wuoae43u3oKz022fHdm 9M/Fc3OVZCYVo27tQex4dU7fpD2tjTkYkDvnlxEjpPkGCF X-Google-Smtp-Source: ABdhPJyTBhzJ6pnM6YctopdR8dm06UjIOR9DsdPZsKKM1dzdFtPlmkfgQN+JZjsXj4bcbUGTH5+Hhw== X-Received: by 2002:a17:902:ed89:b0:141:f601:d6a with SMTP id e9-20020a170902ed8900b00141f6010d6amr46259603plj.77.1637077517257; Tue, 16 Nov 2021 07:45:17 -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 g7sm15243883pfv.159.2021.11.16.07.45.16 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Nov 2021 07:45:16 -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: <2227120.1637076727@sss.pgh.pa.us> Date: Tue, 16 Nov 2021 07:45:14 -0800 Cc: Robert Haas , PostgreSQL-development , Andrew Dunstan Content-Transfer-Encoding: quoted-printable Message-Id: References: <3D691E20-C1D5-4B80-8BA5-6BEB63AF3029@enterprisedb.com> <0C86AB2D-87F0-43C0-A03C-02A28FFD3D9C@enterprisedb.com> <2227120.1637076727@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 7:32 AM, Tom Lane wrote: >=20 > Mark Dilger writes: >> I don't think we support using a .so that is mismatched against the >> version of the extension that is installed. >=20 > You are entirely mistaken. That's not only "supported", it's = *required*. > Consider binary upgrades, where the SQL objects are transferred as-is > but the receiving installation may have a different (hopefully newer) > version of the .so. That .so has to cope with the older SQL object > definitions; it doesn't get to assume that the upgrade script has been > run yet. You are talking about mismatches in the other direction, aren't you? I = was responding to Robert's point that new gucs could appear, and old = gucs disappear. That seems analogous to new functions appearing and old = functions disappearing. If you upgrade (not downgrade) the .so, the new = gucs and functions will be in the .so, but won't be callable/grantable = from sql until the upgrade script runs. The old gucs and functions will = be missing from the .so, and attempts to call them/grant them from sql = before the upgrade will fail. What am I missing here? =E2=80=94 Mark Dilger EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company