From: Petr Jelinek <petr.jelinek@2ndquadrant.com>
To: digoal@126.com
To: pgsql-bugs@postgresql.org
Subject: Re: BUG #14571: 10.0 devel hang when create subscription
Date: Mon, 27 Feb 2017 15:18:44 +0100
Message-ID: <7a291899-090b-78c4-c39d-4988bbdb51e9@2ndquadrant.com> (raw)
In-Reply-To: <20170227081338.25057.52204@wrigleys.postgresql.org>
References: <20170227081338.25057.52204@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
On 27/02/17 09:13, digoal@126.com wrote:
> The following bug has been logged on the website:
>
> Bug reference: 14571
> Logged by: Zhou Digoal
> Email address: digoal@126.com
> PostgreSQL version: Unsupported/Unknown
> Operating system: CentOS 6.x x64
> Description:
>
> HI,
> i use this commit:
> https://git.postgresql.org/gitweb/?p=postgresql.git;a=snapshot;h=1513dbea7f89053476a5e95e2f2e952135a...
>
> when i create subscription , client hang .
>
> this is bt:
>
> (gdb) bt
> #0 0x00007f0ab9e7df13 in __epoll_wait_nocancel () from /lib64/libc.so.6
> #1 0x0000000000846636 in WaitEventSetWait ()
> #2 0x0000000000846a83 in WaitLatchOrSocket ()
> #3 0x00007f0aaad5fed1 in libpqrcv_PQexec () from
> /home/digoal/pgsql10/lib/libpqwalreceiver.so
> #4 0x00007f0aaad5fff7 in libpqrcv_create_slot () from
> /home/dege.zzz/pgsql10/lib/libpqwalreceiver.so
> #5 0x000000000059e101 in CreateSubscription ()
> #6 0x00000000005e1f09 in ProcessUtilitySlow.isra.7 ()
> #7 0x00000000005e2f19 in standard_ProcessUtility ()
> #8 0x00000000005e3ab5 in PortalRunUtility ()
> #9 0x00000000005e7a8f in PortalRunMulti ()
> #10 0x00000000005e8550 in PortalRun ()
> #11 0x00000000005eb2d9 in exec_simple_query ()
> #12 0x00000000005ee4e5 in PostgresMain ()
> #13 0x0000000000471cc1 in ServerLoop ()
> #14 0x0000000000674e1b in PostmasterMain ()
> #15 0x000000000087ad32 in main ()
>
Hi,
okay so it hangs on slot creation. Slot creation can usually hang in two
possible cases,
a) either you tried to make loopback replication connection (the
connection string given to CREATE SUBSCRIPTION points to same database
you are executing it in) or
b) there is a long running transaction on the PUBLICATION side.
Does either of these explain what you see?
--
Petr Jelinek http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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: petr.jelinek@2ndquadrant.com, digoal@126.com
Subject: Re: BUG #14571: 10.0 devel hang when create subscription
In-Reply-To: <7a291899-090b-78c4-c39d-4988bbdb51e9@2ndquadrant.com>
References: <20170227081338.25057.52204@wrigleys.postgresql.org> <7a291899-090b-78c4-c39d-4988bbdb51e9@2ndquadrant.com>
* 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