Remove the $libdir/ prefix from module_pathname#2051
Remove the $libdir/ prefix from module_pathname#2051eeeebbbbrrrr merged 1 commit intopgcentralfoundation:developfrom
Conversation
It limits the search to PKGLIBDIR; if anyone installs it into another directory in `dynamic_library_path`, Postgres won't be able to find it.
|
This is probably just fine to merge, so I'll go ahead and do that. I'm not up-to-date on |
|
Right now pgrx exclusively installs shared libraries in PKGLIBDIR and control files and SQL file sin SHAREDIR. What it needs, I think, is a |
Welcome to pgrx v0.14.2. This is a minor release that fixes a few bugs and also adds a big new feature: support for `pg_regress`-based regression tests. As always, please update with `cargo install cargo-pgrx --version 0.14.2 --locked` and update your extension `Cargo.toml` files with `cargo pgrx upgrade`. For the `pg_regress` regression test support, there's a new `cargo pgrx regress` subcommand, and it's documented in [cargo-pgrx's readme](https://github.com/pgcentralfoundation/pgrx/blob/develop/cargo-pgrx/README.md#testing-with-regression-tests). ## What's Changed * Remove the `$libdir/` prefix from module_pathname by @theory in #2051 This will help with the upcoming Postgres v18 and generally makes pgrx-based extensions less restrictive with regard to how they're installed. * initial support for `pg_regress`-based tests by @eeeebbbbrrrr in #2058 (editor's node: I full expect users to uncover UX nits with this and am more than happy to entertain any ideas that help to improve workflows, either locally during development or in CI. Feel free to open issues about it.) ### More Bindings * Include `pg_statistic_ext` catalog by @ArArgon in #2053 ### Bug Fixes * check `tgnargs` in `extra_args` by @usamoi in #2046 ### Code Cleanup * Added absolute path to call `<Self as ::pgrx::datum::FromDatum>::` by @LucaCappelletti94 in #2050 * Removed duplicate ok check by @YohDeadfall in #2044 ## New Contributors * @LucaCappelletti94 made their first contribution in #2050 * @ArArgon made their first contribution in #2053 ## Thanks Shoutout to @philippemnoel of @paradedb for paying me to implement the `pg_regress` support. ❤️ **Full Changelog**: v0.14.1...v0.14.2
…2051) It limits the search to PKGLIBDIR; if anyone installs it into another directory in `dynamic_library_path`, Postgres won't be able to find it. [Details](https://justatheory.com/2025/04/update-control/).
Welcome to pgrx v0.14.2. This is a minor release that fixes a few bugs and also adds a big new feature: support for `pg_regress`-based regression tests. As always, please update with `cargo install cargo-pgrx --version 0.14.2 --locked` and update your extension `Cargo.toml` files with `cargo pgrx upgrade`. For the `pg_regress` regression test support, there's a new `cargo pgrx regress` subcommand, and it's documented in [cargo-pgrx's readme](https://github.com/pgcentralfoundation/pgrx/blob/develop/cargo-pgrx/README.md#testing-with-regression-tests). ## What's Changed * Remove the `$libdir/` prefix from module_pathname by @theory in pgcentralfoundation#2051 This will help with the upcoming Postgres v18 and generally makes pgrx-based extensions less restrictive with regard to how they're installed. * initial support for `pg_regress`-based tests by @eeeebbbbrrrr in pgcentralfoundation#2058 (editor's node: I full expect users to uncover UX nits with this and am more than happy to entertain any ideas that help to improve workflows, either locally during development or in CI. Feel free to open issues about it.) ### More Bindings * Include `pg_statistic_ext` catalog by @ArArgon in pgcentralfoundation#2053 ### Bug Fixes * check `tgnargs` in `extra_args` by @usamoi in pgcentralfoundation#2046 ### Code Cleanup * Added absolute path to call `<Self as ::pgrx::datum::FromDatum>::` by @LucaCappelletti94 in pgcentralfoundation#2050 * Removed duplicate ok check by @YohDeadfall in pgcentralfoundation#2044 ## New Contributors * @LucaCappelletti94 made their first contribution in pgcentralfoundation#2050 * @ArArgon made their first contribution in pgcentralfoundation#2053 ## Thanks Shoutout to @philippemnoel of @paradedb for paying me to implement the `pg_regress` support. ❤️ **Full Changelog**: pgcentralfoundation/pgrx@v0.14.1...v0.14.2
…2051) It limits the search to PKGLIBDIR; if anyone installs it into another directory in `dynamic_library_path`, Postgres won't be able to find it. [Details](https://justatheory.com/2025/04/update-control/).
Welcome to pgrx v0.14.2. This is a minor release that fixes a few bugs and also adds a big new feature: support for `pg_regress`-based regression tests. As always, please update with `cargo install cargo-pgrx --version 0.14.2 --locked` and update your extension `Cargo.toml` files with `cargo pgrx upgrade`. For the `pg_regress` regression test support, there's a new `cargo pgrx regress` subcommand, and it's documented in [cargo-pgrx's readme](https://github.com/pgcentralfoundation/pgrx/blob/develop/cargo-pgrx/README.md#testing-with-regression-tests). ## What's Changed * Remove the `$libdir/` prefix from module_pathname by @theory in pgcentralfoundation#2051 This will help with the upcoming Postgres v18 and generally makes pgrx-based extensions less restrictive with regard to how they're installed. * initial support for `pg_regress`-based tests by @eeeebbbbrrrr in pgcentralfoundation#2058 (editor's node: I full expect users to uncover UX nits with this and am more than happy to entertain any ideas that help to improve workflows, either locally during development or in CI. Feel free to open issues about it.) ### More Bindings * Include `pg_statistic_ext` catalog by @ArArgon in pgcentralfoundation#2053 ### Bug Fixes * check `tgnargs` in `extra_args` by @usamoi in pgcentralfoundation#2046 ### Code Cleanup * Added absolute path to call `<Self as ::pgrx::datum::FromDatum>::` by @LucaCappelletti94 in pgcentralfoundation#2050 * Removed duplicate ok check by @YohDeadfall in pgcentralfoundation#2044 ## New Contributors * @LucaCappelletti94 made their first contribution in pgcentralfoundation#2050 * @ArArgon made their first contribution in pgcentralfoundation#2053 ## Thanks Shoutout to @philippemnoel of @paradedb for paying me to implement the `pg_regress` support. ❤️ **Full Changelog**: pgcentralfoundation/pgrx@v0.14.1...v0.14.2
It limits the search to PKGLIBDIR; if anyone installs it into another directory in
dynamic_library_path, Postgres won't be able to find it.Details.
I think pgrx should also consider adding something equivalent to the PGRX
prefixparam to allow the sharedir and pkglibdir files to be installed somewhere other than wherepg_configsuggests to properly supportdynamic_library_pathand the newextension_control_pathconfigs.