Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eRNiS-000752-63 for pgsql-hackers@arkaria.postgresql.org; Tue, 19 Dec 2017 19:38:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eRNiR-00021B-Lw for pgsql-hackers@arkaria.postgresql.org; Tue, 19 Dec 2017 19:38:15 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eRNiR-000210-FK for pgsql-hackers@lists.postgresql.org; Tue, 19 Dec 2017 19:38:15 +0000 Received: from mail-qk0-x231.google.com ([2607:f8b0:400d:c09::231]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1eRNiO-0004pe-EB for pgsql-hackers@postgresql.org; Tue, 19 Dec 2017 19:38:15 +0000 Received: by mail-qk0-x231.google.com with SMTP id d66so23973658qkg.1 for ; Tue, 19 Dec 2017 11:38:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc:message-id:references :to; bh=C40mGqXKls91oB4g9gI/v3e3tb3oFBZTR6kTWJysrKI=; b=kuJA4VHWSHQQPF9YlxS3hwd+zmhflb2vdByVR7hpiLyEW9t2KB0RZXc4Fpqw5mN5GJ azOT8qINK1DI3kCx6yfL5AgP65MyDS9Ac5UTT+EmKaRK2D0f28cIi2caOUWDZVkdHvUZ TPkB6FyH6TfkLL3fPsZ9/cFavcL0S5SmkMTyrYoQIISe1IVLQ1iRVnYQ6B0Qvs3Y14Cf lnGHYjG7HErFdGfBhFqqN7fUv3W+x1G69bpyW25p56N/15pgF16d6KUXJTjqWAhf4RF9 Mhg6PE2lZssvH3eir9NDrT6qM9xJu3yM/Y8eK1JkGZWI9qMio4g/BwMwv1gpqvbRLC/5 BWxA== 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 :message-id:references:to; bh=C40mGqXKls91oB4g9gI/v3e3tb3oFBZTR6kTWJysrKI=; b=dslHIW66RaQaCo/VlbhXUcdgDxXtlzj2FH3QMsffR1bo3rZ9gXZOAujiwtPb/MkwVa 37RjsxvmG4VSuJYuwHO993YTtDb6t/BGa3ljnQ2clMV/gwe7JRryWHPz9Cz5/SPErwEf PxQKURjz2ioP3xeLCP0nvqDOPF2naDjUk7WfrimWGKiOFIz4syZNRhiZ5FfVERvNgjxz 0Y23bBaVmBYuXkAH9ME0BKoiyOHankfp6bv/lu5tUQv7AZuHD/eV91e0LRI4wxS5b68s LwF0EwNPZ7UUXWXLxXqCpgI/jLD+LEjT1dUOK4S6hVfXXXwZuis6j0EhuTJrlN87vWin t8bw== X-Gm-Message-State: AKGB3mLLELPM40sqsJKoej8gxAP81A+XXomxFkk9j6XtB9qFO94i0xKd mRyR+O89JkzVXEULwOYU2oEVVR3s X-Google-Smtp-Source: ACJfBosZ5GWYKe2ckz+I2XHtxpcdR10EZPecxe0pMYwn0j4E4rk8jwOzlxk71iGGaXmuNg39BvY2Pg== X-Received: by 10.55.141.68 with SMTP id p65mr6397124qkd.326.1513712290776; Tue, 19 Dec 2017 11:38:10 -0800 (PST) Received: from [192.168.1.71] (108-210-28-26.lightspeed.irvnca.sbcglobal.net. [108.210.28.26]) by smtp.gmail.com with ESMTPSA id i99sm4901625qkh.31.2017.12.19.11.38.09 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 19 Dec 2017 11:38:10 -0800 (PST) Content-Type: multipart/mixed; boundary="Apple-Mail=_C423C1BB-12A3-44ED-96D8-23B6AF5E377A" Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: WIP: BRIN multi-range indexes From: Mark Dilger In-Reply-To: <0577af5d-28ae-3df5-dffd-fc630d681ec2@2ndquadrant.com> Date: Tue, 19 Dec 2017 11:38:08 -0800 Cc: pgsql-hackers@postgreSQL.org Message-Id: References: <7899d6e3-7f30-6de1-d341-0670fc1aff42@2ndquadrant.com> <0577af5d-28ae-3df5-dffd-fc630d681ec2@2ndquadrant.com> To: Tomas Vondra X-Mailer: Apple Mail (2.3124) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --Apple-Mail=_C423C1BB-12A3-44ED-96D8-23B6AF5E377A Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > On Nov 18, 2017, at 12:45 PM, Tomas Vondra = wrote: >=20 > Hi, >=20 > Apparently there was some minor breakage due to duplicate OIDs, so = here > is the patch series updated to current master. >=20 > regards >=20 > --=20 > Tomas Vondra http://www.2ndQuadrant.com > PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services > = <0001-Pass-all-keys-to-BRIN-consistent-function-at-once.patch.gz><0002-BRI= N-bloom-indexes.patch.gz><0003-BRIN-multi-range-minmax-indexes.patch.gz><0= 004-Move-IS-NOT-NULL-checks-to-bringetbitmap.patch.gz> After applying these four patches to my copy of master, the regression tests fail for F_SATISFIES_HASH_PARTITION 5028 as attached. mark --Apple-Mail=_C423C1BB-12A3-44ED-96D8-23B6AF5E377A Content-Disposition: attachment; filename=regression.diffs Content-Type: application/octet-stream; name="regression.diffs" Content-Transfer-Encoding: 7bit *** /Users/mark/master/postgresql/src/test/regress/expected/oidjoins.out 2017-11-10 06:50:30.000000000 -0800 --- /Users/mark/master/postgresql/src/test/regress/results/oidjoins.out 2017-12-19 11:31:42.000000000 -0800 *************** *** 621,629 **** FROM pg_catalog.pg_opclass fk WHERE opcfamily != 0 AND NOT EXISTS(SELECT 1 FROM pg_catalog.pg_opfamily pk WHERE pk.oid = fk.opcfamily); ! ctid | opcfamily ! ------+----------- ! (0 rows) SELECT ctid, opcintype FROM pg_catalog.pg_opclass fk --- 621,630 ---- FROM pg_catalog.pg_opclass fk WHERE opcfamily != 0 AND NOT EXISTS(SELECT 1 FROM pg_catalog.pg_opfamily pk WHERE pk.oid = fk.opcfamily); ! ctid | opcfamily ! --------+----------- ! (1,57) | 5028 ! (1 row) SELECT ctid, opcintype FROM pg_catalog.pg_opclass fk ====================================================================== *** /Users/mark/master/postgresql/src/test/regress/expected/opr_sanity.out 2017-12-19 11:28:04.000000000 -0800 --- /Users/mark/master/postgresql/src/test/regress/results/opr_sanity.out 2017-12-19 11:31:44.000000000 -0800 *************** *** 1700,1709 **** -- Ask access methods to validate opclasses -- (this replaces a lot of SQL-level checks that used to be done in this file) SELECT oid, opcname FROM pg_opclass WHERE NOT amvalidate(oid); ! oid | opcname ! -----+--------- ! (0 rows) ! -- **************** pg_am **************** -- Look for illegal values in pg_am fields SELECT p1.oid, p1.amname --- 1700,1706 ---- -- Ask access methods to validate opclasses -- (this replaces a lot of SQL-level checks that used to be done in this file) SELECT oid, opcname FROM pg_opclass WHERE NOT amvalidate(oid); ! ERROR: cache lookup failed for operator family 5028 -- **************** pg_am **************** -- Look for illegal values in pg_am fields SELECT p1.oid, p1.amname *************** *** 1901,1909 **** WHERE NOT EXISTS(SELECT 1 FROM pg_amop AS p2 WHERE p2.amopfamily = p1.opcfamily AND binary_coercible(p1.opcintype, p2.amoplefttype)); ! opcname | opcfamily ! ---------+----------- ! (0 rows) -- Check that each operator listed in pg_amop has an associated opclass, -- that is one whose opcintype matches oprleft (possibly by coercion). --- 1898,1907 ---- WHERE NOT EXISTS(SELECT 1 FROM pg_amop AS p2 WHERE p2.amopfamily = p1.opcfamily AND binary_coercible(p1.opcintype, p2.amoplefttype)); ! opcname | opcfamily ! ---------------+----------- ! oid_bloom_ops | 5028 ! (1 row) -- Check that each operator listed in pg_amop has an associated opclass, -- that is one whose opcintype matches oprleft (possibly by coercion). *************** *** 1918,1924 **** AND binary_coercible(p2.opcintype, p1.amoplefttype)); amopfamily | amopstrategy | amopopr ------------+--------------+--------- ! (0 rows) -- Operators that are primary members of opclasses must be immutable (else -- it suggests that the index ordering isn't fixed). Operators that are --- 1916,1923 ---- AND binary_coercible(p2.opcintype, p1.amoplefttype)); amopfamily | amopstrategy | amopopr ------------+--------------+--------- ! 5029 | 1 | 607 ! (1 row) -- Operators that are primary members of opclasses must be immutable (else -- it suggests that the index ordering isn't fixed). Operators that are ====================================================================== --Apple-Mail=_C423C1BB-12A3-44ED-96D8-23B6AF5E377A--