pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #14571: 10.0 devel hang when create subscription
2+ messages / 2 participants
[nested] [flat]

* BUG #14571: 10.0 devel hang when create subscription
@ 2017-02-27 08:13  digoal@126.com
  0 siblings, 1 reply; 2+ messages in thread

From: digoal@126.com @ 2017-02-27 08:13 UTC (permalink / raw)
  To: pgsql-bugs

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 ()

best regards.


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs


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

* Re: BUG #14571: 10.0 devel hang when create subscription
@ 2017-02-27 14:18  Petr Jelinek <petr.jelinek@2ndquadrant.com>
  parent: digoal@126.com
  0 siblings, 0 replies; 2+ messages in thread

From: Petr Jelinek @ 2017-02-27 14:18 UTC (permalink / raw)
  To: digoal@126.com; pgsql-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



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


end of thread, other threads:[~2017-02-27 14:18 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2017-02-27 08:13 BUG #14571: 10.0 devel hang when create subscription digoal@126.com
2017-02-27 14:18 ` Petr Jelinek <petr.jelinek@2ndquadrant.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