Postgresql – force PostgreSQL into recovery mode

postgresql

I have a somewhat strange question.

Is there a way to manually force PostgreSQL into recovery mode?
I've not been able to find anything in the documentation.

I've been working with a script monitoring a PostgreSQL database and need to do some testing.

Best Answer

You should be able to use pg_standby.

I cannot gurantee it, though, as I haven't tried it.