From: nathan@khmere.com
To: pgsql-interfaces@postgreSQL.org <pgsql-interfaces@postgreSQL.org>
Subject: ECPG and remote databases
Date: Wed, 05 Jan 2000 09:26:12 -0800
Message-ID: <38737EB4.8D412106@khmere.com> (raw)
I have a question regarding remote databases.
I am programming in C and using SQL and ecpg on FreeBSD 3.2 with
postgres 6.5.2 / ecpg 2.6.0.
I want to connect to a remote database as a specific user. So the man
page for ecpg says to do the following
EXEC SQL CONNECT dbname[@server][:port]
or
<tcp|unix>:postgresql://server[:port][/dbname][?options]
But either way does not work, can someone please let me know the proper
syntax fo ecpg or how to do this within embedded SQL ?
thank you
nathan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: nathan@khmere.com
Subject: Re: ECPG and remote databases
In-Reply-To: <38737EB4.8D412106@khmere.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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