PostgreSQL9 has better compatibility with OpenERP6.1 than PostgreSQL8.4. To solve this problem, add "debhttp: // ppa.launchpad.net/pitti/postgresql/ubuntulucidmaindeb-srchttp://ppa.launchpad.n" to the software source.
PostgreSQL 9 has better compatibility with OpenERP 6.1 than PostgreSQL 8.4. Therefore, PostgreSQL 9 is installed in Ubuntu 10.04.
1. Add the following in the software source for Ubuntu 10.04:
Deb http://ppa.launchpad.net/pitti/postgresql/ubuntu lucid main
The deb-src http://ppa.launchpad.net/pitti/postgresql/ubuntu lucid main
Ubuntu 10.04 source code installation OpenERP-web 6.0.3 and Common Bugs to solve http://www.linuxidc.com/Linux/2012-02/54543.htm
OpenERP practice manual: interface culture http://www.linuxidc.com/Linux/2012-02/54541.htm
2. Run the following command to install Postgresql9:
Apt-get update
Apt-get installpostgresql-9.0
3. Create a PostgreSQL user for postgresql:
$ Adduser postgresql
4. Create a directory for PostgreSQL:
$ Su
$ Cd/usr/local
$ Mkdir pgsql
$ Cd pgsql
$ Mkdir data
5. Grant the permission to use the data directory to postgresql:
$ Chown postgresql:/usr/pgsql/data
6. initialize the database
$ Su postgresql
$ Cd/usr/lib/postgresql/9.0/bin
$./Initdb-D/usr/local/pgsql/data
The following message is displayed:
Success. You can now start the database server using:
Postgres-D/usr/local/pgsql/data
Or
Pg_ctl-D/usr/local/pgsql/data-l logfile start
7. Obviously, it prompts you to use
Postgres-D/usr/local/pgsql/data
Or
Pg_ctl-D/usr/local/pgsql/data-l logfile start
You can start the database with two lines of commands.