This file is indexed.

postinst is in odbc-postgresql 1:09.00.0310-2.

This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
#!/bin/sh

set -e

case $1 in
	configure)
		if [ "$2" ] && dpkg --compare-versions "$2" lt "1:09.00.0310-2" && \
			grep -q /usr/lib/odbc/psqlodbc..so /etc/odbcinst.ini ; then
			echo "Updating /etc/odbcinst.ini for multiarch support"
			odbcinst -u -d -n 'PostgreSQL ANSI'
			odbcinst -u -d -n 'PostgreSQL Unicode'
		fi
		if ! grep -q PostgreSQL /etc/odbcinst.ini ; then
			odbcinst -i -d -f /usr/share/psqlodbc/odbcinst.ini.template
		fi ;;
esac