aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/regexp.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2018-07-30 11:54:41 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2018-07-30 11:54:41 -0400
commit72c453d30d565de91c921c7f5e0c984c23e77df5 (patch)
treeae086ab2f1aabe8d0f5f8e74f482ce7c1a9c80de /src/backend/utils/adt/regexp.c
parent28a0b3a2228ba9618225d3641e978b739237f492 (diff)
downloadpostgresql-72c453d30d565de91c921c7f5e0c984c23e77df5.tar.gz
postgresql-72c453d30d565de91c921c7f5e0c984c23e77df5.zip
Doc: fix oversimplified example for CREATE POLICY.
As written, this policy constrained only the post-image not the pre-image of rows, meaning that users could delete other users' rows or take ownership of such rows, contrary to what the docs claimed would happen. We need two separate policies to achieve the documented effect. While at it, try to explain what's happening a bit more fully. Per report from Олег Самойлов. Back-patch to 9.5 where this was added. Thanks to Stephen Frost for off-list discussion. Discussion: https://postgr.es/m/3298321532002010@sas1-2b3c3045b736.qloud-c.yandex.net
Diffstat (limited to 'src/backend/utils/adt/regexp.c')
0 files changed, 0 insertions, 0 deletions