Modifies a foreign table in associated analysis.
None
1 2 | ALTER FOREIGN TABLE [ IF EXISTS ] tablename OPTIONS ( {[ SET ] option ['value']} [, ... ]); |
1 2 | ALTER FOREIGN TABLE [ IF EXISTS ] tablename OWNER TO new_owner; |
1 2 | ALTER FOREIGN TABLE [ IF EXISTS ] table_name MODIFY ( { column_name data_type [, ...] } ); |
1 2 | ALTER FOREIGN TABLE [ IF EXISTS ] tablename action [, ... ]; |
1 2 | ALTER [ COLUMN ] column_name [ SET DATA ] TYPE data_type | MODIFY column_name data_type |
For details, see ALTER TABLE.
Sends a notification instead of an error if no tables have identical names. The notification prompts that the table you are querying does not exist.
Specifies the name of an existing foreign table to be modified.
Value range: an existing foreign table name
Specifies the new owner of the foreign table.
Value range: a string indicating a valid user name
Specifies the new type for an existing column.
Value range: a string. It must comply with the naming convention.
Specifies the name of an existing column.
Value range: a string. It must comply with the naming convention.
For details on how to modify other parameters in the foreign table, see Parameter Description in ALTER TABLE.
1 | ALTER FOREIGN TABLE region OPTIONS (SET schema_name 'test'); |
Change the type of the r_name column to text in the region foreign table.
1 | ALTER FOREIGN TABLE region ALTER r_name TYPE TEXT; |