Problem in PostgreSQL replication - ALTER DATABASE
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.