Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mFHNr-0003Y8-QE for pgsql-hackers@arkaria.postgresql.org; Sun, 15 Aug 2021 14:45:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mFHNq-0008O4-5I for pgsql-hackers@arkaria.postgresql.org; Sun, 15 Aug 2021 14:45:06 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mFHNp-0008No-Nd for pgsql-hackers@lists.postgresql.org; Sun, 15 Aug 2021 14:45:05 +0000 Received: from mail-il1-x12e.google.com ([2607:f8b0:4864:20::12e]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mFHNi-0008Cr-G2 for pgsql-hackers@postgresql.org; Sun, 15 Aug 2021 14:45:04 +0000 Received: by mail-il1-x12e.google.com with SMTP id y3so15990397ilm.6 for ; Sun, 15 Aug 2021 07:44:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=4KZ8pCZdE2Q8pJ/3fM6+1s79rETfJqeBVzeN2cpACJM=; b=vI3vEN6o46HhjHCtqKAZJPk4RAmMsOrtG/fYuF45PCCYciW8zHJmNkn1DdYGE13VQx Omnatfkm8q0LGepna8YM5B0uQWy1unO9gSqFt85jLsxXIxzL5NVm5RxcGkrjC8rL9gV+ PbaF8eBbFGbnP7N0EivVsBTuQuKH0NyMGL+DalepsGCQ7XK4TpEH4B/d03EoP7/EnqUu i7ZqmH86MlxHZG+91vE/TIDoAdbmJWZpBHYrk1penjnOMSFEVgyIRqYDLx76B3tMqCWm Twpb1bBG7fl08tam6QGYRQR8k+OE2SlOHcAbGT/fKeFT132cU8iq0DI6882PssywirF/ 2XFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=4KZ8pCZdE2Q8pJ/3fM6+1s79rETfJqeBVzeN2cpACJM=; b=FE6gZcGfCT2KBudoBt6HWRuoaLKUoh1NzdQt0gxEa111iln2hmGenQGbTO2zDOu/Wq nWjP9+nz6kPFuRZlpGdWpV+58MXpeLCsvLIfCtXX/qu0obIU9G9KxpqpqitArlplKQp1 l3omPbmTUzi3KMMWlLsc9Z/b8RSYNIjECRiygSDMuBWCUWLngcNnF9BEydNXBR7P6VWR cPw1uy1NR6/aa/DglHG2/I24aevdcwZLr4nYKTpztdAt32GIV63zgdaEZR6d0VYpeplt FIMRq4zAEU9Toh1+jGCLJV5w1ZnH5TVOUTovZt/WP5BUJsO8Gn4QHIdw4X20Ox0JgZJK AoVQ== X-Gm-Message-State: AOAM533S3C6a2ZPemgTdD11bXD1sN1FFcEee/lTgo1b30wnWPUmmfiVx McWaSckzRQw4QKYYRnGPeG8pTg== X-Google-Smtp-Source: ABdhPJyFlLc7ustkW6wPKljj2TIuOj21rx6uW+tnfxrR87i3lsbLOAquaeycyuLHtgHqoK3vpMBx4A== X-Received: by 2002:a05:6e02:688:: with SMTP id o8mr9052440ils.182.1629038697074; Sun, 15 Aug 2021 07:44:57 -0700 (PDT) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id c8sm4073342ilk.64.2021.08.15.07.44.56 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 15 Aug 2021 07:44:56 -0700 (PDT) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id 64E858015C0; Sun, 15 Aug 2021 09:44:55 -0500 (CDT) Date: Sun, 15 Aug 2021 09:44:55 -0500 From: Justin Pryzby To: Tom Lane Cc: Heikki Linnakangas , pgsql-hackers , Andres Freund Subject: Re: prion failed with ERROR: missing chunk number 0 for toast value 14334 in pg_toast_2619 Message-ID: <20210815144455.GQ10479@telsasoft.com> References: <2472976.1621117273@sss.pgh.pa.us> <2591376.1621196582@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2591376.1621196582@sss.pgh.pa.us> User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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 error instead? > > 2. Change pg_resetwal to not do the above. It's not entirely > apparent to me what business it has trying to force > autovacuum-for-wraparound anyway, but if it does need to do that, > can we devise a less klugy method? > > It also seems like some assertions in procarray.c would be a > good idea. With the attached patch, we get through core > regression just fine, but the pg_upgrade test fails immediately > after the "Resetting WAL archives" step. #2 is done as of 74cf7d46a. Is there a plan to include Tom's procarray assertions ? -- Justin