Re: [HACKERS] Execution Plan Cost

2008-05-14 Thread Luis Vargas
The read-only plan of the query (SELECT $1 > 5) is prepared, so there is not parsing or planning. Any insight into what operations account for the executor startup/shutdown time? Thanks a lot, Luis Vargas On May 8 2008, Tom Lane wrote: Luis Vargas <[EMAIL PROTECTED]> writes: At the backe

Re: [HACKERS] Execution Plan Cost

2008-05-08 Thread Tom Lane
Luis Vargas <[EMAIL PROTECTED]> 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

[HACKERS] Execution Plan Cost

2008-05-08 Thread Luis Vargas
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 functi