aboutsummaryrefslogtreecommitdiff
path: root/src/pl/plpython/plpython.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2011-01-18 14:09:22 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2011-01-18 14:11:54 -0500
commit1b393f4e5db4fd6bbc86a4e88785b6945a1541d0 (patch)
tree3351618fc9ed842cf1f3f2d301594ec261565836 /src/pl/plpython/plpython.c
parent6e1726d082b5a9c305ed44a69ff50bc3407d01a2 (diff)
downloadpostgresql-1b393f4e5db4fd6bbc86a4e88785b6945a1541d0.tar.gz
postgresql-1b393f4e5db4fd6bbc86a4e88785b6945a1541d0.zip
Avoid detoast in texteq/textne/byteaeq/byteane for unequal-length strings.
We can get the length of a compressed or out-of-line datum without actually detoasting it. If the lengths of two strings are unequal, we can then conclude they are unequal without detoasting. That saves considerable work in an admittedly less-common case, without costing anything much when the optimization doesn't apply. Noah Misch
Diffstat (limited to 'src/pl/plpython/plpython.c')
0 files changed, 0 insertions, 0 deletions