-
Notifications
You must be signed in to change notification settings - Fork 36
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
Using psql command instead of postgres in initialScript #66
Merged
shivaraj-bh
merged 19 commits into
juspay:main
from
rsrohitsingh682:update-postgres-to-psql
Dec 24, 2023
Merged
Using psql command instead of postgres in initialScript #66
shivaraj-bh
merged 19 commits into
juspay:main
from
rsrohitsingh682:update-postgres-to-psql
Dec 24, 2023
Conversation
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
…stgres server to start first then load initScript
The CI is going into an infinite loop while running the |
Earlier <name> would depend on <name>-init, now it is the other way round
srid
reviewed
Dec 21, 2023
By starting the server temporariliy using pg_ctl we can run the init process before starting the server. Hence, the <name>-init needn't depend on <name> anymore The idea for pg_ctl comes from: https://github.com/cachix/devenv/blob/main/src/modules/services/postgres.nix
get shell-check and be able to provide runtimeInputs (we will use this later)
…n when signalled.
+ Also don't unset PGHOST, the script fails with unbound variable error + Remove the unnecessary comment about PGHOST and PGPORT
shivaraj-bh
approved these changes
Dec 24, 2023
@rsrohitsingh682 will merge this today if there is nothing more to add |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Resolves : #63
Key changes in this PR:
psql
instead ofpostgres
, as a result usepg_ctl
to temporarily start the postgres server in${name}-init
process.postgresPkg
with extensions by using apply attribute provided bymkOption
writeShellApplication
and resolve shell-check errors