aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeResult.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2007-04-21 04:10:53 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2007-04-21 04:10:53 +0000
commit11da4c671ea6391c59ed5f465e390c6635e54cf4 (patch)
tree17f7b8bb6e854b778d6d16f70434d97fa85cf27d /src/backend/executor/nodeResult.c
parentca3d14f2a98b49d989090c800835b80087286cb4 (diff)
downloadpostgresql-11da4c671ea6391c59ed5f465e390c6635e54cf4.tar.gz
postgresql-11da4c671ea6391c59ed5f465e390c6635e54cf4.zip
Adjust pgstat_initstats() to avoid repeated searches of the TabStat arrays
when a relation is opened multiple times in the same transaction. This is particularly useful for system catalogs, which we may heap_open or index_open many times in a transaction, and it doesn't really cost anything extra even if the rel is touched but once. Motivated by study of an example from Greg Stark, in which pgstat_initstats() accounted for an unreasonably large fraction of the runtime.
Diffstat (limited to 'src/backend/executor/nodeResult.c')
0 files changed, 0 insertions, 0 deletions