PostgreSQL 9.1 pg_restore error regarding PLPGSQL

前端 未结 6 1498
-上瘾入骨i
-上瘾入骨i 2020-12-23 02:30

I am using Postgres for a django project and I am currently implementing a database backup/restore system that as simple as possible performs a pg_dump when the user clicks

6条回答
  •  臣服心动
    2020-12-23 02:45

    Works for me after this command -

    Deepak@deepak:~$ sudo -i -u postgres
    postgres@deepak:~$ psql 
    psql (9.3.5)
    Type "help" for help.
    
    postgres=# GRANT ALL PRIVILEGES ON DATABASE database_name TO user;
    postgres=# GRANT
    

提交回复
热议问题