Re: prion failed with ERROR: missing chunk number 0 for toast value 14334 in pg_toast_2619

2021-10-17 Thread Justin Pryzby
On Sun, Oct 17, 2021 at 04:43:15PM -0500, Justin Pryzby wrote: > On Sun, Aug 15, 2021 at 09:44:55AM -0500, Justin Pryzby wrote: > > On Sun, May 16, 2021 at 04:23:02PM -0400, Tom Lane wrote: > > > 1. Fix FullXidRelativeTo to be a little less trusting. It'd > > > probably be sane to make it return F

Re: prion failed with ERROR: missing chunk number 0 for toast value 14334 in pg_toast_2619

2021-10-17 Thread Justin Pryzby
On Sun, Aug 15, 2021 at 09:44:55AM -0500, Justin Pryzby wrote: > On Sun, May 16, 2021 at 04:23:02PM -0400, Tom Lane wrote: > > 1. Fix FullXidRelativeTo to be a little less trusting. It'd > > probably be sane to make it return FirstNormalTransactionId > > when it'd otherwise produce a wrapped-aroun

Re: prion failed with ERROR: missing chunk number 0 for toast value 14334 in pg_toast_2619

2021-08-15 Thread Justin Pryzby
On Sun, May 16, 2021 at 04:23:02PM -0400, Tom Lane wrote: > 1. Fix FullXidRelativeTo to be a little less trusting. It'd > probably be sane to make it return FirstNormalTransactionId > when it'd otherwise produce a wrapped-around FullXid, but is > there any situation where we'd want it to throw an

Re: prion failed with ERROR: missing chunk number 0 for toast value 14334 in pg_toast_2619

2021-07-06 Thread Justin Pryzby
gt;From 30204d85005d6288d2dc93bcd28ff4fb2454a703 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sun, 16 May 2021 16:23:02 -0400 Subject: [PATCH 1/3] prion failed with ERROR: missing chunk number 0 for toast value 14334 in pg_toast_2619 It also seems like some assertions in procarray.c would be a

Re: prion failed with ERROR: missing chunk number 0 for toast value 14334 in pg_toast_2619

2021-06-29 Thread Michael Paquier
On Tue, May 18, 2021 at 01:04:18PM +0200, Drouvot, Bertrand wrote: > On 5/17/21 8:56 PM, Andres Freund wrote: >> On 2021-05-17 20:14:40 +0200, Drouvot, Bertrand wrote: >>> I was also wondering if: >>> >>> * We should keep the old behavior in case pg_resetwal -x is being used >>> without -u?


Re: prion failed with ERROR: missing chunk number 0 for toast value 14334 in pg_toast_2619

2021-05-17 Thread Andres Freund
Hi, On 2021-05-17 20:14:40 +0200, Drouvot, Bertrand wrote: > FWIW a patch proposal to copy the oldest unfrozen XID during pg_upgrade (it > adds a new (- u) parameter to pg_resetwal) has been submitted a couple of > weeks ago, see: https://commitfest.postgresql.org/33/3105/ I'll try to look at it

Re: prion failed with ERROR: missing chunk number 0 for toast value 14334 in pg_toast_2619

2021-05-16 Thread Bruce Momjian
On Sun, May 16, 2021 at 04:23:02PM -0400, Tom Lane wrote: > And the reason oldestXID contains that is that pg_upgrade applied > pg_resetwal, which does this: > > /* > * For the moment, just set oldestXid to a value that will force > * immediate autovacuum-for-w

Re: prion failed with ERROR: missing chunk number 0 for toast value 14334 in pg_toast_2619

2021-05-16 Thread Andres Freund
Hi, On 2021-05-16 18:42:53 -0400, Tom Lane wrote: > Andres Freund writes: > > Why would it not be safe? > > I'm just wondering about the catalog tuples set up by pg_upgrade > itself. If they're all frozen then they probably don't matter to > this, but it might take some thought. There shouldn'

Re: prion failed with ERROR: missing chunk number 0 for toast value 14334 in pg_toast_2619

2021-05-16 Thread Tom Lane
Andres Freund writes: > On 2021-05-16 18:21:21 -0400, Tom Lane wrote: >> Hm, yeah. I'm not sure if transferring the value forward from the >> old cluster is entirely safe, but if it is, that seems like a >> promising route to a fix. (We should still have more sanity checking >> around the Global

Re: prion failed with ERROR: missing chunk number 0 for toast value 14334 in pg_toast_2619

2021-05-16 Thread Andres Freund
Hi, On 2021-05-16 18:21:21 -0400, Tom Lane wrote: > Peter Geoghegan writes: > > On Sun, May 16, 2021 at 1:23 PM Tom Lane wrote: > >> And the reason oldestXID contains that is that pg_upgrade applied > >> pg_resetwal, which does this: > >> * For the moment, just set oldestXid to a value that will

Re: prion failed with ERROR: missing chunk number 0 for toast value 14334 in pg_toast_2619

2021-05-16 Thread Andres Freund
Hi, On 2021-05-16 16:23:02 -0400, Tom Lane wrote: > And the reason oldestXID contains that is that pg_upgrade applied > pg_resetwal, which does this: > > /* > * For the moment, just set oldestXid to a value that will force > * immediate autovacuum-for-wraparou

Re: prion failed with ERROR: missing chunk number 0 for toast value 14334 in pg_toast_2619

2021-05-16 Thread Tom Lane
Peter Geoghegan writes: > On Sun, May 16, 2021 at 1:23 PM Tom Lane wrote: >> And the reason oldestXID contains that is that pg_upgrade applied >> pg_resetwal, which does this: >> * For the moment, just set oldestXid to a value that will force >> * immediate autovacuum-for-wraparound. > This same

Re: prion failed with ERROR: missing chunk number 0 for toast value 14334 in pg_toast_2619

2021-05-16 Thread Peter Geoghegan
On Sun, May 16, 2021 at 1:23 PM Tom Lane wrote: > it gets an insane value: > > oldestfxid 18446744071709568230, latest_completed 16613, oldestxid 2294983910 > > And the reason oldestXID contains that is that pg_upgrade applied > pg_resetwal, which does this: > > /* > * For the mom

Re: prion failed with ERROR: missing chunk number 0 for toast value 14334 in pg_toast_2619

2021-05-16 Thread Tom Lane
I wrote: > What I do have that's new is that *I can reproduce it*, at long last. I see what's happening, but I'm not quite sure where we should fix it. > I do not have a lot of idea why, but I see something that is > probably a honkin' big clue: > 2021-05-15 17:28:05.965 EDT [2469444] LOG: HeapT

Re: prion failed with ERROR: missing chunk number 0 for toast value 14334 in pg_toast_2619

2021-05-15 Thread Tom Lane
Heikki Linnakangas writes: > After my commit c532d15ddd to split up copy.c, buildfarm animal "prion" > failed in pg_upgrade > (https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=prion&dt=2020-11-23%2009%3A23%3A16): prion's continued to fail, rarely, in this same way: https://buildfarm.pos

prion failed with ERROR: missing chunk number 0 for toast value 14334 in pg_toast_2619

2020-11-23 Thread Heikki Linnakangas
Hi, After my commit c532d15ddd to split up copy.c, buildfarm animal "prion" failed in pg_upgrade (https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=prion&dt=2020-11-23%2009%3A23%3A16): Upgrade Complete Optimizer statistics are not transferred by pg_upgrade so, once you