Skip to content

Instantly share code, notes, and snippets.

View Anton-Shutik's full-sized avatar

Anton Shutik Anton-Shutik

  • Vention
  • Warsaw, Poland
View GitHub Profile
@Anton-Shutik
Anton-Shutik / setup-logical-replication.sh
Last active July 5, 2023 14:59
Postgres database logical replication setup script
#!/usr/bin/env bash
function log {
echo `date "+%b %d %H:%M:%S"` $1
}
# Credentails for logical primary database owner
PG_SOURCE_HOST=""
PG_SOURCE_USER=""
PG_SOURCE_DATABASE=$1