We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de19732 commit a1c8955Copy full SHA for a1c8955
templates/setup-replication.sh.tmpl
@@ -31,7 +31,7 @@ export PGPASSWORD=$REPLICATOR_PASSWORD
31
gosu postgres pg_basebackup -R -h lb -D $PGDATA -U replicator -v -P --xlog-method=stream -w
32
33
echo "Create physical_replication_slot on server..."
34
-slot_name=$(echo {{getv "/self/host/hostname"}} | tr '-' '_')
+slot_name=$(echo {{getv "/self/host/hostname"}} | cut -d. -f1 | tr '-' '_')
35
psql -h lb -c "SELECT * FROM pg_create_physical_replication_slot('${slot_name}');" -U replicator -d postgres
36
37
cat >> ${PGDATA}/recovery.conf <<-EOF
0 commit comments