You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudberry.apache.org by "gongxun0928 (via GitHub)" <gi...@apache.org> on 2025/11/03 02:08:42 UTC

Re: [PR] feature: asynchronously update file statistics during vacuum [cloudberry]

gongxun0928 commented on code in PR #1397:
URL: https://github.com/apache/cloudberry/pull/1397#discussion_r2485171793


##########
contrib/pax_storage/src/cpp/access/pax_access_handle.cc:
##########
@@ -411,6 +416,107 @@ void CCPaxAccessMethod::FinishBulkInsert(Relation relation, int options) {
   CBDB_END_TRY();
 }
 
+void CCPaxAccessMethod::RelationVacuum(Relation rel, VacuumParams *params,
+                                       BufferAccessStrategy /*bstrategy*/) {
+  CBDB_TRY();
+  {
+    std::vector<int> minmax_cols = cbdb::GetMinMaxColumnIndexes(rel);
+    std::vector<int> bf_cols = cbdb::GetBloomFilterColumnIndexes(rel);
+
+    if (minmax_cols.empty() && bf_cols.empty()) {
+      return;
+    }
+
+    Oid aux_oid = cbdb::GetPaxAuxRelid(RelationGetRelid(rel));
+    Relation aux_rel = cbdb::TableOpen(aux_oid, RowExclusiveLock);

Review Comment:
   done



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudberry.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cloudberry.apache.org
For additional commands, e-mail: commits-help@cloudberry.apache.org