*** pgsql/src/bin/pg_dump/pg_dump.c 2010/01/28 23:21:12 1.569 --- pgsql/src/bin/pg_dump/pg_dump.c 2010/02/07 20:48:10 1.570 *************** *** 12,18 **** * by PostgreSQL * * IDENTIFICATION ! * $PostgreSQL: pgsql/src/bin/pg_dump/pg_dump.c,v 1.568 2010/01/22 16:40:19 rhaas Exp $ * *------------------------------------------------------------------------- */ --- 12,18 ---- * by PostgreSQL * * IDENTIFICATION ! * $PostgreSQL: pgsql/src/bin/pg_dump/pg_dump.c,v 1.569 2010/01/28 23:21:12 petere Exp $ * *------------------------------------------------------------------------- */ *************** binary_upgrade_set_relfilenodes(PQExpBuf *** 2300,2305 **** --- 2300,2311 ---- Oid pg_class_reltoastrelid; Oid pg_class_reltoastidxid; + /* + * Note: we don't need to use pg_relation_filenode() here because this + * function is not intended to be used against system catalogs. + * Otherwise we'd have to worry about which versions pg_relation_filenode + * is available in. + */ appendPQExpBuffer(upgrade_query, "SELECT c.relfilenode, c.reltoastrelid, t.reltoastidxid " "FROM pg_catalog.pg_class c LEFT JOIN "