Problem in PostgreSQL replication - ALTER DATABASE Recently I put to work a Master/Slave replication in my PostgreSQL (9.3). Everything is ok... insert, update, delete, in data and changes in tables... but when I changed the data base name the replication not works. The name of the Slave database has not changed. How can I configure the master/slave replication to do this (replication of alter database rename)?
I assume that you are talking about &ldquo;streaming replication&rdquo;, not some other kind of replication (streaming replication is the only kind of replication that I know that replicates DDL).

Streaming replication should replicate ALTER DATABASE ... RENAME TO ... just like any other change.

If it doesn't, there is probably some replication conflict that delays the application of the change. What is max_standby_streaming_delayset to? try to disconnect from the standby server and see if that does the trick.