pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Robert Haas <robertmhaas@gmail.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Subject: Re: pgsql: Don't try to print data type names in slot_store_error_callback(
Date: Thu, 08 Jul 2021 11:21:48 -0400
Message-ID: <1963079.1625757708@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+TgmoZSFZ1x02ndWSF2b__t4OjY2oBVmp+WPs4m85d-g_ooNw@mail.gmail.com>
References: <E1lzPPp-0005bk-A5@gemulon.postgresql.org>
	<CA+TgmoZSFZ1x02ndWSF2b__t4OjY2oBVmp+WPs4m85d-g_ooNw@mail.gmail.com>

Robert Haas <robertmhaas@gmail.com> writes:
> On Fri, Jul 2, 2021 at 4:05 PM Tom Lane <tgl@sss.pgh.pa.us> 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





view thread (8+ messages)

Message-ID: <1963079.1625757708@sss.pgh.pa.us>
Permalink:  ../1963079.1625757708@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1963079.1625757708@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, robertmhaas@gmail.com, pgsql-hackers@lists.postgresql.org
  Subject: Re: pgsql: Don't try to print data type names in slot_store_error_callback(
  In-Reply-To: <1963079.1625757708@sss.pgh.pa.us>
  References: <E1lzPPp-0005bk-A5@gemulon.postgresql.org> <CA+TgmoZSFZ1x02ndWSF2b__t4OjY2oBVmp+WPs4m85d-g_ooNw@mail.gmail.com> <1963079.1625757708@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox