Re: BUG #14563: count(*) gives a wrong result in PostgreSQL for some regex with pg_trm/GIN index

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: isayko(dot)alexey(at)gmail(dot)com
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #14563: count(*) gives a wrong result in PostgreSQL for some regex with pg_trm/GIN index
Date: 2017-02-22 15:16:54
Message-ID: 32281.1487776614@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

isayko(dot)alexey(at)gmail(dot)com writes:
> When using some RE to filter rows on gin-indexed column with pg_trm,
> count(*) could give a wrong result (zero instead of real count):

Duplicated that here, will look into it. Thanks for the report!

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message volodymyr.volynets 2017-02-22 16:07:42 BUG #14564: Unable to create GIN index for character type
Previous Message John McKown 2017-02-22 15:14:24 Re: Error mtk 11009