Skip to content

Commit

Permalink
Dropped pinning of libpq package version on PG 12
Browse files Browse the repository at this point in the history
  • Loading branch information
dvarrazzo committed Sep 30, 2020
1 parent eb77f47 commit 2a4c67e
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions regress/travis_prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,23 @@ else
fi

sudo apt-get update
sudo apt-get install -y "libpq5=${PGVER}*" "libpq-dev=${PGVER}*"
sudo apt-mark hold libpq5
sudo apt-get install -y postgresql-server-dev-$PGVER postgresql-$PGVER

# This might be a moving target, but it currently fails. 13 could start
# failing in the future instead.
# Some versions break if this is not specified (9.4 for sure, maybe 9.6)
if [[ "$PGVER" = "9.4" ]]; then
sudo apt-get install -y "libpq5=${PGVER}*" "libpq-dev=${PGVER}*"
sudo apt-mark hold libpq5
fi

if ! sudo apt-get install -y \
postgresql-$PGVER \
postgresql-client-$PGVER \
postgresql-server-dev-$PGVER
then
sudo systemctl status postgresql.service -l
exit 1
fi

# ensure PostgreSQL is running on 5432 port with proper auth
sudo sed -i \
Expand Down

0 comments on commit 2a4c67e

Please sign in to comment.