@Rohit Singh Now that the <name>-init
process doesn't run before <name>
process (here <name>
is a postgres server), i.e after this PR, we have to rename <name>-init
to something more appropriate. What can this be? I am thinking <name>-postStart
, but that doesn't capture the essence of its task, which is running a bunch of .sql
dumps or plain text SQL scripts given by initialScript
option.
How about <name>-postScript
?
Shivaraj B H said:
How about
<name>-postScript
?
How about <name>-postStartScript
?
Because post does not actually describes post what ? So if we keep postStartScript that would mean post starting the postgres server.
Let's go with postStartScript
for now. Let's wait until tomorrow for any suggestions and merge it.
Let’s not forget the fact that the script only runs once, i.e if the dataDir is not already present, so we could consider initialPostStartScript too
I think it would be better if we stick to init
process running before the postgres server process, we can use pg_ctl
to start and stop the server during initialisation as does devenv.
I have updated the PR, check the link in the first message of this topic.
Also see the updated description of the PR for the key changes.
Shivaraj B H has marked this topic as resolved.
Last updated: Nov 15 2024 at 12:33 UTC