=?UTF-8?Q?Piotr_Gasid=C5=82o?= <quaker(at)barbara(dot)eu(dot)org> writes:> Ok. Is there any way to tune postgresql, to shorten planning time for> such queries?
You've got a ridiculously large number of partitions. Use fewer.
regards, tom lane