Coba sesuatu seperti ini :
select (rec).* from dblink('dbname=...','select myalias from foreign_table
myalias') t1 (rec local_type)
Contoh (dapatkan statistik tabel dari database lain) :
select (rec).* from dblink('dbname=foreignDb','select t1 from
pg_stat_all_tables t1') t2 (rec pg_stat_all_tables)