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 1oYxIj-0006xC-Be for pgsql-bugs@arkaria.postgresql.org; Thu, 15 Sep 2022 22:25:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oYxIh-0000jv-6m for pgsql-bugs@arkaria.postgresql.org; Thu, 15 Sep 2022 22:25:39 +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 1oYxIg-0000jm-SX for pgsql-bugs@lists.postgresql.org; Thu, 15 Sep 2022 22:25:38 +0000 Received: from mail-pg1-x533.google.com ([2607:f8b0:4864:20::533]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oYxIb-0005yg-7v for pgsql-bugs@postgresql.org; Thu, 15 Sep 2022 22:25:37 +0000 Received: by mail-pg1-x533.google.com with SMTP id s206so18624289pgs.3 for ; Thu, 15 Sep 2022 15:25:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=j-davis-com.20210112.gappssmtp.com; s=20210112; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date; bh=7UusiIE7HlslrvM2+rVRLj81LMjDwwvgJfYb21eZEqU=; b=H+JLn30DY+ggrudJcCssXV4aq2rVZ9Qf860AFz/PgP4Fm/LE053XTrWDl8MiYzSADh i9GUGpkttv77+7lId95yjbGDRleQRjFcQOfXqMyjc7GaTgZuWrVZZ4qUE3qbT7dEbuDF ukngKUEw6ekivbEreQtyrJgpIIwCe7nGZzQN+cT2oTPfgLLXPWw9V6JVVlDb5KA3vWxK PRQ5x2SuhAKPno8v1nZX7VeVGYGK1k7UooKw0JvKjAyhv0cWXmKy1Sf1EdAX7MArT3Vd jb+vdSeRm0dBCV9FuiMXmZemdc9qhpHQ10vKkY56NIUKd38w8FaK7Bd30MMYN1MwV/RS O68g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date; bh=7UusiIE7HlslrvM2+rVRLj81LMjDwwvgJfYb21eZEqU=; b=XPRB0LjIO8WndJyJrcWu+tsrEzCUpFyADYJRvUdwXN4YwVY1MdMsKm3j7ViyiOvg0p R5RuE/h3Q9JU/tdVID24OMhrENS5McRacbiYS6YxLkPYG2CHynGhyMrEQJggGbHM4+2Z iK/IOci6ol2yANoU/0CjoyQ/Jmbs0zJwicqpE2Nv0quXaOYsAkPb7GvhSF22QwaKML9M 3EQ0SnF5B0KBaCzRWE5HD1GM3dEw7FOV6sE0wbfEJugNYjzY6WKCKQ1m1JOPeZXopVDW Awcxa36GADqq5iKpuh5IaavtrGwsOc43eXgPp2PNDDHzJDbPxleJOjW5eEtf1iuuT5J7 zUBA== X-Gm-Message-State: ACrzQf0k3kgAB/qF+mPEbeqoY+h16YI8WcuM3U6llO+9FrBJqipH787S jtP3RJiRbsicO/LTmpUcmocCYw== X-Google-Smtp-Source: AMsMyM5P8v+KlQlnh1vI/JDbJ3s9evqcYljdlpipCtvcN+UswjtOQrpbfDclyDheL0fckBfmgA9svg== X-Received: by 2002:a05:6a00:15c9:b0:541:1767:4ce2 with SMTP id o9-20020a056a0015c900b0054117674ce2mr1647050pfu.30.1663280732095; Thu, 15 Sep 2022 15:25:32 -0700 (PDT) Received: from jeff-laptop.lan (c-73-231-146-4.hsd1.ca.comcast.net. [73.231.146.4]) by smtp.gmail.com with ESMTPSA id r2-20020aa79ec2000000b00545f5046372sm7172666pfq.208.2022.09.15.15.25.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Sep 2022 15:25:31 -0700 (PDT) Message-ID: <84255ddfad9b98b37fec4d031c4853de344cddea.camel@j-davis.com> Subject: Re: PANIC in heap_delete during ALTER TABLE From: Jeff Davis To: Peter Geoghegan Cc: Robins Tharakan , PostgreSQL mailing lists Date: Thu, 15 Sep 2022 15:25:30 -0700 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.1-0ubuntu1 MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, 2022-09-08 at 10:30 -0700, Jeff Davis wrote: > I wasn't able to repro on 13, but Robins' report indicates that it's > possible. I looked again, and I still can't find a way to repro on 13, specifically the sha1 you mentioned (7cdd0c2d7c). heap_delete() lets go of its exclusive lock (but not pin) in a couple places (just like on master). But it looks like all the places that set PD_ALL_VISIBLE are doing so under a cleanup lock (unlike master), which means that it can't change for the duration of heap_delete(). I'm hesitant to commit anything here if I can't repro the problem on 13. I must be missing something. Regards, Jeff Davis