Bug 803295
| Summary: | Confusing redundancy in specifying PGPORT in postgresql.service (FC16) and init.d/postgresql (FC15) | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Marek Kielar <mkielar> |
| Component: | postgresql | Assignee: | Tom Lane <tgl> |
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 16 | CC: | devrim, hhorak, tgl |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-03-14 14:03:11 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Marek Kielar
2012-03-14 11:47:21 UTC
IMO this is not a bug, and the current behavior is the expected one. The postgresql documentation is perfectly clear that postmaster command-line switches override postgresql.conf. Moreover, since it's worked like this in Fedora, RHEL, and most other distributions since approximately forever, people would be confused and unhappy if we removed the behavior. I find it simply wrong to say "it's worked like this [...] since approximately forever". Rather, it did until we migrated to systemd with postgresql package in FC16, it marks a new era - what worked like this forever? As I understand, what is really wanted is the same behavior out-of-the-box ie. just after installing postgresql package the server runs at port 5432. Since a change has been made in where to customize the listening port value at migrating to systemd, a bit of slack has been made to allow for resolving issues with previous usage pattern eg. unneeded data redundancy. That being said the transition doesn't seem to be complete as the package is internally inconsistent with respect to customizing the listening port as I'm just going to file a bug concerning this. Follow-up: As seen with #804290, current approach is inherently flawed in that it introduces (new!) unneeded dependencies, with their own problems, and data redundancy that are hard to always remember to keep in line with the rest of the configuration and not obvious - right from the start! These arguments don't seem to me to have anything to do with the key point, which is that it's traditional in at least Red Hat-based distributions to set PGPORT and PGDATA from someplace outside of postgresql.conf. Moreover, while we could possibly extract PGPORT from postgresql.conf, we could hardly extract PGDATA from there since we'd need to know PGDATA to find the file in the first place. And your suggestion of extracting them from a running instance is just circular --- it doesn't work at all for the "start" case, and how are you going to contact a running instance if you don't know its port number? I don't plan to change this. |