How to install PostgreSql on Mac

Here we will see how to install PostgreSQL on Mac with homebrew. Versions: Mac OS Big Sur 11.04 Homebrew 3.2.3