mirror of
https://github.com/postgres/postgres.git
synced 2025-07-12 21:01:52 +03:00
Allow COMMENT ON COLUMN with partitioned tables
Amit Langote
This commit is contained in:
@ -94,7 +94,8 @@ CommentObject(CommentStmt *stmt)
|
||||
relation->rd_rel->relkind != RELKIND_VIEW &&
|
||||
relation->rd_rel->relkind != RELKIND_MATVIEW &&
|
||||
relation->rd_rel->relkind != RELKIND_COMPOSITE_TYPE &&
|
||||
relation->rd_rel->relkind != RELKIND_FOREIGN_TABLE)
|
||||
relation->rd_rel->relkind != RELKIND_FOREIGN_TABLE &&
|
||||
relation->rd_rel->relkind != RELKIND_PARTITIONED_TABLE)
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_WRONG_OBJECT_TYPE),
|
||||
errmsg("\"%s\" is not a table, view, materialized view, composite type, or foreign table",
|
||||
|
Reference in New Issue
Block a user