PostgreSQL - ArchWiki - Arch Linux
https://wiki.archlinux.org/title/PostgreSQLFamiliarize with PostgreSQL Access the database shell. Become the postgres user. Start the primary database shell, psql, where you can do all your creation of databases/tables, deletion, set permissions, and run raw SQL commands.Use the -d option to connect to the database you created (without specifying a database, psql will try to access a database that matches your …
PostgreSQL - ArchWiki - Arch Linux
wiki.archlinux.org › title › PostgreSQLYou can switch to the PostgreSQL user by executing the following command: If you have sudo and are in sudoers: $ sudo -iu postgres. Otherwise using su: $ su # su -l postgres See sudo(8) or su(1) for their usage. Initial configuration. Before PostgreSQL can function correctly, the database cluster must be initialized:
Installing Postgres
www.postgresguide.com › setup › installPostgres App. For Linux. For APT systems (Ubuntu, Debian, Mint, Etc) sudo apt-get install postgresql. For Arch Linux. sudo pacman -S postgresql. For YUM installations (Fedora / Red Hat / CentOS / Scientific Linux) (Example used is for PostgreSQL 9.2 on CentOS 6.4 x64) Head over to PostgreSQL Yum Repository.