« PostgreSQL » : différence entre les versions

De Banane Atomic
Aller à la navigationAller à la recherche
Aucun résumé des modifications
Ligne 2 : Ligne 2 :
= Links =
= Links =
* [https://wiki.archlinux.org/index.php/PostgreSQL PostgreSQL on Archlinux]
* [https://wiki.archlinux.org/index.php/PostgreSQL PostgreSQL on Archlinux]
= Service =
<kode lang='bash'>
sc-start postgresql.service
</kode>


= Installation =
= Installation =

Version du 4 avril 2021 à 17:36

Links

Service

Bash.svg
sc-start postgresql.service

Installation

Bash.svg
# will install postgresql-libs, postgresql and create a system user called postgres
sudo pacman -S postgresql

Initial configuration

Bash.svg
# switch to the PostgreSQL user
sudo -iu postgres

# initialize the database cluster
initdb -D /var/lib/postgres/data
# $LANG (en_US.UTF-8) is used to deduce the locale and the encoding
# or can be defined manually: --locale=en_US.UTF-8 -E UTF8