Compare commits
No commits in common. "b574e9f07bb17b3d5801a48361ab3fc0557b3b3a" and "b64e47de3864ab32aedadc529a20ddd4d46445fd" have entirely different histories.
b574e9f07b
...
b64e47de38
3 changed files with 3 additions and 93 deletions
13
config.toml
13
config.toml
|
@ -1,11 +1,4 @@
|
|||
baseURL = 'https://doc.edgarpierre.fr/'
|
||||
languageCode = 'fr-fr'
|
||||
title = 'Edoceo'
|
||||
baseURL = 'http://example.org/'
|
||||
languageCode = 'en-us'
|
||||
title = 'My New Hugo Site'
|
||||
theme = 'hugo-book'
|
||||
enableGitInfo = true
|
||||
|
||||
[params]
|
||||
BookLogo = 'logo.svg'
|
||||
BookRepo = 'https://git.edgarpierre.fr/edpibu/blog'
|
||||
BookDateFormat = 2006-01-02
|
||||
BookComments = false
|
||||
|
|
|
@ -1,51 +0,0 @@
|
|||
---
|
||||
title: "Postgresql"
|
||||
weight: 1
|
||||
# bookFlatSection: false
|
||||
# bookToc: true
|
||||
# bookHidden: false
|
||||
# bookCollapseSection: false
|
||||
# bookComments: false
|
||||
# bookSearchExclude: false
|
||||
---
|
||||
|
||||
# Postgresql
|
||||
*On this page, `$` means the command must be run as a user with adequate rights such as the `postgresql` user.*
|
||||
|
||||
## Filesystem preparation
|
||||
In case a Btrfs filesystem is used, Copy-on-Write should be disabled first.
|
||||
|
||||
## Initial setup
|
||||
|
||||
The database can be initialized using the following command. Locale defaults to current environment locale.
|
||||
```
|
||||
$ initdb --locale C.UTF-8 --encoding=UTF8 -D /var/lib/postgres/data --data-checksums
|
||||
```
|
||||
|
||||
Postgresql can then be started using the `postgresql` systemd service.
|
||||
|
||||
## Usage
|
||||
### Creating users
|
||||
|
||||
The following command can be used:
|
||||
```
|
||||
$ createuser [--interactive]
|
||||
```
|
||||
|
||||
Additionnal options can be used to give permissions to the user (usually not needed).
|
||||
|
||||
Users can be deleted using the following command:
|
||||
```
|
||||
$ dropuser [-i/--interactive] [user]
|
||||
```
|
||||
|
||||
### Creating databases
|
||||
|
||||
The following command can be used:
|
||||
```
|
||||
$ createdb [-O owner] [dbname [description]]
|
||||
```
|
||||
|
||||
## Sources
|
||||
|
||||
1. <https://wiki.archlinux.org/title/PostgreSQL>
|
|
@ -1,32 +0,0 @@
|
|||
<svg version="1.1"
|
||||
width="100"
|
||||
height="100"
|
||||
xmlns="http://www.w3.org/2000/svg">
|
||||
<defs>
|
||||
<rect id="basemask" x="0" y="0" width="100" height="100" />
|
||||
<path id="goa" d="M 60 40
|
||||
Q 80 45 75 55
|
||||
Q 75 50 55 50" transform="translate(8 0)" />
|
||||
<path id="gob" d="M 10,100
|
||||
v -50
|
||||
a 25 25 0 0 1 25 -25
|
||||
c 10 0 20 12 25 15
|
||||
l -5 10
|
||||
C 30 50 40 55 45 100" transform="translate(8 0)" />
|
||||
</defs>
|
||||
|
||||
<mask id="mask">
|
||||
<use href="#basemask" fill="black" />
|
||||
<circle cx="50" cy="50" r="50" fill="white" />
|
||||
</mask>
|
||||
<mask id="mask-go">
|
||||
<use href="#basemask" fill="white" />
|
||||
<use href="#goa" fill="black" />
|
||||
<use href="#gob" fill="black" />
|
||||
</mask>
|
||||
|
||||
<circle cx="50" cy="50" r="50" fill="black" mask="url(#mask-go)" />
|
||||
|
||||
<use href="#goa" fill="#8ac149" mask="url(#mask)" />
|
||||
<use href="#gob" fill="white" mask="url(#mask)" />
|
||||
</svg>
|
Before Width: | Height: | Size: 847 B |
Loading…
Reference in a new issue