Re: connect with ecpg - Mailing list pgsql-hackers

From Michael Meskes
Subject Re: connect with ecpg
Date
Msg-id 20020225074725.GA4327@feivel.credativ.de
Whole thread Raw
In response to connect with ecpg  (David Eduardo Gomez Noguera <davidgn@servidor.unam.mx>)
List pgsql-hackers
On Sun, Feb 24, 2002 at 08:34:44PM -0600, David Eduardo Gomez Noguera wrote:
> I saw on the docs that connect has a parameter "as dbase_name". I supose
> this is to differentiate between two connections. Now, how do i use that

Yes.

> in subsequent sql commands? how do i tell a query is for connection A or
> B?

With the AT command:

EXEC SQL AT A SELECT ...

Michael
--
Michael Meskes
Michael@Fam-Meskes.De
Go SF 49ers! Go Rhein Fire!
Use Debian GNU/Linux! Use PostgreSQL!

pgsql-hackers by date:

Previous
From: Stephan Szabo
Date:
Subject: Re: 7.2 stuff
Next
From: Karel Zak
Date:
Subject: Re: elog() proposal