Improve performance of find_all_inheritors()
Teodor Sigaev <teodor@sigaev.ru>
Improve performance of find_all_inheritors() Previous coding uses three nested loops which obviously were a pain for large number of table's children. Patch replaces inner loop with a hashmap. Author: Aleksander Alekseev Reviewed-by: me https://commitfest.postgresql.org/13/1058/
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/catalog/pg_inherits.c | modified | +44 −14 |