"Oliver Elphick" <olly@lfix.co.uk> writes:
> This error was in 7.0.3 and is still found in 7.1. Could someone take a
> look please.
Not without a reasonably complete bug report (where are the table
schemas, for example?). Preferably a psql script to reproduce the
problem starting from an empty database. See
http://www.postgresql.org/users-lounge/docs/7.1/postgres/bug-reporting.html
regards, tom lane