Re: [HACKERS] WIP Patch: Precalculate stable functions,infrastructure v1

Поиск
Список
Период
Сортировка
От Marina Polyakova
Тема Re: [HACKERS] WIP Patch: Precalculate stable functions,infrastructure v1
Дата
Msg-id 2767712a9f267e8f83bb5248e5a7c4ad@postgrespro.ru
обсуждение исходный текст
Ответ на Re: [HACKERS] WIP Patch: Precalculate stable functions,infrastructure v1  (Marina Polyakova <m.polyakova@postgrespro.ru>)
Ответы Re: [HACKERS] WIP Patch: Precalculate stable functions,infrastructure v1  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
Hello, hackers!

Here I have made the 5th version of the patches. I have added the 
precalculation of all primitive nodes that don't return set, are not 
volatile themselves and their arguments are constant or precalculated 
expressions too. There're regression tests for all of them and little 
notes in the documentation. Like for the previous patches it seems that 
there is no obvious performance degradation too on regular queries 
(according to pgbench).

About functionality: precalculation doesn't work for parameters nodes in 
plan. So it doesn't work, for example, in the generic plans of prepared 
statements. There'll be an another patch for them.

About code:
* Infrastructure patch changes: no enum and union for all 25 
precalculated node types. Instead of them there is a new CacheableExpr 
node which only contains a NodeTag.
* There're some changes for CoerceToDomain, which constraints now are 
checked not only in the executor but in the planner too.

Patches are attached. Any suggestions are welcome!

-- 
Marina Polyakova
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company
-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Вложения

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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: [HACKERS] [PATCH] Make sure all statistics is sent after a fewDML are performed
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] [PATCH] Make sure all statistics is sent after a few DML are performed