Re: PoC/WIP: Extended statistics on expressions

From: Tomas Vondra <tomas(dot)vondra(at)enterprisedb(dot)com>
To: Justin Pryzby <pryzby(at)telsasoft(dot)com>
Cc: Dean Rasheed <dean(dot)a(dot)rasheed(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: PoC/WIP: Extended statistics on expressions
Date: 2021-01-16 16:48:43
Message-ID: 5305f9cf-3927-06c4-cd5b-e46cbc58bc7f@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Attached is an updated version of the patch series, fixing a couple issues:

1) docs issues, pointed out by Justin Pryzby

2) adds ACL check to statext_extract_expression to verify access to
attributes in the expression(s)

3) adds comment to statext_is_compatible_clause_internal explaining the
ambiguity in extracting expressions for extended stats

4) fixes/improves memory management in compute_expr_stats

5) a bunch of minor comment and code fixes

regards

--
Tomas Vondra
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

Attachment Content-Type Size
0001-bootstrap-convert-Typ-to-a-List-20210116.patch text/x-patch 3.7 KB
0002-Allow-composite-types-in-bootstrap-20210116.patch text/x-patch 1.4 KB
0003-Extended-statistics-on-expressions-20210116.patch text/x-patch 244.6 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Vik Fearing 2021-01-16 16:54:41 Re: trailing junk in numeric literals
Previous Message Andrey Borodin 2021-01-16 15:41:20 Re: recovering from "found xmin ... from before relfrozenxid ..."