Re: Multiple logical databases - Mailing list pgsql-hackers

From Martijn van Oosterhout
Subject Re: Multiple logical databases
Date
Msg-id 20060202191630.GB25752@svana.org
Whole thread Raw
In response to Re: Multiple logical databases  ("Mark Woodward" <pgsql@mohawksoft.com>)
List pgsql-hackers
On Thu, Feb 02, 2006 at 02:05:03PM -0500, Mark Woodward wrote:
> My issue is this, (and this is NOT a slam on PostgreSQL), I have a number
> of physical databases on one machine on ports 5432, 5433, 5434. All
> running the same version and in fact, installation of PostgreSQL.

One way of acheiving this would be to allow the PGHOST and/or PGPORT
variables to be lists and when you connect it tries each combination
until it finds on that works. Maybe not as clean but a lot easier to
implement.

Unless ofcourse you want "psql -l" to list all databases in all
clusters...

I think it would be better to put the intelligence into libpq rather
than trying to create more servers...

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: "Mark Woodward"
Date:
Subject: Re: Multiple logical databases
Next
From: "Kevin Grittner"
Date:
Subject: Re: Backslashes in string literals