What’s the usage of SO_TYPE_ANALYZE - Mailing list pgsql-hackers

From Zhang Mingli
Subject What’s the usage of SO_TYPE_ANALYZE
Date
Msg-id 1fb18145-8d9b-4020-86be-2da8f8b6e736@Spark
Whole thread Raw
List pgsql-hackers
Hi, hackers

I found that we set the SO_TYPE_ANALYZE option in table_beginscan_analyze()

static inline TableScanDesc
table_beginscan_analyze(Relation rel)
{
uint32 flags = SO_TYPE_ANALYZE;

return rel->rd_tableam->scan_begin(rel, NULL, 0, NULL, NULL, flags);
}

But I didn’t find a place to handle that option.
Do we miss something?  ex: forget handle it in table_endscan.
Else, it’s  not used at all. 

The first commit introduced this option is c3b23ae457.
Other commits modify this option just changed the enum order.

Regards,
Zhang Mingli

pgsql-hackers by date:

Previous
From: Nazir Bilal Yavuz
Date:
Subject: Re: Documentation for building with meson
Next
From: Jingtang Zhang
Date:
Subject: Database "contrib_regression" does not exist during testing