Re: database name aliases?
| От | Reece Hart |
|---|---|
| Тема | Re: database name aliases? |
| Дата | |
| Msg-id | 1162859373.4423.63.camel@snafu.site обсуждение |
| Ответ на | Re: database name aliases? ("Talha Khan" <talha.amjad@gmail.com>) |
| Ответы |
Re: database name aliases?
Re: database name aliases? |
| Список | pgsql-general |
On Tue, 2006-11-07 at 04:54 +0500, Talha Khan wrote:
I think I understand the gist of your proposal, but psql was just one client example. In principle, I'd want the same alias to be exposed to psql, perl DBI, odbc, jdbc, etc. I really think this should be done in the database itself to ensure consistency.
-Reece
You can do this by using a script. I mean whenever you are creating a new version of the database. you can do that by running a script that creates a database and then stores the name of that database in an environmental variable . Now you can run psql by connecting to a database through that variable.
I think I understand the gist of your proposal, but psql was just one client example. In principle, I'd want the same alias to be exposed to psql, perl DBI, odbc, jdbc, etc. I really think this should be done in the database itself to ensure consistency.
-Reece
-- Reece Hart, http://harts.net/reece/, GPG:0x25EC91A0 |
В списке pgsql-general по дате отправления: