Postgres
Tuesday 13 December 2022

archlinux postgres

After upgrading Postgres on local machine. to get rid of old data and start fresh

1mv /var/lib/postgres/data /var/lib/postgres/olddata
2sudo su postgres
3initdb --locale en_US.UTF-8 -D '/var/lib/postgres/data'
4exit
5sudo systemctl start postgresql

Backlinks

See Also