Wiki

A universe of ideas

User Tools

Site Tools


computer:gentoo

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
computer:gentoo [2020-11-18 18:11] – external edit 127.0.0.1computer:gentoo [2023-03-05 14:01] (current) – [PostgreSQL] skrupellos
Line 72: Line 72:
   * Copy config files from ''/etc/postgresql-*/'' to ''/var/lib/postgresql/*/data/'' (they are now symlinked)   * Copy config files from ''/etc/postgresql-*/'' to ''/var/lib/postgresql/*/data/'' (they are now symlinked)
   * Add ''local  all  all  trust'' to ''/etc/postgresql-*/pg_hba.conf'' (it it there by default)   * Add ''local  all  all  trust'' to ''/etc/postgresql-*/pg_hba.conf'' (it it there by default)
 +
 +=== Arch Linux Version ===
 +<code>
 +systemctl stop postgresql
 +systemctl status postgresql
 +
 +cd /var/lib/postgres
 +V=$(cat data/PG_VERSION)
 +mv data data-$V
 +
 +install -d -o postgres -g postgres -m 700 /var/lib/postgres/{data,tmp}
 +cd tmp
 +sudo -u postgres -- initdb --locale en_US.UTF-8 --encoding=UTF8 -D ../data
 +sudo -u postgres -- pg_upgrade -b /opt/pgsql-$V/bin -B /usr/bin -d ../data-$V -D ../data
 +systemctl start postgresql
 +systemctl status postgresql
 +sudo -u postgres -- vacuumdb --all --analyze-in-stages
 +cd ..
 +rm -R tmp
 +</code>
 ===== Haushalten ===== ===== Haushalten =====
 Konfiguration in ''/etc/portage/'' überprüfen Konfiguration in ''/etc/portage/'' überprüfen
computer/gentoo.1605719487.txt.gz · Last modified: 2020-11-18 18:11 by 127.0.0.1