sql: create table x; begin; drop table x; create table x
: relation x
already exists
#13686
Labels
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
I believe this was discussed somewhere already, but wasn't able to find it. It's perhaps similar in spirit to #13505.
The problem is (presumably) that the table is really only dropped when the transaction commits, but the recreation in the same txn explicitly requires it to be (assumed) gone before commit.
Found while trying to use
diesel-rs
, which reliably triggers this with when following http://diesel.rs/guides/getting-started/ atdiesel migration run; diesel migration redo
.The text was updated successfully, but these errors were encountered: