pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix test_rls_hooks to assign expression collations properly.
Date: Tue, 11 Dec 2018 16:48:17 +0000
Message-ID: <E1gWlCj-0005wZ-UX@gemulon.postgresql.org> (raw)

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(+)



view thread (5+ messages)  latest in thread

Message-ID: <E1gWlCj-0005wZ-UX@gemulon.postgresql.org>
Permalink:  ../E1gWlCj-0005wZ-UX@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1gWlCj-0005wZ-UX@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Fix test_rls_hooks to assign expression collations properly.
  In-Reply-To: <E1gWlCj-0005wZ-UX@gemulon.postgresql.org>
  References: <E1gWlCj-0005wZ-UX@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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