You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.
Which version and edition of Flyway are you using?
Flyway 5.0.7 community
If this is not the latest version, can you reproduce the issue with the latest one as well?
(Many bugs are fixed in newer releases and upgrading will often resolve the issue)
Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin)
Command-line
Which database are you using (type & version)?
Postgresql 10.1
Which operating system are you using?
Ubuntu
What did you do?
(Please include the content causing the issue, any relevant configuration settings, the SQL statement that failed (if relevant) and the command you ran.)
We are trying to create a PG logical replication setup.
As part of this setup, on the server where data is to replicated, we need to run the following statement, after the database model is created:
A successful migration message, just like for other migrations.
What did you see instead?
Migration V1.2__Setup_replication.sql failed
SQL State : 25001
Error Code : 0
Message : ERROR: CREATE SUBSCRIPTION ... WITH (create_slot = true) cannot run inside a transaction block
The text was updated successfully, but these errors were encountered:
razvannegrea
changed the title
Non-transactional Postgresql statement not detected, thus executed inside a transaction and resulting in failture
Non-transactional Postgresql statement not detected, thus executed inside a transaction and resulting in failure
Apr 22, 2018
axelfontaine
changed the title
Non-transactional Postgresql statement not detected, thus executed inside a transaction and resulting in failure
CREATE SUBSCRIPTION PostgreSQL statement not detected as non-transactional
May 23, 2018
Which version and edition of Flyway are you using?
Flyway 5.0.7 community
If this is not the latest version, can you reproduce the issue with the latest one as well?
(Many bugs are fixed in newer releases and upgrading will often resolve the issue)
Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin)
Command-line
Which database are you using (type & version)?
Postgresql 10.1
Which operating system are you using?
Ubuntu
What did you do?
(Please include the content causing the issue, any relevant configuration settings, the SQL statement that failed (if relevant) and the command you ran.)
We are trying to create a PG logical replication setup.
As part of this setup, on the server where data is to replicated, we need to run the following statement, after the database model is created:
CREATE SUBSCRIPTION ifdb_subscription CONNECTION 'host=xxx.xxx.xxx.xxx dbname=xxxx user=xxxx password=xxxx port=5432' PUBLICATION ifdb_publication;
What did you expect to see?
A successful migration message, just like for other migrations.
What did you see instead?
Migration V1.2__Setup_replication.sql failed
SQL State : 25001
Error Code : 0
Message : ERROR: CREATE SUBSCRIPTION ... WITH (create_slot = true) cannot run inside a transaction block
The text was updated successfully, but these errors were encountered: