1
Fork 0

Update postgresql with install info

This commit is contained in:
Edgar P. Burkhart 2022-08-22 18:55:16 +02:00
parent d01b44dffb
commit 11089f0d19
Signed by: edpibu
GPG Key ID: 9833D3C5A25BD227
1 changed files with 14 additions and 4 deletions

View File

@ -1,5 +1,5 @@
---
title: "Postgresql"
title: "PostgreSQL"
weight: 1
# bookFlatSection: false
# bookToc: true
@ -9,8 +9,18 @@ weight: 1
# bookSearchExclude: false
---
# Postgresql
*On this page, `$` means the command must be run as a user with adequate rights such as the `postgresql` user.*
# PostgreSQL
*On this page, `$` means the command must be run as a user with adequate rights such as the `postgres` user.*
## Installation
### Archlinux
On archlinux, PostgreSQL can be installed using the `postgresql` package from `[extra]`.
Major PostgreSQL upgrades are breaking. Instructions from the [official documentation](https://www.postgresql.org/docs/current/upgrading.html) should be followed.
Upgrades can be prevented by adding `postgresql` and `postgresql-libs` to `IgnorePkg` in `/etc/pacman.conf`.
## Filesystem preparation
In case a Btrfs filesystem is used, Copy-on-Write should be disabled first.
@ -22,7 +32,7 @@ The database can be initialized using the following command. Locale defaults to
$ initdb --locale C.UTF-8 --encoding=UTF8 -D /var/lib/postgres/data --data-checksums
```
Postgresql can then be started using the `postgresql` systemd service.
PostgreSQL can then be started using the `postgresql` systemd service.
## Usage
### Creating users