Compare commits
No commits in common. "11089f0d190235930068908dd88fa297bd765cec" and "b574e9f07bb17b3d5801a48361ab3fc0557b3b3a" have entirely different histories.
11089f0d19
...
b574e9f07b
2 changed files with 5 additions and 15 deletions
|
@ -7,5 +7,5 @@ enableGitInfo = true
|
||||||
[params]
|
[params]
|
||||||
BookLogo = 'logo.svg'
|
BookLogo = 'logo.svg'
|
||||||
BookRepo = 'https://git.edgarpierre.fr/edpibu/blog'
|
BookRepo = 'https://git.edgarpierre.fr/edpibu/blog'
|
||||||
BookDateFormat = '2006-01-02'
|
BookDateFormat = 2006-01-02
|
||||||
BookComments = false
|
BookComments = false
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
title: "PostgreSQL"
|
title: "Postgresql"
|
||||||
weight: 1
|
weight: 1
|
||||||
# bookFlatSection: false
|
# bookFlatSection: false
|
||||||
# bookToc: true
|
# bookToc: true
|
||||||
|
@ -9,18 +9,8 @@ weight: 1
|
||||||
# bookSearchExclude: false
|
# bookSearchExclude: false
|
||||||
---
|
---
|
||||||
|
|
||||||
# PostgreSQL
|
# Postgresql
|
||||||
|
*On this page, `$` means the command must be run as a user with adequate rights such as the `postgresql` user.*
|
||||||
*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
|
## Filesystem preparation
|
||||||
In case a Btrfs filesystem is used, Copy-on-Write should be disabled first.
|
In case a Btrfs filesystem is used, Copy-on-Write should be disabled first.
|
||||||
|
@ -32,7 +22,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
|
$ 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
|
## Usage
|
||||||
### Creating users
|
### Creating users
|
||||||
|
|
Loading…
Reference in a new issue