pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Adjust behavior of row_security GUC to match the docs. 2+ messages / 1 participants [nested] [flat]
* pgsql: Adjust behavior of row_security GUC to match the docs. @ 2016-01-04 17:21 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 2+ messages in thread From: Tom Lane @ 2016-01-04 17:21 UTC (permalink / raw) To: pgsql-committers Adjust behavior of row_security GUC to match the docs. Some time back we agreed that row_security=off should not be a way to bypass RLS entirely, but only a way to get an error if it was being applied. However, the code failed to act that way for table owners. Per discussion, this is a must-fix bug for 9.5.0. Adjust the logic in rls.c to behave as expected; also, modify the error message to be more consistent with the new interpretation. The regression tests need minor corrections as well. Also update the comments about row_security in ddl.sgml to be correct. (The official description of the GUC in config.sgml is already correct.) I failed to resist the temptation to do some other very minor cleanup as well, such as getting rid of a duplicate extern declaration. Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/5d35438273c4523a4dc4b48c3bd575e64310d3d4 Modified Files -------------- doc/src/sgml/ddl.sgml | 34 ++++++++++------ src/backend/utils/misc/rls.c | 50 ++++++++++++----------- src/test/regress/expected/rowsecurity.out | 61 ++++++++++------------------- src/test/regress/sql/rowsecurity.sql | 25 +++++------- 4 files changed, 78 insertions(+), 92 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: Adjust behavior of row_security GUC to match the docs. @ 2016-01-04 17:21 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 2+ messages in thread From: Tom Lane @ 2016-01-04 17:21 UTC (permalink / raw) To: pgsql-committers Adjust behavior of row_security GUC to match the docs. Some time back we agreed that row_security=off should not be a way to bypass RLS entirely, but only a way to get an error if it was being applied. However, the code failed to act that way for table owners. Per discussion, this is a must-fix bug for 9.5.0. Adjust the logic in rls.c to behave as expected; also, modify the error message to be more consistent with the new interpretation. The regression tests need minor corrections as well. Also update the comments about row_security in ddl.sgml to be correct. (The official description of the GUC in config.sgml is already correct.) I failed to resist the temptation to do some other very minor cleanup as well, such as getting rid of a duplicate extern declaration. Branch ------ REL9_5_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/6a77404f5cd9380ccae24414d3f178e79011e96d Modified Files -------------- doc/src/sgml/ddl.sgml | 34 ++++++++++------ src/backend/utils/misc/rls.c | 50 ++++++++++++----------- src/test/regress/expected/rowsecurity.out | 61 ++++++++++------------------- src/test/regress/sql/rowsecurity.sql | 25 +++++------- 4 files changed, 78 insertions(+), 92 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2016-01-04 17:21 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2016-01-04 17:21 pgsql: Adjust behavior of row_security GUC to match the docs. Tom Lane <tgl@sss.pgh.pa.us> 2016-01-04 17:21 pgsql: Adjust behavior of row_security GUC to match the docs. 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