Add pg_ctl stop for logical restore
Goal
Stop postgres (in "Fast" mode) after completing the restore from the dump.
Currently postgres log:
2021-07-05 17:18:56.336 UTC,,,27,,60e33f00.1b,1,,2021-07-05 17:18:56 UTC,,0,LOG,00000,"database system was interrupted; last known up at 2021-07-05 17:16:49 UTC",,,,,,,,,"","startup"
2021-07-05 17:18:56.364 UTC,,,27,,60e33f00.1b,2,,2021-07-05 17:18:56 UTC,,0,LOG,00000,"database system was not properly shut down; automatic recovery in progress",,,,,,,,,"","startup"
2021-07-05 17:18:56.366 UTC,,,27,,60e33f00.1b,3,,2021-07-05 17:18:56 UTC,,0,LOG,00000,"redo starts at 0/15CF828",,,,,,,,,"","startup"
2021-07-05 17:18:56.859 UTC,,,28,"[local]",60e33f00.1c,1,"",2021-07-05 17:18:56 UTC,,0,LOG,00000,"connection received: host=[local]",,,,,,,,,"","not initialized"
2021-07-05 17:18:56.862 UTC,"postgres","postgres",28,"[local]",60e33f00.1c,2,"",2021-07-05 17:18:56 UTC,,0,FATAL,57P03,"the database system is starting up",,,,,,,,,"","client backend"
2021-07-05 17:18:57.445 UTC,,,29,"[local]",60e33f01.1d,1,"",2021-07-05 17:18:57 UTC,,0,LOG,00000,"connection received: host=[local]",,,,,,,,,"","not initialized"
2021-07-05 17:18:57.445 UTC,"postgres","postgres",29,"[local]",60e33f01.1d,2,"",2021-07-05 17:18:57 UTC,,0,FATAL,57P03,"the database system is starting up",,,,,,,,,"","client backend"
TODO / How to implement
Execute pg_ctl stop -m fast
, after completion of vacuumdb
Acceptance criteria
The database is correct stopped, there are no longer messages "database system was not properly shut down".