mirror of
https://github.com/postgres/postgres.git
synced 2025-07-12 21:01:52 +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:
@ -782,6 +782,9 @@ extractRelOptions(HeapTuple tuple, TupleDesc tupdesc, Oid amoptions)
|
||||
case RELKIND_INDEX:
|
||||
options = index_reloptions(amoptions, datum, false);
|
||||
break;
|
||||
case RELKIND_FOREIGN_TABLE:
|
||||
options = NULL;
|
||||
break;
|
||||
default:
|
||||
Assert(false); /* can't get here */
|
||||
options = NULL; /* keep compiler quiet */
|
||||
@ -1174,7 +1177,7 @@ heap_reloptions(char relkind, Datum reloptions, bool validate)
|
||||
case RELKIND_RELATION:
|
||||
return default_reloptions(reloptions, validate, RELOPT_KIND_HEAP);
|
||||
default:
|
||||
/* sequences, composite types and views are not supported */
|
||||
/* other relkinds are not supported */
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user