pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nathan Bossart <nathandbossart@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Nisha Moond <nisha.moond412@gmail.com>
Cc: Euler Taveira <euler@eulerto.com>
Cc: Michael Paquier <michael@paquier.xyz>
Cc: Amit Kapila <amit.kapila16@gmail.com>
Cc: Alexander Lakhin <exclusion@gmail.com>
Cc: Jonathan S. Katz <jkatz@postgresql.org>
Cc: tomas@vondra.me, "hlinnaka@iki.fi PostgreSQL Hackers" <pgsql-hackers@lists.postgresql.org>
Subject: Re: Large expressions in indexes can't be stored (non-TOASTable)
Date: Tue, 29 Apr 2025 13:09:32 -0500
Message-ID: <aBEV3AQwhAMm0v2k@nathan> (raw)
In-Reply-To: <1055453.1745949714@sss.pgh.pa.us>
References: <aAfP_bitjVC1bcNV@nathan>
	<aAla1fg-1vPeXNck@nathan>
	<1503201.1745444021@sss.pgh.pa.us>
	<aAlfU06XTChyIGBD@nathan>
	<aA_zMYasoUwNrDx1@nathan>
	<905635.1745876108@sss.pgh.pa.us>
	<aA_4S5ZBaI_Qje2s@nathan>
	<910625.1745878759@sss.pgh.pa.us>
	<aBEO7vzq1jw9L_Pv@nathan>
	<1055453.1745949714@sss.pgh.pa.us>

On Tue, Apr 29, 2025 at 02:01:54PM -0400, Tom Lane wrote:
> Nathan Bossart <nathandbossart@gmail.com> writes:
>> Thanks.  I'll stash this away for July unless someone wants to argue that
>> it's fair game for v18.  IMHO this isn't nearly urgent enough for that, and
>> the bugs will continue to exist on older major versions regardless.
> 
> I'm inclined to argue that it's a bug fix and therefore still in-scope
> for v18.  The fact that we can't back-patch such a change is all the
> more reason to not let it slide another year.  But probably the RMT
> should make the call.

Tomas, Heikki: Thoughts on removing pg_replication_origin's TOAST table
post-feature-freeze?  The proposed commit message explains what's going on:

	A few places that access this catalog do not set up an active
	snapshot before potentially accessing its TOAST table, which is
	unsafe.  However, roname (the replication origin name) is the only
	varlena column, so this is only ever a problem if the name requires
	out-of-line storage, which seems unlikely.  This commit removes its
	TOAST table to avoid needing to set up a snapshot, and it
	establishes a length restriction of 512 bytes for replication
	origin names.  Even without this restriction, names that would
	require out-of-line storage would fail with a "row is too big"
	error; the additional length restriction just provides a more
	specific error message.

-- 
nathan





view thread (62+ messages)  latest in thread

Message-ID: <aBEV3AQwhAMm0v2k@nathan>
Permalink:  ../aBEV3AQwhAMm0v2k@nathan/
Also on:    postgresql.org/message-id/aBEV3AQwhAMm0v2k@nathan

 · 

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-hackers@postgresql.org
  Cc: nathandbossart@gmail.com, tgl@sss.pgh.pa.us, nisha.moond412@gmail.com, euler@eulerto.com, michael@paquier.xyz, amit.kapila16@gmail.com, exclusion@gmail.com, jkatz@postgresql.org, pgsql-hackers@lists.postgresql.org
  Subject: Re: Large expressions in indexes can't be stored (non-TOASTable)
  In-Reply-To: <aBEV3AQwhAMm0v2k@nathan>

* 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