"Keegan,Nate" <nate(dot)keegan(at)prescott-az(dot)gov> writes:
> I'm guessing that the concat function changed between PostgreSQL 9.0.4 and 9.0.5 in a subtle way that is breaking this script by causing the wrong information to be returned from the database.
There is no built-in function named concat() in Postgres 9.0.x, nor any
previous release. Apparently you've got a user-defined function by
that name in your 9.0.4 installation.
regards, tom lane