Re: Large expressions in indexes can't be stored (non-TOASTable)
vignesh C <vignesh21@gmail.com>
From: vignesh C <vignesh21@gmail.com>
To: Nathan Bossart <nathandbossart@gmail.com>
Cc: Michael Paquier <michael@paquier.xyz>,
Alexander Lakhin <exclusion@gmail.com>, Tom Lane <tgl@sss.pgh.pa.us>, "Jonathan S. Katz" <jkatz@postgresql.org>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2025-03-16T12:44:10Z
Lists: pgsql-hackers
On Wed, 27 Nov 2024 at 21:29, Nathan Bossart <nathandbossart@gmail.com> wrote: > > On Wed, Nov 27, 2024 at 03:20:19PM +0900, Michael Paquier wrote: > > On Mon, Nov 25, 2024 at 01:29:31PM -0600, Nathan Bossart wrote: > >> Or we could just enforce that you have an active snapshot whenever you > >> modify a catalog with a TOAST table. That's simpler, but it requires extra > >> work in some paths (and probably comments to point out that we're only > >> pushing an active snapshot to satisfy an assertion). > > > > I may be wrong, but I suspect that enforcing the check without being > > column-based is the right way to go and that this is going to catch > > more errors in the long-term than being a maintenance burden. So I > > would keep the snapshot check even if it's a bit aggressive, still > > it's useful. And we are not talking about that may code paths that > > need to be switched to require a snapshot, as well. Most of the ones > > you have mentioned on this thread are really particular in the ways > > they do transaction handling. I suspect that it may also catch > > out-of-core issues with extensions doing direct catalog manipulations. > > That is useful feedback, thanks. Michael's feedback from [1] is still pending, so I'm updating the status to "Waiting on Author." Please provide an updated patch and change the status back to "Needs Review". [1] - https://www.postgresql.org/message-id/Z0a6IwjW36af71J7%40paquier.xyz Regards, Vignesh
Commits
-
Ensure we have a snapshot when updating various system catalogs.
- fe8ea7a2a893 17.6 landed
- ddfcfb7cec68 15.14 landed
- b7ba2c0308ce 13.22 landed
- b65be6ef00e2 14.19 landed
- 706054b11b95 18.0 landed
- 24135398f1e1 16.10 landed
-
Remove pg_replication_origin's TOAST table.
- 16bf24e0e471 18.0 landed
-
Restrict password hash length.
- 8275325a06ed 18.0 cited
-
Ensure we have a snapshot when updating pg_index entries.
- b52adbad4674 18.0 landed
-
Add TOAST table to pg_index.
- b52c4fc3c09e 18.0 landed
-
Add toast tables to most system catalogs
- 96cdeae07f93 12.0 cited