We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tag/version of Container Images 0.4.5
If the postgresql server has more than 3 databases postgresql will output --More-- at the end of \l command.
--More--
\l
In the loop of wait_for_postgres in docker-entrypoint.sh
wait_for_postgres
until psql $DATABASE_URL -c '\l'; do >&2 echo "Postgres is unavailable - sleeping" sleep 1 done
the psql $DATABASE_URL -c '\l' hangs because it's waiting for someone to press space and for --More-- to continue and the connection to end.
psql $DATABASE_URL -c '\l'
Monkeypatch version: Create .psqlrc file with \pset pager off in it and mount it to /root/.psqlrc
\pset pager off
/root/.psqlrc
Proper fix: Add psql -P pager=off ... to the until line of the loop.
psql -P pager=off ...
The text was updated successfully, but these errors were encountered:
Thanks @nipatiitti for the repo and proposed fixes, do you want to submit a PR with the fixes?
Sorry, something went wrong.
fix: Use -P pager=off in the psql commands.
72b6bc8
This allows for non-interactive use and doesn't hang on the user input in certain conditions, like when the command output is large. Fixes #610
fix: Use -P pager=off in the psql commands. (#631)
244b73d
fix: Use -P pager=off in the psql commands. (maxking#631)
5f89586
This allows for non-interactive use and doesn't hang on the user input in certain conditions, like when the command output is large. Fixes maxking#610
Successfully merging a pull request may close this issue.
Tag/version of Container Images
0.4.5
If the postgresql server has more than 3 databases postgresql will output
--More--
at the end of\l
command.In the loop of
wait_for_postgres
in docker-entrypoint.shthe
psql $DATABASE_URL -c '\l'
hangs because it's waiting for someone to press space and for --More-- to continue and the connection to end.Fixes:
Monkeypatch version:
Create .psqlrc file with
\pset pager off
in it and mount it to/root/.psqlrc
Proper fix:
Add
psql -P pager=off ...
to the until line of the loop.The text was updated successfully, but these errors were encountered: