Re: recovering from "found xmin ... from before relfrozenxid ..."
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Andres Freund <andres@anarazel.de>,
"pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>
Date: 2020-07-14T01:26:38Z
Lists: pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes: > On Mon, Jul 13, 2020 at 8:58 PM Tom Lane <tgl@sss.pgh.pa.us> wrote: >> The more that I think about it, the more I think that the proposed >> functions are tools for wizards only, and so I'm getting hesitant >> about having them in contrib at all. We lack a better place to >> put them, but that doesn't mean they should be there. > I understand that it's not too great when we give people access to > sharp tools and they hurt themselves with said tools. But this is open > source. That's how it goes. I think you're attacking a straw man. I'm well aware of how open source works, thanks. What I'm saying is that contrib is mostly seen to be reasonably harmless stuff. Sure, you can overwrite data you didn't want to with adminpack's pg_file_write. But that's the price of having such a capability at all, and in general it's not hard for users to understand both the uses and risks of that function. That statement does not apply to the functions being proposed here. It doesn't seem like they could possibly be safe to use without very specific expert advice --- and even then, we're talking rather small values of "safe". So I wish we had some other way to distribute them than via contrib. regards, tom lane
Commits
-
Fix wrong data table horizon computation during backend startup.
- 1c7675a7a426 14.0 landed
-
Centralize horizon determination for temp tables, fixing bug due to skew.
- 94bc27b57680 14.0 landed
-
pg_surgery: Try to stabilize regression tests.
- 0811f766fd74 14.0 landed
-
New contrib module, pg_surgery, with heap surgery functions.
- 34a947ca13e5 14.0 landed
-
Set cutoff xmin more aggressively when vacuuming a temporary table.
- a7212be8b9e0 14.0 cited
-
snapshot scalability: Don't compute global horizons while building snapshots.
- dc7420c2c927 14.0 cited
-
Introduce vacuum errcontext to display additional information.
- b61d161c1463 13.0 cited