Improve RLS documentation with respect to COPY

Joe Conway <mail@joeconway.com>

Commit: 53afdef662ef77a3f27fc36dbc0472f855069fd3
Author: Joe Conway <mail@joeconway.com>
Date: 2016-12-23T01:57:14Z
Releases: 9.5.6
Improve RLS documentation with respect to COPY

Documentation for pg_restore said COPY TO does not support row security
when in fact it should say COPY FROM. Fix that.

While at it, make it clear that "COPY FROM" does not allow RLS to be
enabled and INSERT should be used instead. Also that SELECT policies
will apply to COPY TO statements.

Back-patch to 9.5 where RLS first appeared.

Author: Joe Conway
Reviewed-By: Dean Rasheed and Robert Haas
Discussion: https://postgr.es/m/5744FA24.3030008%40joeconway.com

Files

PathChange+/−
doc/src/sgml/ref/copy.sgml modified +9 −0
doc/src/sgml/ref/pg_dump.sgml modified +5 −0
doc/src/sgml/ref/pg_restore.sgml modified +1 −1

Discussion