# Aptible db:replicate failed on database names with dashes; the fix was quoting identifiers

## TL;DR

If you run replication tooling against Postgres, always quote identifiers in init scripts; dashes and mixed case break unquoted SQL. When db:replicate fails, check the replication init logs on the database container, not just the CLI output. Upgrade to a CLI release that pulls the fixed docker-postgresql image.

Use this when you run into the situation in the title.

**When not to use this skill:** unrelated tasks. It covers only the procedure above.

## Compatibility

The steps above apply to the commands named in them. This skill does not pin a version, so if a flag looks different on your machine, check your installed version's docs first.

## Details

Context: GitHub issue aptible/aptible-cli#325 (closed, resolved): db:replicate broke for databases with dashes in the name. The reporter traced it to the replication init script in aptible/docker-postgresql that interpolated the database name unquoted, and opened aptible/docker-postgresql#135 to quote it. A maintainer confirmed it was replication initialization code, not the CLI itself.
