File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
integration_test/third_party_apps_test/applications/postgresql/debian_ubuntu Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -4,14 +4,14 @@ sudo apt-get -y install gnupg wget
4
4
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
5
5
sudo wget --no-verbose --output-document=/etc/apt/trusted.gpg.d/postgresql.asc https://www.postgresql.org/media/keys/ACCC4CF8.asc
6
6
sudo apt-get -y update
7
- sudo apt-get install -y postgresql-14
7
+ sudo apt-get install -y postgresql-16
8
8
9
9
sudo service postgresql restart
10
10
sudo su postgres -c "psql postgres -c \"ALTER ROLE postgres WITH PASSWORD 'abc123';\""
11
11
sudo su postgres -c "psql postgres -c \"CREATE ROLE replica_user WITH REPLICATION LOGIN PASSWORD 'abc123';\""
12
12
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
15
15
16
16
### Everything following this comment is designed to set up a paused replica to get replication metrics
17
17
sudo tee -a ${CFG_ROOT}/main/postgresql.conf << EOF
63
63
sudo chown -R postgres:postgres ${DATA_ROOT}/repl
64
64
65
65
# 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 &
67
67
# give it time to start, since we put it in the background
68
68
sleep 5
69
69
# pause the replication so we see delay metrics populated
You can’t perform that action at this time.
0 commit comments