Fix thinko in nocachegetattr() and nocache_index_getattr()

This code was recently adjusted by c456e3911, but that commit didn't get
the logic correct when finding the attnum to start walking the tuple in.
If there is a NULL, we need to start walking the tuple before it.

Author: David Rowley <[email protected]>
Reported-by: Tender Wang <[email protected]>
Discussion: 
https://postgr.es/m/CAHewXNnb-s_=vdvuz9h7dpa0u3hxv8x2au3obzytnqqz_mi...@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/7a2ab122a1c555ee4298863917ce68a2b9800cb8

Modified Files
--------------
src/backend/access/common/heaptuple.c  | 9 +++++----
src/backend/access/common/indextuple.c | 9 +++++----
2 files changed, 10 insertions(+), 8 deletions(-)

Reply via email to