Skip to content
New issue

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

Wait after postgres has finished #34

Closed
wants to merge 2 commits into from
Closed

Wait after postgres has finished #34

wants to merge 2 commits into from

Conversation

stephdl
Copy link
Contributor

@stephdl stephdl commented Jan 30, 2024

With Slow machine we could have some issue that postgres has not finished to start

webtop use postgresql 9 we cannot use pg_isready :/

[webtop1@R1-pve state]$ podman  exec postgres ls -la /usr/bin/pg_isready 
lrwxrwxrwx. 1 root root 37 Jul 11  2017 /usr/bin/pg_isready -> ../share/postgresql-common/pg_wrapper
[webtop1@R1-pve state]$ podman  exec postgres ls -la /usr/share/postgresql-common/pg_wrapper
-rwxr-xr-x. 1 root root 8935 May 23  2017 /usr/share/postgresql-common/pg_wrapper
[webtop1@R1-pve state]$ podman  exec postgres /usr/share/postgresql-common/pg_wrapper
Error: pg_wrapper called directly but no program given as argument
[webtop1@R1-pve state]$ podman  exec postgres /usr/share/postgresql-common/pg_wrapper pg_isready
Error: pg_wrapper: pg_isready was not found in /usr/lib/postgresql/9.2/bin
[webtop1@R1-pve state]$ podman  exec postgres ls /usr/lib/postgresql/9.2/bin/
clusterdb
createdb
createlang
createuser
dropdb
droplang
dropuser
initdb
oid2name
pg_archivecleanup
pg_basebackup
pgbench
pg_controldata
pg_ctl
pg_dump
pg_dumpall
pg_receivexlog
pg_resetxlog
pg_restore
pg_standby
pg_test_fsync
pg_test_timing
pg_upgrade
postgres
postmaster
psql
reindexdb
vacuumdb
vacuumlo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant