Rename files and headers related to index AM
authorMichael Paquier <[email protected]>
Wed, 25 Dec 2019 01:23:39 +0000 (10:23 +0900)
committerMichael Paquier <[email protected]>
Wed, 25 Dec 2019 01:23:39 +0000 (10:23 +0900)
The following renaming is done so as source files related to index
access methods are more consistent with table access methods (the
original names used for index AMs ware too generic, and could be
confused as including features related to table AMs):
- amapi.h -> indexam.h.
- amapi.c -> indexamapi.c.  Here we have an equivalent with
backend/access/table/tableamapi.c.
- amvalidate.c -> indexamvalidate.c.
- amvalidate.h -> indexamvalidate.h.
- genam.c -> indexgenam.c.
- genam.h -> indexgenam.h.

This has been discussed during the development of v12 when table AM was
worked on, but the renaming never happened.

Author: Michael Paquier
Reviewed-by: Fabien Coelho, Julien Rouhaud
Discussion: https://postgr.es/m/20191223053434[email protected]

117 files changed:
contrib/bloom/blinsert.c
contrib/bloom/bloom.h
contrib/bloom/blutils.c
contrib/bloom/blvacuum.c
contrib/bloom/blvalidate.c
contrib/sepgsql/database.c
contrib/sepgsql/label.c
contrib/sepgsql/proc.c
contrib/sepgsql/relation.c
contrib/sepgsql/schema.c
src/backend/access/brin/brin_inclusion.c
src/backend/access/brin/brin_minmax.c
src/backend/access/brin/brin_validate.c
src/backend/access/common/detoast.c
src/backend/access/common/toast_internals.c
src/backend/access/gin/ginvalidate.c
src/backend/access/gist/gistbuild.c
src/backend/access/gist/gistbuildbuffers.c
src/backend/access/gist/gistget.c
src/backend/access/gist/gistvacuum.c
src/backend/access/gist/gistvalidate.c
src/backend/access/hash/hashvalidate.c
src/backend/access/heap/heapam.c
src/backend/access/heap/heapam_handler.c
src/backend/access/heap/vacuumlazy.c
src/backend/access/index/Makefile
src/backend/access/index/indexam.c
src/backend/access/index/indexamapi.c [moved from src/backend/access/index/amapi.c with 97% similarity]
src/backend/access/index/indexamvalidate.c [moved from src/backend/access/index/amvalidate.c with 98% similarity]
src/backend/access/index/indexgenam.c [moved from src/backend/access/index/genam.c with 99% similarity]
src/backend/access/nbtree/nbtvalidate.c
src/backend/access/spgist/spgdoinsert.c
src/backend/access/spgist/spginsert.c
src/backend/access/spgist/spgscan.c
src/backend/access/spgist/spgutils.c
src/backend/access/spgist/spgvacuum.c
src/backend/access/spgist/spgvalidate.c
src/backend/bootstrap/bootstrap.c
src/backend/catalog/aclchk.c
src/backend/catalog/catalog.c
src/backend/catalog/dependency.c
src/backend/catalog/heap.c
src/backend/catalog/index.c
src/backend/catalog/indexing.c
src/backend/catalog/objectaddress.c
src/backend/catalog/partition.c
src/backend/catalog/pg_collation.c
src/backend/catalog/pg_constraint.c
src/backend/catalog/pg_db_role_setting.c
src/backend/catalog/pg_depend.c
src/backend/catalog/pg_enum.c
src/backend/catalog/pg_inherits.c
src/backend/catalog/pg_largeobject.c
src/backend/catalog/pg_publication.c
src/backend/catalog/pg_range.c
src/backend/catalog/pg_shdepend.c
src/backend/catalog/pg_subscription.c
src/backend/commands/analyze.c
src/backend/commands/cluster.c
src/backend/commands/comment.c
src/backend/commands/constraint.c
src/backend/commands/dbcommands.c
src/backend/commands/extension.c
src/backend/commands/functioncmds.c
src/backend/commands/indexcmds.c
src/backend/commands/matview.c
src/backend/commands/opclasscmds.c
src/backend/commands/policy.c
src/backend/commands/proclang.c
src/backend/commands/publicationcmds.c
src/backend/commands/seclabel.c
src/backend/commands/tablecmds.c
src/backend/commands/trigger.c
src/backend/commands/tsearchcmds.c
src/backend/commands/typecmds.c
src/backend/commands/user.c
src/backend/commands/vacuum.c
src/backend/executor/execAmi.c
src/backend/executor/execCurrent.c
src/backend/executor/execIndexing.c
src/backend/executor/execReplication.c
src/backend/executor/nodeBitmapIndexscan.c
src/backend/executor/nodeIndexonlyscan.c
src/backend/optimizer/path/costsize.c
src/backend/optimizer/plan/planner.c
src/backend/optimizer/util/plancat.c
src/backend/parser/parse_utilcmd.c
src/backend/partitioning/partdesc.c
src/backend/replication/logical/origin.c
src/backend/rewrite/rewriteRemove.c
src/backend/statistics/extended_stats.c
src/backend/storage/large_object/inv_api.c
src/backend/utils/adt/amutils.c
src/backend/utils/adt/enum.c
src/backend/utils/adt/ruleutils.c
src/backend/utils/cache/catcache.c
src/backend/utils/cache/evtcache.c
src/backend/utils/cache/relfilenodemap.c
src/backend/utils/cache/ts_cache.c
src/backend/utils/init/postinit.c
src/include/access/brin_internal.h
src/include/access/gin_private.h
src/include/access/gist_private.h
src/include/access/gistscan.h
src/include/access/hash.h
src/include/access/indexam.h [moved from src/include/access/amapi.h with 97% similarity]
src/include/access/indexamvalidate.h [moved from src/include/access/amvalidate.h with 84% similarity]
src/include/access/indexgenam.h [moved from src/include/access/genam.h with 97% similarity]
src/include/access/nbtree.h
src/include/access/reloptions.h
src/include/access/spgist.h
src/include/executor/nodeIndexscan.h
src/include/nodes/nodes.h
src/include/nodes/pathnodes.h
src/include/utils/index_selfuncs.h
src/include/utils/rel.h
src/test/modules/dummy_index_am/dummy_index_am.c

index adcbd168fb6959f3f4c696ecd899bf4abb1b9d68..5df616e96ee0e950d163504463190e2e03a1b0b0 100644 (file)
@@ -12,8 +12,8 @@
  */
 #include "postgres.h"
 
-#include "access/genam.h"
 #include "access/generic_xlog.h"
+#include "access/indexgenam.h"
 #include "access/tableam.h"
 #include "bloom.h"
 #include "catalog/index.h"
index a7179981f47490969bd9b878c7c08d7faf3a680d..5a6e5e48a1a244f57ebbcb8dfe7bf9e6bc58f735 100644 (file)
@@ -13,8 +13,8 @@
 #ifndef _BLOOM_H_
 #define _BLOOM_H_
 
-#include "access/amapi.h"
 #include "access/generic_xlog.h"
+#include "access/indexam.h"
 #include "access/itup.h"
 #include "access/xlog.h"
 #include "fmgr.h"
index e2063bac629c852532ff572c9c441031d0a4ded6..44b7e74c5cdb26591cafeb6b9884c309bc16f13e 100644 (file)
@@ -13,8 +13,8 @@
  */
 #include "postgres.h"
 
-#include "access/amapi.h"
 #include "access/generic_xlog.h"
+#include "access/indexam.h"
 #include "access/reloptions.h"
 #include "bloom.h"
 #include "catalog/index.h"
index 0c33d1e1951b92489aee2307965130fb9204c8ce..f0a5d8cc5e984db9019fb018f10edbfcf6051466 100644 (file)
@@ -12,7 +12,7 @@
  */
 #include "postgres.h"
 
-#include "access/genam.h"
+#include "access/indexgenam.h"
 #include "bloom.h"
 #include "catalog/storage.h"
 #include "commands/vacuum.h"
index b3dfe030226359601e8744fe5268419c36665f0a..ca2cb095f01350e9df6e34eb028fb3c2f578f329 100644 (file)
@@ -12,8 +12,8 @@
  */
 #include "postgres.h"
 
-#include "access/amvalidate.h"
 #include "access/htup_details.h"
