I installed my pgsql in a Docker container so it’s easier to manage. I just use this command to show how much resources it is using:
docker stats
Apparently there’s no easy way to check how much memory pgsql is using when installed natively, interesting lol…