pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #16873: CREATE SUBSCRIPTION command hangs (Cross version logical replication) Wait event LibPQWalReceiverRec
2+ messages / 2 participants
[nested] [flat]

* BUG #16873: CREATE SUBSCRIPTION command hangs (Cross version logical replication) Wait event LibPQWalReceiverRec
@ 2021-02-19 00:50  PG Bug reporting form <noreply@postgresql.org>
  0 siblings, 1 reply; 2+ messages in thread

From: PG Bug reporting form @ 2021-02-19 00:50 UTC (permalink / raw)
  To: pgsql-bugs@lists.postgresql.org; +Cc: abartash@xmatters.com

The following bug has been logged on the website:

Bug reference:      16873
Logged by:          Andriy Bartash
Email address:      abartash@xmatters.com
PostgreSQL version: 13.2
Operating system:   CentOS7
Description:        

Hello
Establishing logical replication between PG12 and PG13.2 and CREATE
SUBSCRIPTION command hangs.
Query bellow shows exact command, how long it's been running and wait
event.
Source and target PG clusters are running on different VMs
SELECT query, xact_start, now(),wait_event FROM pg_stat_activity where query
like 'CREATE SUBSCRIPTION%';
                                                        query               
                                        |          xact_start           |   
          now              |       wait_event
---------------------------------------------------------------------------------------------------------------------+-------------------------------+-------------------------------+-------------------------
 CREATE SUBSCRIPTION "auditstore_subscription"                              
                                       +| 2021-02-18 23:07:23.814108+00 |
2021-02-19 00:16:37.237905+00 | LibPQWalReceiverReceive
             CONNECTION 'host=10.141.0.29 port=5432
user=auditstore_publisher password=<PWD> dbname=auditstore'+|               
               |                               |
             PUBLICATION "auditstore_publication";                          
                                        |                               |   
                           |
(1 row)



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

* Re: BUG #16873: CREATE SUBSCRIPTION command hangs (Cross version logical replication) Wait event LibPQWalReceiverRec
@ 2021-02-19 06:06  Andriy Bartash <abartash@xmatters.com>
  parent: PG Bug reporting form <noreply@postgresql.org>
  0 siblings, 0 replies; 2+ messages in thread

From: Andriy Bartash @ 2021-02-19 06:06 UTC (permalink / raw)
  To: abartash@xmatters.com; pgsql-bugs@lists.postgresql.org

I am pretty sure, it's not a bug. I've managed to reproduce it and found
that session was blocked on source database.Blocked  query:

SELECT DISTINCT t.schemaname, t.tablename

  FROM pg_catalog.pg_publication_tables t

 WHERE t.pubname IN ('auditstore_publication')

Once I killed a blocker - subscription was created.



On Thu, Feb 18, 2021 at 4:51 PM PG Bug reporting form <
noreply@postgresql.org> wrote:

> The following bug has been logged on the website:
>
> Bug reference:      16873
> Logged by:          Andriy Bartash
> Email address:      abartash@xmatters.com
> PostgreSQL version: 13.2
> Operating system:   CentOS7
> Description:
>
> Hello
> Establishing logical replication between PG12 and PG13.2 and CREATE
> SUBSCRIPTION command hangs.
> Query bellow shows exact command, how long it's been running and wait
> event.
> Source and target PG clusters are running on different VMs
> SELECT query, xact_start, now(),wait_event FROM pg_stat_activity where
> query
> like 'CREATE SUBSCRIPTION%';
>                                                         query
>
>                                         |          xact_start           |
>
>           now              |       wait_event
>
> ---------------------------------------------------------------------------------------------------------------------+-------------------------------+-------------------------------+-------------------------
>  CREATE SUBSCRIPTION "auditstore_subscription"
>
>                                        +| 2021-02-18 23:07:23.814108+00 |
> 2021-02-19 00:16:37.237905+00 | LibPQWalReceiverReceive
>              CONNECTION 'host=10.141.0.29 port=5432
> user=auditstore_publisher password=<PWD> dbname=auditstore'+|
>
>                |                               |
>              PUBLICATION "auditstore_publication";
>
>                                         |                               |
>
>                            |
> (1 row)
>
>

-- 

*Andriy Bartash*

Database Administrator

xMatters : *Digital Service Availability Platform*

abartash@xmatters.com <dpeete@xmatters.com>

----------------------------

*Free Forever* <https://www.xmatters.com/free>* | **Meet Flow Designer*
<https://www.xmatters.com/features/flow-designer/>* | **See it in Action*
<https://youtu.be/AqCtonlFDaM;

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


end of thread, other threads:[~2021-02-19 06:06 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-02-19 00:50 BUG #16873: CREATE SUBSCRIPTION command hangs (Cross version logical replication) Wait event LibPQWalReceiverRec PG Bug reporting form <noreply@postgresql.org>
2021-02-19 06:06 ` Andriy Bartash <abartash@xmatters.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