postgresql/src/backend/utils/cache
Stephen Frost 80eacaa3cd Clean up includes from RLS patch
The initial patch for RLS mistakenly included headers associated with
the executor and planner bits in rewrite/rowsecurity.h.  Per policy and
general good sense, executor headers should not be included in planner
headers or vice versa.

The include of execnodes.h was a mistaken holdover from previous
versions, while the include of relation.h was used for Relation's
definition, which should have been coming from utils/relcache.h.  This
patch cleans these issues up, adds comments to the RowSecurityPolicy
struct and the RowSecurityConfigType enum, and changes Relation->rsdesc
to Relation->rd_rsdesc to follow Relation field naming convention.

Additionally, utils/rel.h was including rewrite/rowsecurity.h, which
wasn't a great idea since that was pulling in things not really needed
in utils/rel.h (which gets included in quite a few places).  Instead,
use 'struct RowSecurityDesc' for the rd_rsdesc field and add comments
explaining why.

Lastly, add an include into access/nbtree/nbtsort.c for
utils/sortsupport.h, which was evidently missed due to the above mess.

Pointed out by Tom in 16970.1415838651@sss.pgh.pa.us; note that the
concerns regarding a similar situation in the custom-path commit still
need to be addressed.
2014-11-14 17:05:17 -05:00
..
attoptcache.c pgindent run for 9.4 2014-05-06 12:12:18 -04:00
catcache.c Add Asserts to verify that catalog cache keys are unique and not null. 2014-06-20 18:21:05 -04:00
evtcache.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
inval.c Avoid setup work for invalidation messages at start-of-(sub)xact. 2014-10-29 12:35:19 -04:00
lsyscache.c Don't require sort support functions to provide a comparator. 2014-08-06 16:06:06 -04:00
Makefile Add infrastructure for mapping relfilenodes to relation OIDs. 2013-07-22 11:09:10 -04:00
plancache.c Explicitly support the case that a plancache's raw_parse_tree is NULL. 2014-11-12 15:59:01 -05:00
relcache.c Clean up includes from RLS patch 2014-11-14 17:05:17 -05:00
relfilenodemap.c Don't allow to disable backend assertions via the debug_assertions GUC. 2014-06-20 11:09:17 +02:00
relmapper.c Move the backup-block logic from XLogInsert to a new file, xloginsert.c. 2014-11-06 13:55:36 +02:00
spccache.c pgindent run for 9.4 2014-05-06 12:12:18 -04:00
syscache.c pgindent run for 9.4 2014-05-06 12:12:18 -04:00
ts_cache.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
typcache.c pgindent run for 9.4 2014-05-06 12:12:18 -04:00