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.94.2) (envelope-from ) id 1uvhJm-00HYOL-TQ for pgsql-hackers@arkaria.postgresql.org; Mon, 08 Sep 2025 19:14:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1uvhJm-0076wJ-0s for pgsql-hackers@arkaria.postgresql.org; Mon, 08 Sep 2025 19:14:22 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uvhJl-0076wA-Nu for pgsql-hackers@lists.postgresql.org; Mon, 08 Sep 2025 19:14:22 +0000 Received: from mail-ed1-x52a.google.com ([2a00:1450:4864:20::52a]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uvhJk-001CyH-1e for pgsql-hackers@lists.postgresql.org; Mon, 08 Sep 2025 19:14:21 +0000 Received: by mail-ed1-x52a.google.com with SMTP id 4fb4d7f45d1cf-62733e779bbso1443637a12.1 for ; Mon, 08 Sep 2025 12:14:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1757358854; x=1757963654; 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=hsxK7Ejz2QVRqH+gjMzeNROEJjSj9c8UiUwpG1yUfeI=; b=FURozFmBgg0a1nPT8Y+ABnpXa0WjZf4GxnStPOtqYLK3OUbYEALARuOh0FQmvqeQ88 1KIb2S8wsIozT/UOkyo2Mji3hsGVTlapIhfSaAipL+7kMbI7Hg07LOvcK/ufKoMdJVvC rK/7j25k79qj+/KH5YL/aF5TQl7G2lOogoz0tubITjLnFrFtGJjiBsSK1gC5AHSOv7ix keraT+9ZBlN8aGemxXKKThm9d/mysd/Ws278f4docrGrasmbafHLW9+Zhg19PWhVSqUw 6qRmfNKXbvsuT8GchF+7qX+5XvtgdL7oAA6zO9la/uVJDsXcHZgLP+mneBeo3TdMqa8C j6xw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1757358854; x=1757963654; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=hsxK7Ejz2QVRqH+gjMzeNROEJjSj9c8UiUwpG1yUfeI=; b=D18n+lcPwclFPlr+WmW0i9NbDh7ZeRKyM/F7kNxWZyb6pxJ26/Ij3alNPX7xQvWLM1 zFWUZo4WV0tu+X0agHgXV/tCTpqUCQQ/5yyTVK6Wq/dET5TCgv7aR1LSaAS4cAFdza/9 6w2eP7PDic1BM0NZn/lobjv8ZdxZFRJbxwJYSOwqUHUaaV9bWbTt9TcO4cP3GREqhr5h 17KOrR8OawlDJ5Zo7uJfe2QK0Hu5Wu02HkeS3WgbWSeoQW/jlpWLJPjUb5ppPEJrctVq eSmreRbUyqC2vX/vy+FC8GQ/lFNXYDbiVYw3KS0LYrAtjwaQua9PVGIxmDGgpjFZq6Wt wPdg== X-Forwarded-Encrypted: i=1; AJvYcCXpWk2sMTVneOzy7+SqvUztvzQRQ001u/g9yFc9J5ofJuAjiKWc7htUYjiwp4oh94Pmrve3SMgVDLy5S9XP@lists.postgresql.org X-Gm-Message-State: AOJu0Ywd8ytsqNNEPEHKVySS8jtV6MJ6+CW5lr+jRwEb3Fv70mQ9LD/5 CiOHCWfRXPSAASDDZoWAH+IXiIfDQVjL+VufN6aHSG3nMTgJhEN5kYZjt0BAEAndgUTMYIkGKeL 3ARjRI+Pe/Pmr/jouMFItTwzG7oVA82k= X-Gm-Gg: ASbGncvIUHD8kG/ub2YWTOSJE8CtOR2A/y1uKegpDhrjBZuSsMmQvZN5pvGTAYBOlke t4ZE0G9HgX2E8aWF//a3p1lr5+D9DCj/5AHI5J39hrwKAwbSpzsmT3GCWqsU43qtKtxMjhRSnox Mx7+FbJI9c0l3a+hHP2wdKxlC9HIfH5/eR7PAhksun8RxC219TYmSDMsJ10jSn+U+7EY1yRnaRU YOT0TF6QlIUwd14/e+nHKPcrscxYG6BOrnu54KXn5b7LcJFZA== X-Google-Smtp-Source: AGHT+IFerp8scCx1JEw/qEqq0Yv1lecAtMy1Rb6GCLv2ed55rYlNHW6SnI6qPxRTKoLxKbbCPvIa0zfMon3Fx4CHaVI= X-Received: by 2002:a05:6402:278d:b0:626:59d6:36aa with SMTP id 4fb4d7f45d1cf-62659d63c14mr6766366a12.27.1757358853784; Mon, 08 Sep 2025 12:14:13 -0700 (PDT) MIME-Version: 1.0 References: <87DD95AA-274F-4F4F-BAD9-7738E5B1F905@yandex-team.ru> In-Reply-To: From: Melanie Plageman Date: Mon, 8 Sep 2025 15:14:01 -0400 X-Gm-Features: AS18NWD_2-OUsPauXdzX7xqjRGvYG3WIlUjtNxr367MRiXIrx0r5s_qvI_MHmvM Message-ID: Subject: Re: eliminate xl_heap_visible to reduce WAL (and eventually set VM on-access) To: Robert Haas Cc: Andres Freund , Kirill Reshke , Andrey Borodin , 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 Mon, Sep 8, 2025 at 2:54=E2=80=AFPM Robert Haas = wrote: > > Commit fd6ec93bf890314ac694dc8a7f3c45702ecc1bbd and other previous > work has established the principle that when an error is potentially > reachable in case of on-disk corruption, but is not expected to be > reached otherwise, ERRCODE_DATA_CORRUPTED should be used. This allows > log monitoring software to search for evidence of corruption by > filtering on the error code. > > That kibitzing aside, I think this is pretty clearly the right thing to d= o. Thanks for the suggested wording and the pointer to that thread. I noticed that in that thread they decided to use errmsg_internal() instead of errmsg() for a few different reasons -- one of which was that the situation is not supposed to happen/cannot happen -- which I don't really understand. It is a reachable code path. Another is that it is extra work for translators, which I'm also not sure how to apply to my situation. Are the VM corruption cases worth extra work to the translators? I think the most compelling reason is that people will want to search for the error message in English online. So, for that reason, my instinct is to use errmsg_internal() in my case as well. - Melanie