Replace alter_table.sql test usage of event triggers.

Andres Freund <andres@anarazel.de>

Commit: 3b25de62099cf954ea0ca1fe5d70dbc3fbb776c5
Author: Andres Freund <andres@anarazel.de>
Date: 2019-10-16T09:38:13Z
Releases: 12.1
Replace alter_table.sql test usage of event triggers.

The test in 93765bd956b added an event trigger to ensure that the
tested table rewrites do not get optimized away (as happened in the
past). But doing so would require running the tests in isolation, as
otherwise the trigger might also fire in concurrent sessions, causing
test failures there.

Reported-By: Tom Lane
Discussion: https://postgr.es/m/3328.1570740683@sss.pgh.pa.us
Backpatch: 12, just as 93765bd956b

Files

Discussion

Cited messages not in the archive: 3328.1570740683@sss.pgh.pa.us