How to solve privileges issues when restore PostgreSQL Database

前端 未结 10 1997
Happy的楠姐
Happy的楠姐 2020-12-12 16:19

I have dumped a clean, no owner backup for Postgres Database with the command

pg_dump sample_database -O -c -U

Later, when I restore the databas

10条回答
  •  心在旅途
    2020-12-12 16:38

    For me, I was setting up a database with pgAdmin and it seems setting the owner during database creation was not enough. I had to navigate down to the 'public' schema and set the owner there as well (was originally 'postgres').

提交回复
热议问题