-
Notifications
You must be signed in to change notification settings - Fork 504
Add the framework for the pg_statistic table. #1416
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
very quick review, please change to new-style catalog stuff.
src/catalog/postgres/builder.cpp
Outdated
parser::ConstantValueExpression(type::TypeId::INTEGER)); | ||
columns.back().SetOid(PgStatistic::STAATTNUM_COL_OID); | ||
|
||
// columns.emplace_back("stanullfrac", type::TypeId::DECIMAL, false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove dead code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@whoever-is-implementing the PR, Is this dead or not yet implemented? I think we'll need these columns as well as some binary array columns for topKs and histograms.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jkosh44 You'll probably be the one implementing it.
Add missing calls to Bootstrap and BootstrapPRIs. Rename the attributes to remove redundant _COL_OID suffix. Style nitpicks. noisepage is bootable again.
Assuming this passes CI, @jkosh44 can you take a review pass since you'll be working with the PR and I've made some changes so I probably shouldn't be reviewing myself? Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, though I'm not super familiar with the Catalog
Added missing RecoveryManager logic. Fixed the size of the PRI and PRM for statistic_oid_index in deletion. wow i was inattentive
Codecov Report
@@ Coverage Diff @@
## master #1416 +/- ##
==========================================
+ Coverage 82.39% 82.45% +0.06%
==========================================
Files 670 671 +1
Lines 46004 46107 +103
==========================================
+ Hits 37903 38016 +113
+ Misses 8101 8091 -10
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rubber stamping.
Co-authored-by: Arvind Sai Krishnan <arvindsk@andrew.cmu.edu> Co-authored-by: Wan Shen Lim <wanshen.lim@gmail.com>
Heading
Add the framework for the
pg_statistic
table.Description
This PR adds the skeleton of
pg_statistic
support.It does not currently track any statistics at all, apart from creating dummy column statistics in
pg_statistic
and cleaning those entries up.