pg, correctly dump foreign keys targeting tables in a different schema.

Closes #16907.

[Matthew Draper & Yves Senn]