Projet

Général

Profil

PostgreSQL

Installation

PostgreSQL

aptitude install postgresql

phpPgAdmin

aptitude install phppgadmin

Configuration

Editer /etc/postgresql/8.4/main/pg_hba.conf

local   all         all                               md5

Ajouter un utilisateur

su
su postgres
createuser user
exit

Changer de mot de passe

ALTER USER Postgres WITH PASSWORD '<newpassword>';

Se connecter

psql -W template1

Migration 8.4 => 9.1

Installer postgresql 9.1

aptitude postgresql-9.1

Faire la migration des données/configurations

su postgres
pg_dropcluster --stop 9.1 main    
pg_upgradecluster 8.4 main

Erreurs

"could not create shared memory segment: Invalid argument" :

sysctl -w kernel.shmmax=134217728

Maintenir après un reboot :
Editer /etc/sysctl.conf

kernel.shmmax = 134217728