diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2012-06-20 17:24:14 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2012-06-20 17:24:14 -0400 |
commit | 45ba424f332a7eaa685a4e23f142a43114c65811 (patch) | |
tree | ba897593ad3fd072bd20a6fb345307df0eb5209f /src/backend/access/gist/gist.c | |
parent | cfa0f4255bb0f5550d37a01c4d8fe2966d20040c (diff) | |
download | postgresql-45ba424f332a7eaa685a4e23f142a43114c65811.tar.gz |
Cache the results of ri_FetchConstraintInfo in a backend-local cache.
Extracting data from pg_constraint turned out to take as much as 10% of the
runtime in a bulk-update case where the foreign key column wasn't changing,
because we did it over again for each tuple. Fix that by maintaining a
backend-local cache of the results. This is really a pretty small patch,
but converting the trigger functions to work with pointers rather than
local struct variables requires a lot of mechanical changes.
Diffstat (limited to 'src/backend/access/gist/gist.c')
0 files changed, 0 insertions, 0 deletions