This parameter specifies a shell command that will be executed once only at the end of recovery. This parameter is optional. The purpose of the
recovery_end_command is to provide a mechanism for cleanup following replication or recovery. Any
%r is replaced by the name of the file containing the last valid restart point, like in archive_cleanup_command.
If the command returns a nonzero exit status then a warning log message will be written and the database will proceed to start up anyway. An exception is that if the command was terminated by a signal or an error by the shell (such as command not found), the database will not proceed with startup.
This parameter can only be set in the postgresql.conf file or on the server command line.
- Why does &amp;amp;amp;amp;quot;explain analyzing&amp;amp;amp;amp;quot; this query fnish fast (showing a parallel plan), while running the actual query without &amp;amp;amp;amp;quot;explain analyze&amp;amp;amp;amp;quot; doesn&amp;amp;amp;amp;#39;t?
- PostgreSQL 13 sometimes works but sometimes huge execution time
- Error: self signed certificate when doing a migration to production