A better way to find out the sequence dependency for a table (#4996)
We find out all the sequences in the table, and verify if the
sequence should be created. later, we get the complete dump sql
that included the sequnce DDL and table DDL, It can create
the sequence before creating the table
This implementation is to avoid locking table during drop table with sequence in transaction, meantime execute command `psql -f ...` to create this sequence.
Signed-off-by: NMing LI <mli@apache.org>
Showing
想要评论请 注册 或 登录