+#include "access/indexamvalidate.h"
 #include "bloom.h"
 #include "catalog/pg_amop.h"
 #include "catalog/pg_amproc.h"
index 5850e076eb987ac6a2553518f9bc8433797c555b..1fe30e34e4e74ac4922c9f4d6780adceacf4e3ad 100644 (file)
@@ -10,8 +10,8 @@
  */
 #include "postgres.h"
 
-#include "access/genam.h"
 #include "access/htup_details.h"
+#include "access/indexgenam.h"
 #include "access/sysattr.h"
 #include "access/table.h"
 #include "catalog/dependency.h"
index d8a1d129d29b447dab72a052c2c46dbff63564db..083897aa3911fe9bba6664452b593223ba151ceb 100644 (file)
@@ -12,8 +12,8 @@
 
 #include <selinux/label.h>
 
-#include "access/genam.h"
 #include "access/htup_details.h"
+#include "access/indexgenam.h"
 #include "access/table.h"
 #include "access/xact.h"
 #include "catalog/catalog.h"
index 345a4c253d81763756dbfeb8d1f90c149b4ec2d3..47382994e2ac4770f3bbc79c1df04a6e9a40c128 100644 (file)
@@ -10,8 +10,8 @@
  */
 #include "postgres.h"
 
-#include "access/genam.h"
 #include "access/htup_details.h"
+#include "access/indexgenam.h"
 #include "access/sysattr.h"
 #include "access/table.h"
 #include "catalog/dependency.h"
index fa34221509a615e9f55d79a4b8d9605e5423b73c..4b1f772fc2b8d0448ebd96a11133e140d28cfe77 100644 (file)
@@ -10,8 +10,8 @@
  */
 #include "postgres.h"
 
-#include "access/genam.h"
 #include "access/htup_details.h"
+#include "access/indexgenam.h"
 #include "access/sysattr.h"
 #include "access/table.h"
 #include "catalog/dependency.h"
index 00c227d86c143c48e96934b6e4c64411b014d468..42001bf133c6c7458d79bf703ea873967a2cef72 100644 (file)
@@ -10,8 +10,8 @@
  */
 #include "postgres.h"
 
-#include "access/genam.h"
 #include "access/htup_details.h"
+#include "access/indexgenam.h"
 #include "access/sysattr.h"
 #include "access/table.h"
 #include "catalog/dependency.h"
index 86788024ef658c5ee0948dae73c385d99e2fbfb2..152b8b70dab56c4a1656a909ae0b8a2b586250b9 100644 (file)
@@ -26,7 +26,7 @@
 
 #include "access/brin_internal.h"
 #include "access/brin_tuple.h"
-#include "access/genam.h"
+#include "access/indexgenam.h"
 #include "access/skey.h"
 #include "catalog/pg_amop.h"
 #include "catalog/pg_type.h"
index 655c0b54b53299b04573b8169e9c644438aa3d4a..d0d4389ea3c9a58502cb5acc7b9ed4042fcd930d 100644 (file)
@@ -12,7 +12,7 @@
 
 #include "access/brin_internal.h"
 #include "access/brin_tuple.h"
-#include "access/genam.h"
+#include "access/indexgenam.h"
 #include "access/stratnum.h"
 #include "catalog/pg_amop.h"
 #include "catalog/pg_type.h"
index 02337a767cef4b68f61c097fa2e04080004f5e74..9b6f435e56b1ae254b094dd08648bf23b0f52b23 100644 (file)
@@ -13,9 +13,9 @@
  */
 #include "postgres.h"
 
-#include "access/amvalidate.h"
 #include "access/brin_internal.h"
 #include "access/htup_details.h"
+#include "access/indexamvalidate.h"
 #include "catalog/pg_amop.h"
 #include "catalog/pg_amproc.h"
 #include "catalog/pg_opclass.h"
index 78fcc876dad3bef9e98eecd4eac52949dc42984e..d6f45c8463a384b6b0ec05e76fa2193d3f8c2362 100644 (file)
@@ -14,7 +14,7 @@
 #include "postgres.h"
 
 #include "access/detoast.h"
-#include "access/genam.h"
+#include "access/indexgenam.h"
 #include "access/heaptoast.h"
 #include "access/table.h"
 #include "access/toast_internals.h"
index a97124249013830b037aa9591db31e97ad031da6..63517132d6d95448d24286d017398f02e8d65512 100644 (file)
@@ -14,9 +14,9 @@
 #include "postgres.h"
 
 #include "access/detoast.h"
-#include "access/genam.h"
 #include "access/heapam.h"
 #include "access/heaptoast.h"
+#include "access/indexgenam.h"
 #include "access/table.h"
 #include "access/toast_internals.h"
 #include "access/xact.h"
index 5d96f29cdef5449c6c8baa39b4511a1e37eb44a4..5abd746894c42d232aad8c707ae4269c24d46d61 100644 (file)
@@ -13,9 +13,9 @@
  */
 #include "postgres.h"
 
-#include "access/amvalidate.h"
 #include "access/gin_private.h"
 #include "access/htup_details.h"
+#include "access/indexamvalidate.h"
 #include "catalog/pg_amop.h"
 #include "catalog/pg_amproc.h"
 #include "catalog/pg_opclass.h"
index 739846a257da71f6c006877111c704229d50557d..b9b31dd63e0cfa6e49830f95685f1973b17f7c42 100644 (file)
@@ -16,9 +16,9 @@
 
 #include <math.h>
 
-#include "access/genam.h"
 #include "access/gist_private.h"
 #include "access/gistxlog.h"
+#include "access/indexgenam.h"
 #include "access/tableam.h"
 #include "access/xloginsert.h"
 #include "catalog/index.h"
index 38f786848de88440f025df68da3623f3ce8f11ee..39121d5597dd3af9581bd1e49293683650a8599f 100644 (file)
@@ -14,8 +14,8 @@
  */
 #include "postgres.h"
 
-#include "access/genam.h"
 #include "access/gist_private.h"
+#include "access/indexgenam.h"
 #include "catalog/index.h"
 #include "miscadmin.h"
 #include "storage/buffile.h"
index 98b68920138c137c46e2ca563b6289033d0d1795..dd1df12fc881605c0779a0ce59a20d6284aff527 100644 (file)
@@ -14,8 +14,8 @@
  */
 #include "postgres.h"
 
-#include "access/genam.h"
 #include "access/gist_private.h"
+#include "access/indexgenam.h"
 #include "access/relscan.h"
 #include "lib/pairingheap.h"
 #include "miscadmin.h"
index 710e4015b3d86ab457acbce7de9eaf6d4d662987..c8bb5f96b00e9daa4c2b609038f6672ed7eb4d28 100644 (file)
@@ -14,8 +14,8 @@
  */
 #include "postgres.h"
 
-#include "access/genam.h"
 #include "access/gist_private.h"
+#include "access/indexgenam.h"
 #include "access/transam.h"
 #include "commands/vacuum.h"
 #include "lib/integerset.h"
index dfc1a87a757ccd970cb368b01922bf719c608583..3357689970ac271acfb3a0d301a7243d1a4e54d6 100644 (file)
@@ -13,9 +13,9 @@
  */
 #include "postgres.h"
 
-#include "access/amvalidate.h"
 #include "access/gist_private.h"
 #include "access/htup_details.h"
+#include "access/indexamvalidate.h"
 #include "catalog/pg_amop.h"
 #include "catalog/pg_amproc.h"
 #include "catalog/pg_opclass.h"
index 93158727512e566802cc8fa96adeac259d986ef5..3ec9fcd0362b5410e98ec6b9dfcbb85ee2a20959 100644 (file)
@@ -13,9 +13,9 @@
  */
 #include "postgres.h"
 
-#include "access/amvalidate.h"
 #include "access/hash.h"
 #include "access/htup_details.h"
+#include "access/indexamvalidate.h"
 #include "catalog/pg_amop.h"
 #include "catalog/pg_amproc.h"
 #include "catalog/pg_opclass.h"
index 0128bb34ef65debc067d12e47299a339c7f395f5..e6d2b5f007c74cb6da09637d518125609ac406d4 100644 (file)
 #include "postgres.h"
 
 #include "access/bufmask.h"
-#include "access/genam.h"
 #include "access/heapam.h"
 #include "access/heapam_xlog.h"
 #include "access/heaptoast.h"
 #include "access/hio.h"
