diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2005-04-14 22:35:12 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2005-04-14 22:35:12 +0000 |
commit | 69cb5acf62fac4524142601c8b1bf377006915a0 (patch) | |
tree | 8c659021df555a88274c1a8b9781c885040a9a31 /src/backend/access/transam/xlog.c | |
parent | 59974b0e0ae8cd48c20642d571a69d5e3b7b29d0 (diff) | |
download | postgresql-69cb5acf62fac4524142601c8b1bf377006915a0.tar.gz postgresql-69cb5acf62fac4524142601c8b1bf377006915a0.zip |
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.
Diffstat (limited to 'src/backend/access/transam/xlog.c')
0 files changed, 0 insertions, 0 deletions