Skip to content

Commit 4bd0b58

Browse files
authored
[DPE-6749] Postgresql 16 (#4)
* Postgresql 16 * Switch to platforms * Refs to pg14 * Missing perl
1 parent d02dccc commit 4bd0b58

File tree

4 files changed

+15
-14
lines changed

4 files changed

+15
-14
lines changed

.github/workflows/release.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on:
1010
push:
1111
branches:
1212
- 14/edge
13+
- 16/edge
1314
paths:
1415
- snap/**
1516
workflow_dispatch:
@@ -25,7 +26,7 @@ jobs:
2526
- build
2627
uses: canonical/data-platform-workflows/.github/workflows/[email protected]
2728
with:
28-
channel: 14/edge
29+
channel: ${{ github.ref_name }}
2930
artifact-prefix: ${{ needs.build.outputs.artifact-prefix }}
3031
secrets:
3132
snap-store-token: ${{ secrets.SNAP_STORE_TOKEN }}

snap/hooks/install

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ chown -R 584788:root $SNAP_DATA/*
1616
export LOCPATH="${SNAP}"/usr/lib/locale
1717
export PGDATA=$SNAP_COMMON/pgsql/data
1818

19-
"${SNAP}/usr/bin/setpriv" --clear-groups --reuid snap_daemon --regid snap_daemon -- "${SNAP}/usr/lib/postgresql/14/bin/initdb" -U postgres -D "${PGDATA}"
19+
"${SNAP}/usr/bin/setpriv" --clear-groups --reuid snap_daemon --regid snap_daemon -- "${SNAP}/usr/lib/postgresql/16/bin/initdb" -U postgres -D "${PGDATA}"

snap/local/start-postgresql.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
export LOCPATH="${SNAP}"/usr/lib/locale
55
export PGDATA=${SNAP_COMMON}/pgsql/data
66

7-
"${SNAP}/usr/bin/setpriv" --clear-groups --reuid snap_daemon --regid snap_daemon -- "${SNAP}/usr/lib/postgresql/14/bin/postgres" -k /tmp -D "${PGDATA}"
7+
"${SNAP}/usr/bin/setpriv" --clear-groups --reuid snap_daemon --regid snap_daemon -- "${SNAP}/usr/lib/postgresql/16/bin/postgres" -k /tmp -D "${PGDATA}"

snap/snapcraft.yaml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
name: postgresql
2-
base: core22
3-
version: '14.15'
2+
base: core24
3+
version: '16.6'
44
summary: PostgreSQL in a snap.
55
description: |
66
PostgreSQL is a free and open-source relational database management
77
system emphasizing extensibility and SQL compliance.
88
9-
architectures:
10-
- build-on: [amd64]
11-
build-for: [amd64]
12-
- build-on: [arm64]
13-
build-for: [arm64]
9+
platforms:
10+
amd64:
11+
arm64:
1412
grade: stable
1513
confinement: strict
1614

@@ -22,6 +20,8 @@ plugs:
2220
private: true
2321

2422
layout:
23+
/usr/bin/perl:
24+
symlink: $SNAP/usr/bin/perl
2525
/usr/lib/python3/dist-packages:
2626
bind: $SNAP/usr/lib/python3/dist-packages
2727
/etc/perl:
@@ -42,8 +42,8 @@ layout:
4242
bind: $SNAP/usr/share/perl
4343
/usr/local/lib/site_perl:
4444
bind: $SNAP/usr/local/lib/site_perl
45-
/usr/lib/postgresql/14:
46-
bind: $SNAP/usr/lib/postgresql/14
45+
/usr/lib/postgresql/16:
46+
bind: $SNAP/usr/lib/postgresql/16
4747
/var/cache/postgresql:
4848
bind: $SNAP_COMMON/var/cache/postgresql
4949

@@ -96,7 +96,7 @@ apps:
9696
pg-conftool:
9797
command: usr/bin/pg_conftool
9898
pg-ctl:
99-
command: usr/lib/postgresql/14/bin/pg_ctl
99+
command: usr/lib/postgresql/16/bin/pg_ctl
100100
pg-ctlcluster:
101101
command: usr/bin/pg_ctlcluster
102102
pg-dumpall:
@@ -126,7 +126,7 @@ parts:
126126
postgres-debs:
127127
plugin: nil
128128
stage-packages:
129-
- postgresql=14+238
129+
- postgresql=16+257build1
130130
- util-linux
131131
- locales-all
132132
organize:

0 commit comments

Comments
 (0)