Summary: | [improvement] support for running slotted postgresql-servers on different ports | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Marcin Kowalski <yoshi3> |
Component: | [OLD] Server | Assignee: | PgSQL Bugs <pgsql-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | enhancement | CC: | martin.holzer, svrmarty |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Marcin Kowalski
2008-09-10 13:00:39 UTC
This certainly looks useful for postgresql developers who are transitioning between versions (or have to support multiple simultaneously). Let's see what the postgresql team has to say about running simultaneously on different ports -- I wouldn't be surprised if some of them are doing it on their own boxes and might consider adding official support. my first post might have been a bit confusing, so i'll just restate what i really mean ;-) the server port override is pretty much irrelevant, since you can do this in postgresql config and server will take it. i just put it in as an example. the actual point of this bug report is - to be able to conveniently run client tools from all installed postgresql slots simultaneously without the need to search for them in postgresql install dirs, or switching via eselect. currently i only have eselect wrapper symlink for one postgresql slot. that's sometimes not enough. i think eselect should handle the default set of symlinks , e.g. /usr/bin/psql, while there would be a set of addiotional symlinks - in case of psql command : /usr/bin/psql-{74,80,81,82,83} for each postgresql slot available. Addressed in bug #311047 (In reply to comment #2) > my first post might have been a bit confusing, so i'll just restate what i > really mean ;-) > > the actual point of this bug report is > - to be able to conveniently run client tools from all installed postgresql > slots simultaneously without the need to search for them in postgresql install > dirs, or switching via eselect. > > currently i only have eselect wrapper symlink for one postgresql slot. that's > sometimes not enough. > > i think eselect should handle the default set of symlinks , e.g. /usr/bin/psql, > while there would be a set of addiotional symlinks - in case of psql command : > /usr/bin/psql-{74,80,81,82,83} for each postgresql slot available. > Upstream recommends using the latest client for connecting to any version of server; use the 8.4 client to connect to servers of version 8.4 and below. Is there a real problem that you're running into? By which I mean, other than your peculiar use case where you want to test each major version client. well, the only point of this bug was to enable users to run all the available slotted postgresql utils without specifying full path, or dancing around with eselect. i don't think multiple postgresql installations on one machine are that rare. if 8.4 client works reliably with all slots from 7.4 upwards - i think it should be all right to close this bug. I don't think it's rare, either, for multiple instances of PostgreSQL to be on the same machine. In fact, the recommended method of migrating databases calls for such a situation. That is why bug #311047 does address the PGPORT issue. Committed |