Alternativamente, você pode construir o posgresql a partir da fonte:
wget https://ftp.postgresql.org/pub/source/v11.5/postgresql-11.5.tar.gz tar zxvf postgresql-11.5.tar.gz cd postgresql-11.5 ./configure --without-readline make make install