Measuring execution time - Mailing list pgsql-hackers

From vamsi krishna
Subject Measuring execution time
Date
Msg-id AANLkTimkyEDXRv+i_KheownR1kr+PkLa=AebwGR66+Rc@mail.gmail.com
Whole thread Raw
Responses Re: [BUGS] Measuring execution time  (Robert Haas <robertmhaas@gmail.com>)
Re: Measuring execution time  (Mark Kirkwood <mark.kirkwood@catalyst.net.nz>)
List pgsql-hackers
Hello all
 
I want to measure the execution time spent running an SQL select query after the plan generation.
 
So precisely I want to put my start timer before createQueryDesc() or ExecutorStart() and end timer after freeQueryDesc() or ExecutorEnd().
 
Right now I did so in "spi.c", "explain.c", "pquery.c" but they are not the default execution cases. Can someone tell me which file holds the default call to ExecutorStart(), because I also want to see the select query result unlike in the case of "explain" ?
 
Thanks
Vamsi

pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Explicit psqlrc
Next
From: Yeb Havinga
Date:
Subject: Re: Universal B-tree