Skip to content

Instantly share code, notes, and snippets.

@todgru
Last active February 5, 2021 23:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save todgru/27fb2023ee578337ffe9896d9cf60712 to your computer and use it in GitHub Desktop.
Save todgru/27fb2023ee578337ffe9896d9cf60712 to your computer and use it in GitHub Desktop.
docker postgres "terminating connection due to administrator command"

This error happened when I was running the latest Postgres Docker image 13.1 and trying to run a migration script that used pg_dump version 9.6.

UPDATE well, maybe the verion mismatch was the issue. the script had pg_dump wrapped in { pg_dump ...} >> dev/null. The shell (sh) the script ran in exited early and the migration "terminated".

terminating connection due to administrator command
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment