Option to make PostgreSQL quiescent on startup?

From: John Scalia <jayknowsunix(at)gmail(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: Option to make PostgreSQL quiescent on startup?
Date: 2017-12-08 22:14:23
Message-ID: 021075A8-B171-4CE7-9E45-52347FB2A787@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hi all,

I have been trying to get a new Docker container working with PostgreSQL 9.6.6 and I’d like it to start with one of our app’s schemas, but the shell script I’m invoking at the end of the Dockerfile with an ENTRYPOINT doesn’t seem to want to go past the database startup. I think the script isn’t completing due to the output of postgres process. At least, this is my suspicion. Right now, the shell script is only trying to invoke psql -c “CREATE DATABASE code” after it starts the cluster. If this is the case, is there any option to just quietly start the cluster? If not, is there anyway to make this work?

Jay

Sent from my iPad

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Jorge Torralba 2017-12-08 22:52:08 Re: Option to make PostgreSQL quiescent on startup?
Previous Message Peter Eisentraut 2017-12-08 16:00:18 Re: [ADMIN] Re: WARNING: terminating connection because of crash of another server process