diff --git a/helpers/DATA/postgresql-common/supported-versions-trisquel.patch b/helpers/DATA/postgresql-common/supported-versions-trisquel.patch
new file mode 100644
index 0000000000000000000000000000000000000000..6eeac1c91a1a337a488da3921587322860832b3e
--- /dev/null
+++ b/helpers/DATA/postgresql-common/supported-versions-trisquel.patch
@@ -0,0 +1,38 @@
+--- debian/supported-versions	2013-10-21 23:13:52.000000000 +0200
++++ debian/supported-versions.trisquel	2015-01-11 17:57:00.020523090 +0100
+@@ -67,6 +67,9 @@
+         [dD]ebian)
+             debian "$RELEASE"
+             ;;
++        [tT]risquel)
++	    trisquel "$RELEASE"
++            ;;
+         *)
+             echo "supported_versions: WARNING! Unknown distribution: $DISTRO" >&2
+             echo "Please submit this as a bug report to your distribution." >&2
+@@ -120,6 +123,25 @@
+     esac
+ }
+ 
++trisquel() {
++    case "$1" in
++        4.0*) # Taranis
++            /bin/echo -e "8.4"
++            ;;
++        6.0*) # Toutatis
++            /bin/echo -e "9.1"
++            ;;
++        7.0*) # Belenos
++            /bin/echo -e "9.3"
++            ;;
++        *)
++            echo "supported_versions: WARNING: Unknown Trisquel release: $1" >&2
++            /bin/echo -e "$DEFAULT"
++            ;;
++    esac
++}
++
++
+ debian_backports() {
+     case "$1" in
+         5.0*) # Lenny
diff --git a/helpers/make-postgresql-common b/helpers/make-postgresql-common
new file mode 100644
index 0000000000000000000000000000000000000000..bd429782ab49ed6359deb0a687465a17ea5c4214
--- /dev/null
+++ b/helpers/make-postgresql-common
@@ -0,0 +1,29 @@
+#!/bin/sh
+#
+#    Copyright (C) 2015  Santiago Rodríguez <santi@trisquel.info>
+#
+#    This program is free software; you can redistribute it and/or modify
+#    it under the terms of the GNU General Public License as published by
+#    the Free Software Foundation; either version 2 of the License, or
+#    (at your option) any later version.
+#
+#    This program is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#    GNU General Public License for more details.
+#
+#    You should have received a copy of the GNU General Public License
+#    along with this program; if not, write to the Free Software
+#    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+#
+
+VERSION=1
+
+. ./config
+
+patch -p0 < $DATA/supported-versions-trisquel.patch
+
+changelog "Imported into Trisquel"
+
+
+compile