pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Craig Jackson <crajac66@gmail.com>
To: Pgsql-admin <pgsql-admin@lists.postgresql.org>
Subject: Errror when trying to create a logical replication slot
Date: Wed, 16 Dec 2020 15:10:31 -0700
Message-ID: <c3389938-1a1c-4edb-a573-610e37cb9f2c@Spark> (raw)
In-Reply-To: <31314397-9cc1-479f-ab41-b415458a4da7@Spark>
References: <31314397-9cc1-479f-ab41-b415458a4da7@Spark>

Hi All,

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.

We have the following settings enabled:

>show wal_level;
 wal_level
-----------
 logical

>show max_replication_slots;
 max_replication_slots
-----------------------
 25

Any suggestions on what may be causing the above error are appreciated.

Regards,


Craig Jackson

view thread (2+ messages)  latest in thread

Message-ID: <c3389938-1a1c-4edb-a573-610e37cb9f2c@Spark>
Permalink:  ../c3389938-1a1c-4edb-a573-610e37cb9f2c@Spark/
Also on:    postgresql.org/message-id/c3389938-1a1c-4edb-a573-610e37cb9f2c@Spark

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: crajac66@gmail.com, pgsql-admin@lists.postgresql.org
  Subject: Re: Errror when trying to create a logical replication slot
  In-Reply-To: <c3389938-1a1c-4edb-a573-610e37cb9f2c@Spark>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox