Re: Extended statistics is not working on Vars hidden under a RelabelType

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: David Rowley <david(dot)rowley(at)2ndquadrant(dot)com>
Cc: Tomas Vondra <tomas(dot)vondra(at)2ndquadrant(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Extended statistics is not working on Vars hidden under a RelabelType
Date: 2017-10-12 15:56:56
Message-ID: 20171012155656.2umr7dyy7ijhx3hk@alvherre.pgsql
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

David Rowley wrote:

> The reason Tomas coded it the way it was coded is due to the fact that
> there's already code that works exactly the same way in
> clauselist_selectivity(). Personally, I don't particularly like that
> code, but I'd rather not invent a new way to do the same thing.

I pushed your original fix. I still maintain that this should be
written differently, but I'm not going to try to change that in a hurry
and together with a bugfix.

--
Álvaro Herrera https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2017-10-12 16:14:30 Re: GUC for cleanup indexes threshold.
Previous Message Tom Lane 2017-10-12 15:30:00 Re: pgsql: Add configure infrastructure to detect support for C99's restric