When pgosc is copying, replaying, etc - no other process/transaction should be able to perform DDL on the primary table. Can be achieved by holding a access share lock on the primary table, except during swap. Probably from separate connection (?)