Re: struct RelOptInfo member relid comments

From: Tender Wang <tndrwang(at)gmail(dot)com>
To: jian he <jian(dot)universality(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: struct RelOptInfo member relid comments
Date: 2024-05-24 03:13:45
Message-ID: CAHewXN=jL897jDMefhuRrM+KO8ZEBzvO+kjSAoanw_1JUYRaTA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

jian he <jian(dot)universality(at)gmail(dot)com> 于2024年5月24日周五 10:58写道:

> hi
>
> typedef struct RelOptInfo
> {
> ....
> /*
> * information about a base rel (not set for join rels!)
> */
> Index relid;
> ...
> }
>
> imho, the above comment is not very helpful.
> we should say more about what kind of information relid says about a base
> rel?
>
> I don't know much about RelOptInfo, that's why I ask.
>
>
> The fields in struct RelOptInfo between comment " information about a base
rel " and
commnet "Information about foreign tables and foreign joins" are all about
a base rel.

Every field has a comment. I think that's already helpful for understanding
what information
we need to optimize a base rel.
--
Tender Wang
OpenPie: https://en.openpie.com/

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2024-05-24 03:14:54 Re: struct RelOptInfo member relid comments
Previous Message Tom Lane 2024-05-24 03:11:10 Re: First draft of PG 17 release notes