+#include "access/indexgenam.h"
 #include "access/multixact.h"
 #include "access/parallel.h"
 #include "access/relscan.h"
index 92073fec54d860628e315bb67eaf841f7c5eda57..72729f744bb32b2b2905a118d3e792a568a8aa7e 100644 (file)
@@ -19,9 +19,9 @@
  */
 #include "postgres.h"
 
-#include "access/genam.h"
 #include "access/heapam.h"
 #include "access/heaptoast.h"
+#include "access/indexgenam.h"
 #include "access/multixact.h"
 #include "access/rewriteheap.h"
 #include "access/tableam.h"
index ab09d8408ccd35e156f8ac3607983de329972fb4..253b273366f5e57de058fa85502098a42185aec6 100644 (file)
 
 #include <math.h>
 
-#include "access/genam.h"
 #include "access/heapam.h"
 #include "access/heapam_xlog.h"
 #include "access/htup_details.h"
+#include "access/indexgenam.h"
 #include "access/multixact.h"
 #include "access/transam.h"
 #include "access/visibilitymap.h"
index 6f2e3061a84aebd77045125e9b29f23876fd536c..0d8cbbc88cba2233023883ee063f809c5d3d2b8e 100644 (file)
@@ -13,9 +13,9 @@ top_builddir = ../../../..
 include $(top_builddir)/src/Makefile.global
 
 OBJS = \
-       amapi.o \
-       amvalidate.o \
-       genam.o \
-       indexam.o
+       indexam.o \
+       indexamapi.o \
+       indexamvalidate.o \
+       indexgenam.o
 
 include $(top_srcdir)/src/backend/common.mk
index 4af418287d22c53fcb7e6d8f866d0a9de59b2833..d5d6e29e181f84d7faca9083052d38e8d3a25617 100644 (file)
@@ -43,8 +43,8 @@
 
 #include "postgres.h"
 
-#include "access/amapi.h"
 #include "access/heapam.h"
+#include "access/indexam.h"
 #include "access/relscan.h"
 #include "access/tableam.h"
 #include "access/transam.h"
similarity index 97%
rename from src/backend/access/index/amapi.c
rename to src/backend/access/index/indexamapi.c
index 450a7dce1fc001a3f59f58f4c97087109534228a..bda667cf93404abbb99f1e6620163ff994e12ddc 100644 (file)
@@ -1,20 +1,20 @@
 /*-------------------------------------------------------------------------
  *
- * amapi.c
+ * indexamapi.c
  *       Support routines for API for Postgres index access methods.
  *
  * Copyright (c) 2015-2019, PostgreSQL Global Development Group
  *
  *
  * IDENTIFICATION
- *       src/backend/access/index/amapi.c
+ *       src/backend/access/index/indexamapi.c
  *
  *-------------------------------------------------------------------------
  */
 #include "postgres.h"
 
-#include "access/amapi.h"
 #include "access/htup_details.h"
+#include "access/indexam.h"
 #include "catalog/pg_am.h"
 #include "catalog/pg_opclass.h"
 #include "utils/builtins.h"
similarity index 98%
rename from src/backend/access/index/amvalidate.c
rename to src/backend/access/index/indexamvalidate.c
index 5a2728502ce01d185ed799800831a731b30567cb..8f00012d20970dedafaedeed8e54f889a9255471 100644 (file)
@@ -1,20 +1,20 @@
 /*-------------------------------------------------------------------------
  *
- * amvalidate.c
+ * indexamvalidate.c
  *       Support routines for index access methods' amvalidate functions.
  *
  * Copyright (c) 2016-2019, PostgreSQL Global Development Group
  *
  *
  * IDENTIFICATION
- *       src/backend/access/index/amvalidate.c
+ *       src/backend/access/index/indexamvalidate.c
  *
  *-------------------------------------------------------------------------
  */
 #include "postgres.h"
 
-#include "access/amvalidate.h"
 #include "access/htup_details.h"
+#include "access/indexamvalidate.h"
 #include "catalog/pg_am.h"
 #include "catalog/pg_amop.h"
 #include "catalog/pg_amproc.h"
similarity index 99%
rename from src/backend/access/index/genam.c
rename to src/backend/access/index/indexgenam.c
index 2599b5d3425fc95ab8d13b8b37f85244a4576de6..6a1ac6cc3099c76b3bcf13c624e698cea122f0e7 100644 (file)
@@ -1,6 +1,6 @@
 /*-------------------------------------------------------------------------
  *
- * genam.c
+ * indexgenam.c
  *       general index access method routines
  *
  * Portions Copyright (c) 1996-2019, PostgreSQL Global Development Group
@@ -8,19 +8,19 @@
  *
  *
  * IDENTIFICATION
- *       src/backend/access/index/genam.c
+ *       src/backend/access/index/indexgenam.c
  *
  * NOTES
  *       many of the old access method routines have been turned into
- *       macros and moved to genam.h -cim 4/30/91
+ *       macros and moved to indexgenam.h -cim 4/30/91
  *
  *-------------------------------------------------------------------------
  */
 
 #include "postgres.h"
 
-#include "access/genam.h"
 #include "access/heapam.h"
+#include "access/indexgenam.h"
 #include "access/relscan.h"
 #include "access/tableam.h"
 #include "access/transam.h"
index 0148ea7892926e150b42c15bef9264f664f0464c..2b40b0e21cf5da5e471077fe2ca7cad347bb3638 100644 (file)
@@ -13,8 +13,8 @@
  */
 #include "postgres.h"
 
-#include "access/amvalidate.h"
 #include "access/htup_details.h"
+#include "access/indexamvalidate.h"
 #include "access/nbtree.h"
 #include "catalog/pg_amop.h"
 #include "catalog/pg_amproc.h"
index c34c44cd8b565c5964ac84da744a2e4378045f97..42a894cc54b6db030846b96b444633391ffd165f 100644 (file)
@@ -15,7 +15,7 @@
 
 #include "postgres.h"
 
-#include "access/genam.h"
+#include "access/indexgenam.h"
 #include "access/spgist_private.h"
 #include "access/spgxlog.h"
 #include "access/xloginsert.h"
index dd9088741cffa0e266467cdd6f16ef301b5a9467..043016fe8d6910ce4463b5e3b24882727e13949d 100644 (file)
@@ -16,7 +16,7 @@
 
 #include "postgres.h"
 
-#include "access/genam.h"
+#include "access/indexgenam.h"
 #include "access/spgist_private.h"
 #include "access/spgxlog.h"
 #include "access/tableam.h"
index 6e940fd3defdba1b7160d34cef28aa8929317fb9..8e5f01249734373f1f57d17b14e76918488bbe85 100644 (file)
@@ -15,7 +15,7 @@
 
 #include "postgres.h"
 
-#include "access/genam.h"
+#include "access/indexgenam.h"
 #include "access/relscan.h"
 #include "access/spgist_private.h"
 #include "miscadmin.h"
index e2d391ee7540d8a9e5cf1fff1d0787d9d33e9a44..d01ea59e1419e7a7600c5109fa8e37e896f6f463 100644 (file)
@@ -15,8 +15,8 @@
 
 #include "postgres.h"
 
-#include "access/amvalidate.h"
 #include "access/htup_details.h"
+#include "access/indexamvalidate.h"
 #include "access/reloptions.h"
 #include "access/spgist_private.h"
 #include "access/transam.h"
index 478d4c0d612e5ccb74ad6d00278f2bf787f3d689..1b8cb9760f7e2049b1521ff7904a8851f26d44f6 100644 (file)
@@ -15,7 +15,7 @@
 
 #include "postgres.h"
 
-#include "access/genam.h"
+#include "access/indexgenam.h"
 #include "access/spgist_private.h"
 #include "access/spgxlog.h"
 #include "access/transam.h"
index 4b9fdbd5d7836daf1680657d661376dd335342c8..3a599db86cdaf9f7e7e839572870eb23e568fa1d 100644 (file)
@@ -13,8 +13,8 @@
  */
 #include "postgres.h"
 
-#include "access/amvalidate.h"
 #include "access/htup_details.h"
+#include "access/indexamvalidate.h"
 #include "access/spgist_private.h"
 #include "catalog/pg_amop.h"
 #include "catalog/pg_amproc.h"
