Programmatically accessing selection predicates - Mailing list pgsql-hackers

From Walter Cai
Subject Programmatically accessing selection predicates
Date
Msg-id CAGCAsrjC5RPQaxVrM=YQTFMCyL41T1myq11=GdNCetrgOUxUFg@mail.gmail.com
Whole thread Raw
List 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

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Better testing coverage and unified coding for plpgsql loops
Next
From: Tom Lane
Date:
Subject: Re: to_timestamp TZH and TZM format specifiers