1
0
mirror of https://github.com/postgres/postgres.git synced 2025-10-21 02:52:47 +03:00

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
This commit is contained in:
Michael Paquier
2019-12-27 08:09:00 +09:00
parent 4ba4bfaf25
commit 7854e07f25
117 changed files with 147 additions and 147 deletions

View File

@@ -1,18 +1,18 @@
/*-------------------------------------------------------------------------
*
* indexam.h
* amapi.h
* API for Postgres index access methods.
*
* Copyright (c) 2015-2019, PostgreSQL Global Development Group
*
* src/include/access/indexam.h
* src/include/access/amapi.h
*
*-------------------------------------------------------------------------
*/
#ifndef INDEXAM_H
#define INDEXAM_H
#ifndef AMAPI_H
#define AMAPI_H
#include "access/indexgenam.h"
#include "access/genam.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/indexamapi.c */
/* Functions in access/index/amapi.c */
extern IndexAmRoutine *GetIndexAmRoutine(Oid amhandler);
extern IndexAmRoutine *GetIndexAmRoutineByAmId(Oid amoid, bool noerror);
#endif /* INDEXAM_H */
#endif /* AMAPI_H */

View File

@@ -1,16 +1,16 @@
/*-------------------------------------------------------------------------
*
* indexamvalidate.h
* amvalidate.h
* Support routines for index access methods' amvalidate functions.
*
* Copyright (c) 2016-2019, PostgreSQL Global Development Group
*
* src/include/access/indexamvalidate.h
* src/include/access/amvalidate.h
*
*-------------------------------------------------------------------------
*/
#ifndef INDEXAMVALIDATE_H
#define INDEXAMVALIDATE_H
#ifndef AMVALIDATE_H
#define AMVALIDATE_H
#include "utils/catcache.h"
@@ -25,7 +25,7 @@ typedef struct OpFamilyOpFuncGroup
} OpFamilyOpFuncGroup;
/* Functions in access/index/indexamvalidate.c */
/* Functions in access/index/amvalidate.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 /* INDEXAMVALIDATE_H */
#endif /* AMVALIDATE_H */

View File

@@ -11,7 +11,7 @@
#ifndef BRIN_INTERNAL_H
#define BRIN_INTERNAL_H
#include "access/indexam.h"
#include "access/amapi.h"
#include "storage/bufpage.h"
#include "utils/typcache.h"

View File

@@ -1,18 +1,18 @@
/*-------------------------------------------------------------------------
*
* indexgenam.h
* genam.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/indexgenam.h
* src/include/access/genam.h
*
*-------------------------------------------------------------------------
*/
#ifndef INDEXGENAM_H
#define INDEXGENAM_H
#ifndef GENAM_H
#define GENAM_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 indexgenam.c)
* index access method support routines (in genam.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 indexgenam.c)
* heap-or-index access to system catalogs (in genam.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 /* INDEXGENAM_H */
#endif /* GENAM_H */

View 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"

View File

@@ -14,14 +14,14 @@
#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.

View File

@@ -14,7 +14,7 @@
#ifndef GISTSCAN_H
#define GISTSCAN_H
#include "access/indexam.h"
#include "access/amapi.h"
extern IndexScanDesc gistbeginscan(Relation r, int nkeys, int norderbys);
extern void gistrescan(IndexScanDesc scan, ScanKey key, int nkeys,

View File

@@ -17,7 +17,7 @@
#ifndef HASH_H
#define HASH_H
#include "access/indexam.h"
#include "access/amapi.h"
#include "access/itup.h"
#include "access/sdir.h"
#include "catalog/pg_am_d.h"

View File

@@ -14,7 +14,7 @@
#ifndef NBTREE_H
#define NBTREE_H
#include "access/indexam.h"
#include "access/amapi.h"
#include "access/itup.h"
#include "access/sdir.h"
#include "access/xlogreader.h"

View 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"

View File

@@ -14,7 +14,7 @@
#ifndef SPGIST_H
#define SPGIST_H
#include "access/indexam.h"
#include "access/amapi.h"
#include "access/xlogreader.h"
#include "lib/stringinfo.h"