Closed rudolfix closed 2 months ago
fixes #1711
NOTE: this will prevent race conditions only if CREATE TABLE IF NOT EXISTS is atomic. ie. on postgres it is not if table contains partitions: https://stackoverflow.com/questions/77486178/how-to-prevent-create-table-if-not-exists-fail-with-duplicate-table
still the chances of a race are way smaller
also fixes two minor issues, see commit list below
Description
fixes #1711
NOTE: this will prevent race conditions only if CREATE TABLE IF NOT EXISTS is atomic. ie. on postgres it is not if table contains partitions: https://stackoverflow.com/questions/77486178/how-to-prevent-create-table-if-not-exists-fail-with-duplicate-table
still the chances of a race are way smaller
also fixes two minor issues, see commit list below