We get the following error when trying to test creating a logical replication slot in Postgres version 11.9
>SELECT * FROM pg_create_logical_replication_slot('regression_slot', 'test_decoding'); ERROR: cannot create logical replication slot in transaction that has performed writes
We are running the above command from psql and have tried issuing a rollback prior to running the command but still get the same error.