Skip to content

Commit 36c6184

Browse files
authored
Updated postgresql version pinning to 16 (#1828)
1 parent 789f371 commit 36c6184

File tree

1 file changed

+4
-4
lines changed
  • integration_test/third_party_apps_test/applications/postgresql/debian_ubuntu

1 file changed

+4
-4
lines changed

integration_test/third_party_apps_test/applications/postgresql/debian_ubuntu/install

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ sudo apt-get -y install gnupg wget
44
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
55
sudo wget --no-verbose --output-document=/etc/apt/trusted.gpg.d/postgresql.asc https://www.postgresql.org/media/keys/ACCC4CF8.asc
66
sudo apt-get -y update
7-
sudo apt-get install -y postgresql-14
7+
sudo apt-get install -y postgresql-16
88

99
sudo service postgresql restart
1010
sudo su postgres -c "psql postgres -c \"ALTER ROLE postgres WITH PASSWORD 'abc123';\""
1111
sudo su postgres -c "psql postgres -c \"CREATE ROLE replica_user WITH REPLICATION LOGIN PASSWORD 'abc123';\""
1212

13-
DATA_ROOT=/var/lib/postgresql/14
14-
CFG_ROOT=/etc/postgresql/14
13+
DATA_ROOT=/var/lib/postgresql/16
14+
CFG_ROOT=/etc/postgresql/16
1515

1616
### Everything following this comment is designed to set up a paused replica to get replication metrics
1717
sudo tee -a ${CFG_ROOT}/main/postgresql.conf << EOF
@@ -63,7 +63,7 @@ EOF
6363
sudo chown -R postgres:postgres ${DATA_ROOT}/repl
6464

6565
# start the replica in the background
66-
nohup sudo su postgres -c "/usr/lib/postgresql/14/bin/postgres -D ${DATA_ROOT}/repl" 2>/dev/null >/dev/null </dev/null &
66+
nohup sudo su postgres -c "/usr/lib/postgresql/16/bin/postgres -D ${DATA_ROOT}/repl" 2>/dev/null >/dev/null </dev/null &
6767
# give it time to start, since we put it in the background
6868
sleep 5
6969
# pause the replication so we see delay metrics populated

0 commit comments

Comments
 (0)