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 1m1Vqg-00058Q-D3 for pgsql-hackers@arkaria.postgresql.org; Thu, 08 Jul 2021 15:21: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 1m1Vqe-0007sP-Gq for pgsql-hackers@arkaria.postgresql.org; Thu, 08 Jul 2021 15:21:56 +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 1m1Vqe-0007s4-96 for pgsql-hackers@lists.postgresql.org; Thu, 08 Jul 2021 15:21:56 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m1VqZ-00077U-Am for pgsql-hackers@lists.postgresql.org; Thu, 08 Jul 2021 15:21:55 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 168FLm2w1963080; Thu, 8 Jul 2021 11:21:48 -0400 From: Tom Lane To: Robert Haas cc: PostgreSQL Hackers Subject: Re: pgsql: Don't try to print data type names in slot_store_error_callback( In-reply-to: References: Comments: In-reply-to Robert Haas message dated "Thu, 08 Jul 2021 10:57:22 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1963078.1625757708.1@sss.pgh.pa.us> Date: Thu, 08 Jul 2021 11:21:48 -0400 Message-ID: <1963079.1625757708@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Robert Haas writes: > On Fri, Jul 2, 2021 at 4:05 PM Tom Lane wrote: >> The existing code tried to do syscache lookups in an already-failed >> transaction, which is problematic to say the least. > Why didn't the assertion in SearchCatCacheInternal() catch this? Was > this code never actually tested? It wasn't tested under conditions in which a catalog lookup would be at real risk of failing --- and I'm not sure that we have any way to do that mechanically. See discussion downthread about when a transaction could be considered "failed". regards, tom lane