Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sql: create table x; begin; drop table x; create table x: relation x already exists #13686

Closed
tbg opened this issue Feb 21, 2017 · 2 comments
Closed
Labels
C-bug Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.

Comments

@tbg
Copy link
Member

tbg commented Feb 21, 2017

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/ at diesel migration run; diesel migration redo.

@tbg tbg added the C-bug Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior. label Feb 21, 2017
@nvanbenschoten
Copy link
Member

IIRC, @andreimatei is intimately familiar with this issue.

@a-robinson
Copy link
Contributor

Yeah, we already have some discussion about this on #12123.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
Projects
None yet
Development

No branches or pull requests

3 participants