]> granicus.if.org Git - postgresql/commit
Improve RLS documentation with respect to COPY
authorJoe Conway <mail@joeconway.com>
Fri, 23 Dec 2016 01:57:01 +0000 (17:57 -0800)
committerJoe Conway <mail@joeconway.com>
Fri, 23 Dec 2016 01:57:01 +0000 (17:57 -0800)
commit51e9df7a1005fc7748c71cd359431f2a41ea678d
treed8d2479c7899c7af94ad6e8ca7d128e45fbf6b4e
parentf0f2e56ac28c05f930ca76c432d61909c9a12cdb
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
doc/src/sgml/ref/copy.sgml
doc/src/sgml/ref/pg_dump.sgml
doc/src/sgml/ref/pg_restore.sgml