Re: BUG #15475: Views over CITEXT columns return no data - Mailing list pgsql-bugs

From Paul Schaap
Subject Re: BUG #15475: Views over CITEXT columns return no data
Date
Msg-id 40F193E8-0927-4B6A-96E0-7EC5603DC19A@ipggroup.com
Whole thread Raw
In response to Re: BUG #15475: Views over CITEXT columns return no data  (Jeff Janes <jeff.janes@gmail.com>)
Responses Re: BUG #15475: Views over CITEXT columns return no data
List pgsql-bugs
Hi Jeff,

That was fast :-)

I am trying to create a script that reproduces the issue as it seems it is not quite that simple, please bear with me.

datcollate en_US.UTF-8
datctype en_US.UTF-8
SERVER_ENCODING UTF8

CHEERS
Paul

On 1 Nov 2018, at 10:00, Jeff Janes <jeff.janes@gmail.com> wrote:

On Wed, Oct 31, 2018 at 6:45 PM PG Bug reporting form <noreply@postgresql.org> wrote:
The following bug has been logged on the website:

Bug reference:      15475
Logged by:          Paul Schaap
Email address:      ps@ipggroup.com
PostgreSQL version: 11.0
Operating system:   OSX 10.14 and Ubuntu 18.10
Description:       

The steps to reproduce are:
1) Install CITEXT extension
2) Create a table with a CITEXT column
3) Create a view (not materialised) over the table
4) Query the view filtering on the CITEXT column

No data gets returned when querying via the view, this works under
Postgresql 10 but not 11.


There is no step here where you populate the table.

Add one, I can't reproduce this (on Ubuntu 16.04, so maybe that is important).

create extension citext ;
create table j1 (x citext);
insert into j1 values ('abc');
create view j2 as select * from j1;
select * from j2 where x ='aBc';

<see a row>

What are your encoding, collation, and ctype?

Cheers,

Jeff


PRIVACY & CONFIDENTIALITY NOTICE

The information contained in this email is intended for the named recipients  only.  It may contain privileged and confidential information and if you are  not the intended recipient, you should not copy it or disclose its contents  to any other person, or take any action in reliance on it.  If you have  received this email in error, please notify us immediately by return email.

pgsql-bugs by date:

Previous
From: Jeff Janes
Date:
Subject: Re: BUG #15475: Views over CITEXT columns return no data
Next
From: tsuraan
Date:
Subject: Re: BUG #15467: The database subdirectory "pg_tblspc/1932420460/PG_10_201707211/16400"is missing.