| От | Tom Lane |
|---|---|
| Тема | Re: Execution Plan Cost |
| Дата | |
| Msg-id | 4197.1210267176@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Execution Plan Cost (Luis Vargas <Luis.Vargas@cl.cam.ac.uk>) |
| Список | pgsql-hackers |
Luis Vargas <Luis.Vargas@cl.cam.ac.uk> writes:
> At the backend, I'm measuring the cost of executing (via SPI_execute_plan)
> the read-only plan of a simple query with no reference to tables. E.g.
> simpleplan(int) AS SELECT $1 > 5
> Executing this plan via SPI_execute takes around 70% more time than
> directly executing the relevant operator function (int4gt) and using
> DatumGetBool.
Only that much? I'd have expected it to be several hundred times
slower, considering that int4gt is an utterly trivial function and
executor startup/shutdown is a fairly heavyweight operation.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера