What I don't get is why postgres can't detect table replacements and trigger a serialization failure for the affected transactions.