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

[bitnami/postgresql] pg_cron shared pg library not installed with postgresql bitnami image #70819

Closed
gaikwy22 opened this issue Aug 9, 2024 · 5 comments
Assignees
Labels
postgresql solved stale 15 days without activity tech-issues The user has a technical issue about an application triage Triage is needed

Comments

@gaikwy22
Copy link

gaikwy22 commented Aug 9, 2024

Name and Version

bitnami/postgresql:13.3.0

What architecture are you using?

amd64

What steps will reproduce the bug?

Installed postgresql helm chart and set postgresqlSharedPreloadLibraries: "pg_cron"

What is the expected behavior?

No response

What do you see instead?

No such file pg_cron

Additional information

No response

@gaikwy22 gaikwy22 added the tech-issues The user has a technical issue about an application label Aug 9, 2024
@github-actions github-actions bot added the triage Triage is needed label Aug 9, 2024
@javsalgar javsalgar changed the title pg_cron shared pg library not installed with postgresql bitnami image [bitnami/postgresql] pg_cron shared pg library not installed with postgresql bitnami image Aug 12, 2024
@javsalgar
Copy link
Contributor

Hi,

We're trying to be conservative on the amount of extensions we install because of size and vulnerability surface. If there is a clear demand from the community to add the extension, we can consider adding it as part of the catalog.

Copy link

This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.

@github-actions github-actions bot added the stale 15 days without activity label Aug 28, 2024
Copy link

github-actions bot commented Sep 2, 2024

Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary.

@github-actions github-actions bot added the solved label Sep 2, 2024
@bitnami-bot bitnami-bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 2, 2024
@siddjellali
Copy link

Please reopen
pg_cron is essential for enterprise-level purposes.

@siddjellali
Copy link

siddjellali commented Jan 5, 2025

For your information, I managed to make it work like this (it only works with PostgreSQL 15).

FROM bitnami/postgresql:15-debian-12

USER 0
RUN apt-get update && \
    apt-get install -y postgresql-15-cron && \
    printf "cron.database_name = 'xxxxxx'\ncron.timezone = 'PRC'\n" >> /opt/bitnami/postgresql/conf/conf.d/cron.conf && \
    cp -a /usr/share/postgresql/15/extension/pg_cron* /opt/bitnami/postgresql/share/extension/ && \
    cp -a /usr/lib/postgresql/15/lib/pg_* /opt/bitnami/postgresql/lib/ && \
    echo "host    all   user   127.0.0.1/32   trust" >> /opt/bitnami/postgresql/conf/pg_hba.conf

COPY --chown=1001:1001 docker-entrypoint-initdb.d/*.sql /docker-entrypoint-initdb.d/
USER 1001

ENV POSTGRESQL_SHARED_PRELOAD_LIBRARIES 'pgaudit,pg_cron'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
postgresql solved stale 15 days without activity tech-issues The user has a technical issue about an application triage Triage is needed
Projects
None yet
Development

No branches or pull requests

4 participants