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 1ma0v9-0008Nw-3U for pgsql-hackers@arkaria.postgresql.org; Mon, 11 Oct 2021 19:25:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ma0v8-0001Tp-1D for pgsql-hackers@arkaria.postgresql.org; Mon, 11 Oct 2021 19:25:10 +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 1ma0v7-0001TW-DV for pgsql-hackers@lists.postgresql.org; Mon, 11 Oct 2021 19:25:09 +0000 Received: from mail-pj1-x102e.google.com ([2607:f8b0:4864:20::102e]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ma0v4-0004gc-F1 for pgsql-hackers@postgresql.org; Mon, 11 Oct 2021 19:25:08 +0000 Received: by mail-pj1-x102e.google.com with SMTP id om14so2104700pjb.5 for ; Mon, 11 Oct 2021 12:25:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb.com; s=google; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=KmEqxtXx+nDNbd31/0cGJeY5+lTF131JD7Yoant8eT8=; b=c/I6ONqoiYQdUw88zfOhsn3pg4Zckmn+cM+UvAZm7d5P5Dzzc9tajm6Gt1gzxIsGiZ 4NtqI4KI8VBVhdJRcr9/VUWniilNy1cZuM0LLYzEp6ZZYgpqVIJ/Vj121ikG/SH2P+yA TdBxDovkrt/AJStOXAjbFANRngY9rVl3E3OcDMwj+ksAJ7PoJjeOo2yCHuLAWTD2MGmB yR/FBaGIn+LuDNUs6qeH2CJKbf8yxfqMaqMNqTbd0/Se9HeuJQqBI63vJ4VGF3KKx8hF S9EZfZBS2iIYRP0EnP50X4spbEGZrrdCwHtOTi5u8vwngdvSqj6UOEYKhRavxc8KgSoF /V8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=KmEqxtXx+nDNbd31/0cGJeY5+lTF131JD7Yoant8eT8=; b=Gs5Rud3xnJYoIH6ufuMTpzh8Kb1KZDMN/e5X2UCLZyBcFuEgjiSbyywrtmSWjQ0fgP NTf0BXhaALfljJp1FSZk8HQm66eEWDXv0+MI/mebsUJ+ShLrcgteNi7jqW6QqntpoJXb OqK9Vk+uk3oefc3sbbCgOhtva09BT80vJ8izvGkoz1eey+4TTEKUG9PfJ006UZeQIP4I +BAES+3LBzV1XuhznQ1KztwBZrz5Zi/s9eecJ7tFdi3I/uRq0Pyg5a9blKAC3n3ZGYUD Hy9+Kgvr76LkJ2ZgI3OrnDr1qcDGho3ONJVrhz5rrun71NXGOpM8XzyJZlkJKNA0Fa1/ UAZw== X-Gm-Message-State: AOAM531+MHHraOfQucZRrveqhpGcd4C7HNQ/0r6UmSNmQIP/JEFeIyXk z2S8O4MdmsVhH6aB5Hh4jAbwQ8QHjsFPWGam4iCfKCfXiqpqKoYdRaWeXzsolvgQ6urq26MMutQ D3RVRjbffuyO1ppisfokMCzqCUAbEAE4r1eQ96riSV0t/9wGS6MfFimb9Myc7rMM0LgppqQTHfX feSTIZwZqNkkhnHK0NAl73cjP725WCHds4iI6A X-Google-Smtp-Source: ABdhPJyhXPqIa5Us9LZLd5NZ1ueJp7AxfsLLXWDRpcVQc9IWi+EDUwJoWowXAuqz23SNi4bDrE2bVA== X-Received: by 2002:a17:902:b111:b0:13f:48e1:9bc4 with SMTP id q17-20020a170902b11100b0013f48e19bc4mr3252207plr.53.1633980304999; Mon, 11 Oct 2021 12:25:04 -0700 (PDT) Received: from laptop280-ma-us.hitronhub.home (24-113-193-150.wavecable.com. [24.113.193.150]) by smtp.gmail.com with ESMTPSA id l10sm8389449pff.119.2021.10.11.12.25.04 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Oct 2021 12:25:04 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.7\)) Subject: Re: BUG #17212: pg_amcheck fails on checking temporary relations From: Mark Dilger In-Reply-To: Date: Mon, 11 Oct 2021 12:25:03 -0700 Cc: Robert Haas , Pavel Borisov , Alexander Lakhin , PostgreSQL-development Content-Transfer-Encoding: quoted-printable Message-Id: References: <17212-34dd4a1d6bba98bf@postgresql.org> <28B36E41-1E8F-4DC1-A924-711621BA4972@enterprisedb.com> <386F66EE-DEFD-42EA-9DB2-102BF3414669@enterprisedb.com> <63FF68F5-683D-423E-A667-9C00441101A5@enterprisedb.com> <561CE3DB-5CBC-44BF-9A3E-1D7FAEB123E0@enterprisedb.com> <543F3BF3-EDED-4C52-AF05-623921B6C409@enterprisedb.com> <55A2BFE7-AAAF-4A64-BD3A-5C98EA982267@enterprisedb.com> <07159C9A-40DA-47BF-B2F4-203F5AC00890@enterprisedb.com> <40DB088B-C96F-49B2-BC84-BDC8D35C7E97@enterprisedb.com> <0B7DA7A4-2872-485B-BFDD-BF8E9BB07B26@enterprisedb.com> To: Peter Geoghegan X-Mailer: Apple Mail (2.3608.120.23.2.7) X-CLOUD-SEC-AV-Info: enterprisedb,google_mail,monitor X-CLOUD-SEC-AV-Sent: true X-Gm-Spam: 0 X-Gm-Phishy: 0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On Oct 11, 2021, at 11:53 AM, Peter Geoghegan wrote: >=20 > On Mon, Oct 11, 2021 at 11:40 AM Peter Geoghegan wrote: >> A NOTICE message is supposed to be surfaced to clients (but not = stored >> in the server log), pretty much by definition. >>=20 >> It's not unreasonable to argue that I was mistaken to ever think that >> about this particular message. In fact, I suspect that I was. >=20 >>> Somebody could quite reasonably complain about this on a hot standby = with millions of unlogged relations. Actual ERROR messages might get = lost in all the noise. >=20 > How about this: we can just lower the elevel, from NOTICE to DEBUG1. > We'd then be able to keep the message we have today in > verify_nbtree.c. We'd also add a matching message (and logic) to > verify_heapam.c, keeping them consistent. >=20 > I find your argument about spammy messages convincing. But it's no > less valid for any other user of amcheck. So we really should just fix > that at the amcheck level. That way you can get rid of the call to > pg_is_in_recovery() from the SQL statements in pg_amcheck, while still > fixing everything that needs to be fixed in pg_amcheck. Your proposal sounds good. Let me try it and get back to you shortly. =E2=80=94 Mark Dilger EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company