Re: struct RelOptInfo member relid comments - Mailing list pgsql-hackers

From Tender Wang
Subject Re: struct RelOptInfo member relid comments
Date
Msg-id CAHewXN=jL897jDMefhuRrM+KO8ZEBzvO+kjSAoanw_1JUYRaTA@mail.gmail.com
Whole thread Raw
In response to struct RelOptInfo member relid comments  (jian he <jian.universality@gmail.com>)
List pgsql-hackers


jian he <jian.universality@gmail.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/

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: First draft of PG 17 release notes
Next
From: Tom Lane
Date:
Subject: Re: struct RelOptInfo member relid comments