mirror of
https://github.com/postgres/postgres.git
synced 2025-10-16 17:07:43 +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:
@@ -2726,6 +2726,7 @@ _getObjectDescription(PQExpBuffer buf, TocEntry *te, ArchiveHandle *AH)
|
||||
strcmp(type, "DOMAIN") == 0 ||
|
||||
strcmp(type, "TABLE") == 0 ||
|
||||
strcmp(type, "TYPE") == 0 ||
|
||||
strcmp(type, "FOREIGN TABLE") == 0 ||
|
||||
strcmp(type, "TEXT SEARCH DICTIONARY") == 0 ||
|
||||
strcmp(type, "TEXT SEARCH CONFIGURATION") == 0)
|
||||
{
|
||||
@@ -2918,6 +2919,7 @@ _printTocEntry(ArchiveHandle *AH, TocEntry *te, RestoreOptions *ropt, bool isDat
|
||||
strcmp(te->desc, "TYPE") == 0 ||
|
||||
strcmp(te->desc, "VIEW") == 0 ||
|
||||
strcmp(te->desc, "SEQUENCE") == 0 ||
|
||||
strcmp(te->desc, "FOREIGN TABLE") == 0 ||
|
||||
strcmp(te->desc, "TEXT SEARCH DICTIONARY") == 0 ||
|
||||
strcmp(te->desc, "TEXT SEARCH CONFIGURATION") == 0 ||
|
||||
strcmp(te->desc, "FOREIGN DATA WRAPPER") == 0 ||
|
||||
|
Reference in New Issue
Block a user