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 1lLrCj-0001yT-O2 for pgsql-hackers@arkaria.postgresql.org; Mon, 15 Mar 2021 17:40:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lLrCi-0002Qj-Lc for pgsql-hackers@arkaria.postgresql.org; Mon, 15 Mar 2021 17:40:32 +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 1lLrCi-0002Qc-An for pgsql-hackers@lists.postgresql.org; Mon, 15 Mar 2021 17:40:32 +0000 Received: from mail-pl1-x62d.google.com ([2607:f8b0:4864:20::62d]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lLrCe-0000CZ-Q9 for pgsql-hackers@lists.postgresql.org; Mon, 15 Mar 2021 17:40:31 +0000 Received: by mail-pl1-x62d.google.com with SMTP id o10so3463699plg.11 for ; Mon, 15 Mar 2021 10:40:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb-com.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=yNwuf9K0n/m7UVZjJ0SsrbiPlh2rAsSFxL31OqGULdI=; b=ZLNXgcNcPsedR4FXLaSRUHMwZKGhNqSiZ0ZjgrJ1sMD0FuO8VWGeTNe2Lrg4KRN5n5 En686J80ssA0xzUgKhlwUbPMPpi217NIVjEV7hAiWceeuqusgp27bIX5kuAsCO0jfQ5i ZyDd/w1hki2M/ReLTkBHk+SHLrQUNy8WxOCzahn9BSmbvGe7qrQfKJDR/yIJpybJNNzH y3nBqD2I2G0fCkv0dOuO/7k1JdSZPvf/gVk7p2wsamwXuEpFsJeFyKtzR1Aah5eesUOf +a+drCeij0DGFXuZX6GPmZ647qGHz/oeVkcdPtP9b1qFIfWSs7MZt6Dds3tPNJeWkqQJ BC4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=yNwuf9K0n/m7UVZjJ0SsrbiPlh2rAsSFxL31OqGULdI=; b=ff8ZT27n12d6/0mpSEpHI7UCMP8BEyxV1fHEXwaKk1+8fS/OWXgUo1FRccDhpZQimz NMTVknnlSdPoir5A28MuDgtmQCG1Wt7Nu8mZGStcB0SGmtpNhp/8xT8YUYFxmLfkFOO7 YjOvL6R0eOTmKKmT2uCFpWbyEgRQTxpuy9rAFtLFCByR/ymeUTc5tPm93b9rdUnP2aGW 65pflwRqEZNsY7gO0hKrAElb8vvvO3n5diMOl0FAAqkwvRqosCv6RrSl+3D8T2EIT185 JcamZBbG64v3ALXY7V5EohNdXWlu4Iw2vDzVgfLVBeRoRfymmeet8mvTqVYkAaTwNfb+ GmlA== X-Gm-Message-State: AOAM533VI4uBqd6OATVmxg2rqM8VEszsM/jpqaitdji8+qD6Tl2+5wey 7c8CIlyWCh3QXt3NvnaEcxaD/mjRFm+g7sI3rT3G9aP04B5NavkxtsNlBSgznhefZgbmOfcbkVI ZgyCJRoK1ZUR3iEuwLjyNSckK3BFPtZT3jwOtCEzqDPDfsMI1pPjFtI0MpJAfVIAv4Bj5RfhKzY lyDkCu1MjJbj4XYt+ecr3QTl1agBDYcWrITRo+ESYoyPJDeaozgU0z5Fmj26c9+zw= X-Google-Smtp-Source: ABdhPJwGt3Faz34wD6rhWTvN09rm8MGi/jcMhoPxnLqXxcQoPP+KoIZOHYUh0NJQAZMVN1I5d7rNkg== X-Received: by 2002:a17:90b:2358:: with SMTP id ms24mr217653pjb.132.1615830026671; Mon, 15 Mar 2021 10:40:26 -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 n184sm14251528pfd.205.2021.03.15.10.40.25 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 15 Mar 2021 10:40:26 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.1\)) Subject: Re: REINDEX backend filtering From: Mark Dilger In-Reply-To: <20210315173401.yqgxgmbspiyfrbks@nol> Date: Mon, 15 Mar 2021 10:40:25 -0700 Cc: Michael Paquier , Magnus Hagander , PostgreSQL Hackers Content-Transfer-Encoding: quoted-printable Message-Id: <9AC710C9-7006-43EC-93F6-7A7ABFE09E80@enterprisedb.com> References: <20210303055659.wowfwt2nyxuynzqg@nol> <20210314081007.kr3q5qusyhl2i4p4@nol> <20210314145737.enqhi2jxszws3ywi@nol> <20210315003551.enuwfghdh7qhfnb2@nol> <20210315033320.4273frstqn7w6kh7@nol> <0E0B73C0-EBC0-490A-9347-66A66E3338AE@enterprisedb.com> <20210315165213.tgxwtjtnlnr2q3f5@nol> <074D5DFD-4D47-4A84-93A5-C2DC8935E6E9@enterprisedb.com> <20210315173401.yqgxgmbspiyfrbks@nol> To: Julien Rouhaud X-Mailer: Apple Mail (2.3608.120.23.2.1) 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 Mar 15, 2021, at 10:34 AM, Julien Rouhaud = wrote: >=20 > On Mon, Mar 15, 2021 at 10:13:55AM -0700, Mark Dilger wrote: >>=20 >>=20 >>> On Mar 15, 2021, at 9:52 AM, Julien Rouhaud = wrote: >>>=20 >>> But there are also the tests in collate.icu.utf8.out which will fake = outdated >>> collations (that's the original tests for the collation tracking = patches) and >>> then check that outdated indexes are reindexed with both REINDEX and = REINDEX >>> (OUDATED). >>>=20 >>> So I think that all cases are covered. Do you want to have more = test cases? >>=20 >> I thought that just checked cases where a bogus 'not a version' was = put into pg_catalog.pg_depend. I'm talking about having a collation = provider who returns a different version string and has genuinely = different collation rules between versions, thereby breaking the index = until it is updated. Is that being tested? >=20 > No, we're only checking that the infrastructure works as intended. >=20 > Are you saying that you want to implement a simplistic collation = provider with > "tunable" ordering, so that you can actually check that an ordering = change will > be detected as a corrupted index, as in you'll get some error or = incorrect > results? I'm saying that your patch seems to call down to = get_collation_actual_version() via get_collation_version_for_oid() from = your new function do_check_index_has_outdated_collation(), but I'm not = seeing how that gets exercised. =20 =E2=80=94 Mark Dilger EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company