Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1siFsD-001EN3-Kc for pgsql-general@arkaria.postgresql.org; Sun, 25 Aug 2024 16:13:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1siFsB-00GjvS-Ov for pgsql-general@arkaria.postgresql.org; Sun, 25 Aug 2024 16:13:48 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1siFsB-00GjvJ-Dw for pgsql-general@lists.postgresql.org; Sun, 25 Aug 2024 16:13:47 +0000 Received: from fout1-smtp.messagingengine.com ([103.168.172.144]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1siFs9-001Ntv-4b for pgsql-general@lists.postgresql.org; Sun, 25 Aug 2024 16:13:46 +0000 Received: from phl-compute-01.internal (phl-compute-01.nyi.internal [10.202.2.41]) by mailfout.nyi.internal (Postfix) with ESMTP id A0FB0138FC39; Sun, 25 Aug 2024 12:13:43 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-01.internal (MEProxy); Sun, 25 Aug 2024 12:13:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1724602423; x=1724688823; bh=pYDBjS0KRcEBLZ+ssn+AxqEHbESMx8nZhHdGEhmm1KM=; b= Nr6ToGpkoVR9EXZHBJjKvmPoQRskKpLW9W3v2LVYyi0iWiyLWE/Ajhc8vVrNy8TM xSzwoWJCvmsrtcTyrd0nJeT9FEsWs4czYxlv/1YxSvne7kws6vhpfnRuGoJ145zk jjGSkxuAYy+xHSEckoSRcHbmOsngkchx5QwWvT5ZWOLHdc97Nnvdo7aRPK8eyPkg 1jeCsHAfqZNDrdW9992UDMh3ZGsFbQmeycms8RKWT+wks4AE2z/1OeMRGbhwJ8n6 5EE4sQ3j84leqPdb0+oHPDyS6koBmXYVAkgJZxSAwZqdoPoHtxJJa2d6/WL+AMTt aj3Mz7JFG38syr5yPyZgNg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1724602423; x= 1724688823; bh=pYDBjS0KRcEBLZ+ssn+AxqEHbESMx8nZhHdGEhmm1KM=; b=Y QOpMsAr6gAv45DlJyMMJhw4Dl9VD/IDtJ3PrL+aracae76YwPh204FPgNoaUAH91 wCwz1oESY7IvJMlT8twR74J+r+WBs1n149XoGwd3V3rmyArA0KupGnd35KX4Y0ZG WgHX8dbeV0mE1I2iCcyZ/1lQ5x/n7Yj8EQ0RCRNRWqLyeVndNFSgRNUH01L4htY2 StzSg7RRzkHmDbdPOxrAqT0cLOTsyOQF/TnKPd0rJK+iUdjEVe2Xk0cFX9TWJF+q mXCnZtrtxCPUdhzI5cPenx+et3LVddcTqdORmQdjO/sSt+G4iTbPC5wYa61AIRXH rZGa2pj0IIZ1L+HZoKY5A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddruddviedgleejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhepkfffgggfuffvvehfhfgjtgfgsehtkeertddtvdej necuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrh esrghklhgrvhgvrhdrtghomheqnecuggftrfgrthhtvghrnhepfedvudevudegteegveej leeuueefhffggfeijeffvdeuiedugfelfeejveeggeeinecuffhomhgrihhnpehgihhthh husgdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhr ohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhmpdhnsggprhgtph htthhopeefpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehmiigrsggrnhhisehg mhgrihhlrdgtohhmpdhrtghpthhtohepthhomhgrshesvhhonhgurhgrrdhmvgdprhgtph htthhopehpghhsqhhlqdhgvghnvghrrghlsehlihhsthhsrdhpohhsthhgrhgvshhqlhdr ohhrgh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 25 Aug 2024 12:13:42 -0400 (EDT) Message-ID: <4fb5ab14-80c6-4ca8-b451-df3cbcacd92f@aklaver.com> Date: Sun, 25 Aug 2024 09:13:42 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: ERROR: could not open relation with OID XXXX To: Marcelo Zabani , Tomas Vondra Cc: pgsql-general@lists.postgresql.org References: <73bc7752-442c-4c67-a263-46017f1948cc@vondra.me> Content-Language: en-US From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 8/25/24 08:36, Marcelo Zabani wrote: > > we do some special stuff for catalogs > > That is good to know, thanks! > > > I believe you could actually lock the pg_class rows for update. Just > add FOR UPDATE at the end of the query. > > Thanks, but I tried that and got "ERROR:  permission denied for table > pg_class", even if I try it only for tables the user owns. > As I understand it this issue came up in: https://github.com/mzabani/codd I would think that the queries in that case would be running as a superuser in order to do the migrations. -- Adrian Klaver adrian.klaver@aklaver.com