Programatically switching database

Поиск
Список
Период
Сортировка
От ow
Тема Programatically switching database
Дата
Msg-id 20031115043616.90388.qmail@web21405.mail.yahoo.com
обсуждение исходный текст
Ответы Re: Programatically switching database
Re: Programatically switching database
Список pgsql-sql
Hi,

Suppose pgSql server is running databases "db1" and "db2" that are in the same
db cluster. A client app establishes connection "conn1" to db1. Is there a way
to programatically switch conn1 to use db2 without doing
disconnect-from-db1-connect-to-db2? Something like what "\c" does but to be
used independently from psql? I need this to be able to reuse a pool of
connections to db1 for actions on db1, db2 ... dbn.

Thanks






__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree


В списке pgsql-sql по дате отправления:

Предыдущее
От: Bruno Wolff III
Дата:
Сообщение: Re: Need Help
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: Programatically switching database