From: | Martijn van Oosterhout <kleptog(at)svana(dot)org> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Config file for psql |
Date: | 2006-02-18 18:52:22 |
Message-ID: | 20060218185222.GG20716@svana.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-docs pgsql-hackers |
Hi,
A little while ago there was someone asking for tools to make it easier
to connect to multiple servers. It occured to me that it might be
useful to have a config file the way ssh does it:
Host production
ServerName db1
DBName main
Username blah
Password blah
UseSSL yes
Host test
ServerName db2
ServerPort 5434
DBName main
Username blah
Password blah
Host *
Username default
So when you type "psql test" it fills in the server name, port,
database, username and password for you. For hosts not listed, it gives
a default username "default". It's really just a variation on the
.netrc file.
Thoughts?
--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2006-02-18 19:12:29 | Re: Config file for psql |
Previous Message | Peter Eisentraut | 2006-02-14 20:31:21 | Re: [pgsql-www] missing 8.1.2 release notes |
From | Date | Subject | |
---|---|---|---|
Next Message | Martin Pitt | 2006-02-18 19:00:38 | Re: Adding an ignore list to pg_restore |
Previous Message | Martijn van Oosterhout | 2006-02-18 18:46:11 | Re: Pgfoundry and gborg: shut one down |