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

Function foreach

cpp/deeplake_pg/extension_init.cpp:1111–1127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1109 // Specific relations were named
1110 ListCell* lc = nullptr;
1111 foreach (lc, rels) {
1112 VacuumRelation* vrel = (VacuumRelation*)lfirst(lc);
1113 if (vrel->relation != nullptr) {
1114 Oid rel_oid = RangeVarGetRelid(vrel->relation, NoLock, true);
1115 if (OidIsValid(rel_oid) && pg::table_storage::instance().table_exists(rel_oid)) {
1116 Relation rel = RelationIdGetRelation(rel_oid);
1117 if (RelationIsValid(rel)) {
1118 if (pg::inject_deeplake_statistics(rel)) {
1119 elog(INFO,
1120 "Injected pre-computed DeepLake statistics for table '%s'",
1121 RelationGetRelationName(rel));
1122 }
1123 RelationClose(rel);
1124 }
1125 }
1126 }
1127 }
1128 } else {
1129 // ANALYZE with no table specified - analyze all DeepLake tables
1130 // This is handled by PostgreSQL which will call ANALYZE on each table,

Callers 2

process_utilityFunction · 0.70

Calls 4

is_count_starFunction · 0.85
table_existsMethod · 0.80
set_count_starMethod · 0.80

Tested by

no test coverage detected