Programmatically accessing selection predicates

From: Walter Cai <wzcai92(at)gmail(dot)com>
To: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Programmatically accessing selection predicates
Date: 2018-01-03 19:38:05
Message-ID: CAGCAsrjC5RPQaxVrM=YQTFMCyL41T1myq11=GdNCetrgOUxUFg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

In order to run some cardinality estimation experiments I'm hoping to
access the raw values for selections predicates from within the
calc_joinrel_size_estimate method (in costsize.c). For example, if the
restriction

WHERE name_attr = "example_str"

appears in the query, I'd like to get the "name_attr" and "example_str"
values. If possible, I would very much appreciate the help.

Best, Walter

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2018-01-03 19:39:19 Re: to_timestamp TZH and TZM format specifiers
Previous Message Tom Lane 2018-01-03 19:37:02 Re: Better testing coverage and unified coding for plpgsql loops