Make equalTupleDescs() compare attlen/attbyval/attalign rather than

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

Commit: 8e14408028e31a3dad872a0735a435ba10017ae6
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2005-04-14T22:34:48Z
Releases: 8.1.0
Make equalTupleDescs() compare attlen/attbyval/attalign rather than
assuming comparison of atttypid is sufficient.  In a dropped column
atttypid will be 0, and we'd better check the physical-storage data
to make sure the tupdescs are physically compatible.
I do not believe there is a real risk before 8.0, since before that
we only used this routine to compare successive states of the tupdesc
for a particular relation.  But 8.0's typcache.c might be comparing
arbitrary tupdescs so we'd better play it safer.

Files

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