index 8ea033610d674460267a37a528bd7e6f27ab282c..9dcb7b66d3c3bff3b0eb53360b84b1be79491f51 100644 (file)
@@ -17,9 +17,9 @@
 #include <unistd.h>
 #include <signal.h>
 
-#include "access/genam.h"
 #include "access/heapam.h"
 #include "access/htup_details.h"
+#include "access/indexgenam.h"
 #include "access/tableam.h"
 #include "access/xact.h"
 #include "access/xlog_internal.h"
index ea5666ebb8d315e87b1eb361a251cf0fd22ba3c6..b6dba91b9ad1a195e833ec84932b7231b5de1252 100644 (file)
@@ -17,9 +17,9 @@
  */
 #include "postgres.h"
 
-#include "access/genam.h"
 #include "access/heapam.h"
 #include "access/htup_details.h"
+#include "access/indexgenam.h"
 #include "access/sysattr.h"
 #include "access/tableam.h"
 #include "access/xact.h"
index 6b104695c0c7f731e68de3723c99260ea4df7702..c4c4d9f6c8ca0a028c86ea5c18149ab7e64f1db1 100644 (file)
@@ -20,8 +20,8 @@
 #include <fcntl.h>
 #include <unistd.h>
 
-#include "access/genam.h"
 #include "access/htup_details.h"
+#include "access/indexgenam.h"
 #include "access/sysattr.h"
 #include "access/table.h"
 #include "access/transam.h"
index d07bb4496e30109f56d12f89de4bc9b390bb3e3a..aea8cdde742ab952ed8ab55555d363ba21996ed7 100644 (file)
@@ -14,8 +14,8 @@
  */
 #include "postgres.h"
 
-#include "access/genam.h"
 #include "access/htup_details.h"
+#include "access/indexgenam.h"
 #include "access/table.h"
 #include "access/xact.h"
 #include "catalog/dependency.h"
index 452a7f3f9531b86ca3d6780f3686d346c20d5020..c9b3e17dc11ddfc18167773dddcfb7af28574575 100644 (file)
@@ -29,8 +29,8 @@
  */
 #include "postgres.h"
 
-#include "access/genam.h"
 #include "access/htup_details.h"
+#include "access/indexgenam.h"
 #include "access/multixact.h"
 #include "access/relation.h"
 #include "access/sysattr.h"
index 787aad636e7115fb112f5da49b6e884d92a236f7..7529bf39b8edf31060395a18e64fdab122132e88 100644 (file)
@@ -23,8 +23,8 @@
 
 #include <unistd.h>
 
-#include "access/amapi.h"
 #include "access/heapam.h"
+#include "access/indexam.h"
 #include "access/multixact.h"
 #include "access/relscan.h"
 #include "access/sysattr.h"
index f237e62bc90443057874e8bb374d4fa047587232..8f48e0076c24db279a8c18c7869bbf619cc738b6 100644 (file)
@@ -15,9 +15,9 @@
  */
 #include "postgres.h"
 
-#include "access/genam.h"
 #include "access/heapam.h"
 #include "access/htup_details.h"
+#include "access/indexgenam.h"
 #include "catalog/index.h"
 #include "catalog/indexing.h"
 #include "executor/executor.h"
index ae3002bb427a9f404b95006465f2089b7f6aa8b5..00a21c430c12cddb5ba3fc7720c72f3e31609d05 100644 (file)
@@ -15,7 +15,7 @@
 
 #include "postgres.h"
 
-#include "access/genam.h"
+#include "access/indexgenam.h"
 #include "access/htup_details.h"
 #include "access/relation.h"
 #include "access/sysattr.h"
index 7657608dd74f4131e4b54abf475a5a2415becbc1..5f85b9b99ca4c19c6359082233c341a022753f89 100644 (file)
@@ -15,8 +15,8 @@
 #include "postgres.h"
 
 #include "access/attmap.h"
-#include "access/genam.h"
 #include "access/htup_details.h"
+#include "access/indexgenam.h"
 #include "access/sysattr.h"
 #include "access/table.h"
 #include "catalog/indexing.h"
index dd99d53547f3563e71a123bdff50ce450e6f77a0..ec5cea1bab02b08cd51eed872855f4bfec651fdd 100644 (file)
@@ -14,8 +14,8 @@
  */
 #include "postgres.h"
 
-#include "access/genam.h"
 #include "access/htup_details.h"
+#include "access/indexgenam.h"
 #include "access/sysattr.h"
 #include "access/table.h"
 #include "catalog/catalog.h"
index 25c52134f06420de605c5214ac91e0055ab3db7c..b12834a2c053c830b492c12c37b760bfa67b9d9f 100644 (file)
@@ -14,8 +14,8 @@
  */
 #include "postgres.h"
 
-#include "access/genam.h"
 #include "access/htup_details.h"
+#include "access/indexgenam.h"
 #include "access/sysattr.h"
 #include "access/table.h"
 #include "access/xact.h"
index 20acac2eea9a360213d7698613b13507a03db61e..791fca9deef272bc27bbbae3c30ec688aaacf2e8 100644 (file)
@@ -10,9 +10,9 @@
  */
 #include "postgres.h"
 
-#include "access/genam.h"
 #include "access/heapam.h"
 #include "access/htup_details.h"
+#include "access/indexgenam.h"
 #include "access/tableam.h"
 #include "catalog/indexing.h"
 #include "catalog/objectaccess.h"
index a060c25d2eeafe22cfdb01ab5cf5406e50fb56b3..c9228cc90792c7337221bf7558b43565a3b10a60 100644 (file)
@@ -14,8 +14,8 @@
  */
 #include "postgres.h"
 
-#include "access/genam.h"
 #include "access/htup_details.h"
+#include "access/indexgenam.h"
 #include "access/table.h"
 #include "catalog/dependency.h"
 #include "catalog/indexing.h"
index be0f06524d9da135332f5bb07d501690b18f9809..e43b1451709e7425e4750dfa052e749d1b815fdf 100644 (file)
@@ -13,8 +13,8 @@
  */
 #include "postgres.h"
 
-#include "access/genam.h"
 #include "access/htup_details.h"
+#include "access/indexgenam.h"
 #include "access/table.h"
 #include "access/xact.h"
 #include "catalog/binary_upgrade.h"
index 59af16221eacacc1da2d9242cdf6b4a2c06af107..62622cc6f9c79f1a21223fa2a8259cd647f74db7 100644 (file)
@@ -19,8 +19,8 @@
  */
 #include "postgres.h"
 
-#include "access/genam.h"
 #include "access/htup_details.h"
+#include "access/indexgenam.h"
 #include "access/table.h"
 #include "catalog/indexing.h"
 #include "catalog/pg_inherits.h"
index 1a687028fe2825a6de4d2e05a4097effbdfa080e..2c3e15e6bc004c42cfac24247ee14e42e0bc30ff 100644 (file)
@@ -14,8 +14,8 @@
  */
 #include "postgres.h"
 
-#include "access/genam.h"
 #include "access/htup_details.h"
+#include "access/indexgenam.h"
 #include "access/sysattr.h"
 #include "access/table.h"
 #include "catalog/catalog.h"
index f6e9a68bf70770558dac49b7f2a173dfebda78b2..80a6a92a8267daf9a12c71a19ab43b1f49997012 100644 (file)
@@ -14,9 +14,9 @@
 
 #include "postgres.h"
 
-#include "access/genam.h"
 #include "access/heapam.h"
 #include "access/htup_details.h"
+#include "access/indexgenam.h"
 #include "access/tableam.h"
 #include "access/xact.h"
 #include "catalog/catalog.h"
index e6e138babdf1f5dd2faca086d0b5e3063b354c6d..c8808a78b33929dd61f3ab6b8a7802de76cba184 100644 (file)
@@ -14,8 +14,8 @@
  */
 #include "postgres.h"
 
-#include "access/genam.h"
 #include "access/htup_details.h"
+#include "access/indexgenam.h"
 #include "access/table.h"
 #include "catalog/dependency.h"
 #include "catalog/indexing.h"
index 59f97bf3d024baf2a44be1ffdbecb237f0364e25..89ebb849a291ddaeb200acdccee91a0abf4b86a9 100644 (file)
@@ -14,8 +14,8 @@
  */
 #include "postgres.h"
 
-#include "access/genam.h"
 #include "access/htup_details.h"
