...
Code Block | ||
---|---|---|
| ||
gunzip -c ${BACKUP} | pg_restore -h localhost --username=${USER} -d ${DB} -W |
The user's password (entered just previously) needs to be entered again.
Remove the superuser
...
privileges
Code Block | ||
---|---|---|
| ||
sudosudo -u postgres psql << EOF ALTER ROLE ${USER} NOSUPERUSER; EOF |