carta
INIT_CLUSTER(7)

INIT_CLUSTER7

Initialize slony-i cluster

Usage

INIT CLUSTER [ID = integer] [COMMENT = 'string']

Overview

Initialize the first node in a new Slony-I replication cluster. The initialization process consists of creating the cluster namespace, loading all the base tables, functions, procedures and initializing the node, using “schemadocinitializelocalnode( integer, text )” [not available as a man page] and “schemadocenablenode( integer )” [not available as a man page].

FCIDF[0]

The unique, numeric ID number of the node.

FCCOMMENT = 'comment text'F[0]

A descriptive text added to the node entry in the table “sl_node” [not available as a man page].

For this process to work, the SQL scripts of the Slony-I system must be installed on the DBA workstation (the computer currently executing the slonik utility), while on the system where the node database is running the shared objects of the Slony-I system must be installed in the PostgreSQL library directory. Also the procedural language PL/pgSQL is assumed to already be installed in the target database.

Examples

FCINIT CLUSTER (
   ID = 1,
   COMMENT = 'Node 1'
);
    F[0]

Note

This command functions very similarly to STORE NODE(7), the difference being that INIT CLUSTER does not need to draw configuration from other existing nodes.

Locking behaviour

This command creates a new namespace and configures tables therein; no public objects should be locked during the duration of this.

Version information

This command was introduced in Slony-I 1.0

History

  • Debian 5.0 (Lenny): the text shown here
  • Debian 4.0 (Etch)

From slony1-doc 1.2.15-1 in Debian 5.0 (Lenny). Parsed by carta from the page's man source.