I\'m not sure if its standard SQL:
INSERT INTO tblA
(SELECT id, time
FROM tblB
WHERE time > 1000)
What I\'m looking for
Here's an alternate solution, without using dblink.
Suppose B represents the source database and A represents the target database: Then,
Copy table from source DB to target DB:
pg_dump -t | psql
Open psql prompt, connect to target_db, and use a simple insert:
psql
# \c ;
# INSERT INTO (id, x, y) SELECT id, x, y FROM ;
At the end, delete the copy of source_table that you created in target_table.
# DROP TABLE ;