]> granicus.if.org Git - postgresql/commit
Improve performance of find_tabstat_entry()/get_tabstat_entry()
authorTeodor Sigaev <teodor@sigaev.ru>
Mon, 27 Mar 2017 15:34:42 +0000 (18:34 +0300)
committerTeodor Sigaev <teodor@sigaev.ru>
Mon, 27 Mar 2017 15:34:42 +0000 (18:34 +0300)
commit090010f2ec9b1f9ac1124dc628b89586f911b641
tree8eb4090a65c81c50c103c95410516b7c4adc801b
parentd65561464f45d325e82ad91918bcd4e2881ce567
Improve performance of find_tabstat_entry()/get_tabstat_entry()

Patch introduces a hash map reloid -> PgStat_TableStatus which improves
performance in case of large number of tables/partitions.

Author: Aleksander Alekseev
Reviewed-by: Andres Freund, Anastasia Lubennikova, Tels, me
https://commitfest.postgresql.org/13/1058/
src/backend/postmaster/pgstat.c