Debian – How to execute GRANT commands from shell?
I can restore a whole db using shell commands like sudo -u postgres psql -c "DROP DATABASE mynewdbname with (FORCE);" sudo -u postgres psql -c "CREATE DATABASE mynewdbname;" sudo -u postgres pg_restore -d mynewdbname /home/user/restore_20230824.sql -v Than I need to…