+#include "access/indexgenam.h"
 #include "access/table.h"
 #include "access/xact.h"
 #include "catalog/catalog.h"
index 68d88ff4991e3b4e5f34aaea55b6d6b2906b76e7..f346ec959f31bef16e0b8c5999122f5fe029e856 100644 (file)
@@ -14,9 +14,9 @@
 
 #include "postgres.h"
 
-#include "access/genam.h"
 #include "access/heapam.h"
 #include "access/htup_details.h"
+#include "access/indexgenam.h"
 #include "access/tableam.h"
 #include "access/xact.h"
 #include "catalog/indexing.h"
index 71372ceb161cd8a755a9f6dd62fa36cd0ad92dd8..70ee89d52f5feebc183bf2543ae61e66c7d8e3ed 100644 (file)
@@ -17,7 +17,7 @@
 #include <math.h>
 
 #include "access/detoast.h"
-#include "access/genam.h"
+#include "access/indexgenam.h"
 #include "access/multixact.h"
 #include "access/relation.h"
 #include "access/sysattr.h"
index b8c349f245bc77dab6bef635fe2008f2af32c461..cc35811dc893a8779477070a5cd387f7a15401bd 100644 (file)
@@ -17,8 +17,8 @@
  */
 #include "postgres.h"
 
-#include "access/amapi.h"
 #include "access/heapam.h"
+#include "access/indexam.h"
 #include "access/multixact.h"
 #include "access/relscan.h"
 #include "access/tableam.h"
index 1859fb628fd5899d667c3cb7a3df7c0faca02d40..7823dace9fa4333a7219e036e3cdcb08887499e7 100644 (file)
@@ -14,8 +14,8 @@
 
 #include "postgres.h"
 
-#include "access/genam.h"
 #include "access/htup_details.h"
+#include "access/indexgenam.h"
 #include "access/relation.h"
 #include "access/table.h"
 #include "catalog/indexing.h"
index 806962a686bf2437ae1afdfa7d4be49f8ff5de77..8a57a0ef99d06d50870adc24aff17d8e833f8332 100644 (file)
@@ -13,8 +13,8 @@
  */
 #include "postgres.h"
 
-#include "access/genam.h"
 #include "access/heapam.h"
+#include "access/indexgenam.h"
 #include "access/tableam.h"
 #include "catalog/index.h"
 #include "commands/trigger.h"
index a70e75a219e3a0c7d18a18845129a6a89886841b..da0e5d8b94cd8a26e77a4847fdb4f004fe2cfe0b 100644 (file)
@@ -23,9 +23,9 @@
 #include <unistd.h>
 #include <sys/stat.h>
 
-#include "access/genam.h"
 #include "access/heapam.h"
 #include "access/htup_details.h"
+#include "access/indexgenam.h"
 #include "access/multixact.h"
 #include "access/tableam.h"
 #include "access/xact.h"
index 6eaa9cc4f3df1c11405fcf90d42b111c642b232f..df04a82fe59fd6823fff0fad338eec883e390d1b 100644 (file)
@@ -29,8 +29,8 @@
 #include <sys/stat.h>
 #include <unistd.h>
 
-#include "access/genam.h"
 #include "access/htup_details.h"
+#include "access/indexgenam.h"
 #include "access/relation.h"
 #include "access/sysattr.h"
 #include "access/table.h"
index 94411b50082c6a89a27035e1476597cb7c8c7a08..4527aa15f710e9c843989a7e9c8123b7ebfc15c4 100644 (file)
@@ -32,8 +32,8 @@
  */
 #include "postgres.h"
 
-#include "access/genam.h"
 #include "access/htup_details.h"
+#include "access/indexgenam.h"
 #include "access/sysattr.h"
 #include "access/table.h"
 #include "catalog/catalog.h"
index 8f242aef1e23cb6ba6e9d8a953916dd164d8c223..940aa97323a781bca35ed0fae89364eb1dbdec8c 100644 (file)
@@ -15,9 +15,9 @@
 
 #include "postgres.h"
 
-#include "access/amapi.h"
 #include "access/heapam.h"
 #include "access/htup_details.h"
+#include "access/indexam.h"
 #include "access/reloptions.h"
 #include "access/sysattr.h"
 #include "access/tableam.h"
index 537d0e8ceff656e89863961ce2bd439fb96d38da..907c71dda0ce18ca80ac27fd0bb5f32877e74c95 100644 (file)
@@ -14,9 +14,9 @@
  */
 #include "postgres.h"
 
-#include "access/genam.h"
 #include "access/heapam.h"
 #include "access/htup_details.h"
+#include "access/indexgenam.h"
 #include "access/multixact.h"
 #include "access/tableam.h"
 #include "access/xact.h"
index cb7a6bd2d1464d801c0bec574a8e56546aae8c74..cccd95a97a2ddd940732c0d18b6889feefd5cb81 100644 (file)
@@ -17,9 +17,9 @@
 
 #include <limits.h>
 
-#include "access/genam.h"
 #include "access/hash.h"
 #include "access/htup_details.h"
+#include "access/indexgenam.h"
 #include "access/nbtree.h"
 #include "access/sysattr.h"
 #include "access/table.h"
index 36093dcd9568ddf491ada85e19bb69b269c297d2..72ba997e4c32912c02abb9e59009001e64393b19 100644 (file)
@@ -12,9 +12,9 @@
  */
 #include "postgres.h"
 
-#include "access/genam.h"
 #include "access/htup.h"
 #include "access/htup_details.h"
+#include "access/indexgenam.h"
 #include "access/relation.h"
 #include "access/sysattr.h"
 #include "access/table.h"
index b51c373b93f77757ca2e14502b30cc45fb0cc79e..0182dc7202a0a8780714e0c2b64ff3646f99c11c 100644 (file)
@@ -13,8 +13,8 @@
  */
 #include "postgres.h"
 
-#include "access/genam.h"
 #include "access/htup_details.h"
+#include "access/indexgenam.h"
 #include "access/table.h"
 #include "catalog/catalog.h"
 #include "catalog/dependency.h"
index fbf11c86aad491144f222952901b60b65ef936a2..4252db4ec0502332492fe01a208288a01fc03340 100644 (file)
@@ -14,8 +14,8 @@
 
 #include "postgres.h"
 
-#include "access/genam.h"
 #include "access/htup_details.h"
+#include "access/indexgenam.h"
 #include "access/table.h"
 #include "access/xact.h"
 #include "catalog/catalog.h"
index 63219ad589f7a2fce66982bde124699194b4c650..94d28b24fc8a1cb1e3dba1f29af44709f6105dfc 100644 (file)
@@ -10,8 +10,8 @@
  */
 #include "postgres.h"
 
-#include "access/genam.h"
 #include "access/htup_details.h"
+#include "access/indexgenam.h"
 #include "access/relation.h"
 #include "access/table.h"
 #include "catalog/catalog.h"
index 53a8f1610a4f7f55a8c79f036bc5af42e15d8c8a..a776e652f4b8369e6d54520339be550c292a07a5 100644 (file)
@@ -15,9 +15,9 @@
 #include "postgres.h"
 
 #include "access/attmap.h"
-#include "access/genam.h"
 #include "access/heapam.h"
 #include "access/heapam_xlog.h"
+#include "access/indexgenam.h"
 #include "access/multixact.h"
 #include "access/reloptions.h"
 #include "access/relscan.h"
index 99cb5bf557b8012bea64b44a5f821d643a69b5c8..7e9bcb317d57804a3e3635f4e836855f3dc77506 100644 (file)
@@ -13,8 +13,8 @@
  */
 #include "postgres.h"
 
-#include "access/genam.h"
 #include "access/htup_details.h"
+#include "access/indexgenam.h"
 #include "access/relation.h"
 #include "access/sysattr.h"
 #include "access/table.h"
index 5d6528f9cf878804231d7ea7c5a3e32c15459ce2..714dff530485990a0886d29541c73915d6059571 100644 (file)
@@ -17,8 +17,8 @@
 
 #include <ctype.h>
 
-#include "access/genam.h"
 #include "access/htup_details.h"
+#include "access/indexgenam.h"
 #include "access/table.h"
 #include "access/xact.h"
 #include "catalog/catalog.h"
