Dept of second thoughts: let's make sure that get_index_stats_hook is only
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 28 Sep 2008 20:42:12 +0000 (20:42 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 28 Sep 2008 20:42:12 +0000 (20:42 +0000)
commit2dbc0ca937f8ba9c76866a99fd04866232acea95
treed37f6e1b7ad254fcbf16ee4127274192bcc1cf87
parent7b7df9f0b147bfb15599b73ae1a5fcf26739fd93
Dept of second thoughts: let's make sure that get_index_stats_hook is only
applied to expression indexes, not to plain relations.  The original coding
in btcostestimate conflated the two cases, but it's not hard to use
get_relation_stats_hook instead when we're looking to the underlying relation.
src/backend/utils/adt/selfuncs.c