Bug 708662
| Summary: | Package does not create a suitable data dir | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | afanen01 |
| Component: | postgresql | Assignee: | Tom Lane <tgl> |
| Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 15 | 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: | 2011-05-28 19:03:54 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
afanen01
2011-05-28 17:29:17 UTC
This is not a bug. Run
service postgresql initdb
before starting up the server. It will give you this message:
echo $"$PGDATA is missing. Use \"service postgresql initdb\" to initialize the cluster first."
when you don't create anything on your own.
It's not a bug that you have to do a manual "service postgresql initdb" before "service start" will succeed. That's an intentional safety feature. We used to have logic in the initscript to do an automatic initdb if the data directory seemed to not be there, but it was removed after a couple of disastrous cases of the auto-initdb overwriting someone's database :-( Now, it *is* a bug that you don't see the message suggesting that you need to do "service initdb". But that's not the postgresql package's fault; it's the fault of systemd, which is intentionally routing all diagnostic output from initscripts to /dev/null. See bug #622663 for some of the complaining about the fact that F15 has gone live without any solution for that problem. *** This bug has been marked as a duplicate of bug 622663 *** |