mirror of
https://github.com/postgres/postgres.git
synced 2025-06-14 18:42:34 +03:00
Basic foreign table support.
Foreign tables are a core component of SQL/MED. This commit does not provide a working SQL/MED infrastructure, because foreign tables cannot yet be queried. Support for foreign table scans will need to be added in a future patch. However, this patch creates the necessary system catalog structure, syntax support, and support for ancillary operations such as COMMENT and SECURITY LABEL. Shigeru Hanada, heavily revised by Robert Haas
This commit is contained in:
12
src/backend/utils/cache/syscache.c
vendored
12
src/backend/utils/cache/syscache.c
vendored
@ -35,6 +35,7 @@
|
||||
#include "catalog/pg_enum.h"
|
||||
#include "catalog/pg_foreign_data_wrapper.h"
|
||||
#include "catalog/pg_foreign_server.h"
|
||||
#include "catalog/pg_foreign_table.h"
|
||||
#include "catalog/pg_language.h"
|
||||
#include "catalog/pg_namespace.h"
|
||||
#include "catalog/pg_opclass.h"
|
||||
@ -398,6 +399,17 @@ static const struct cachedesc cacheinfo[] = {
|
||||
},
|
||||
32
|
||||
},
|
||||
{ForeignTableRelationId, /* FOREIGNTABLEREL */
|
||||
ForeignTableRelidIndexId,
|
||||
1,
|
||||
{
|
||||
Anum_pg_foreign_table_ftrelid,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
},
|
||||
128
|
||||
},
|
||||
{IndexRelationId, /* INDEXRELID */
|
||||
IndexRelidIndexId,
|
||||
1,
|
||||
|
Reference in New Issue
Block a user