diff --git a/debian/template/postrm b/debian/template/postrm
index 983af376b203d282811c11b45022e9fdf65db64f..aa589403c063c52fbe5ab90e8ed25635b45ec4fe 100644
--- a/debian/template/postrm
+++ b/debian/template/postrm
@@ -14,6 +14,7 @@ log "Running postrm" $1 $2;
 set -e
 
 if [ -f /usr/share/dbconfig-common/dpkg/postrm.pgsql ]; then
+    . /usr/share/debconf/confmodule
     . /usr/share/dbconfig-common/dpkg/postrm.pgsql
     dbc_go minerva $@
 fi