Skip to content

Commit 6a056f0

Browse files
committed
Remove deprecated directives and prefix
Also start testing on PostgreSQL 18 and document `make install prefix=` on PostgreSQL 18.
1 parent c14c6f7 commit 6a056f0

File tree

5 files changed

+27
-5
lines changed

5 files changed

+27
-5
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

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 fond 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: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,21 @@ 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+
```sh
55+
make install prefix=/usr/local/extras
56+
```
57+
58+
Then ensure that the prefix is included in the following [`postgresql.conf`
59+
parameters]:
60+
61+
```ini
62+
extension_control_path = '/usr/local/extras/postgresql/share/extension:$system'
63+
dynamic_library_path = '/usr/local/extras/postgresql/lib:$libdir'
64+
```
65+
5166
Once semver is installed, you can add it to a database. If you're running
5267
PostgreSQL 9.1.0 or greater, it's a simple as connecting to a database as a
5368
super user and running:
@@ -100,3 +115,5 @@ not limited to, the implied warranties of merchantability and fitness for a
100115
particular purpose. The software provided hereunder is on an "as is" basis,
101116
and The pg-semver Maintainers no obligations to provide maintenance, support,
102117
updates, enhancements, or modifications.
118+
119+
[`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)