index 89887b8fd75f9d09d731a827a7f495152cb78d81..d3df657fa0f5b2a9742622ce8455b1d1eeeb046d 100644 (file)
@@ -31,9 +31,9 @@
  */
 #include "postgres.h"
 
-#include "access/genam.h"
 #include "access/heapam.h"
 #include "access/htup_details.h"
+#include "access/indexgenam.h"
 #include "access/tableam.h"
 #include "access/xact.h"
 #include "catalog/binary_upgrade.h"
index aab5aa855d2851222dc7738c7575ad805f6bce94..f3572b1749a6ff78542532f02de74c4ee23ba488 100644 (file)
@@ -12,8 +12,8 @@
  */
 #include "postgres.h"
 
-#include "access/genam.h"
 #include "access/htup_details.h"
+#include "access/indexgenam.h"
 #include "access/table.h"
 #include "access/xact.h"
 #include "catalog/binary_upgrade.h"
index da1da234000081711ecb86555d841f5f3fc64930..477b271aa39e6843060b73ad135b9fff0d72723e 100644 (file)
@@ -24,9 +24,9 @@
 
 #include "access/clog.h"
 #include "access/commit_ts.h"
-#include "access/genam.h"
 #include "access/heapam.h"
 #include "access/htup_details.h"
+#include "access/indexgenam.h"
 #include "access/multixact.h"
 #include "access/tableam.h"
 #include "access/transam.h"
index 779d3dcceae121baf1e5221e06c4619850f61d07..c1e2cedc081a5fc2c526a905ce7ae3aff91b8121 100644 (file)
@@ -12,8 +12,8 @@
  */
 #include "postgres.h"
 
-#include "access/amapi.h"
 #include "access/htup_details.h"
+#include "access/indexam.h"
 #include "executor/execdebug.h"
 #include "executor/nodeAgg.h"
 #include "executor/nodeAppend.h"
index c7f909241b41a86518093daa69ef68c8170b9205..3853d154d8ebc3e3a0dcb756a710ff10584c254f 100644 (file)
@@ -12,7 +12,7 @@
  */
 #include "postgres.h"
 
-#include "access/genam.h"
+#include "access/indexgenam.h"
 #include "access/relscan.h"
 #include "access/sysattr.h"
 #include "catalog/pg_type.h"
index 40bd8049f05ee25ef47c7b70b1cabf83e523e79c..823b6707605156a6ffa26ba00a0cdbd0c5601bb7 100644 (file)
  */
 #include "postgres.h"
 
-#include "access/genam.h"
+#include "access/indexgenam.h"
 #include "access/relscan.h"
 #include "access/tableam.h"
 #include "access/xact.h"
index 95e027c970bf43fa1ad32bb71186ecbbbd0d138d..f311476071d51f13e9f0744f7d04e15503efbd23 100644 (file)
@@ -14,7 +14,7 @@
 
 #include "postgres.h"
 
-#include "access/genam.h"
+#include "access/indexgenam.h"
 #include "access/relscan.h"
 #include "access/tableam.h"
 #include "access/transam.h"
index 604f4f1132f5c5f3ebe0368e8ff66c9e0c2c6feb..fbe434ce2f865ee62269fd3420fb70eccf80e84e 100644 (file)
@@ -21,7 +21,7 @@
  */
 #include "postgres.h"
 
-#include "access/genam.h"
+#include "access/indexgenam.h"
 #include "executor/execdebug.h"
 #include "executor/nodeBitmapIndexscan.h"
 #include "executor/nodeIndexscan.h"
index 784486f0c80fcf2fea7d3972086214466386693a..a4ea390d2bfcb2d6909a23db34a53c0ab4cc2bcc 100644 (file)
@@ -30,7 +30,7 @@
  */
 #include "postgres.h"
 
-#include "access/genam.h"
+#include "access/indexgenam.h"
 #include "access/relscan.h"
 #include "access/tableam.h"
 #include "access/tupdesc.h"
index c5f6593485982359ddadd00323135171ecc6343a..2911c7a461bc0897036f347d6f5a4e5786dd9546 100644 (file)
@@ -73,8 +73,8 @@
 
 #include <math.h>
 
-#include "access/amapi.h"
 #include "access/htup_details.h"
+#include "access/indexam.h"
 #include "access/tsmapi.h"
 #include "executor/executor.h"
 #include "executor/nodeHash.h"
