summaryrefslogtreecommitdiff
path: root/src/backend/optimizer
diff options
context:
space:
mode:
authorMichael Paquier2019-12-26 23:09:00 +0000
committerMichael Paquier2019-12-26 23:09:00 +0000
commit7854e07f25be3a3dfa9c94011a30767eca3c10ba (patch)
tree8ce33a49ebdec40bcccd7892f5106fa9e53989b4 /src/backend/optimizer
parent4ba4bfaf256c17fe4c8f497924b74eb98241b84f (diff)
Revert "Rename files and headers related to index AM"
This follows multiple complains from Peter Geoghegan, Andres Freund and Alvaro Herrera that this issue ought to be dug more before actually happening, if it happens. Discussion: https://postgr.es/m/20191226144606.GA5659@alvherre.pgsql
Diffstat (limited to 'src/backend/optimizer')
-rw-r--r--src/backend/optimizer/path/costsize.c4
-rw-r--r--src/backend/optimizer/plan/planner.c2
-rw-r--r--src/backend/optimizer/util/plancat.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/optimizer/path/costsize.c b/src/backend/optimizer/path/costsize.c
index 2911c7a461b..c5f65934859 100644
--- a/src/backend/optimizer/path/costsize.c
+++ b/src/backend/optimizer/path/costsize.c
@@ -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 indexam.h.
+ * pathnodes.h uses a weak function type to avoid including amapi.h.
*/
amcostestimate = (amcostestimate_function) index->amcostestimate;
amcostestimate(root, path, loop_count,
diff --git a/src/backend/optimizer/plan/planner.c b/src/backend/optimizer/plan/planner.c
index d63ebb7287c..cb54b15507b 100644
--- a/src/backend/optimizer/plan/planner.c
+++ b/src/backend/optimizer/plan/planner.c
@@ -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"
diff --git a/src/backend/optimizer/util/plancat.c b/src/backend/optimizer/util/plancat.c
index c15654e660c..5e889d18614 100644
--- a/src/backend/optimizer/util/plancat.c
+++ b/src/backend/optimizer/util/plancat.c
@@ -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"