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 1nk7Nz-0005hb-5f for pgsql-general@arkaria.postgresql.org; Thu, 28 Apr 2022 16:52:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nk7Ny-0000Jm-1m for pgsql-general@arkaria.postgresql.org; Thu, 28 Apr 2022 16:52:58 +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 1nk7Nx-0000Ii-4x for pgsql-general@lists.postgresql.org; Thu, 28 Apr 2022 16:52:57 +0000 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nk7Nu-0007TC-KK for pgsql-general@lists.postgresql.org; Thu, 28 Apr 2022 16:52:56 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id D382A3200960; Thu, 28 Apr 2022 12:52:52 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Thu, 28 Apr 2022 12:52:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm3; t=1651164772; x= 1651251172; bh=hmOLtJgIJ0I7ifWD6GcKSw0YQgBe44/IEnvY51hmg1M=; b=y HRbWibdnZucg2pfYITeXgGQF8p3T+cGseS6frr31/gYqWse5Fkmw7xqU2gPQYaHX Jvvlhyzc9VV/wKcrtEX7hyPpHxFCauXEOE6OHeQhln+43llbCvAYYzcYKPSRuAsP +3SawV0sBpyVBPNvj3GLK9pQqqs0kQn5uzlRytQV0RqosM5wmMxGRZY6eK51gnWV NTIocvVNniyVwZLME35KZFwK5VVxm+m7884hgNmel5x1j6XU174N0X6oEthRnMab ldRjwwbyeNfaRydoP73SSq7l5Wc2YKbfmjiDxbt7a/CE7xwIQFdxqPBNeQvqOCe5 e9XEDzdtPz5u7haWHicjg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1651164772; x=1651251172; bh=hmOLtJgIJ0I7ifWD6GcKSw0YQgBe 44/IEnvY51hmg1M=; b=v+ipSyYEbSN1bo10BKLYM/EG9fTX3FocFYfn63TjJRvU FxZvk7vbfxJ4gzjau2c0bEOXS+XkD9FqJSRC/xVcqixbwGoZ+ELexQXAdPT6mexg cFwHGJGZWWgjX3P8CWsH7WS+dtwHXOkMU0PkiL89HUdW5po34uuKL//tyvSWHECa B4ChV85bWt5iuLy8cLGLc12QF+KnpHmxmNBMyhQ2M/U7p06pmkelY0QONb9libb2 JZZloZ6o8joG3h8FJQSSDUQJGm+AQFtewahL//Ia1WygyaN77pNCNj2CXQv8uFiA ifi7JQCMTlXGuX4bzifte/RMSw5/Z24y5GvFTMGXDQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrudejgddutdejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvfhfhjggtgfesthejredttdefjeenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucggtffrrghtthgvrhhnpeevvdekiefhudfhhfdtkeelgeffudeigfetjeegfffg hfetfeelledugfelleegveenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmh grihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 28 Apr 2022 12:52:51 -0400 (EDT) Message-ID: Date: Thu, 28 Apr 2022 09:52:51 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: Privilege error with c functions during postgresql upgrade from 11 -> 13 Content-Language: en-US To: "Dives, Chloe" , "pgsql-general@lists.postgresql.org" References: <2a9ac618-5d42-5f41-e93d-21667f094b56@aklaver.com> From: Adrian Klaver In-Reply-To: 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/28/22 02:08, Dives, Chloe wrote: > Thanks for your reply. I am using pg_upgrade to do the upgrade In the Postgres 11 instance using psql what does: \df+ bt_index_check return. In particular under the Access privileges column. Also the output of: \du Going back to your original post, someone who is more familiar with pg_upgrade maybe can explain: Command was: SELECT pg_catalog.binary_upgrade_set_record_init_privs(true); REVOKE ALL ON FUNCTION "public"."bt_index_check"("index" "regclass") FROM PUBLIC; REVOKE ALL ON FUNCTION "public"."bt_index_check"("index" "regclass") FROM "rolename1"; SET SESSION AUTHORIZATION "16416"; GRANT ALL ON FUNCTION "public"."bt_index_check"("index" "regclass") TO "16416"; RESET SESSION AUTHORIZATION; SELECT pg_catalog.binary_upgrade_set_record_init_privs(false); REVOKE ALL ON FUNCTION "public"."bt_index_check"("index" "regclass") FROM "16416"; In other words why the role 16416 was GRANTed ALL then REVOKEd ALL on the function? -- Adrian Klaver adrian.klaver@aklaver.com