pgsql: Fix typo in tts_virtual_copyslot. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Fix typo in tts_virtual_copyslot.
Date
Msg-id E1iC6UI-0001TG-PQ@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Fix typo in tts_virtual_copyslot.

The code used the destination slot's natts where it intended to
use the source slot's natts.  Adding an Assert shows that there
is no case in "make check-world" where these counts are different,
so maybe this is a harmless bug, but it's still a bug.

Takayuki Tsunakawa

Discussion: https://postgr.es/m/0A3221C70F24FB45833433255569204D1FD34C0E@G01JPEXMBYT05

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/0a2f894c3c88e4693d7cd36cba1b136474c7ff89

Modified Files
--------------
src/backend/executor/execTuples.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Make some efficiency improvements in LISTEN/NOTIFY.
Next
From: Tom Lane
Date:
Subject: pgsql: Fix failure to zero-pad the result of bitshiftright().