| Summary: | dev-db/postgresql-server-9.1 : init script does not honour postgresql.conf settings | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Bèrto 'd Sèra <berto.d.sera> |
| Component: | New packages | Assignee: | PgSQL Bugs <pgsql-bugs> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: | reads postgresql.conf value for port and uses it | ||
|
Description
Bèrto 'd Sèra
2011-11-25 10:56:12 UTC
Created attachment 293701 [details]
reads postgresql.conf value for port and uses it
On a second thought, the script in the ebuild would fail to detect a real port conflict, just as well. All it takes is to have one admin modifying PGPORT to bypass the script blocker, then a second edit to the postgresql.conf file, that would state an explicit 5332 value for the port. I haven't checked it personally, but I cannot really see how this could be avoided. (In reply to comment #2) > On a second thought, the script in the ebuild would fail to detect a real port > conflict, just as well. All it takes is to have one admin modifying PGPORT to > bypass the script blocker, then a second edit to the postgresql.conf file, that > would state an explicit 5332 value for the port. I haven't checked it > personally, but I cannot really see how this could be avoided. Postgres would determine the conflict. The initscript does pass back the error. (At least, it should. It's been a while since I've tested the error handling of the initscript. I like this patch, though, and I'll commit the changes. I would suggest using awk rather than the readconf function tbh, for the sake of maintainability, but I hit this as well so I wouldn't mind getting it fixed myself if it needs to... (In reply to comment #4) > I would suggest using awk rather than the readconf function tbh, for the sake > of maintainability, but I hit this as well so I wouldn't mind getting it fixed > myself if it needs to... Right, I actually came up with something using grep and sed. awk and I are not friends. 08 Dec 2011; Aaron W. Swenson <titanofold@gentoo.org> +postgresql-server-8.2.23.ebuild, +postgresql-server-8.3.17.ebuild, +postgresql-server-8.4.10.ebuild, +postgresql-server-9.0.6.ebuild, +postgresql-server-9.1.2.ebuild: Version bump. Fixes bugs 391851, 383471, and 378865. |