Last active
July 15, 2022 10:05
-
-
Save adamzwakk/9e69fa1c26ce0fc27e164879a82ded7a to your computer and use it in GitHub Desktop.
Looks up where postgres startup recovery is at in the WAL files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ls -l $(sudo lsof -p $(ps aux | grep postgres | grep startup | awk '{print $2}') | grep wal | awk '{print $9}') | awk '{print $6" "$7" "$8}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment