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 1mXXUA-0002DX-SC for pgsql-hackers@arkaria.postgresql.org; Mon, 04 Oct 2021 23:35: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 1mXXU9-0008FM-Po for pgsql-hackers@arkaria.postgresql.org; Mon, 04 Oct 2021 23:35:05 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mXXU9-0008CN-5z for pgsql-hackers@lists.postgresql.org; Mon, 04 Oct 2021 23:35:05 +0000 Received: from mail-pf1-x42c.google.com ([2607:f8b0:4864:20::42c]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mXXU1-0004IN-UC for pgsql-hackers@postgresql.org; Mon, 04 Oct 2021 23:35:00 +0000 Received: by mail-pf1-x42c.google.com with SMTP id m14so860724pfc.9 for ; Mon, 04 Oct 2021 16:34:57 -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=OOnGDsGeN0r+c5gNeEE6xs7igH2s/h5frPdwhMqvQRU=; b=aCjMRwK7NQMvjUKV0VFVTE2wUGtDLDasgM42Sp+jL7/aJ/j++9/JB4WoDdKnXtw838 Zs10Z8MP6ksi7ZNNa/n4M8n383yFmAIm7V61/dn8ifGXb4yRE/3FgmHnKWX6sT0ON/kz 9Fvxpc/KkE3Y/hh0Dv8jQHgZ8x8NY0qGN97Gs+ZEIcqhAEgdC532ObovUrv4RPSD5UX7 JGNDDaa2L4mkmpeZJGzsxxLnZYZ25R5b1j6W/EqzT995HEhlM5n9dfy2rKUfwx3YMCtD Eu7/GYJjdUlcgwgMhlCNE6brseGrM7cqa3Gi3GE6POHKQroKgqA82yTyQ0w6z90dZUhQ vJ6A== 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=OOnGDsGeN0r+c5gNeEE6xs7igH2s/h5frPdwhMqvQRU=; b=1Uw1PaZsA/Jk3hDDk5Adnol2EayNyX564kNSIB8Rep9VL47cmFVHgW9ioLJqqdaK8m Y8LSDp7ULlYmoeFus2JtFwoRCi5K+BmvxuMSZw8LxPjtoIWxaU3eWapB1mT+JLzR0UrF oxfWOlniHYEZv8gFgBajE+vSaWE7JqU/ZJTHCHohlArLMNShYFgzFpqWTArXLd6Bref6 4LWKfFeH8rHbBwQgnA1fesg9OgzzJSPdFS8GEX9gYFLbNs+9dqz1BVIQv55gvJMR1/0/ NzALrmaHFQEgcf8Jh3EMTr/uahVGfhnGmNTSj0RFzAP1BGu++VZkNFV7KuCl7kmfNQuW gB/w== X-Gm-Message-State: AOAM531EBwR/2ErxvR/57slt3Ts2XpRsD1VtwSH2WGGaE7t0ifPSOwt0 SWDwtPc1JceNnTa775RBwxa1p5IqSDmqKZc1B/7JgGfIfhvjkkLb8FhaetxUd9gDUKWno7lpcp/ 8BH5OZXGiLX81OZXO372ygfOVFMRQ9I6Ik8F+rFrMCyv0DihgfcPh/0hOwHL3IsjM+8LtTH5i/e IyxK59yujfxIhKb138udD7sxuJelo8xrXkPk0r X-Google-Smtp-Source: ABdhPJyQKs9QpvJQ5Q3EHdR29D39nbqudvACCDFT8CSBlMKylkAd/qHBXsYgJvH2m8vS2ttkd83MkA== X-Received: by 2002:a63:f80a:: with SMTP id n10mr12910641pgh.303.1633390495384; Mon, 04 Oct 2021 16:34:55 -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 b130sm12673928pfb.178.2021.10.04.16.34.54 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Oct 2021 16:34:55 -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: <71339EFC-3060-4775-B9C6-D39E02752A2F@enterprisedb.com> Date: Mon, 4 Oct 2021 16:34:53 -0700 Cc: Alexander Lakhin , PostgreSQL-development , Robert Haas Content-Transfer-Encoding: quoted-printable Message-Id: <4AA50C05-F3AE-4441-B9D8-81EC72D6ACA4@enterprisedb.com> References: <17212-34dd4a1d6bba98bf@postgresql.org> <28B36E41-1E8F-4DC1-A924-711621BA4972@enterprisedb.com> <386F66EE-DEFD-42EA-9DB2-102BF3414669@enterprisedb.com> <71339EFC-3060-4775-B9C6-D39E02752A2F@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 4, 2021, at 4:28 PM, Mark Dilger = wrote: >=20 > pg_amcheck -i idx1 -i idx2 -i idx3 I forgot to mention: There's a continuum between `pg_amcheck -a` which = checks everything in all databases of the cluster, and `pg_amcheck -i = just_one_index`. There are any number of combinations of object names, = schema names, database names, and patterns over the same, which select = anything from an empty set to a huge set of things to check. I'm trying = to keep the behavior the same for all of those, and that's why I'm = trying to avoid having `pg_amcheck -a` silently skip indexes that are = unavailable for checking while having `pg_amcheck -i just_one_index` = give a report about the index. I wouldn't know where to draw the line = between reporting the issue and not, and I doubt whatever line I choose = will be intuitive to users. =E2=80=94 Mark Dilger EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company