SLONIK_UNSUBSCRIBE_SET(7)

SLONIK_UNSUBSCRIBE_SET7

End replication of slony-i set

Usage

FCUNSUBSCRIBE SET (options);F[0]

Overview

Stops the subscriber from replicating the set. The tables are opened up for full access by the client application on the former subscriber. The tables are not truncated or otherwise modified. All original triggers, rules and constraints are restored.

FCID = ival F[0]

ID of the set to unsubscribe

FCRECEIVER = ival F[0]

Node ID of the (former) subscriber

Examples

FCUNSUBSCRIBE SET (
   ID = 1,
   RECEIVER = 3
);
    F[0]

Locking behaviour

Exclusive locks on each replicated table will be taken out on the subscriber in order to drop replication triggers from the tables and restore other triggers/rules.

Slonik event confirmation behaviour

Slonik waits for the command submitted to the previous event node to be confirmed on the specified event node before submitting this command.

Dangerous/unintuitive behaviour

Resubscribing an unsubscribed set requires a complete fresh copy of data from the provider to be transferred since the tables have been subject to possible independent modifications.

Version information

This command was introduced in Slony-I 1.0

Releases

7 releases since Debian 6.0 (Squeeze); the text changed 6 times.

  1. 6.0
  2. 8
  3. 9
  4. 10
  5. 11
  6. 12
  7. 13

From slony1-2-doc 2.2.11-6 in Debian 13 (Trixie). Parsed by carta from the page's man source.