pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: Andrew Dunstan <andrew@dunslane.net>
Cc: exclusion@gmail.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #17994: Invalidating relcache corrupts tupDesc inside ExecEvalFieldStoreDeForm()
Date: Sun, 02 Jul 2023 17:57:03 -0400
Message-ID: <213081.1688335023@sss.pgh.pa.us> (raw)
In-Reply-To: <20230702215420.mal2kg5a4kasme5j@awork3.anarazel.de>
References: <1583514.1688066735@sss.pgh.pa.us>
	<326723ee-ee05-35bf-06fd-e4f3afc61654@dunslane.net>
	<1610276.1688078516@sss.pgh.pa.us>
	<5316ba5d-ab3b-4ae2-6f6b-f22760932d99@dunslane.net>
	<1742513.1688129204@sss.pgh.pa.us>
	<cf24e075-0809-b9b8-4c73-48eed105b9a9@dunslane.net>
	<1749275.1688132604@sss.pgh.pa.us>
	<e56b9c00-291b-dac0-6260-74137fdaffa5@dunslane.net>
	<1800418.1688152085@sss.pgh.pa.us>
	<3878b204-e9b4-6e09-9adb-7a37b8db34a6@dunslane.net>
	<20230702215420.mal2kg5a4kasme5j@awork3.anarazel.de>

Andres Freund <andres@anarazel.de> writes:
> Isn't that going to break the assumption that the key is unique within a
> transaction?

Huh?  "abc" is "abc", no matter what.  At least if Andrew did what
I suggested (I didn't look at the patch yet).

> Separately, will this work correctly with procedures keeping values alive
> across transactions?

That might be an issue.  But couldn't we make this cache just live for
the life of the process?  It's unlikely to get large.

			regards, tom lane





view thread (33+ messages)  latest in thread

Message-ID: <213081.1688335023@sss.pgh.pa.us>
Permalink:  ../213081.1688335023@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/213081.1688335023@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 using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, andres@anarazel.de, andrew@dunslane.net, exclusion@gmail.com, pgsql-bugs@lists.postgresql.org
  Subject: Re: BUG #17994: Invalidating relcache corrupts tupDesc inside ExecEvalFieldStoreDeForm()
  In-Reply-To: <213081.1688335023@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