Re: Locked out of schema public

Поиск
Список
Период
Сортировка
От Peter
Тема Re: Locked out of schema public
Дата
Msg-id 20191106214141.GA24734@gate.oper.dinoex.org
обсуждение исходный текст
Ответ на Locked out of schema public  (Peter <pmc@citylink.dinoex.sub.org>)
Список pgsql-general
Hi Adrian,

okay, lets check these out:

> What is ${daily_pgsql_user} equal to?

postgres. The owner of the installation.

> I am not seeing -U postgres.
> Are you sure there is not something else specifying the user e.g. env 
> PGUSER?

I'm sure. The log shows the nightly backup connections as
postgres:<db>, and all connections except postgres:postgres work only
with kerberos - it cannot do much bogus there.

> What user are you doing below as?

Ordinary application user. The postgres and superusers do get access
to the tables.

> What does \dn+ show?

=> \dn+
                          List of schemas
  Name  |  Owner   |  Access privileges   |      Description       
--------+----------+----------------------+------------------------
 public | postgres | postgres=UC/postgres+| standard public schema
        |          | pgsql=UC/postgres    | 

And after restoring with "pg_restore -C -c -d postgres", when it works
correctly again, then it shows:

-> \dn+
                          List of schemas
  Name  |  Owner   |  Access privileges   |      Description       
--------+----------+----------------------+------------------------
 public | postgres | postgres=UC/postgres+| standard public schema
        |          | =UC/postgres        +| 
        |          | pgsql=UC/postgres    | 

So that was the command I was searching for. Thank You!


For now  I hold on the bug...

cheers,
PMc



В списке pgsql-general по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Locked out of schema public (pg_dump lacks backup of the grant)
Следующее
От: Peter
Дата:
Сообщение: Re: Locked out of schema public (pg_dump lacks backup of the grant)