]> granicus.if.org Git - postgresql/commit
Improve performance of find_all_inheritors()
authorTeodor Sigaev <teodor@sigaev.ru>
Mon, 27 Mar 2017 16:07:48 +0000 (19:07 +0300)
committerTeodor Sigaev <teodor@sigaev.ru>
Mon, 27 Mar 2017 16:07:48 +0000 (19:07 +0300)
commit827d6f977940952ebef4bd21fb0f97be4e20c0c4
treee78bfe93926f7b08e4427c112d57907b898a6de5
parent5196f13b2726eeabfe2c8b7a97fc05839766cdce
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/
src/backend/catalog/pg_inherits.c