]> granicus.if.org Git - postgresql/commit
Replace simple constant pg_am.amcanreturn with an AM support function.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 18 Dec 2011 20:49:00 +0000 (15:49 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 18 Dec 2011 20:50:37 +0000 (15:50 -0500)
commit3695a555136a6d179cac8ae48d5f90171d5b30e9
treeefb7fb5afb3dea1292c9a50635b53215cc548e64
parent19d223171801dda36f84e24dc89c9fbab1ababad
Replace simple constant pg_am.amcanreturn with an AM support function.

The need for this was debated when we put in the index-only-scan feature,
but at the time we had no near-term expectation of having AMs that could
support such scans for only some indexes; so we kept it simple.  However,
the SP-GiST AM forces the issue, so let's fix it.

This patch only installs the new API; no behavior actually changes.
15 files changed:
doc/src/sgml/catalogs.sgml
doc/src/sgml/indexam.sgml
src/backend/access/index/indexam.c
src/backend/access/nbtree/nbtree.c
src/backend/access/spgist/spgscan.c
src/backend/optimizer/path/indxpath.c
src/backend/optimizer/util/plancat.c
src/include/access/genam.h
src/include/access/nbtree.h
src/include/access/spgist.h
src/include/catalog/catversion.h
src/include/catalog/pg_am.h
src/include/catalog/pg_proc.h
src/include/nodes/relation.h
src/include/utils/rel.h