londiste copy: reorganize DDL restoration logic
authorMarko Kreen <markokr@gmail.com>
Sun, 18 Sep 2011 20:33:49 +0000 (23:33 +0300)
committerMarko Kreen <markokr@gmail.com>
Sun, 18 Sep 2011 20:33:49 +0000 (23:33 +0300)
commit91bab1c08766418e4d9a4e88d877b243294c53bc
tree045a26805ee64289bddb32255d9f2f1b877e70de
parent496c13bb313f992130a303d1f5efd6a76e51a4b8
londiste copy: reorganize DDL restoration logic

Fix transactionality around merge-node ddl handling.

Move restoration to playback, happens when 'catching-up' has ddl.
This allows DDL restoration in separate tx (merge node) to fail.

Also lock table before ddl reading, this avoid concurrent ddl droppers.
python/londiste/playback.py
python/londiste/table_copy.py