diff options
author | Tom Lane | 2013-03-04 00:05:47 +0000 |
---|---|---|
committer | Tom Lane | 2013-03-04 00:05:47 +0000 |
commit | b15a6da29217b14f02895af1d9271e84415a91ae (patch) | |
tree | b64150f2fc445ff79cb89846b173287d0c550e4b /src/include/rewrite/rewriteSupport.h | |
parent | 2b78d101d1d6b1d8533a7b7aeff4d82b10a915f8 (diff) |
Get rid of any toast table when converting a table to a view.
Also make sure other fields of the view's pg_class entry are appropriate
for a view; it shouldn't have relfrozenxid set for instance.
This ancient omission isn't believed to have any serious consequences in
versions 8.4-9.2, so no backpatch. But let's fix it before it does bite
us in some serious way. It's just luck that the case doesn't cause
problems for autovacuum. (It did cause problems in 8.3, but that's out
of support.)
Andres Freund
Diffstat (limited to 'src/include/rewrite/rewriteSupport.h')
-rw-r--r-- | src/include/rewrite/rewriteSupport.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/include/rewrite/rewriteSupport.h b/src/include/rewrite/rewriteSupport.h index ed40602bc87..70de400356a 100644 --- a/src/include/rewrite/rewriteSupport.h +++ b/src/include/rewrite/rewriteSupport.h @@ -19,8 +19,7 @@ extern bool IsDefinedRewriteRule(Oid owningRel, const char *ruleName); -extern void SetRelationRuleStatus(Oid relationId, bool relHasRules, - bool relIsBecomingView); +extern void SetRelationRuleStatus(Oid relationId, bool relHasRules); extern Oid get_rewrite_oid(Oid relid, const char *rulename, bool missing_ok); extern Oid get_rewrite_oid_without_relid(const char *rulename, |