aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/comment.c
diff options
context:
space:
mode:
authorSimon Riggs <simon@2ndQuadrant.com>2017-04-18 10:42:10 +0100
committerSimon Riggs <simon@2ndQuadrant.com>2017-04-18 10:42:10 +0100
commit51175f3638524231405e674e40bde159b0b76727 (patch)
tree34c4d4a53ca94d7b320d0ad02ae6dd30b187f9b2 /src/backend/commands/comment.c
parentb2188575c59462c0fd23b63c92fb802206162e49 (diff)
downloadpostgresql-51175f3638524231405e674e40bde159b0b76727.tar.gz
postgresql-51175f3638524231405e674e40bde159b0b76727.zip
Allow COMMENT ON COLUMN with partitioned tables
Amit Langote
Diffstat (limited to 'src/backend/commands/comment.c')
-rw-r--r--src/backend/commands/comment.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/backend/commands/comment.c b/src/backend/commands/comment.c
index b5569bddaf2..1c17927c499 100644
--- a/src/backend/commands/comment.c
+++ b/src/backend/commands/comment.c
@@ -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",