]> granicus.if.org Git - postgresql/commit
Avoid running build_index_pathkeys() in situations where there cannot
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 15 Apr 2007 20:09:28 +0000 (20:09 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 15 Apr 2007 20:09:28 +0000 (20:09 +0000)
commitfa92d21a486de868b21bbc03944649af3e1ac90f
tree599daee8e00be38b5dbddf2b27a5dbe72bd79ef5
parentf97d4a267a8d8b680960dfc32bd7111eb7ed8dca
Avoid running build_index_pathkeys() in situations where there cannot
possibly be any useful pathkeys --- to wit, queries with neither any
join clauses nor any ORDER BY request.  It's nearly free to check for
this case and it saves a useful fraction of the planning time for simple
queries.
src/backend/optimizer/path/indxpath.c
src/backend/optimizer/path/pathkeys.c
src/include/optimizer/paths.h