<aside> 💡 This guide only works when postgre is installed with brew.

Cómo instalar PostgreSQL en macOs con Brew - Tuataras.net

</aside>

⚠️ This guide is being written, not is finished, but i’m working to end this

This guide works only on Mac Users.

Installation

Review all available installations with brew, and chose the latest version or compatible version.

#search postgre available versions
brew search postgre

#installation
brew install postgresql@version

Database Service

Before the installation, follow commands

#start service of postgre
brew services start postgresql

#for restart service
brew services restart postgresql

#for update postgre database
brew postgresql-upgrade-database

For database manipulation

#for start postgreSQL terminal
psql postgres
-- Create database
CREATE DATABASE "Name";

-- See databases
\\l

-- Change databases
\\c "name"

-- for close the console
\\q