-
Notifications
You must be signed in to change notification settings - Fork 273
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
transaction:false not working on PostgreSQL #285
Comments
@kashifsoofi could you confirm what version of dbmate you're running? |
The |
I have tested with |
Got it, thanks! Will see if I can replicate. |
If I run a single CREATE INDEX CONCURRENTLY statement then there is no error |
@kashifsoofi the example in the description has only one statement - could you paste an example file here that triggers the error? |
Modifying test file in dbmate code
Like I said, if i create another migration file, with only CREATE INDEX statement it works, work around would be to create lot of files :( |
I think the solution would be to somehow run each statement 1 by 1 incase there are multiple statements in a migration file. Maybe with an option multi-statement:true so that script owner can control it 🤔 |
Something like this
And then in db.go
|
@kashifsoofi if you use
|
@rohitpaulk Yes it does occur, however if I have file with only single step then there is no error
|
I can confirm the same issue, |
Duplicate of #182 |
Hi,
We are using dbmate for migrations, we are running into an issue where we want to run following
We are getting following error
Error: pq: CREATE INDEX CONCURRENTLY cannot run inside a transaction block
I didn't had to chance to run dbmate from source, has anyone else run into similar?
Thanks
The text was updated successfully, but these errors were encountered: