Skip to content

Commit 521d6a4

Browse files
committed
Remove deprecated directives and prefix
Also start testing on PostgreSQL 18 and document `make install prefix=` on PostgreSQL 18. Use the `github.ref_name` for the release name.
1 parent c14c6f7 commit 521d6a4

File tree

6 files changed

+24
-6
lines changed

6 files changed

+24
-6
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
build:
1010
strategy:
1111
matrix:
12-
pg: [17, 16, 15, 14, 13, 12, 11, 10, 9.6, 9.5, 9.4, 9.3, 9.2]
12+
pg: [18, 17, 16, 15, 14, 13, 12, 11, 10, 9.6, 9.5, 9.4, 9.3, 9.2]
1313
name: 🐘 PostgreSQL ${{ matrix.pg }}
1414
runs-on: ubuntu-latest
1515
container: pgxn/pgxn-tools

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Create GitHub Release
2525
uses: softprops/action-gh-release@v2
2626
with:
27-
name: "Release ${{ github.ref }}"
27+
name: "Release ${{ github.ref_name }}"
2828
body_path: latest-changes.md
2929
files: ${{ steps.bundle.outputs.bundle }}
3030
if: matrix.toolchain == 'stable' && startsWith( github.ref, 'refs/tags/v' )

Changes

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
Revision history for PostgreSQL extension semver.
22

3+
0.40.1
4+
- Removed the `directory` and `MODULEDIR` directives that installed
5+
extension files in a subdirectory named "semver", as it's not
6+
necessary, and deprecated by PostgreSQL 18.
7+
- Removed the `$libdir/` prefix from the `module_pathname` directive,
8+
so that the module can be installed and found in any directory listed
9+
in `dynamic_library_path`.
10+
311
0.40.0 2024-07-20T20:35:03Z
412
- Updated the installation configuration to install the SQL and
513
documentation files into `semver` subdirectories.

Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ EXTVERSION = $(shell grep -m 1 '[[:space:]]\{8\}"version":' META.json | \
55
DISTVERSION = $(shell grep -m 1 '[[:space:]]\{3\}"version":' META.json | \
66
sed -e 's/[[:space:]]*"version":[[:space:]]*"\([^"]*\)",\{0,1\}/\1/')
77

8-
MODULEDIR = $(EXTENSION)
98
DATA = $(wildcard sql/*.sql)
109
DOCS = $(wildcard doc/*.mmd)
1110
TESTS = $(wildcard test/sql/*.sql)

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,17 @@ You need to run the test suite using a super user, such as the default
4848

4949
make installcheck PGUSER=postgres
5050

51+
To install the extension in a custom prefix on PostgreSQL 18 or later, pass
52+
the `prefix` argument to `install` (but no other `make` targets):
53+
54+
make install prefix=/usr/local/extras
55+
56+
Then ensure that the prefix is included in the following [`postgresql.conf`
57+
parameters]:
58+
59+
extension_control_path = '/usr/local/extras/postgresql/share:$system'
60+
dynamic_library_path = '/usr/local/extras/postgresql/lib:$libdir'
61+
5162
Once semver is installed, you can add it to a database. If you're running
5263
PostgreSQL 9.1.0 or greater, it's a simple as connecting to a database as a
5364
super user and running:
@@ -100,3 +111,5 @@ not limited to, the implied warranties of merchantability and fitness for a
100111
particular purpose. The software provided hereunder is on an "as is" basis,
101112
and The pg-semver Maintainers no obligations to provide maintenance, support,
102113
updates, enhancements, or modifications.
114+
115+
[`postgresql.conf` parameters]: https://www.postgresql.org/docs/devel/runtime-config-client.html#RUNTIME-CONFIG-CLIENT-OTHER

semver.control

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# semver extension
22
comment = 'Semantic version data type'
33
default_version = '0.40.0'
4-
5-
directory = 'semver'
6-
module_pathname = '$libdir/semver'
4+
module_pathname = 'semver'
75
relocatable = true

0 commit comments

Comments
 (0)