MCPcopy Create free account
hub / github.com/activeloopai/deeplake / deeplake_relation_vacuum

Function deeplake_relation_vacuum

cpp/deeplake_pg/table_am.cpp:208–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

206}
207
208void deeplake_relation_vacuum(Relation rel, struct VacuumParams* params, BufferAccessStrategy bstrategy)
209{
210 // Ensure DeepLake is initialized (for autovacuum workers that bypass planner/executor hooks)
211 pg::init_deeplake();
212
213 // Check for VACUUM FULL - not supported for deeplake tables
214 if (params != nullptr && (params->options & VACOPT_FULL)) {
215 ereport(
216 ERROR,
217 (errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
218 errmsg("VACUUM FULL is not supported for deeplake tables"),
219 errhint(
220 "Deeplake uses columnar storage which is already compact. Use VACUUM or VACUUM ANALYZE instead.")));
221 }
222
223 // Regular VACUUM is a no-op for columnar storage
224 return;
225}
226
227TransactionId deeplake_index_delete_tuples(Relation rel, TM_IndexDeleteOp* delstate)
228{

Callers

nothing calls this directly

Calls 1

init_deeplakeFunction · 0.85

Tested by

no test coverage detected