Re: Query with high planning time at version 11.1 compared versions 10.5 and 11.0
Sanyo Moura <sanyo.moura@tatic.net>
From: Sanyo Moura <sanyo.moura@tatic.net>
To: jeff.janes@gmail.com
Cc: pgsql-performance@lists.postgresql.org
Date: 2018-11-27T20:20:21Z
Lists: pgsql-hackers, pgsql-performance
Hello Jeff, My table (PRICE) is partitioned and contains 730 partitions. Each partition contains 1 day of data. I performed the same test now with restriction (WHERE) in only 1 day (1 partition), but doing SELECT in the virtual table PRICE. I got the same delay in planning. However, when I changed my query to use the partition directly, the plan ran instantaneously. I believe the problem should be in some internal code related to scanning the partitions for the planning. Does it make sense? Thanks, Sanyo Capobiango Em ter, 27 de nov de 2018 às 17:35, Jeff Janes <jeff.janes@gmail.com> escreveu: > > > On Tue, Nov 27, 2018 at 9:17 AM Sanyo Moura <sanyo.moura@tatic.net> wrote: > >> Hi, >> >> I'm running performance tests for my application at version 11.1 and >> encountered >> queries with high planning time compared to the same planning, running at >> versions 10.5 and 11.0. >> > > Can you reproduce the regression if the tables are empty? If so, can you > share the create script that creates the tables? > > Cheers, > > Jeff > >>
Commits
-
Postpone generating tlists and EC members for inheritance dummy children.
- b10e3bba8673 11.2 landed
- 8d8dcead1295 12.0 landed
-
Allow direct lookups of AppendRelInfo by child relid
- 7d872c91a3f9 11.0 cited