aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeModifyTable.c
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2013-07-17 20:24:28 +0300
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2013-07-17 20:37:09 +0300
commit3f2adace1ec025908b5189f0773b4eaab3d228d5 (patch)
treee2d01bec6ce78b1a59b079e76ff3f67569a0e35a /src/backend/executor/nodeModifyTable.c
parent750f43685b1b88d4281074940cdcea0e328593aa (diff)
downloadpostgresql-3f2adace1ec025908b5189f0773b4eaab3d228d5.tar.gz
postgresql-3f2adace1ec025908b5189f0773b4eaab3d228d5.zip
Fix end-of-loop optimization in pglz_find_match() function.
After the recent pglz optimization patch, the next/prev pointers in the hash table are never NULL, INVALID_ENTRY_PTR is used to represent invalid entries instead. The end-of-loop check in pglz_find_match() function didn't get the memo. The result was the same from a correctness point of view, but because the NULL-check would never fail, the tiny optimization turned into a pessimization. Reported by Stephen Frost, using Coverity scanner.
Diffstat (limited to 'src/backend/executor/nodeModifyTable.c')
0 files changed, 0 insertions, 0 deletions