Thanks!
I'll push a backpatch of this to pgadmin3 as well, just in case somebody wants to build their own version even if there are no more official releases.
In working on this I also noticed that we fairly often use the construct of "(select oid from pg_class where relname=xxx)" instead of using "::regclass". This could cause issues if somebody creates a table with the same name in a different schema, for example. While not the highest priority, it might be a good idea to go over the queries and replace those patterns (and if we're doing that, it's probably not a bad idea to fully qualify them as well, as we don in psql). There's also a couple of cases where oid's are hardcoded, which is probably also a bad practice that needs to be taken care of.
//Magnus