Re: connect with ecpg

Поиск
Список
Период
Сортировка
От Michael Meskes
Тема Re: connect with ecpg
Дата
Msg-id 20020225074725.GA4327@feivel.credativ.de
обсуждение исходный текст
Ответ на connect with ecpg  (David Eduardo Gomez Noguera <davidgn@servidor.unam.mx>)
Список 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 по дате отправления:

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: 7.2 stuff
Следующее
От: Karel Zak
Дата:
Сообщение: Re: elog() proposal