| 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, |
no test coverage detected