Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f6GLB-00064G-Au for pgsql-committers@arkaria.postgresql.org; Wed, 11 Apr 2018 14:03:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f6GL9-0005xC-RR for pgsql-committers@arkaria.postgresql.org; Wed, 11 Apr 2018 14:03:11 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f6GL9-0005x3-J8 for pgsql-committers@lists.postgresql.org; Wed, 11 Apr 2018 14:03:11 +0000 Received: from hook.sigaev.ru ([93.180.27.50]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f6GL2-0000Uq-HA for pgsql-committers@lists.postgresql.org; Wed, 11 Apr 2018 14:03:10 +0000 Received: from xor.sai.msu.ru (unknown [93.174.131.141]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: teodor) by hook.sigaev.ru (Postfix) with ESMTPSA id C3E2AB19192 for ; Wed, 11 Apr 2018 17:03:02 +0300 (MSK) Subject: Re: pgsql: Fix interference between cavering indexes and partitioned tables From: Teodor Sigaev To: pgsql-committers@lists.postgresql.org References: Message-ID: <9ac1a77e-1af1-8da7-7d23-a54d1eaa20d7@sigaev.ru> Date: Wed, 11 Apr 2018 17:03:02 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Firefox/52.0 SeaMonkey/2.49.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Seems, something is wrong here, investigating... Teodor Sigaev wrote: > Fix interference between cavering indexes and partitioned tables > > The bug is caused due to the original IndexStmt that DefineIndex receives > being overwritten when processing the INCLUDE columns. Use separate list of > index params to propagate to child tables. Add tests covering this case. > > Amit Langote and Alexander Korotkov. > > Branch > ------ > master > > Details > ------- > https://git.postgresql.org/pg/commitdiff/5c6110c6a960ad6fe1b0d0fec6ae36ef4eb913f5 > > Modified Files > -------------- > src/backend/commands/indexcmds.c | 27 ++++++++++++++------------- > src/test/regress/expected/indexing.out | 24 ++++++++++++++++++++++++ > src/test/regress/sql/indexing.sql | 19 +++++++++++++++++++ > 3 files changed, 57 insertions(+), 13 deletions(-) > -- Teodor Sigaev E-mail: teodor@sigaev.ru WWW: http://www.sigaev.ru/