• Tom Lane's avatar
    Get rid of any toast table when converting a table to a view. · b15a6da2
    Tom Lane authored
    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
    b15a6da2
rewriteSupport.h 880 Bytes