To install PostgreSQL on macOS, you can use Homebrew which is recommended.
Start by installing Homebrew if you haven’t already, then install PostgreSQL and start the PostgreSQL service.
After installing, initialize the database if needed and verify the installation using psql --version.
You can create a new database and user using PostgreSQL CLI and browse PostgreSQL data using psql CLI or GUI Clients like DBeaver, pgAdmin, or TablePlus.