Right. You have to be careful to make sure the standby really did fully catch up with the master, though. If it happens that the replication connection is momentarily down when you shut down the master, for example, then the master won't wait for the standby. You can use pg_controlinfo to verify that, before promoting the standby.
- Heikki
Dear Heikki,
would you please tell me which line I should check to be 100% sure that everything was sent to the slave when the master was shut down?