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

Do not try to create databases that already exist #801

Merged
merged 1 commit into from
Dec 28, 2020

Conversation

tianon
Copy link
Member

@tianon tianon commented Dec 21, 2020

We were already checking for whether POSTGRES_DB was set to postgres, but this was the underlying motivation for that check (and it turns out that this applies for values of at least template0 and template1 as well).

Closes #794

(Just to keep the thread, https://stackoverflow.com/a/18389184/433558 still makes me depressed 😅 - #794 (comment))

We were already checking for whether `POSTGRES_DB` was set to `postgres`, but this was the underlying motivation for that check (and it turns out that this applies for values of at least `template0` and `template1` as well).
@yosifkit yosifkit merged commit 03e7695 into docker-library:master Dec 28, 2020
@yosifkit yosifkit deleted the db-exists branch December 28, 2020 22:39
docker-library-bot added a commit to docker-library-bot/official-images that referenced this pull request Dec 29, 2020
Changes:

- docker-library/postgres@03e7695: Merge pull request docker-library/postgres#801 from infosiftr/db-exists
- docker-library/postgres@eaeb73d: Merge pull request docker-library/postgres#804 from infosiftr/chmod-no-fail
- docker-library/postgres@36ffea2: Adjust "chmod" to not fail (since PostgreSQL validates this itself later)
- docker-library/postgres@11e397d: Do not try to create databases that already exist
- docker-library/postgres@3690694: Merge pull request docker-library/postgres#797 from infosiftr/rc-beta-alpha
- docker-library/postgres@dba8ec0: Adjust tagging to enforce explicit pre-release opt-in
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants