pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Gierth <andrew@tao11.riddles.org.uk>
To: Paul Schaap <ps@ipggroup.com>
Cc: Jeff Janes <jeff.janes@gmail.com>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15475: Views over CITEXT columns return no data
Date: Thu, 01 Nov 2018 23:32:43 +0000
Message-ID: <87k1lw4bqz.fsf@news-spur.riddles.org.uk> (raw)
In-Reply-To: <FF0E68A0-3266-48CF-BE8E-B2E03AB3EE9F@ipggroup.com>
References: <15475-11a7a783fed72a36@postgresql.org>
	<CAMkU=1yLn+JJy5Sc_H76yJ+9yFrrbuQ+L4PdcUPNMq-SOCxMTg@mail.gmail.com>
	<40F193E8-0927-4B6A-96E0-7EC5603DC19A@ipggroup.com>
	<19F765FE-34CC-4081-BFED-DFA2D38BF3BD@ipggroup.com>
	<87zhus4xg5.fsf@news-spur.riddles.org.uk>
	<21207C8F-9952-4AD7-B8A1-97B490725011@ipggroup.com>
	<87o9b84es2.fsf@news-spur.riddles.org.uk>
	<FF0E68A0-3266-48CF-BE8E-B2E03AB3EE9F@ipggroup.com>

>>>>> "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)




view thread (17+ messages)  latest in thread

Message-ID: <87k1lw4bqz.fsf@news-spur.riddles.org.uk>
Permalink:  ../87k1lw4bqz.fsf@news-spur.riddles.org.uk/
Also on:    postgresql.org/message-id/87k1lw4bqz.fsf@news-spur.riddles.org.uk

 · 

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-bugs@postgresql.org
  Cc: andrew@tao11.riddles.org.uk, ps@ipggroup.com, jeff.janes@gmail.com
  Subject: Re: BUG #15475: Views over CITEXT columns return no data
  In-Reply-To: <87k1lw4bqz.fsf@news-spur.riddles.org.uk>
  References: <15475-11a7a783fed72a36@postgresql.org> <CAMkU=1yLn+JJy5Sc_H76yJ+9yFrrbuQ+L4PdcUPNMq-SOCxMTg@mail.gmail.com> <40F193E8-0927-4B6A-96E0-7EC5603DC19A@ipggroup.com> <19F765FE-34CC-4081-BFED-DFA2D38BF3BD@ipggroup.com> <87zhus4xg5.fsf@news-spur.riddles.org.uk> <21207C8F-9952-4AD7-B8A1-97B490725011@ipggroup.com> <87o9b84es2.fsf@news-spur.riddles.org.uk> <FF0E68A0-3266-48CF-BE8E-B2E03AB3EE9F@ipggroup.com> <87k1lw4bqz.fsf@news-spur.riddles.org.uk>

* 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