Primary Keys for Slony-I

Posted by & filed under PostgreSQL.

One of the prerequisites for Slony replication is to be sure that primary keys (or at least suitable columns) are defined for each table to be under replication. This is a simple example script for getting that data in postgresql. This assumes that the intention is to replicate all of the public schema. SELECT tablename… Read more »