We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ce9ae5 commit 750903eCopy full SHA for 750903e
pg_squeeze.c
@@ -928,6 +928,18 @@ check_prerequisites(Relation rel)
928
errmsg("\"%s\" is shared relation",
929
RelationGetRelationName(rel))));
930
931
+ if (IsCatalogRelation(rel))
932
+ ereport(ERROR,
933
+ (errcode(ERRCODE_WRONG_OBJECT_TYPE),
934
+ errmsg("\"%s\" is a catalog relation",
935
+ RelationGetRelationName(rel))));
936
+
937
+ /*
938
+ * We cannot simply replace the storage of a mapped relation.
939
+ *
940
+ * The previous check should have caught them, but let's try hard to be
941
+ * safe.
942
+ */
943
if (RelationIsMapped(rel))
944
ereport(ERROR,
945
(errcode(ERRCODE_WRONG_OBJECT_TYPE),
0 commit comments