Re: Multiple logical databases - Mailing list pgsql-hackers

From Martijn van Oosterhout
Subject Re: Multiple logical databases
Date
Msg-id 20060203133425.GB5009@svana.org
Whole thread Raw
In response to Re: Multiple logical databases  ("Mark Woodward" <pgsql@mohawksoft.com>)
List pgsql-hackers
On Fri, Feb 03, 2006 at 08:05:48AM -0500, Mark Woodward wrote:
> Using the "/etc/hosts" file or DNS to maintain host locations for is a
> fairly common and well known practice, but there is no such mechanism for
> "ports." The problem now becomes a code issue, not a system administration
> issue.

Actually, there is, it's in /etc/services and the functions are
getservbyname and getservbyport. I wonder if it'd be possible to have
psql use this if you put a string in the port part of the connect
string.

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.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.

pgsql-hackers by date:

Previous
From: Chris Campbell
Date:
Subject: Re: Passing arguments to views
Next
From: Chris Campbell
Date:
Subject: Re: Multiple logical databases