Accessing base table relational names via RelOptInfo - Mailing list pgsql-hackers

From Walter Cai
Subject Accessing base table relational names via RelOptInfo
Date
Msg-id CAGCAsrgJYphGP0m3zsynYUwNnJ9=Hq5j85yAnG-JAPPs9j0sJA@mail.gmail.com
Whole thread Raw
Responses Re: Accessing base table relational names via RelOptInfo  (David Rowley <david.rowley@2ndquadrant.com>)
List pgsql-hackers
Hi,

I hope this is the appropriate list to send this to.

Context:

I (grad student) am trying to insert my own cardinality estimates into the optimizer

What I need to do to get there:

I want to be able to programmatically access the relation names inside from inside the calc_joinrel_size_estimate method (in costsize.c) using the RelOptInfo *outer_rel, RelOptInfo *inner_rel arguments. I'm pretty sure I need to use the Relids relids variables in the RelOptInfo struct but I'm not sure where to go from there.

Any help would be much appreciated

Best, Walter

pgsql-hackers by date:

Previous
From: Alexander Korotkov
Date:
Subject: Re: compress method for spgist - 2
Next
From: Robert Haas
Date:
Subject: Re: pgsql: When VACUUM or ANALYZE skips a concurrently dropped table,log i