diff --git a/server/database/postgresql/actions.py b/server/database/postgresql/actions.py
index 1fa064b570..fde9bf789e 100644
--- a/server/database/postgresql/actions.py
+++ b/server/database/postgresql/actions.py
@@ -15,19 +15,23 @@ def setup():
--include=/usr/include/postgresql \
--with-includes=/usr/include/libxml2/ \
--with-tcl \
- --with-krb5 \
+ --with-gssapi \
--with-openssl \
--enable-nls \
--with-pam \
--with-libxml \
--with-libxslt \
--with-ldap \
+ --with-readline \
+ --with-lz4 \
+ --with-libxslt \
--enable-integer-datetimes \
--enable-thread-safety \
--enable-depend \
--host=%s \
--libdir=/usr/lib \
--disable-rpath \
+ --with-system-tzdata=/usr/share/zoneinfo \
--with-docdir=/usr/share/doc/postgresql" % get.CHOST())
def build():
diff --git a/server/database/postgresql/pspec.xml b/server/database/postgresql/pspec.xml
index 7297b43dfd..7c5ec03696 100644
--- a/server/database/postgresql/pspec.xml
+++ b/server/database/postgresql/pspec.xml
@@ -18,6 +18,7 @@
e2fsprogs-devel
pam-devel
readline-devel
+ lz4-devel
zlib-devel
python3-devel
openssl-devel
@@ -38,6 +39,7 @@
mit-kerberos
python3
+ lz4
zlib
libxml2
openssl
@@ -73,6 +75,7 @@
postgresql-lib
pam
+ lz4
zlib
libxml2
openssl