diff options
author | Michael Paquier <michael@paquier.xyz> | 2019-12-25 10:23:39 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2019-12-25 10:23:39 +0900 |
commit | 8ce3aa9b5914d1ac45ed3f9bc484f66b3c4850c7 (patch) | |
tree | d054ac120b8d3496bffca18bf5c165205e8f44df /src/backend/access/index | |
parent | c4dcd9144ba64946c9f9466748bdb2c51719c8a3 (diff) | |
download | postgresql-8ce3aa9b5914d1ac45ed3f9bc484f66b3c4850c7.tar.gz postgresql-8ce3aa9b5914d1ac45ed3f9bc484f66b3c4850c7.zip |
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/backend/access/index')
-rw-r--r-- | src/backend/access/index/Makefile | 8 | ||||
-rw-r--r-- | src/backend/access/index/indexam.c | 2 | ||||
-rw-r--r-- | src/backend/access/index/indexamapi.c (renamed from src/backend/access/index/amapi.c) | 6 | ||||
-rw-r--r-- | src/backend/access/index/indexamvalidate.c (renamed from src/backend/access/index/amvalidate.c) | 6 | ||||
-rw-r--r-- | src/backend/access/index/indexgenam.c (renamed from src/backend/access/index/genam.c) | 8 |
5 files changed, 15 insertions, 15 deletions
diff --git a/src/backend/access/index/Makefile b/src/backend/access/index/Makefile index 6f2e3061a84..0d8cbbc88cb 100644 --- a/src/backend/access/index/Makefile +++ b/src/backend/access/index/Makefile @@ -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 diff --git a/src/backend/access/index/indexam.c b/src/backend/access/index/indexam.c index 4af418287d2..d5d6e29e181 100644 --- a/src/backend/access/index/indexam.c +++ b/src/backend/access/index/indexam.c @@ -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" diff --git a/src/backend/access/index/amapi.c b/src/backend/access/index/indexamapi.c index 450a7dce1fc..bda667cf934 100644 --- a/src/backend/access/index/amapi.c +++ b/src/backend/access/index/indexamapi.c @@ -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" diff --git a/src/backend/access/index/amvalidate.c b/src/backend/access/index/indexamvalidate.c index 5a2728502ce..8f00012d209 100644 --- a/src/backend/access/index/amvalidate.c +++ b/src/backend/access/index/indexamvalidate.c @@ -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" diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/indexgenam.c index 2599b5d3425..6a1ac6cc309 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/indexgenam.c @@ -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" |