Re: BUG #15577: Query returns different results when executedmultiple times

Поиск
Список
Период
Сортировка
От David Rowley
Тема Re: BUG #15577: Query returns different results when executedmultiple times
Дата
Msg-id CAKJS1f9f4UFfzO9VuyO99Rehf1h7Aeco-+9q4rL0e6j8_O38Xg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: BUG #15577: Query returns different results when executedmultiple times  (Thomas Munro <thomas.munro@enterprisedb.com>)
Список pgsql-bugs
On Thu, 10 Jan 2019 at 12:28, Thomas Munro
<thomas.munro@enterprisedb.com> wrote:
> Hmm.  Why are those ExecQual() -> false cases not showing up as
> variation in the "Rows Removed by Filter" counter visible in EXPLAIN
> ANALYZE?  Then we might have arrived here a lot faster.
> InstrCountFiltered1(node, 1) is executed, but somehow the count
> doesn't make it into the total shown by EXPLAIN.

Good question.  They are tracked by the instrumentation, it's just
that show_instrumentation_count() divides by nloops so the additional
filtered rows are lost to the rounding.  Removing the / nloops shows
you what you want to see.

-- 
 David Rowley                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services


В списке pgsql-bugs по дате отправления:

Предыдущее
От: David Rowley
Дата:
Сообщение: Re: BUG #15577: Query returns different results when executedmultiple times
Следующее
От: Wanle Liu
Дата:
Сообщение: Re: BUG #15581: CREATE TABLE IF NOT EXISTS error