postgresql/src/backend/rewrite
Robert Haas 0e4611c023 Add a security_barrier option for views.
When a view is marked as a security barrier, it will not be pulled up
into the containing query, and no quals will be pushed down into it,
so that no function or operator chosen by the user can be applied to
rows not exposed by the view.  Views not configured with this
option cannot provide robust row-level security, but will perform far
better.

Patch by KaiGai Kohei; original problem report by Heikki Linnakangas
(in October 2009!).  Review (in earlier versions) by Noah Misch and
others.  Design advice by Tom Lane and myself.  Further review and
cleanup by me.
2011-12-22 16:16:31 -05:00
..
Makefile Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
rewriteDefine.c Improve table locking behavior in the face of current DDL. 2011-11-30 10:27:00 -05:00
rewriteHandler.c Add a security_barrier option for views. 2011-12-22 16:16:31 -05:00
rewriteManip.c Rearrange planner to save the whole PlannerInfo (subroot) for a subquery. 2011-09-03 15:36:24 -04:00
rewriteRemove.c Further consolidation of DROP statement handling. 2011-11-17 21:32:34 -05:00
rewriteSupport.c Remove unnecessary #include references, per pgrminclude script. 2011-09-01 10:04:27 -04:00