mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-09-09 02:49:24 +02:00
Move the system catalog index declarations from catalog/indexing.h to the respective parent tables' catalog/pg_*.h files. The original reason for having it split was that the old genbki system produced the output in the order of the catalog files it read, so all the indexing stuff needed to come separately. But this is no longer the case, and keeping it together makes more sense. Reviewed-by: John Naylor <john.naylor@enterprisedb.com> Discussion: https://www.postgresql.org/message-id/flat/c7cc82d6-f976-75d6-2e3e-b03d2cab26bb@2ndquadrant.com
58 lines
2.0 KiB
C
58 lines
2.0 KiB
C
/*-------------------------------------------------------------------------
|
|
*
|
|
* pg_foreign_data_wrapper.h
|
|
* definition of the "foreign-data wrapper" system catalog (pg_foreign_data_wrapper)
|
|
*
|
|
*
|
|
* Portions Copyright (c) 1996-2020, PostgreSQL Global Development Group
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
|
*
|
|
* src/include/catalog/pg_foreign_data_wrapper.h
|
|
*
|
|
* NOTES
|
|
* The Catalog.pm module reads this file and derives schema
|
|
* information.
|
|
*
|
|
*-------------------------------------------------------------------------
|
|
*/
|
|
#ifndef PG_FOREIGN_DATA_WRAPPER_H
|
|
#define PG_FOREIGN_DATA_WRAPPER_H
|
|
|
|
#include "catalog/genbki.h"
|
|
#include "catalog/pg_foreign_data_wrapper_d.h"
|
|
|
|
/* ----------------
|
|
* pg_foreign_data_wrapper definition. cpp turns this into
|
|
* typedef struct FormData_pg_foreign_data_wrapper
|
|
* ----------------
|
|
*/
|
|
CATALOG(pg_foreign_data_wrapper,2328,ForeignDataWrapperRelationId)
|
|
{
|
|
Oid oid; /* oid */
|
|
NameData fdwname; /* foreign-data wrapper name */
|
|
Oid fdwowner; /* FDW owner */
|
|
Oid fdwhandler; /* handler function, or 0 if none */
|
|
Oid fdwvalidator; /* option validation function, or 0 if none */
|
|
|
|
#ifdef CATALOG_VARLEN /* variable-length fields start here */
|
|
aclitem fdwacl[1]; /* access permissions */
|
|
text fdwoptions[1]; /* FDW options */
|
|
#endif
|
|
} FormData_pg_foreign_data_wrapper;
|
|
|
|
/* ----------------
|
|
* Form_pg_foreign_data_wrapper corresponds to a pointer to a tuple with
|
|
* the format of pg_foreign_data_wrapper relation.
|
|
* ----------------
|
|
*/
|
|
typedef FormData_pg_foreign_data_wrapper *Form_pg_foreign_data_wrapper;
|
|
|
|
DECLARE_TOAST(pg_foreign_data_wrapper, 4149, 4150);
|
|
|
|
DECLARE_UNIQUE_INDEX(pg_foreign_data_wrapper_oid_index, 112, on pg_foreign_data_wrapper using btree(oid oid_ops));
|
|
#define ForeignDataWrapperOidIndexId 112
|
|
DECLARE_UNIQUE_INDEX(pg_foreign_data_wrapper_name_index, 548, on pg_foreign_data_wrapper using btree(fdwname name_ops));
|
|
#define ForeignDataWrapperNameIndexId 548
|
|
|
|
#endif /* PG_FOREIGN_DATA_WRAPPER_H */
|