Hi: This patch is the first patch in UniqueKey patch series[1], since I need to revise that series many times but the first one would be not that often, so I'd like to submit this one for review first so that I don't need to maintain it again and again.
v1-0001-Introduce-notnullattrs-field-in-RelOptInfo-to-ind.patch Introduce notnullattrs field in RelOptInfo to indicate which attr are not null in current query. The not null is judged by checking pg_attribute and query's restrictinfo. The info is only maintained at Base RelOptInfo and Partition's RelOptInfo level so far. Any thoughts? [1] https://www.postgresql.org/message-id/CAKU4AWr1BmbQB4F7j22G%2BNS4dNuem6dKaUf%2B1BK8me61uBgqqg%40mail.gmail.com -- Best Regards Andy Fan (https://www.aliyun.com/)