pg_dump: fix dump of 4.x EXTERNAL tables with ON clauses
Follow-up to In GPDB 4, the ON clause information is stored in
pg_exttable.location, not .command.
@@ -11341,7 +11341,7 @@ dumpExternal(TableInfo *tbinfo, PQExpBuffer query, PQExpBuffer q, PQExpBuffer de
options = "";
if (command && strlen(command) > 0)
- on_clause = command;
+ on_clause = urilocations;
else
on_clause = NULL;
}
