Closed aamine closed 7 years ago
既存テーブルを新しいテーブルとトランザクションの中ですりかえるとき、既存テーブルをdropしてしまうと、すでに実行中のトランザクションからテーブルがdropされたことが見えてしまい、"table dropped in concurrent transaction" のエラーになる。
ref: http://stackoverflow.com/questions/20692518/how-can-i-ensure-synchronous-ddl-operations-on-a-table-that-is-being-replaced
このエラーを回避するためには、dropを別トランザクションで実施しなければならない。
既存テーブルを新しいテーブルとトランザクションの中ですりかえるとき、既存テーブルをdropしてしまうと、すでに実行中のトランザクションからテーブルがdropされたことが見えてしまい、"table dropped in concurrent transaction" のエラーになる。
ref: http://stackoverflow.com/questions/20692518/how-can-i-ensure-synchronous-ddl-operations-on-a-table-that-is-being-replaced
このエラーを回避するためには、dropを別トランザクションで実施しなければならない。