Re: Foreign Key Validation after Reference Table Ownership Change - Mailing list pgsql-general

From Louis Battuello
Subject Re: Foreign Key Validation after Reference Table Ownership Change
Date
Msg-id 15ABBD1A-BCD6-400F-8F95-62E295A93C7A@etasseo.com
Whole thread Raw
In response to Re: Foreign Key Validation after Reference Table Ownership Change  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Foreign Key Validation after Reference Table Ownership Change  (Adrian Klaver <adrian.klaver@aklaver.com>)
Re: Foreign Key Validation after Reference Table Ownership Change  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: Foreign Key Validation after Reference Table Ownership Change
Next
From: Adrian Klaver
Date:
Subject: Re: Foreign Key Validation after Reference Table Ownership Change