mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
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
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user