POSIX shell & Postgre Error capturing

PostgreSQL 8.4.8 on FreeBSD 8.2

Seems this is a change I should definitely put into place, since it doesn’t work on your newer version and some time in the future we’re going to be upgrading the system.