Thread: pgsql/src/backend/rewrite rewriteHandler.c

pgsql/src/backend/rewrite rewriteHandler.c

From
Tom Lane
Date:
CVSROOT:    /home/projects/pgsql/cvsroot
Module name:    pgsql
Changes by:    tgl@hub.org    01/04/16 20:32:58

Modified files:
    src/backend/rewrite: rewriteHandler.c

Log message:
    Add some defenses to guard against case where a rule refers to a table
    or view that's been dropped and then recreated with the same name (but,
    perhaps, different columns).  Eventually we'd like to support this but
    for now all we can do is fail cleanly, rather than possibly coredumping
    if we proceed using the obsolete rule.