Row level security implementation in Foreign Table in Postgres

From: Sounak Chakraborty <sounakr(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Row level security implementation in Foreign Table in Postgres
Date: 2016-11-03 02:46:50
Message-ID: 6A4BBE82-66B0-404B-8A51-A5C44F28F402@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Row level security feature implementation in Postgres is through policy and the row security qualifier is attached as a subquery to the main query before query planning. The RLS is implemented through ALTER TABLE STATEMENT.
But my doubt is why this feature is not enabled in case of Foreign Table. (ALTER FOREIGN TABLE doesn't have a option of enabling Row Level Security).
Is this is not implemented due to some limitations in the current design?
Because from a quick view it looks like the security subquery can also be easily attached to the main query and passed for processing in foreign database.

Thanks
Sounak

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2016-11-03 02:54:50 Re: plan_rows confusion with parallel queries
Previous Message Tomas Vondra 2016-11-03 02:44:29 Re: plan_rows confusion with parallel queries