pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Fix test_rls_hooks to assign expression collations properly.
5+ messages / 1 participants
[nested] [flat]

* pgsql: Fix test_rls_hooks to assign expression collations properly.
@ 2018-12-11 16:48  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 5+ messages in thread

From: Tom Lane @ 2018-12-11 16:48 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix test_rls_hooks to assign expression collations properly.

This module overlooked this necessary fixup step on the results of
transformWhereClause().  It accidentally worked anyway, because the
constructed expression involved type "name" which is not collatable,
but it fell over while I was experimenting with changing "name" to
be collatable.

Back-patch, not because there's any live bug here in back branches,
but because somebody might use this code as a model for some real
application and then not understand why it doesn't work.

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/4e33da5f0af340da40bd51354b87332c551a4bbc

Modified Files
--------------
src/test/modules/test_rls_hooks/test_rls_hooks.c | 5 +++++
1 file changed, 5 insertions(+)



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* pgsql: Fix test_rls_hooks to assign expression collations properly.
@ 2018-12-11 16:48  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 5+ messages in thread

From: Tom Lane @ 2018-12-11 16:48 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix test_rls_hooks to assign expression collations properly.

This module overlooked this necessary fixup step on the results of
transformWhereClause().  It accidentally worked anyway, because the
constructed expression involved type "name" which is not collatable,
but it fell over while I was experimenting with changing "name" to
be collatable.

Back-patch, not because there's any live bug here in back branches,
but because somebody might use this code as a model for some real
application and then not understand why it doesn't work.

Branch
------
REL9_5_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/63210c864b16417d7ecee89969bf2701a99964fa

Modified Files
--------------
src/test/modules/test_rls_hooks/test_rls_hooks.c | 5 +++++
1 file changed, 5 insertions(+)



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* pgsql: Fix test_rls_hooks to assign expression collations properly.
@ 2018-12-11 16:48  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 5+ messages in thread

From: Tom Lane @ 2018-12-11 16:48 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix test_rls_hooks to assign expression collations properly.

This module overlooked this necessary fixup step on the results of
transformWhereClause().  It accidentally worked anyway, because the
constructed expression involved type "name" which is not collatable,
but it fell over while I was experimenting with changing "name" to
be collatable.

Back-patch, not because there's any live bug here in back branches,
but because somebody might use this code as a model for some real
application and then not understand why it doesn't work.

Branch
------
REL9_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/d2267b61adef7811ab190dc2fa8c0399646434fe

Modified Files
--------------
src/test/modules/test_rls_hooks/test_rls_hooks.c | 5 +++++
1 file changed, 5 insertions(+)



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* pgsql: Fix test_rls_hooks to assign expression collations properly.
@ 2018-12-11 16:48  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 5+ messages in thread

From: Tom Lane @ 2018-12-11 16:48 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix test_rls_hooks to assign expression collations properly.

This module overlooked this necessary fixup step on the results of
transformWhereClause().  It accidentally worked anyway, because the
constructed expression involved type "name" which is not collatable,
but it fell over while I was experimenting with changing "name" to
be collatable.

Back-patch, not because there's any live bug here in back branches,
but because somebody might use this code as a model for some real
application and then not understand why it doesn't work.

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/0226cd72ec46ae946db77e9904b5588ca54f3ec6

Modified Files
--------------
src/test/modules/test_rls_hooks/test_rls_hooks.c | 5 +++++
1 file changed, 5 insertions(+)



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* pgsql: Fix test_rls_hooks to assign expression collations properly.
@ 2018-12-11 16:48  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 5+ messages in thread

From: Tom Lane @ 2018-12-11 16:48 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix test_rls_hooks to assign expression collations properly.

This module overlooked this necessary fixup step on the results of
transformWhereClause().  It accidentally worked anyway, because the
constructed expression involved type "name" which is not collatable,
but it fell over while I was experimenting with changing "name" to
be collatable.

Back-patch, not because there's any live bug here in back branches,
but because somebody might use this code as a model for some real
application and then not understand why it doesn't work.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/7a28e9aa0fd966ed374d244896e397148336720a

Modified Files
--------------
src/test/modules/test_rls_hooks/test_rls_hooks.c | 5 +++++
1 file changed, 5 insertions(+)



^ permalink  raw  reply  [nested|flat] 5+ messages in thread


end of thread, other threads:[~2018-12-11 16:48 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-12-11 16:48 pgsql: Fix test_rls_hooks to assign expression collations properly. Tom Lane <tgl@sss.pgh.pa.us>
2018-12-11 16:48 pgsql: Fix test_rls_hooks to assign expression collations properly. Tom Lane <tgl@sss.pgh.pa.us>
2018-12-11 16:48 pgsql: Fix test_rls_hooks to assign expression collations properly. Tom Lane <tgl@sss.pgh.pa.us>
2018-12-11 16:48 pgsql: Fix test_rls_hooks to assign expression collations properly. Tom Lane <tgl@sss.pgh.pa.us>
2018-12-11 16:48 pgsql: Fix test_rls_hooks to assign expression collations properly. 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