/usr/share/doc/dbconfig-common/examples/db-test-pgsql-2.2/debian/postinst is in dbconfig-common 2.0.9.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | #!/bin/sh
set -e
#set -x
. /usr/share/debconf/confmodule
. /usr/share/dbconfig-common/dpkg/postinst.pgsql
# you can set the default database encoding to something else
dbc_pgsql_createdb_encoding="UTF8"
dbc_sql_substitutions="yes"
dbc_go db-test-pgsql "$@"
#DEBHELPER#
|