CREATE SUBSCRIPTION uninterruptable

Started by Thom Brownalmost 9 years ago3 messages
#1Thom Brown
thom@linux.com

Hi,

I've noticed that when creating a subscription, it can't be
interrupted. One must wait until it times out, which takes just over
2 minutes. I'm guessing ALTER SUBSCRIPTION would have the same
problem.

Shouldn't we have an interrupt for this?

Thom

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

#2Peter Eisentraut
peter.eisentraut@2ndquadrant.com
In reply to: Thom Brown (#1)
Re: CREATE SUBSCRIPTION uninterruptable

On 2/16/17 09:44, Thom Brown wrote:

I've noticed that when creating a subscription, it can't be
interrupted. One must wait until it times out, which takes just over
2 minutes. I'm guessing ALTER SUBSCRIPTION would have the same
problem.

Shouldn't we have an interrupt for this?

I think this is addressed by these patches:
https://commitfest.postgresql.org/13/991/

Please give them a try.

--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

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

#3Thom Brown
thom@linux.com
In reply to: Peter Eisentraut (#2)
Re: CREATE SUBSCRIPTION uninterruptable

On 17 February 2017 at 14:14, Peter Eisentraut
<peter.eisentraut@2ndquadrant.com> wrote:

On 2/16/17 09:44, Thom Brown wrote:

I've noticed that when creating a subscription, it can't be
interrupted. One must wait until it times out, which takes just over
2 minutes. I'm guessing ALTER SUBSCRIPTION would have the same
problem.

Shouldn't we have an interrupt for this?

I think this is addressed by these patches:
https://commitfest.postgresql.org/13/991/

Please give them a try.

Okay, I've now tested those patches, and they do indeed fix this problem for me.

Thanks

Thom

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