Photo by Kvistholt Photography on Unsplash It is common to run some commands via the postgres account as it is the de facto PostgreSQL super user. This means that if you're running these commands remotely, you'll need to chain sudo: ssh pg-host sudo -i sudo -u postgres ... If you're in char