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

From Andrew Gierth
Subject Re: BUG #15475: Views over CITEXT columns return no data
Date
Msg-id 87k1lw4bqz.fsf@news-spur.riddles.org.uk
Whole thread Raw
In response to Re: BUG #15475: Views over CITEXT columns return no data  (Paul Schaap <ps@ipggroup.com>)
Responses Re: BUG #15475: Views over CITEXT columns return no data
List pgsql-bugs
>>>>> "Paul" == Paul Schaap <ps@ipggroup.com> writes:

 Paul> Hi Andrew,

 Paul> I agree it seems implausible to me too however it is 100%
 Paul> reproducible, see below track of it happening, I have changed the
 Paul> names of things to protect the innocent ;-) :

Can you show the result of adding EXPLAIN ANALYZE in front of your
select queries, both in the failing and successful cases?

i.e.

$ psql -c "EXPLAIN ANALYZE SELECT COUNT(*)
                           
 
FROM my_events
WHERE my_date >= '2018-08-01'
AND   my_date <  '2018-09-01'
AND   type_id NOT IN ('A','LIST','OF','NOTS');" my_databasename

(and likewise for the other queries you showed)

-- 
Andrew (irc:RhodiumToad)


pgsql-bugs by date:

Previous
From: Paul Schaap
Date:
Subject: Re: BUG #15475: Views over CITEXT columns return no data
Next
From: Paul Schaap
Date:
Subject: Re: BUG #15475: Views over CITEXT columns return no data