pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Connect to remote database via psql?
2+ messages / 2 participants
[nested] [flat]

* Connect to remote database via psql?
@ 2006-06-08 15:56  Mr. DBA <dba@ciberforce.net>
  0 siblings, 1 reply; 2+ messages in thread

From: Mr. DBA @ 2006-06-08 15:56 UTC (permalink / raw)
  To: pgsql-odbc


Hi List;

I've setup an ODBC connection from my Linux/Postgres laptop to a Lunux/postgres server. I can connect via isql to the remote database.

How can I select data from the remote database from within an sql statement in psql on my local machine?

For example I'd like to be able to specify the server@database.table to connect on the fly from straight SQL.  

Is this possible?







^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Connect to remote database via psql?
@ 2006-06-09 08:20  Ludek Finstrle <luf@pzkagis.cz>
  parent: Mr. DBA <dba@ciberforce.net>
  0 siblings, 0 replies; 2+ messages in thread

From: Ludek Finstrle @ 2006-06-09 08:20 UTC (permalink / raw)
  To: Mr. DBA <dba@ciberforce.net>; +Cc: pgsql-odbc

> I've setup an ODBC connection from my Linux/Postgres laptop to
> a Lunux/postgres server. I can connect via isql to the remote database.
> 
> How can I select data from the remote database from within an sql
> statement in psql on my local machine?

Is it ODBC related? I think psql isn't our focus.
BTW psql have to be connected to some backend (PgSQL server). So
I'm not sure if I understand you well.

> For example I'd like to be able to specify the server@database.table
> to connect on the fly from straight SQL.  
> 
> Is this possible?

You could look at contrib/dblink. It could be what are you looking for.

Regards,

Luf



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2006-06-09 08:20 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-06-08 15:56 Connect to remote database via psql? Mr. DBA <dba@ciberforce.net>
2006-06-09 08:20 ` Ludek Finstrle <luf@pzkagis.cz>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox