Re: Fix doc of DROP SUBSCRIPTION

From: Yugo Nagata <nagata(at)sraoss(dot)co(dot)jp>
To: Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Fix doc of DROP SUBSCRIPTION
Date: 2017-06-30 13:17:15
Message-ID: 20170630221715.52142156.nagata@sraoss.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, 30 Jun 2017 20:17:39 +0900
Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com> wrote:

> On Fri, Jun 30, 2017 at 7:01 PM, Yugo Nagata <nagata(at)sraoss(dot)co(dot)jp> wrote:
> > Hi,
> >
> > The documentation says that a subscription that has a replication slot
> > cannot be dropped in a transaction block, but it is not allowed even
> > outside of a transaction block.
>
> Hmm, I think we can drop a subscription outside of a transaction block
> even if the subscription associates with a replication.

Sorry, I was wrong and missing something... I confirmaed it.
The documentation is right. Sorry for the noise.

>
> =# table pg_subscription;
> subdbid | subname | subowner | subenabled | subconninfo
> | subslotname | subsynccommit | subpublications
> ---------+----------+----------+------------+---------------------------+-------------+---------------+-----------------
> 13164 | hoge_sub | 10 | t | dbname=postgres
> port=5550 | hoge_sub | off | {one_pub}
> (1 row)
>
> =# drop subscription hoge_sub ;
> DROP SUBSCRIPTION
>
> Regards,
>
> --
> Masahiko Sawada
> NIPPON TELEGRAPH AND TELEPHONE CORPORATION
> NTT Open Source Software Center

--
Yugo Nagata <nagata(at)sraoss(dot)co(dot)jp>

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Mark Dilger 2017-06-30 13:32:42 Re: Request more documentation for incompatibility of parallelism and plpgsql exec_run_select
Previous Message Amit Kapila 2017-06-30 13:00:15 Re: Broken hint bits (freeze)