Thread: who can tell me the correct syntax to use dblink to talk to a table in another database

I installed the dblink module, run dblink.sql to my current database to use the dblink function, but I have not been successful to select a table from a remote database (cross reference).

Whoever knows how to use dblink, please show me the syntax to select another table in a remote database. Thanks a lot!

Jessica


Ahhh...imagining that irresistible "new car" smell?
Check out new cars at Yahoo! Autos.
Jessica Richard wrote:
> I installed the dblink module, run dblink.sql to my current database to
> use the dblink function, but I have not been successful to select a
> table from a remote database (cross reference).
>
> Whoever knows how to use dblink, please show me the syntax to select
> another table in a remote database. Thanks a lot!

See the documentation that comes with dblink, e.g.:
http://developer.postgresql.org/cvsweb.cgi/pgsql/contrib/dblink/doc/query?rev=1.5;content-type=text%2Fplain

HTH,

Joe