pgsql: Make equalTupleDescs() compare attlen/attbyval/attalign rather

Поиск
Список
Период
Сортировка
От tgl@svr1.postgresql.org (Tom Lane)
Тема pgsql: Make equalTupleDescs() compare attlen/attbyval/attalign rather
Дата
Msg-id 20050414223513.41BF853C9A@svr1.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Log Message:
-----------
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.

Tags:
----
REL8_0_STABLE

Modified Files:
--------------
    pgsql/src/backend/access/common:
        tupdesc.c (r1.108 -> r1.108.4.1)

(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/access/common/tupdesc.c.diff?r1=1.108&r2=1.108.4.1)

В списке pgsql-committers по дате отправления:

Предыдущее
От: tgl@svr1.postgresql.org (Tom Lane)
Дата:
Сообщение: pgsql: Make equalTupleDescs() compare attlen/attbyval/attalign rather
Следующее
От: momjian@svr1.postgresql.org (Bruce Momjian)
Дата:
Сообщение: pgsql: Done > * -Use indexes for MIN() and MAX()