pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Doc: fix oversimplified example for CREATE POLICY. 5+ messages / 1 participants [nested] [flat]
* pgsql: Doc: fix oversimplified example for CREATE POLICY. @ 2018-07-30 15:54 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 5+ messages in thread From: Tom Lane @ 2018-07-30 15:54 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 Branch ------ REL9_5_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/72c453d30d565de91c921c7f5e0c984c23e77df5 Modified Files -------------- doc/src/sgml/ddl.sgml | 42 +++++++++++++++++++++++++++++++++--------- 1 file changed, 33 insertions(+), 9 deletions(-) ^ permalink raw reply [nested|flat] 5+ messages in thread
* pgsql: Doc: fix oversimplified example for CREATE POLICY. @ 2018-07-30 15:54 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 5+ messages in thread From: Tom Lane @ 2018-07-30 15:54 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/9295d7cf50fbcf1f2be19f835c9b2b1f0186fd9b Modified Files -------------- doc/src/sgml/ddl.sgml | 36 ++++++++++++++++++++++++++++++------ 1 file changed, 30 insertions(+), 6 deletions(-) ^ permalink raw reply [nested|flat] 5+ messages in thread
* pgsql: Doc: fix oversimplified example for CREATE POLICY. @ 2018-07-30 15:54 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 5+ messages in thread From: Tom Lane @ 2018-07-30 15:54 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 Branch ------ REL_10_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/406df42a5f6d7139df50f190cb7845418f9c0cfa Modified Files -------------- doc/src/sgml/ddl.sgml | 42 +++++++++++++++++++++++++++++++++--------- 1 file changed, 33 insertions(+), 9 deletions(-) ^ permalink raw reply [nested|flat] 5+ messages in thread
* pgsql: Doc: fix oversimplified example for CREATE POLICY. @ 2018-07-30 15:54 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 5+ messages in thread From: Tom Lane @ 2018-07-30 15:54 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 Branch ------ REL9_6_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/9f508a9d70eedfd668b9377df298ba7e8e465596 Modified Files -------------- doc/src/sgml/ddl.sgml | 42 +++++++++++++++++++++++++++++++++--------- 1 file changed, 33 insertions(+), 9 deletions(-) ^ permalink raw reply [nested|flat] 5+ messages in thread
* pgsql: Doc: fix oversimplified example for CREATE POLICY. @ 2018-07-30 15:54 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 5+ messages in thread From: Tom Lane @ 2018-07-30 15:54 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 Branch ------ REL_11_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/506bbbf02e8c045b6d35dc3b0083e5a12f7b3837 Modified Files -------------- doc/src/sgml/ddl.sgml | 36 ++++++++++++++++++++++++++++++------ 1 file changed, 30 insertions(+), 6 deletions(-) ^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2018-07-30 15:54 UTC | newest] Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2018-07-30 15:54 pgsql: Doc: fix oversimplified example for CREATE POLICY. Tom Lane <tgl@sss.pgh.pa.us> 2018-07-30 15:54 pgsql: Doc: fix oversimplified example for CREATE POLICY. Tom Lane <tgl@sss.pgh.pa.us> 2018-07-30 15:54 pgsql: Doc: fix oversimplified example for CREATE POLICY. Tom Lane <tgl@sss.pgh.pa.us> 2018-07-30 15:54 pgsql: Doc: fix oversimplified example for CREATE POLICY. Tom Lane <tgl@sss.pgh.pa.us> 2018-07-30 15:54 pgsql: Doc: fix oversimplified example for CREATE POLICY. Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox