Using imbedded SQL, how do I connect tp Postgresql on a remote host?

From: "J" <summer(at)cucumber(dot)os2(dot)ami(dot)com(dot)au>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Using imbedded SQL, how do I connect tp Postgresql on a remote host?
Date: 2001-06-07 07:04:51
Message-ID: 20010607.150451.846811127.3313@possum.os2.ami.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I tried another group without success, so....

The documents do not explain clearly enough, and here are no examples
showing how to connect (via TCP/IP) to pg on another host.

I need to supply user, password and database/

Here are examples that do not work:
// exec sql connect "tcp:postgresql://192.168.1.1/cucumbers user
cucumbereater/blackjack";
exec sql connect :sharetrader;

Does someone have code that works?

If you wish to email me, remove the cucumber component above;-)

Browse pgsql-hackers by date

  From Date Subject
Next Message Zeugswetter Andreas SB 2001-06-07 08:08:55 AW: Re: [SQL] behavior of ' = NULL' vs. MySQL vs. Stand ards
Previous Message Christopher Kings-Lynne 2001-06-07 06:50:13 Wildcards in pg_dump