Prøv noget som dette :
select (rec).* from dblink('dbname=...','select myalias from foreign_table
myalias') t1 (rec local_type)
Eksempel (hent tabelstatistik fra anden database):
select (rec).* from dblink('dbname=foreignDb','select t1 from
pg_stat_all_tables t1') t2 (rec pg_stat_all_tables)