Re: Foreign Key Validation after Reference Table Ownership Change

Поиск
Список
Период
Сортировка
От Louis Battuello
Тема Re: Foreign Key Validation after Reference Table Ownership Change
Дата
Msg-id 15ABBD1A-BCD6-400F-8F95-62E295A93C7A@etasseo.com
обсуждение исходный текст
Ответ на Re: Foreign Key Validation after Reference Table Ownership Change  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Foreign Key Validation after Reference Table Ownership Change
Re: Foreign Key Validation after Reference Table Ownership Change
Список pgsql-general
>
> 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.

That certainly makes sense for user_2 that owns the reference table and is blocked by not having usage on the reference
table’sschema. 

But, user_1 owns both schemas and has usage on both but no longer owns the reference table in one schema. Why is
user_1’sinsert on the referencing table failing? Is the validation of the FK no longer done as user_1? 


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

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