Unable to re-run initdb after installing postgresql-8.3 on Ubuntu hardy
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
postgresql (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: postgresql
I installed postgresql-8.3 with sudo apt-get install postgresql. Everything seemed to go OK. The installation process initialized a database directory (i.e run the initdb command for me), and set up a configuration file (postgresql.conf). Unfortunately, the configuration file was put in a separate directory from the database directory (/etc/postgresq
I need to do this, because I need to change the locale settings in postgresql.conf from en_US to C.
Best regards,
Egil
I have now studied how postgresql is installed on Ubuntu, and found that there are a number of commands not documented in the official PostgreSQL documentation, among those: pg_createcluster, which is a wrapper for initdb. When I found out how to use these commands, I was able to solve my problem.
Unfortunately, there was no hint when installing the package that what I installed was in fact a modified version of PostgreSQL, and that the excellent documentation found in http:// www.postgresql. org/docs/ 8.3/static/ admin.html could not be trusted.
Thus, I will withdraw this bug report. But I think there should be a better summary documentation somewhere, stressing the fact that other commands must be used to manage the database cluster, and that reference to such documentation should appear during the installation process.
Best regards,
Egil