plan time of MASSIVE partitioning ...

Поиск
Список
Период
Сортировка
От PostgreSQL - Hans-Jürgen Schönig
Тема plan time of MASSIVE partitioning ...
Дата
Msg-id 6C19B4AB-D7FE-4673-9885-4708F118FD61@cybertec.at
обсуждение исходный текст
Ответы Re: plan time of MASSIVE partitioning ...  (Stephen Frost <sfrost@snowman.net>)
Re: plan time of MASSIVE partitioning ...  (Robert Haas <robertmhaas@gmail.com>)
Re: plan time of MASSIVE partitioning ...  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
hello everybody,

we came across an issue which turned out to be more serious than previously expected.
imagine a system with, say, 1000 partitions (heavily indexed) or so. the time taken by the planner is already fairly
heavyin this case. 

i tried this one with 5000 unindexed tables (just one col):

test=# \timing
Timing is on.
test=# prepare x(int4) AS select * from t_data order by id desc;
PREPARE
Time: 361.552 ms

you will see similar or higher runtimes in case of 500 partitions and a handful of indexes.

does anybody see a potential way to do a shortcut through the planner?
a prepared query is no solution here as constraint exclusion would be dead in this case (making the entire thing an
evenbigger drama). 

did anybody think of a solution to this problem.
or more precisely: can there be a solution to this problem?
many thanks,
    hans

--
Cybertec Schönig & Schönig GmbH
Gröhrmühlgasse 26
A-2700 Wiener Neustadt, Austria
Web: http://www.postgresql-support.de



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Re: Synchronous replication - patch status inquiry
Следующее
От: Boszormenyi Zoltan
Дата:
Сообщение: Re: Synchronization levels in SR