pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Errror when trying to create a logical replication slot
2+ messages / 2 participants
[nested] [flat]

* Errror when trying to create a logical replication slot
@ 2020-12-16 22:10 Craig Jackson <crajac66@gmail.com>
  2020-12-17 00:40 ` Re: Errror when trying to create a logical replication slot Hotmail <crajac66@hotmail.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Craig Jackson @ 2020-12-16 22:10 UTC (permalink / raw)
  To: Pgsql-admin <pgsql-admin@lists.postgresql.org>

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

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Errror when trying to create a logical replication slot
  2020-12-16 22:10 Errror when trying to create a logical replication slot Craig Jackson <crajac66@gmail.com>
@ 2020-12-17 00:40 ` Hotmail <crajac66@hotmail.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Hotmail @ 2020-12-17 00:40 UTC (permalink / raw)
  To: Pgsql-admin <pgsql-admin@lists.postgresql.org>; Craig Jackson <crajac66@gmail.com>

FYI, we resolved this issue. The problem was having pg_show_plans listed in shared_preload_libraries. We removed pg_show_plans from the shared_preload_libraries and we were able to successfully create the logical replication slot.


Craig
On Dec 16, 2020, 3:20 PM -0700, Craig Jackson <crajac66@gmail.com>, wrote:
> 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

^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2020-12-17 00:40 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-12-16 22:10 Errror when trying to create a logical replication slot Craig Jackson <crajac66@gmail.com>
2020-12-17 00:40 ` Hotmail <crajac66@hotmail.com>

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