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 1njlxd-0001Vj-16 for pgsql-general@arkaria.postgresql.org; Wed, 27 Apr 2022 18:00: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 1njlxb-0000t2-GO for pgsql-general@arkaria.postgresql.org; Wed, 27 Apr 2022 18:00:19 +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 1njlxZ-0000mF-Ku for pgsql-general@lists.postgresql.org; Wed, 27 Apr 2022 18:00:19 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1njlxW-00055y-Ll for pgsql-general@lists.postgresql.org; Wed, 27 Apr 2022 18:00:16 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 5AC865C020F; Wed, 27 Apr 2022 14:00:13 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Wed, 27 Apr 2022 14:00:13 -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=1651082413; x= 1651168813; bh=0z9WgBuIiGgdll0cdS4YnFEfwJGOcmkLnUa/qN7z7bQ=; b=R zYfJ7EsVyR1+ccUcKg9FjKVdzrWAp8944TPJm6HXqzmLnPHgS+C+tOMxLHVAF09i KzAwt7iTihS4y8/DkfKqBKMS5qviBQHMiAovZRPU7xgQVEsYtpXZByzikmhXPGIk fR68guiAGt5smDoLsISgTZC2zrRP3Lpj58hHBts684qEdWygcMgD7p7Lwalrap1+ 0eaANpzXMJyb4bcjseaxXFc9+zpVY4Rw3olqBIGzmi7RkhT1hgJjNOB/HC27Vilq 8Uwc611GUoEbVYzEo7IvSi6AYs9HijDFO7aCKL/MNvlIW6uw8xGzAfVfkNBcjExK ZY2vG10Grx06q3kp/zZDA== 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=1651082413; x=1651168813; bh=0z9WgBuIiGgdll0cdS4YnFEfwJGO cmkLnUa/qN7z7bQ=; b=YC7TD+uPji36OTbYPpm09IxTxn5Z78fxDWTSxiwBhKf9 7ROXSzUwcfKtXqb80zNtQnf8dB5JwvpM3znE5SNe45mtMKned7xaOZbSSR5Jqq6o lMYZAVj3gPnTnQgptI9I7ACZxe9WIt5J5WjfnDFq2WRu0nm44erg9eZ9iyB33Pu4 oIA10A/Az+g2LindVVRAMJvhS5hs2hYYmSHA4/UxIlVIePld8ML5D9FkiZ32wRgW unyeQvOT+dnlMu/i311kRffZrFibzwU8MDge1wvTCEGL58N3PwcRXIglSuGzO2Xv 15k9iwS4BBM+M4H0PXtoC39Yt1P3NZa0mOO9fsKwVg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrudehgdduudehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhkffffgggjggtgfesthekredttdefheenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucggtffrrghtthgvrhhnpedvkefhhefhleekjeeuueelhedvgeejfeehlefftefh tdefffefgeetfffgheefffenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmh grihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 27 Apr 2022 14:00:12 -0400 (EDT) Subject: Re: Privilege error with c functions during postgresql upgrade from 11 -> 13 To: "Dives, Chloe" , "pgsql-general@lists.postgresql.org" References: From: Adrian Klaver Message-ID: <2a9ac618-5d42-5f41-e93d-21667f094b56@aklaver.com> Date: Wed, 27 Apr 2022 11:00:11 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 4/27/22 7:51 AM, Dives, Chloe wrote: > I am doing a test run of upgrading a postgresql instance from v11 to v13 > and am hitting the following error: > > *pg_restore: while PROCESSING TOC:* > > *pg_restore: from TOC entry 13902; 0 0 ACL FUNCTION > "bt_index_check"("index" "regclass") rolename1* > > *pg_restore: error: could not execute query: ERROR:  role "16416" does > not exist* > How are you doing the upgrade, using pg_upgrade or pg_dump/pg_restore? If pg_dump then what version did you use to do the dump 11 or 13. If you are restoring just a single database did you do pg_dumpall -g to fetch the globals(roles, etc) from the 11 instance and then use psql to restore those to the 13 instance? > > This role does not appear to exist in the database, and I suspect that > id belonged to one of the dbadmin team who has recently left. I was also > hitting this same error for pg_buffercache_pages() as well. They are > both c functions stored in libdir. > > Can anyone point me towards where pg_dump is getting these outdated > permissions from please? > > Thanks! -- Adrian Klaver adrian.klaver@aklaver.com