Re: Foreign Key Validation after Reference Table Ownership Change

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Foreign Key Validation after Reference Table Ownership Change
Дата
Msg-id 23491.1521653956@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Re: Foreign Key Validation after Reference Table Ownership Change  ("David G. Johnston" <david.g.johnston@gmail.com>)
Ответы Re: Foreign Key Validation after Reference Table Ownership Change
Список pgsql-general
"David G. Johnston" <david.g.johnston@gmail.com> writes:
> On Wed, Mar 21, 2018 at 8:30 AM, Battuello, Louis <
> louis.battuello@etasseo.com> wrote:
>> So, user_2 needs usage on the schema containing its newly owned reference
>> table even though user_1 is performing the insert on a table in the other
>> schema? Interesting. I though the validation was only dependent on user_1's
>> ACL.

> ​It was the only thing that made sense, given the error, though I agree it
> seems a bit odd.​

The point is you can't resolve a name like "schema_1.something" unless
you have USAGE on schema_1.  So the RI-checking query, which is run as
the owner of the table, fails at parse time.

            regards, tom lane


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

Предыдущее
От: Louis Battuello
Дата:
Сообщение: Re: Foreign Key Validation after Reference Table Ownership Change
Следующее
От: Louis Battuello
Дата:
Сообщение: Re: Foreign Key Validation after Reference Table Ownership Change