add foregin_tables_are functions.

the *_are functions are used by pg_tapgen in the generated
test scripts.