pgsql: Fix typo in tts_virtual_copyslot.

2019-09-22 Thread Tom Lane
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 Tsun

pgsql: Fix typo in tts_virtual_copyslot.

2019-09-22 Thread Tom Lane
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 Tsun