mirror of
https://github.com/postgres/postgres.git
synced 2025-07-07 00:36:50 +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:
@ -95,6 +95,7 @@ ExecRenameStmt(RenameStmt *stmt)
|
||||
case OBJECT_COLUMN:
|
||||
case OBJECT_ATTRIBUTE:
|
||||
case OBJECT_TRIGGER:
|
||||
case OBJECT_FOREIGN_TABLE:
|
||||
{
|
||||
Oid relid;
|
||||
|
||||
@ -108,6 +109,7 @@ ExecRenameStmt(RenameStmt *stmt)
|
||||
case OBJECT_SEQUENCE:
|
||||
case OBJECT_VIEW:
|
||||
case OBJECT_INDEX:
|
||||
case OBJECT_FOREIGN_TABLE:
|
||||
{
|
||||
/*
|
||||
* RENAME TABLE requires that we (still) hold
|
||||
@ -206,6 +208,7 @@ ExecAlterObjectSchemaStmt(AlterObjectSchemaStmt *stmt)
|
||||
case OBJECT_SEQUENCE:
|
||||
case OBJECT_TABLE:
|
||||
case OBJECT_VIEW:
|
||||
case OBJECT_FOREIGN_TABLE:
|
||||
CheckRelationOwnership(stmt->relation, true);
|
||||
AlterTableNamespace(stmt->relation, stmt->newschema,
|
||||
stmt->objectType, AccessExclusiveLock);
|
||||
|
Reference in New Issue
Block a user