diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2008-02-18 23:00:32 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2008-02-18 23:00:32 +0000 |
commit | cf59277ac9e02cd3f8ae2973c9dabf496af45e92 (patch) | |
tree | d5654888696ff360f08b857482edb3ca2f76c5ba /src/backend/access/gist/gistutil.c | |
parent | fc54be81d1905a550abab797cf8089e009104842 (diff) | |
download | postgresql-cf59277ac9e02cd3f8ae2973c9dabf496af45e92.tar.gz postgresql-cf59277ac9e02cd3f8ae2973c9dabf496af45e92.zip |
Remove unnecessary opening of other relation in RI_FKey_keyequal_upd_pk
and RI_FKey_keyequal_upd_fk, as well as no-longer-needed calls of
ri_BuildQueryKeyFull. Aside from saving a few cycles, this avoids needless
deadlock risks when an update is not changing the columns that participate
in an RI constraint. Per a gripe from Alexey Nalbat.
Back-patch to 8.3. Earlier releases did have a need to open the other
relation due to the way in which they retrieved information about the RI
constraint, so this problem unfortunately can't easily be improved pre-8.3.
Tom Lane and Stephan Szabo
Diffstat (limited to 'src/backend/access/gist/gistutil.c')
0 files changed, 0 insertions, 0 deletions