logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

UNINSTALL NODE - Decommission Slony-I node

Dangerous/Unintuitive Behaviour

If you are using connections that cache query plans (this is particularly common for Java application frameworks with connection pools), the connections may cache query plans that include the pre-UNINSTALLNODE state of things, and you will get error messages indicating missing OIDs [“[MISSING TEXT]” [not available as a man page]]. After dropping a node, you may also need to recycle connections in your application.

Description

Restores all tables to the unlocked state, with all original user triggers, constraints and rules, even‐ tually added Slony-I specific serial key columns dropped and the Slony-I schema dropped. The node becomes a standalone database. The data is left untouched. ID = ival Node ID of the node to uninstall. This uses “schemadocuninstallnode()” [not available as a man page]. The difference between UNINSTALLNODE and DROPNODE is that all UNINSTALLNODE does is to remove the Slony-I configuration; it doesn't drop the node's configuration from replication.

Example

UNINSTALL NODE ( ID = 2 );

Locking Behaviour

When dropping triggers off of application tables, this will require exclusive access to each replicated table on the node being discarded.

Name

UNINSTALL NODE - Decommission Slony-I node

Slonik Event Confirmation Behaviour

Slonik does not wait for event confirmations before performing this command

Synopsis

UNINSTALLNODE(options);

Version Information

This command was introduced in Slony-I 1.0 19 September 2024 SLONIKUNINSTALLNODE(7)

See Also