- Running DROP DATABASE>, ALTER DATABASE ... SET
- TABLESPACE>, or ALTER DATABASE ... RENAME> on the primary
+ Running DROP DATABASE> or ALTER DATABASE ... SET
+ TABLESPACE> on the primary
will generate a WAL entry that will cause all users connected to that
database on the standby to be forcibly disconnected. This action occurs
immediately, whatever the setting of
- max_standby_streaming_delay>.
+ max_standby_streaming_delay>. Note that
+ ALTER DATABASE ... RENAME> does not disconnect users, which
+ in most cases will go unnoticed, though might in some cases cause a
+ program confusion if it depends in some way upon database name.