I want to give a database a new name containing a hyphen (-).
ALTER DATABASE primarydb
RENAME TO primarydb-secondary;
But psql reports this error:
ERROR: syntax error at or near "-"
Which escape sequence handles the "-" character, or how should I accomplish this?
Note: I also tried '-' without any success.
Thank you.