From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: harada.toshi@po.ntt-tx.co.jp
Subject: BUG #15305: PREPARE TRANSACTION and pg_create_logical_replication_slot()
Date: Tue, 31 Jul 2018 00:26:39 +0000
Message-ID: <153299679998.1396.1013733966088921593@wrigleys.postgresql.org> (raw)
The following bug has been logged on the website:
Bug reference: 15305
Logged by: Toshi Harada
Email address: harada.toshi@po.ntt-tx.co.jp
PostgreSQL version: 10.4
Operating system: CentOS Linux release 7.4.1708 (Core)
Description:
Execution of pg_create_logical_replication_slot() is blocked after execution
of PREPARE TRANSACTION.
Steps to Reproduce
1.Execute the PREPARE TRANSACTION command to put it in the state before
two-phase commit.
pgbench_db=# PREPARE TRANSACTION 'foo';
PREPARE TRANSACTION
pgbench_db=#
2. Execution of the pg_create_logical_replication_slot () function in the
state before two-phase commit is blocked.
pgbench_db=# SELECT pg_create_logical_replication_slot('my_slot',
'test_decoding');
3. When the two-phase commit state is released by executing the ROLLBACK
PREPARE command from another terminal, pg_create_logical_replication_slot ()
is executed and a logical slot is generated.
pg_create_logical_replication_slot
------------------------------------
(my_slot,4/60CAA460)
(1 row)
[Question]
Is it specifications that are blocked when trying to create logical slots in
the state before two-phase commit?
If that is a spec, it is better to add notes to the PostgreSQL document.
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: noreply@postgresql.org, harada.toshi@po.ntt-tx.co.jp
Subject: Re: BUG #15305: PREPARE TRANSACTION and pg_create_logical_replication_slot()
In-Reply-To: <153299679998.1396.1013733966088921593@wrigleys.postgresql.org>
References: <153299679998.1396.1013733966088921593@wrigleys.postgresql.org>
* 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