diff options
| author | Michael Paquier | 2019-12-25 01:23:39 +0000 |
|---|---|---|
| committer | Michael Paquier | 2019-12-25 01:23:39 +0000 |
| commit | 8ce3aa9b5914d1ac45ed3f9bc484f66b3c4850c7 (patch) | |
| tree | d054ac120b8d3496bffca18bf5c165205e8f44df /src/include/nodes | |
| parent | c4dcd9144ba64946c9f9466748bdb2c51719c8a3 (diff) | |
Rename files and headers related to index AM
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.GF34339@paquier.xyz
Diffstat (limited to 'src/include/nodes')
| -rw-r--r-- | src/include/nodes/nodes.h | 2 | ||||
| -rw-r--r-- | src/include/nodes/pathnodes.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/include/nodes/nodes.h b/src/include/nodes/nodes.h index bce2d59b0db..8692a32172f 100644 --- a/src/include/nodes/nodes.h +++ b/src/include/nodes/nodes.h @@ -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 */ diff --git a/src/include/nodes/pathnodes.h b/src/include/nodes/pathnodes.h index 31b631cfe0f..6fe1ba9a963 100644 --- a/src/include/nodes/pathnodes.h +++ b/src/include/nodes/pathnodes.h @@ -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 */ }; |
