
Setup PostgreSQL environment for M2 Mac
I setup postgresql for my new M2 Macbook.
postgres.app: Postgresをバージョン管理しながら起動停止をGUIで操作できる.
https://postgresapp.com/
Postico2:GUIクライアント。機能制限ありますが無料でも使用可能です。pgAdminでもいいなと思います。
https://eggerapps.at/postico2/
ローカルでpsqlを叩けるようにするために、postgres.appのこちらの操作はやっておいた方が良さそうです。
sudo mkdir -p /etc/paths.d &&
echo /Applications/Postgres.app/Contents/Versions/latest/bin | sudo tee /etc/paths.d/postgresapp