-
Notifications
You must be signed in to change notification settings - Fork 32
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
Consider adding pg_partman extension #115
Comments
Note that adding pg_partman would be a one-liner change, so you can easily fork the repo and create your own image with pg_partman included (I've done this with pg_hint_plan which is also readily available in the PGDG Debian repo) Probably need some thought about how CNPG is going to handle this particular repo, since there could be a lot of potential extension requests. It might make sense to keep this repo smaller but for us to spend some time on instructions to build custom extensions. OTOH if extensions don't add many bytes, then adding them here benefits a lot of people. A few extensions have already been added here (like pgvector & pgaudit), and it might make sense to add a few more widely used ones which are already in the debian repos (eg. pg_hint_plan, pg_cron, pg_repack, pg_squeeze, pg_partman, pldebugger, plprofiler, FDWs, wal2json, maybe pg_stat_kcache) In the meantime, if you want to just create your own images, here are the steps which worked for me:
test a local build
install pip-tools (we will need the
add a simple extension from the PGDG apt repo
Test running the container from the registry
this was cobbled together from some notes and might have mistakes... but hopefully it helps. :) |
Thank you very much for these very detailed instructions :-) |
As Couldnative PG supports declarative Tablespace (since 1.22), it would be extremely useful to get
pg_partman
available in the PostgreSQL image.To quote Cloudnative PG documentation:
While it is perfectly possible to use table partitioning without
pg_partman
, it is widely used to managed table partitions.pg_partman
is readily available in the Debian repository, so it can easily be included in the built images.The text was updated successfully, but these errors were encountered: