pg.ddx.io pgsql-committers@postgresql.org mailing list archive
help / color / mirror / Atom feedpgsql: Fix interference between cavering indexes and partitioned tables
6+ messages / 3 participants
[nested] [flat]
* pgsql: Fix interference between cavering indexes and partitioned tables
@ 2018-04-11 13:44 Teodor Sigaev <teodor@sigaev.ru>
2018-04-11 14:03 ` Re: pgsql: Fix interference between cavering indexes and partitioned tables Teodor Sigaev <teodor@sigaev.ru>
0 siblings, 1 reply; 6+ messages in thread
From: Teodor Sigaev @ 2018-04-11 13:44 UTC (permalink / raw)
To: pgsql-committers@lists.postgresql.org
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(-)
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: pgsql: Fix interference between cavering indexes and partitioned tables
2018-04-11 13:44 pgsql: Fix interference between cavering indexes and partitioned tables Teodor Sigaev <teodor@sigaev.ru>
@ 2018-04-11 14:03 ` Teodor Sigaev <teodor@sigaev.ru>
2018-04-11 16:04 ` Re: pgsql: Fix interference between cavering indexes and partitioned tables Teodor Sigaev <teodor@sigaev.ru>
0 siblings, 1 reply; 6+ messages in thread
From: Teodor Sigaev @ 2018-04-11 14:03 UTC (permalink / raw)
To: pgsql-committers@lists.postgresql.org
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/
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: pgsql: Fix interference between cavering indexes and partitioned tables
2018-04-11 13:44 pgsql: Fix interference between cavering indexes and partitioned tables Teodor Sigaev <teodor@sigaev.ru>
2018-04-11 14:03 ` Re: pgsql: Fix interference between cavering indexes and partitioned tables Teodor Sigaev <teodor@sigaev.ru>
@ 2018-04-11 16:04 ` Teodor Sigaev <teodor@sigaev.ru>
2018-04-11 16:09 ` Re: pgsql: Fix interference between cavering indexes and partitioned tables Andres Freund <andres@anarazel.de>
0 siblings, 1 reply; 6+ messages in thread
From: Teodor Sigaev @ 2018-04-11 16:04 UTC (permalink / raw)
To: pgsql-committers@lists.postgresql.org
> Seems, something is wrong here, investigating...
pg_upgrade test fails only with -O2 on my box. Assert, debug could be any.
--
Teodor Sigaev E-mail: teodor@sigaev.ru
WWW: http://www.sigaev.ru/
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: pgsql: Fix interference between cavering indexes and partitioned tables
2018-04-11 13:44 pgsql: Fix interference between cavering indexes and partitioned tables Teodor Sigaev <teodor@sigaev.ru>
2018-04-11 14:03 ` Re: pgsql: Fix interference between cavering indexes and partitioned tables Teodor Sigaev <teodor@sigaev.ru>
2018-04-11 16:04 ` Re: pgsql: Fix interference between cavering indexes and partitioned tables Teodor Sigaev <teodor@sigaev.ru>
@ 2018-04-11 16:09 ` Andres Freund <andres@anarazel.de>
2018-04-11 16:17 ` Re: pgsql: Fix interference between cavering indexes and partitioned tables Teodor Sigaev <teodor@sigaev.ru>
0 siblings, 1 reply; 6+ messages in thread
From: Andres Freund @ 2018-04-11 16:09 UTC (permalink / raw)
To: Teodor Sigaev <teodor@sigaev.ru>; +Cc: pgsql-committers@lists.postgresql.org
On 2018-04-11 19:04:53 +0300, Teodor Sigaev wrote:
>
> > Seems, something is wrong here, investigating...
>
> pg_upgrade test fails only with -O2 on my box. Assert, debug could be any.
Several of the failing animals aren't using optimization, so it can't be
just that. I think it might make sense considering reverting and trying
to figure this out, without turning half the buildfarm red?
Greetings,
Andres Freund
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: pgsql: Fix interference between cavering indexes and partitioned tables
2018-04-11 13:44 pgsql: Fix interference between cavering indexes and partitioned tables Teodor Sigaev <teodor@sigaev.ru>
2018-04-11 14:03 ` Re: pgsql: Fix interference between cavering indexes and partitioned tables Teodor Sigaev <teodor@sigaev.ru>
2018-04-11 16:04 ` Re: pgsql: Fix interference between cavering indexes and partitioned tables Teodor Sigaev <teodor@sigaev.ru>
2018-04-11 16:09 ` Re: pgsql: Fix interference between cavering indexes and partitioned tables Andres Freund <andres@anarazel.de>
@ 2018-04-11 16:17 ` Teodor Sigaev <teodor@sigaev.ru>
2018-04-11 17:35 ` Re: pgsql: Fix interference between cavering indexes and partitioned tables Peter Geoghegan <pg@bowt.ie>
0 siblings, 1 reply; 6+ messages in thread
From: Teodor Sigaev @ 2018-04-11 16:17 UTC (permalink / raw)
To: Andres Freund <andres@anarazel.de>; +Cc: pgsql-committers@lists.postgresql.org
Andres Freund wrote:
> On 2018-04-11 19:04:53 +0300, Teodor Sigaev wrote:
>>
>>> Seems, something is wrong here, investigating...
>>
>> pg_upgrade test fails only with -O2 on my box. Assert, debug could be any.
>
> Several of the failing animals aren't using optimization, so it can't be
> just that. I think it might make sense considering reverting and trying
Yep, but on my notebook - only with -02
> to figure this out, without turning half the buildfarm red?Agree, five minutes
--
Teodor Sigaev E-mail: teodor@sigaev.ru
WWW: http://www.sigaev.ru/
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: pgsql: Fix interference between cavering indexes and partitioned tables
2018-04-11 13:44 pgsql: Fix interference between cavering indexes and partitioned tables Teodor Sigaev <teodor@sigaev.ru>
2018-04-11 14:03 ` Re: pgsql: Fix interference between cavering indexes and partitioned tables Teodor Sigaev <teodor@sigaev.ru>
2018-04-11 16:04 ` Re: pgsql: Fix interference between cavering indexes and partitioned tables Teodor Sigaev <teodor@sigaev.ru>
2018-04-11 16:09 ` Re: pgsql: Fix interference between cavering indexes and partitioned tables Andres Freund <andres@anarazel.de>
2018-04-11 16:17 ` Re: pgsql: Fix interference between cavering indexes and partitioned tables Teodor Sigaev <teodor@sigaev.ru>
@ 2018-04-11 17:35 ` Peter Geoghegan <pg@bowt.ie>
0 siblings, 0 replies; 6+ messages in thread
From: Peter Geoghegan @ 2018-04-11 17:35 UTC (permalink / raw)
To: Teodor Sigaev <teodor@sigaev.ru>; +Cc: Andres Freund <andres@anarazel.de>; pgsql-committers <pgsql-committers@lists.postgresql.org>
On Wed, Apr 11, 2018 at 9:17 AM, Teodor Sigaev <teodor@sigaev.ru> wrote:
>> Several of the failing animals aren't using optimization, so it can't be
>> just that. I think it might make sense considering reverting and trying
>
> Yep, but on my notebook - only with -02
I suggest using Valgrind to make sure that a patch + tests don't have
a problem like this before pushing. That's not perfect, of course, but
it's an easy way to save yourself some trouble.
--
Peter Geoghegan
^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2018-04-11 17:35 UTC | newest]
Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-04-11 13:44 pgsql: Fix interference between cavering indexes and partitioned tables Teodor Sigaev <teodor@sigaev.ru>
2018-04-11 14:03 ` Teodor Sigaev <teodor@sigaev.ru>
2018-04-11 16:04 ` Teodor Sigaev <teodor@sigaev.ru>
2018-04-11 16:09 ` Andres Freund <andres@anarazel.de>
2018-04-11 16:17 ` Teodor Sigaev <teodor@sigaev.ru>
2018-04-11 17:35 ` Peter Geoghegan <pg@bowt.ie>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox