here's a patch that joins on pg_class.oid instead of pg_class.relfilenode, also i have renamed the table structure from relfilenode to relid.
patch
Description: Binary data
---------------------------(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