Skip site navigation (1) Skip section navigation (2)

Re: Multiple logical databases

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: Mark Woodward <pgsql(at)mohawksoft(dot)com>
Cc: Tino Wildenhain <tino(at)wildenhain(dot)de>,Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-hackers(at)postgresql(dot)org,Stephan Szabo <sszabo(at)megazone(dot)bigpanda(dot)com>
Subject: Re: Multiple logical databases
Date: 2006-02-03 13:34:25
Message-ID: 20060203133425.GB5009@svana.org (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-patches
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(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.

In response to

pgsql-hackers by date

Next:From: Chris CampbellDate: 2006-02-03 13:47:05
Subject: Re: Multiple logical databases
Previous:From: Chris CampbellDate: 2006-02-03 13:33:23
Subject: Re: Passing arguments to views

pgsql-patches by date

Next:From: Chris CampbellDate: 2006-02-03 13:47:05
Subject: Re: Multiple logical databases
Previous:From: Doug McNaughtDate: 2006-02-03 13:24:21
Subject: Re: Multiple logical databases

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group