Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wErKg-004UO3-16 for pgsql-hackers@arkaria.postgresql.org; Mon, 20 Apr 2026 16:18:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wErKe-003tvN-0V for pgsql-hackers@arkaria.postgresql.org; Mon, 20 Apr 2026 16:18:44 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wErKd-003tvE-2l for pgsql-hackers@lists.postgresql.org; Mon, 20 Apr 2026 16:18:43 +0000 Received: from mail-yx1-xb132.google.com ([2607:f8b0:4864:20::b132]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wErKb-000000029rT-2m23 for pgsql-hackers@lists.postgresql.org; Mon, 20 Apr 2026 16:18:43 +0000 Received: by mail-yx1-xb132.google.com with SMTP id 956f58d0204a3-65075c2ba66so1994016d50.1 for ; Mon, 20 Apr 2026 09:18:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1776701919; cv=none; d=google.com; s=arc-20240605; b=OwWG10z/lu3Zif4Au6rCSHN4acijFqrZl2MfyPMiaT/f+nVNfjPFd2tyX26LH8XFqG LaiCyAoAfiyeKiMG/RsWD9RuTgxqOz20v8u0/2MEx/E+o6FqhwFTDXPRrbz6WLqPHofv oX3ooh6NMsVmuel2+OFMG8M+YWERfOmFmDevlhO0kGO+VIBmcMabp7ak+10seAwB+VEk 2TkFD1SPMox5P2pw6gcszCDV0R3DW/4HU6W3HdIQCj7TuLVNANpjJ0h59nLMNzmM81n8 uDqQC1wXKhkB4oWMLdjmgoqSM1Y7LVDAy2Y+BEa+B02fyiPnh/OOHJjE1ScbaDDPDjcw vZDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=KfV/gUwV0plCjzL1kaTDPll+da9keuD91x0SSdjR/hY=; fh=RptxBlqeUnaMOLz5fRS9Kbx3iX2hXAwMx3rG4nxTrHI=; b=fc28n4iazIB+A6bpGX+wjqpeJwzAof6i9lC73apBtrN8HlcMMxpA/9NGxpjr3Eq7nE ZFKU4l065H714XlnAp86RMfHY0bjueX3rntGWeGW6fBxLH8QOmCN83oSdYBXCUKGI5rh gey2vYBJQyq87krpNGdeFCJCs9FKHjoxGGok63JgygWqQX8G6oRDnIE9V1nAPJW07hc+ GwiOk+bcCSaKS9hMffSUXd0+Cq+1RaLCOtfCGjQBL/+pxBN8fWPqUx8lpy+orv2g4uUh YKdmbB1zB9Fub3UC04A2hGVLmjX0ZymgLM0PQbjIjgecfcate891LwB47PJ8fqMeJaIx Ms/g==; darn=lists.postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1776701919; x=1777306719; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=KfV/gUwV0plCjzL1kaTDPll+da9keuD91x0SSdjR/hY=; b=Ap4ffHX01I6fIVOTud48e/QkDbfTqNhUluxOO88+jEFM7h9+q/kC1V1ZBkeiKER08A Ojc9p675F0OYUfUMGjOh0e9V7MhNs7tfvOrdouBmqwnoeWLUt/WgnnoYZbEWrWAPaDwS qkpZxHbTbqSSimEUK2zZ6HDxv9MlgL6YB8AiOCtN1k9x4ltQxanuevD3ZCVmYJYiWUGI ML+mw+tz7Vn/FgrTa5sophM6yipDT+antf5/IwtvLOuv33O30/NCPvrXCT0Ze8FXKNd3 tKtDagYvIbCUW1H+zA9jC6uig3fBFg4V8Ruj+gM7JlbjD5+BLgXmc96Rk+ZeAAHmujIQ Zz1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776701919; x=1777306719; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=KfV/gUwV0plCjzL1kaTDPll+da9keuD91x0SSdjR/hY=; b=PSl2LW+mry8emM1bt50XC8F/FrzN5jfJLMFeaROtnEiztoiOE26JoIevscmJ2rgIMN kQE4jSYqlyUXy0BWimdbOB5s3F2piiDWft5qitU552409otdtHnZI5Ef5g+bDwY7AE9a blLH+GSLLcG2PEbdotlnChSaX1OeBh2zzohx6vH/3EspoNkB8foh/3eO/L3yUXOmD+so rEEQnBrgCEoBOp0YHSYTtsa1izFE7bv2IxGh47cSUC9GMOSJ0IFWdYNCmyb22z0ZFM8B jD0AWzzIOlh3XbThpyR/eotq9TEXB7lVrpy8z8tw9bR+zEsKId7kDCl8CKY7nuJ50rqn Wy4w== X-Forwarded-Encrypted: i=1; AFNElJ/2sWg+g+tez1cK9fX/bzStUCTkujPXjLPPhbNSs3qTqNx13VsqXK4EUXMRQ421WuODXzjqr7PttZjKC3iD@lists.postgresql.org X-Gm-Message-State: AOJu0YyMv2EaKYAQalz/pbUCzozmMHQd47fG8kvxtw4v+LcXV4uG48hn 5vlQL80CHHx30D1IbBT2LkuaNdhDiGVlNjA5ZnSQ1x8rT/68gITDbd7TB6O/EZXWCau1E9p5ag3 tOFNQWqDPe2X/XodFtKy7XB6rl0GzMjs= X-Gm-Gg: AeBDieswytlbJIHqtrmfcgoymCenquZRQnOLSuO7T/xnE7zSNDD2I1pGNqf9qbUOInm 1U7f0lBrGct8sZCmeqLRhqqwScJVp2feFQhuQCnvMdLoe4klcuBv0MU93YLEBuU/pxo75k5VOP1 zCSJn1URPLhEQydXOLRAJ0hATQcmL+EAMjCUEtWePqHimEJ1f9e+QojT3YhXIc/DUJSfgReKrVx aQGPNu5/Mm+vk31eZ1bxuTkq2X4Cp9ZBH+misiouZFrdZLX9Y6yqB0LXEmWdDo8dRx8WidK2f47 HDDRT/flYJe1CUSrgfwTc/v3Sqduza+bb+6UcWf3BNdMt/dDt+mRqJBD4eJ/cK3nORcX3klFSKi Uhtcz3kcZR//ipEzv+f8= X-Received: by 2002:a53:acd5:0:10b0:651:cb6e:7cc0 with SMTP id 956f58d0204a3-65310878315mr10371055d50.26.1776701919367; Mon, 20 Apr 2026 09:18:39 -0700 (PDT) MIME-Version: 1.0 References: <2be31f17-5405-4de9-8d73-90ebc322f7d8@vondra.me> <97529f5a-ec10-46b1-ab50-4653126c6889@gmail.com> <46733d68-aec0-4d09-8120-4c66b87047a4@gmail.com> In-Reply-To: From: Melanie Plageman Date: Mon, 20 Apr 2026 12:18:24 -0400 X-Gm-Features: AQROBzAEzPXHxuXi-aSozXou-JhVINomvKmtr59Mlzgvujbrbd-mO2lLQ-H_t7U Message-ID: Subject: Re: eliminate xl_heap_visible to reduce WAL (and eventually set VM on-access) To: Alexander Lakhin Cc: Andres Freund , Tomas Vondra , David Rowley , Kirill Reshke , Chao Li , Andrey Borodin , Xuneng Zhou , Robert Haas , PostgreSQL Hackers , Heikki Linnakangas Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Sat, Apr 18, 2026 at 2:00=E2=80=AFPM Alexander Lakhin wrote: > > 18.04.2026 19:25, Andres Freund wrote: > > >> Could you please look if this can be fixed? > > When you say fix, I assume you mean address the test instability, rathe= r than > > actual code changes? > > Sure, I didn't mean the new behavior is wrong. Probably changing that > table to temporary would work Yes, I think changing it to a temp table is the easiest fix. We could also do autovacuum_enabled=3Dfalse, I think, but making it a temp table seems cleanest. I wonder if we should move the EXPLAIN test above the results queries, then throw in a vacuum in between some of them so we exercise btree gist as a bitmap heap scan and as an index only scan. It could provide a little bit more coverage? Or maybe that isn't actually extra coverage. I'm not sure. > but I wonder if there are other queries, > which plans can change due to the same reason. I think we'll have to take this on a case-by-case basis when we see failures. While it is certainly possible other tests just rely on autovacuum not having run and set the page all-visible, many of them probably have already had to account for that. - Melanie