londiste.local_remove_table: resture DDL if still attached to table
authorMarko Kreen <markokr@gmail.com>
Tue, 18 Sep 2012 10:40:45 +0000 (13:40 +0300)
committerMarko Kreen <markokr@gmail.com>
Tue, 18 Sep 2012 10:40:45 +0000 (13:40 +0300)
commitb138b5ba9cf949d01da545385d799d658f3c3465
treef5db0c36202e3b32d46844e192b35cd88a9093ac
parentbdab56341b2d7b89686cd37168ebb26687ee13d2
londiste.local_remove_table: resture DDL if still attached to table

Multi-TX COPY can happen on merge nodes.  If table
is removed during such copy, the DDL is removed from table
and put to 'dropped_ddl' column.

If dropped_ddl is not empty, the table is truncated and
DDL is restored.  Reason for truncate is that table is
unsynced anyway, so no point keeping the data.
sql/londiste/expected/londiste_merge.out
sql/londiste/functions/londiste.local_remove_table.sql
sql/londiste/sql/londiste_merge.sql