• Tom Lane's avatar
    Disallow DROP TABLE/DROP INDEX inside a transaction block. · 0041202b
    Tom Lane authored
    We can't support these properly, since once the relation's physical files
    are unlinked, there's no way to roll back the transaction.  I suppose
    we could postpone the unlink till transaction commit, but then what of
    BEGIN; DROP TABLE foo; CREATE TABLE foo; ?
    The code does allow dropping a table/index created in the current
    transaction block, however, since the post-abort state would be that
    the table doesn't exist anyway.
    0041202b
index.c 45.8 KB