Re: DB alias ?

Поиск
Список
Период
Сортировка
От Joshua D. Drake
Тема Re: DB alias ?
Дата
Msg-id 51005053.50709@commandprompt.com
обсуждение исходный текст
Ответ на DB alias ?  ("Gauthier, Dave" <dave.gauthier@intel.com>)
Ответы Re: DB alias ?
Список pgsql-general
On 01/23/2013 12:45 PM, Gauthier, Dave wrote:
> Problem:  Some users (scripts actually) try to connect to a DB who's
> name is derived from environmental variables.  The DB doesn't exist
> (yet), and I want them to connect to a different DB for the time being.
> Is there a way to define an alias for the existing DB that = the db name
> that doesn't exist?    Or is there a way to have PG fail over to a
> default DB should a DB connect fail?  I can implement the fail over
> outside PG, but those users who make a direct connect to the DB don't
> use that code.

Pass the database name when you connect?

JD


>
> Thanks in Advance
>


--
Command Prompt, Inc. - http://www.commandprompt.com/
PostgreSQL Support, Training, Professional Services and Development
High Availability, Oracle Conversion, Postgres-XC
@cmdpromptinc - 509-416-6579


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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: DB alias ?
Следующее
От: "Gauthier, Dave"
Дата:
Сообщение: Re: DB alias ?