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 1of83h-0004PY-IR for pgsql-hackers@arkaria.postgresql.org; Sun, 02 Oct 2022 23:07:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1of83g-0001Ds-0a for pgsql-hackers@arkaria.postgresql.org; Sun, 02 Oct 2022 23:07:40 +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 1of83f-0001Dj-NN for pgsql-hackers@lists.postgresql.org; Sun, 02 Oct 2022 23:07:39 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1of83Z-00021b-3r for pgsql-hackers@postgresql.org; Sun, 02 Oct 2022 23:07:39 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 292N7Oc11311203; Sun, 2 Oct 2022 19:07:25 -0400 From: Tom Lane To: David Rowley cc: Arne Roland , Amit Langote , pgsql-hackers , Zhihong Yu , Alvaro Herrera , Julien Rouhaud Subject: Re: missing indexes in indexlist with partitioned tables In-reply-to: References: <20220118065750.v5zigpuisljc6jmk@jrouhaud> <202201181324.idvthmrhbtf5@alvherre.pgsql> <24e924b48a8a47649d6a92cb1c95eb4b@index.de> Comments: In-reply-to David Rowley message dated "Mon, 03 Oct 2022 11:51:45 +1300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1311201.1664752044.1@sss.pgh.pa.us> Date: Sun, 02 Oct 2022 19:07:24 -0400 Message-ID: <1311202.1664752044@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk David Rowley writes: > * I can't quite figure out why you're doing "DROP TABLE a CASCADE;" in > inherits.sql. You've not changed anything else in that file. Did you > mean to do this in join.sql? Doing that would be a bad idea no matter where it's done. IIRC, those tables are intentionally set up to stress later dump/restore tests (with issues like inheritance children having column order different from their parents). regards, tom lane