Make equalTupleDescs() compare attlen/attbyval/attalign rather than
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 14 Apr 2005 22:35:12 +0000 (22:35 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 14 Apr 2005 22:35:12 +0000 (22:35 +0000)
commit69cb5acf62fac4524142601c8b1bf377006915a0
tree8c659021df555a88274c1a8b9781c885040a9a31
parent59974b0e0ae8cd48c20642d571a69d5e3b7b29d0
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.
src/backend/access/common/tupdesc.c