Set procost to 10 for each of the pg_foo_is_visible() functions.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: a80889a7359e720107b881bcd3e8fd47f3874e36
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2012-10-10T16:19:25Z
Releases: 9.3.0
Set procost to 10 for each of the pg_foo_is_visible() functions.

The idea here is to make sure the planner will evaluate these functions
last not first among the filter conditions in psql pattern search and
tab-completion queries.  We've discussed this several times, and there
was consensus to do it back in August, but we didn't want to do it just
before a release.  Now seems like a safer time.

No catversion bump, since this catalog change doesn't create a backend
incompatibility nor any regression test result changes.

Files

PathChange+/−
src/include/catalog/pg_proc.h modified +12 −12