Skip to content

Commit ed8e007

Browse files
committed
Add support for Postgres 13
This is modeled after d9eb817, with a few less changes because the logic was simplified back then.
1 parent e225ac1 commit ed8e007

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

travis/install_custom_pg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ if [ "$(ls -A postgresql)" ]; then
1717
git -C postgresql pull
1818
else
1919
pgmajornum="${PGVERSION%%.*}"
20-
if [ "${pgmajornum}" -gt '12' ]; then
21-
# twelve is highest stable build; use master for higher
20+
if [ "${pgmajornum}" -gt '13' ]; then
21+
# 13 is highest stable build; use master for higher
2222
gitref="master"
2323
elif [ "${pgmajornum}" -gt '9' ]; then
2424
gitref="REL_${PGVERSION}_STABLE"

travis/setup_apt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 7FCC7D46ACCC4CF8
1212
sudo rm -f /etc/apt/sources.list.d/google-chrome*
1313
sudo rm -f /etc/apt/sources.list.d/pgdg.list
1414

15-
# add the PostgreSQL 12 repository
16-
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main 12" >> /etc/apt/sources.list.d/postgresql.list'
15+
# add the PostgreSQL 13 repository
16+
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main 13" >> /etc/apt/sources.list.d/postgresql.list'
1717

18-
# need testing repository after version 12
19-
if [ "${PGVERSION%%.*}" -gt '12' ]; then
18+
# need testing repository after version 13
19+
if [ "${PGVERSION%%.*}" -gt '13' ]; then
2020
# add a PostgreSQL testing repository
2121
sudo sh -Ec 'echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg-testing main ${PGVERSION}" >> /etc/apt/sources.list.d/postgresql.list'
2222

0 commit comments

Comments
 (0)