@@ -539,7 +539,7 @@ cost_index(IndexPath *path, PlannerInfo *root, double loop_count,
         * for scanning the index, as well as the selectivity of the index (ie,
         * the fraction of main-table tuples we will have to retrieve) and its
         * correlation to the main-table tuple order.  We need a cast here because
-        * pathnodes.h uses a weak function type to avoid including amapi.h.
+        * pathnodes.h uses a weak function type to avoid including indexam.h.
         */
        amcostestimate = (amcostestimate_function) index->amcostestimate;
        amcostestimate(root, path, loop_count,
index cb54b15507be20201a641451551e932bb85f4683..d63ebb7287c11e010db08fdebd4ba50bee218009 100644 (file)
@@ -18,8 +18,8 @@
 #include <limits.h>
 #include <math.h>
 
-#include "access/genam.h"
 #include "access/htup_details.h"
+#include "access/indexgenam.h"
 #include "access/parallel.h"
 #include "access/sysattr.h"
 #include "access/table.h"
index 5e889d186144ed551b565eb4d4ac52957f4e775e..c15654e660cbbe9cd3ccbb7e47ee72eba95f3bf4 100644 (file)
@@ -17,8 +17,8 @@
 
 #include <math.h>
 
-#include "access/genam.h"
 #include "access/htup_details.h"
+#include "access/indexgenam.h"
 #include "access/nbtree.h"
 #include "access/sysattr.h"
 #include "access/table.h"
index 45bb31ecf8fb032686214b359a9bf5eaedc2eb15..3fafa920f38ef9fb9f5e7a6c0edf2b352246eeda 100644 (file)
@@ -26,8 +26,8 @@
 
 #include "postgres.h"
 
-#include "access/amapi.h"
 #include "access/htup_details.h"
+#include "access/indexam.h"
 #include "access/relation.h"
 #include "access/reloptions.h"
 #include "access/table.h"
index 6ede084afe414ab7d75102d41452313e3335ec39..5ca63d02b795fc9226902fc37d2d3e805a4d7fcb 100644 (file)
@@ -14,8 +14,8 @@
 
 #include "postgres.h"
 
-#include "access/genam.h"
 #include "access/htup_details.h"
+#include "access/indexgenam.h"
 #include "access/table.h"
 #include "catalog/indexing.h"
 #include "catalog/partition.h"
index fffc330c94ff5993d0184809906ad98c5f811eec..f965bdb0270770b7e32b2450bcb77beb50f5d383 100644 (file)
@@ -70,8 +70,8 @@
 #include <unistd.h>
 #include <sys/stat.h>
 
-#include "access/genam.h"
 #include "access/htup_details.h"
+#include "access/indexgenam.h"
 #include "access/table.h"
 #include "access/xact.h"
 #include "catalog/catalog.h"
index bb98b6936a06a2edb72d032dafd8de81748087ae..6dbe010f6a8febae5cfe9d0d7d0887c24f321c6d 100644 (file)
@@ -14,8 +14,8 @@
  */
 #include "postgres.h"
 
-#include "access/genam.h"
 #include "access/htup_details.h"
+#include "access/indexgenam.h"
 #include "access/sysattr.h"
 #include "access/table.h"
 #include "catalog/catalog.h"
index 9d339433f65a34f5a71f3bde2ae3ac4292b4fad9..98b70760adc058a8ded8cc85e102cf16495bb6a2 100644 (file)
@@ -17,8 +17,8 @@
 #include "postgres.h"
 
 #include "access/detoast.h"
-#include "access/genam.h"
 #include "access/htup_details.h"
+#include "access/indexgenam.h"
 #include "access/table.h"
 #include "catalog/indexing.h"
 #include "catalog/pg_collation.h"
index 263d5be12eb711f4f8577954efc2a0e99f52ca30..cd823622877e34c605b655ae401be148b3e379fd 100644 (file)
@@ -33,8 +33,8 @@
 #include <limits.h>
 
 #include "access/detoast.h"
-#include "access/genam.h"
 #include "access/htup_details.h"
+#include "access/indexgenam.h"
 #include "access/sysattr.h"
 #include "access/table.h"
 #include "access/xact.h"
index e81d6cc05629022b1c4754b47ed1281257026408..6de33886dba5442f6d553525735cf6b91dde72b9 100644 (file)
@@ -13,8 +13,8 @@
  */
 #include "postgres.h"
 
-#include "access/amapi.h"
 #include "access/htup_details.h"
+#include "access/indexam.h"
 #include "catalog/pg_class.h"
 #include "catalog/pg_index.h"
 #include "utils/builtins.h"
index 3402ff860d36395315cddee6b82a398e94d335f1..000572c5b33e5001504f3003294f1567916ff0e1 100644 (file)
@@ -13,8 +13,8 @@
  */
 #include "postgres.h"
 
-#include "access/genam.h"
 #include "access/htup_details.h"
+#include "access/indexgenam.h"
 #include "access/table.h"
 #include "catalog/indexing.h"
 #include "catalog/pg_enum.h"
index 4af1603e7cea7f2cf44108086ebd538b00e2b64b..bdf78db8c80ba407cc625ead57b6bc90508cffb1 100644 (file)
@@ -19,8 +19,8 @@
 #include <unistd.h>
 #include <fcntl.h>
 
-#include "access/amapi.h"
 #include "access/htup_details.h"
+#include "access/indexam.h"
 #include "access/relation.h"
 #include "access/sysattr.h"
 #include "access/table.h"
index c3e7d94aa5b325046b8c014b1093abe54d7ff881..9ce04af9a9cbfa54771b131a61014c1012669a38 100644 (file)
@@ -14,8 +14,8 @@
  */
 #include "postgres.h"
 
-#include "access/genam.h"
 #include "access/heaptoast.h"
+#include "access/indexgenam.h"
 #include "access/relscan.h"
 #include "access/sysattr.h"
 #include "access/table.h"
index 1b0f73832122f51235b432e3b3f925a8e17f7d5a..510160c88705f93fb275754e8a8b698ac20f605f 100644 (file)
@@ -13,8 +13,8 @@
  */
 #include "postgres.h"
 
-#include "access/genam.h"
 #include "access/htup_details.h"
+#include "access/indexgenam.h"
 #include "access/relation.h"
 #include "catalog/indexing.h"
 #include "catalog/pg_event_trigger.h"
index d244eaf4d8c311c99266e5c8ba7fb672108ac3ce..693501067adccc57ac5cbed72b75b07c3c01a6f6 100644 (file)
@@ -13,8 +13,8 @@
  */
 #include "postgres.h"
 
-#include "access/genam.h"
 #include "access/htup_details.h"
+#include "access/indexgenam.h"
 #include "access/table.h"
 #include "catalog/indexing.h"
 #include "catalog/pg_class.h"
index 68c04d87d51e3b8b169877ef84998721af3e35ae..487d3cadeee75e89259c0613fc79a0115aeb091f 100644 (file)
@@ -26,8 +26,8 @@
  */
 #include "postgres.h"
 
-#include "access/genam.h"
 #include "access/htup_details.h"
+#include "access/indexgenam.h"
 #include "access/table.h"
 #include "access/xact.h"
 #include "catalog/indexing.h"
index cc38669a1ebadac94d9b75de94fab7a8749da105..5375653a42b750e20b15330129501dd0ffbaac97 100644 (file)
@@ -19,9 +19,9 @@
 #include <fcntl.h>
 #include <unistd.h>
 
-#include "access/genam.h"
 #include "access/heapam.h"
 #include "access/htup_details.h"
+#include "access/indexgenam.h"
 #include "access/session.h"
 #include "access/sysattr.h"
 #include "access/tableam.h"
index b1c91999469f1360bf61d229d1b731990278890c..f78387d891f75cb51d033558ea44a9b0d8196a47 100644 (file)
@@ -11,7 +11,7 @@
 #ifndef BRIN_INTERNAL_H
 #define BRIN_INTERNAL_H
 
-#include "access/amapi.h"
+#include "access/indexam.h"
 #include "storage/bufpage.h"
 #include "utils/typcache.h"
 
index b779cc8c7cac3f983fef8890803ccfa41b798c07..8a8ab3b94eb30c9dc67e09cdd3ec3ebef6beab0e 100644 (file)
@@ -10,9 +10,9 @@
 #ifndef GIN_PRIVATE_H
 #define GIN_PRIVATE_H
 
-#include "access/amapi.h"
 #include "access/gin.h"
 #include "access/ginblock.h"
+#include "access/indexam.h"
 #include "access/itup.h"
 #include "catalog/pg_am_d.h"
 #include "fmgr.h"
index a409975db1605f5bf5ad760c8c01e6b836bd0467..b89107d09ef264dfea4e3f7d32ef1b525fd0940c 100644 (file)
 #ifndef GIST_PRIVATE_H
 #define GIST_PRIVATE_H
 
-#include "access/amapi.h"
 #include "access/gist.h"
+#include "access/indexam.h"
+#include "access/indexgenam.h"
 #include "access/itup.h"
 #include "lib/pairingheap.h"
 #include "storage/bufmgr.h"
 #include "storage/buffile.h"
 #include "utils/hsearch.h"
-#include "access/genam.h"
 
 /*
  * Maximum number of "halves" a page can be split into in one operation.
index c02445a698086145f575ef52ac2c632eae1ee0da..bec23b46046da3516300f0b0ea07761efc8a29b5 100644 (file)
@@ -14,7 +14,7 @@
 #ifndef GISTSCAN_H
 #define GISTSCAN_H
 
-#include "access/amapi.h"
+#include "access/indexam.h"
 
 extern IndexScanDesc gistbeginscan(Relation r, int nkeys, int norderbys);
 extern void gistrescan(IndexScanDesc scan, ScanKey key, int nkeys,
index ba58cb31bb80a1a1813c105a5770b7927c107a94..07db6466aeaa87bfa9820cb6cede0c38feca5de5 100644 (file)
@@ -17,7 +17,7 @@
 #ifndef HASH_H
 #define HASH_H
 
-#include "access/amapi.h"
+#include "access/indexam.h"
 #include "access/itup.h"
 #include "access/sdir.h"
 #include "catalog/pg_am_d.h"
similarity index 97%
rename from src/include/access/amapi.h
rename to src/include/access/indexam.h
index 6e3db06eed23aa2bc8d054d991e8900a455b5872..9b2eefb531900748297219c65fad1569d4ae7007 100644 (file)
@@ -1,18 +1,18 @@
 /*-------------------------------------------------------------------------
  *
- * amapi.h
+ * indexam.h
  *       API for Postgres index access methods.
  *
  * Copyright (c) 2015-2019, PostgreSQL Global Development Group
  *
- * src/include/access/amapi.h
+ * src/include/access/indexam.h
  *
  *-------------------------------------------------------------------------
  */
-#ifndef AMAPI_H
-#define AMAPI_H
+#ifndef INDEXAM_H
+#define INDEXAM_H
 
-#include "access/genam.h"
+#include "access/indexgenam.h"
 
 /*
  * We don't wish to include planner header files here, since most of an index
@@ -233,8 +233,8 @@ typedef struct IndexAmRoutine
 } IndexAmRoutine;
 
 
-/* Functions in access/index/amapi.c */
+/* Functions in access/index/indexamapi.c */
 extern IndexAmRoutine *GetIndexAmRoutine(Oid amhandler);
 extern IndexAmRoutine *GetIndexAmRoutineByAmId(Oid amoid, bool noerror);
 
-#endif                                                 /* AMAPI_H */
+#endif                                                 /* INDEXAM_H */
similarity index 84%
rename from src/include/access/amvalidate.h
rename to src/include/access/indexamvalidate.h
index 317e1e6893801e488e3797e6245354671d47ec5c..69a0520c0a6b7349b50cd67066548680c31d3772 100644 (file)
@@ -1,16 +1,16 @@
 /*-------------------------------------------------------------------------
  *
- * amvalidate.h
+ * indexamvalidate.h
  *       Support routines for index access methods' amvalidate functions.
  *
  * Copyright (c) 2016-2019, PostgreSQL Global Development Group
  *
- * src/include/access/amvalidate.h
+ * src/include/access/indexamvalidate.h
  *
  *-------------------------------------------------------------------------
  */
-#ifndef AMVALIDATE_H
-#define AMVALIDATE_H
+#ifndef INDEXAMVALIDATE_H
+#define INDEXAMVALIDATE_H
 
 #include "utils/catcache.h"
 
@@ -25,7 +25,7 @@ typedef struct OpFamilyOpFuncGroup
 } OpFamilyOpFuncGroup;
 
 
-/* Functions in access/index/amvalidate.c */
+/* Functions in access/index/indexamvalidate.c */
 extern List *identify_opfamily_groups(CatCList *oprlist, CatCList *proclist);
 extern bool check_amproc_signature(Oid funcid, Oid restype, bool exact,
                                                                   int minargs, int maxargs,...);
@@ -33,4 +33,4 @@ extern bool check_amop_signature(Oid opno, Oid restype,
                                                                 Oid lefttype, Oid righttype);
 extern bool opfamily_can_sort_type(Oid opfamilyoid, Oid datatypeoid);
 
-#endif                                                 /* AMVALIDATE_H */
+#endif                                                 /* INDEXAMVALIDATE_H */
similarity index 97%
rename from src/include/access/genam.h
rename to src/include/access/indexgenam.h
index a813b004be7d797d8ed264e5b8a6941dcad2dc78..a25cf110e7e170023b4bc8591ab4f0dadcba0c65 100644 (file)
@@ -1,18 +1,18 @@
 /*-------------------------------------------------------------------------
  *
- * genam.h
+ * indexgenam.h
  *       POSTGRES generalized index access method definitions.
  *
  *
  * Portions Copyright (c) 1996-2019, PostgreSQL Global Development Group
  * Portions Copyright (c) 1994, Regents of the University of California
  *
- * src/include/access/genam.h
+ * src/include/access/indexgenam.h
  *
  *-------------------------------------------------------------------------
  */
-#ifndef GENAM_H
-#define GENAM_H
+#ifndef INDEXGENAM_H
+#define INDEXGENAM_H
 
 #include "access/sdir.h"
 #include "access/skey.h"
@@ -190,7 +190,7 @@ extern void index_store_float8_orderby_distances(IndexScanDesc scan,
                                                                                                 bool recheckOrderBy);
 
 /*
- * index access method support routines (in genam.c)
+ * index access method support routines (in indexgenam.c)
  */
 extern IndexScanDesc RelationGetIndexScan(Relation indexRelation,
                                                                                  int nkeys, int norderbys);
@@ -204,7 +204,7 @@ extern TransactionId index_compute_xid_horizon_for_tuples(Relation irel,
                                                                                                                  int nitems);
 
 /*
- * heap-or-index access to system catalogs (in genam.c)
+ * heap-or-index access to system catalogs (in indexgenam.c)
  */
 extern SysScanDesc systable_beginscan(Relation heapRelation,
                                                                          Oid indexId,
@@ -222,4 +222,4 @@ extern HeapTuple systable_getnext_ordered(SysScanDesc sysscan,
                                                                                  ScanDirection direction);
 extern void systable_endscan_ordered(SysScanDesc sysscan);
 
-#endif                                                 /* GENAM_H */
+#endif                                                 /* INDEXGENAM_H */
index 5e56aac63f3dc41c833a4746c90cb63a684a6088..0bcb2ec2cd1a9d30a872889b93fffa095fab41a9 100644 (file)
@@ -14,7 +14,7 @@
 #ifndef NBTREE_H
 #define NBTREE_H
 
-#include "access/amapi.h"
+#include "access/indexam.h"
 #include "access/itup.h"
 #include "access/sdir.h"
 #include "access/xlogreader.h"
index d21c513be4dddaa27527ee57be73553e1cc5a3bd..e7abb411934d4c448676c26b8d54152e0ba0d65f 100644 (file)
@@ -19,8 +19,8 @@
 #ifndef RELOPTIONS_H
 #define RELOPTIONS_H
 
-#include "access/amapi.h"
 #include "access/htup.h"
+#include "access/indexam.h"
 #include "access/tupdesc.h"
 #include "nodes/pg_list.h"
 #include "storage/lock.h"
index d5fd7bcc02b60e559efe18f08b0d8424ae9cb7aa..1f9b9eb5e1c147ab5292063c1ab0c577fc258598 100644 (file)
@@ -14,7 +14,7 @@
 #ifndef SPGIST_H
 #define SPGIST_H
 
-#include "access/amapi.h"
+#include "access/indexam.h"
 #include "access/xlogreader.h"
 #include "lib/stringinfo.h"
 
index e895ec5b7b3d48cc234eef34cd3faab28a146ba2..dd3a323891843ffee0fbab4cf17731de14bc4f09 100644 (file)
@@ -14,7 +14,7 @@
 #ifndef NODEINDEXSCAN_H
 #define NODEINDEXSCAN_H
 
-#include "access/genam.h"
+#include "access/indexgenam.h"
 #include "access/parallel.h"
 #include "nodes/execnodes.h"
 
index bce2d59b0dbcf871289e396f66c9e2c5295f2a1a..8692a32172fff3708b7ba35cbbfb4af16988e039 100644 (file)
@@ -504,7 +504,7 @@ typedef enum NodeTag
        T_TIDBitmap,                            /* in nodes/tidbitmap.h */
        T_InlineCodeBlock,                      /* in nodes/parsenodes.h */
        T_FdwRoutine,                           /* in foreign/fdwapi.h */
-       T_IndexAmRoutine,                       /* in access/amapi.h */
+       T_IndexAmRoutine,                       /* in access/indexam.h */
        T_TableAmRoutine,                       /* in access/tableam.h */
        T_TsmRoutine,                           /* in access/tsmapi.h */
        T_ForeignKeyCacheInfo,          /* in utils/rel.h */
index 31b631cfe0f1dd8efe8b2d39097ffcb83fcb5d53..6fe1ba9a9638abb8bea2cac3a986bb2682afb8a6 100644 (file)
@@ -836,7 +836,7 @@ struct IndexOptInfo
        bool            amhasgettuple;  /* does AM have amgettuple interface? */
        bool            amhasgetbitmap; /* does AM have amgetbitmap interface? */
        bool            amcanparallel;  /* does AM support parallel scan? */
-       /* Rather than include amapi.h here, we declare amcostestimate like this */
+       /* Rather than include indexam.h here, we declare amcostestimate like this */
        void            (*amcostestimate) ();   /* AM's cost estimator */
 };
 
index b81556d7a1ec2d80e66652c60b528c94cc71be3b..2a15f5abf611a5bac9fdf02aab555e0f67add28d 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Note: this is split out of selfuncs.h mainly to avoid importing all of the
  * planner's data structures into the non-planner parts of the index AMs.
- * If you make it depend on anything besides access/amapi.h, that's likely
+ * If you make it depend on anything besides access/indexam.h, that's likely
  * a mistake.
  *
  * Portions Copyright (c) 1996-2019, PostgreSQL Global Development Group
@@ -19,7 +19,7 @@
 #ifndef INDEX_SELFUNCS_H
 #define INDEX_SELFUNCS_H
 
-#include "access/amapi.h"
+#include "access/indexam.h"
 
 /* Functions in selfuncs.c */
 extern void brincostestimate(struct PlannerInfo *root,
index 31d8a1a10e7657afca940bdaa9c9bd0745ab94d7..2752eacc9fbce14f684d492dc3928870e226a93e 100644 (file)
@@ -153,7 +153,7 @@ typedef struct RelationData
         * identifier given that restriction.
         */
        MemoryContext rd_indexcxt;      /* private memory cxt for this stuff */
-       /* use "struct" here to avoid needing to include amapi.h: */
+       /* use "struct" here to avoid needing to include indexam.h: */
        struct IndexAmRoutine *rd_indam;        /* index AM's API struct */
        Oid                *rd_opfamily;        /* OIDs of op families for each index col */
        Oid                *rd_opcintype;       /* OIDs of opclass declared input data types */
index 053636e4b496746adea3e431e4e6b5eeb77b47ac..bade8868662919208b810e4a9073af28f9c4d4dd 100644 (file)
@@ -13,7 +13,7 @@
  */
 #include "postgres.h"
 
-#include "access/amapi.h"
+#include "access/indexam.h"
 #include "access/reloptions.h"
 #include "catalog/index.h"
 #include "nodes/pathnodes.h"