The problems seems to be with the table_name arg being a variable and not a literal but can't see how to fix this.
If anyone knows what's going on here or has any pointers it would be appreciated.
Thanks, James
Sorry,
I'm running PgSQL 7.4.7 on RedHat Enterprise Linux 3.
---------------------------(end of broadcast)--------------------------- TIP 4: Don't 'kill -9' the postmaster