Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Hackers > Re: Execution P...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 2 Topic 9328 of 10114
Post > Topic >>

Re: Execution Plan Cost

by tgl@[EMAIL PROTECTED] (Tom Lane) May 8, 2008 at 01:19 PM

Luis Vargas <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 
> 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

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
 




 2 Posts in Topic:
Execution Plan Cost
Luis.Vargas@[EMAIL PROTEC  2008-05-08 18:11:58 
Re: Execution Plan Cost
tgl@[EMAIL PROTECTED] (T  2008-05-08 13:19:36 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Sep 7 1:53:49 CDT 2008.