Make sure printtup() always sends the number of columns previously

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 8c43300cccb626bae3ca84f4ae89c051f81190bb
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2003-05-26T17:51:38Z
Releases: 7.4.1
Make sure printtup() always sends the number of columns previously
advertised in RowDescription message.  Depending on the physical tuple's
column count is not really correct, since according to heap_getattr()
conventions the tuple may be short some columns, which will automatically
get read as nulls.  Problem has been latent since forever, but was only
exposed by recent change to skip a projection step in SELECT * FROM...

Files

PathChange+/−
src/backend/access/common/printtup.c modified +5 −5