The two occurences of "WHERE u.usesysid = ANY( g.grolist )" are the problem. Replacing the ANY clause with some dummy will let everything run ok.
select usename from pg_user, pg_group where usesysid = ANY (grolist)
will yield ERROR: syntaxt error at or near "grolist", so I believe that the ANY(ARRAY) support is broken.
Regards, Andreas
---------------------------(end of broadcast)--------------------------- TIP 9: the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match