CircleCI-Public / CircleCI-Public/cimg-postgres

Bug Report: cron.database_name is not dynamic; fixed to circle_test

Open
#94 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Dockerfile
Stars
10
Forks
27
PR merge metrics
No merged PRs in 30d

Description

*Note: We also welcome PRs to fix bugs! This helps us take action faster where a bug has been identified!*

For our official CircleCI Docker Convenience Image support policy, please see [CircleCI docs](https://circleci.com/docs/convenience-images-support-policy).

This policy outlines the release, update, and deprecation policy for CircleCI Docker Convenience Images.

---

**Describe the bug**
POSTGRES_DB and the sample `circle_test` db in custom-postgresql.conf should be set to a variable, not hard coded as circle_test.

this would also apply to other options like listen addresses and shared_preload_libraries

As a result, even setting POSTGRES_DB to `something`, would not enable an extension like pg_cron, because it would only be enabled for circle_test

**Expected behavior**
changing POSTGRES_DB should also affect cron.database_name

**Workarounds**
editing the custom-postgresql.conf manually

**Screenshots and Build Links**
If possible, add screenshots and links to jobs to help explain your problem.

**Additional context**
Add any other context about the problem here.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.