OSDN Git Service

Fix portability problems recently exposed by regression tests on Alphas.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 27 Dec 2000 23:59:14 +0000 (23:59 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 27 Dec 2000 23:59:14 +0000 (23:59 +0000)
commit8609d4abf248f0eede4ed9505226da3f7e3e7c84
tree39e5a813099835056d76dd385478069d01a8dcbf
parent97799fc4757fd2699e0238254875994253659582
Fix portability problems recently exposed by regression tests on Alphas.
1. Distinguish cases where a Datum representing a tuple datatype is an OID
from cases where it is a pointer to TupleTableSlot, and make sure we use
the right typlen in each case.
2. Make fetchatt() and related code support 8-byte by-value datatypes on
machines where Datum is 8 bytes.  Centralize knowledge of the available
by-value datatype sizes in two macros in tupmacs.h, so that this will be
easier if we ever have to do it again.
23 files changed:
configure
configure.in
contrib/array/array_iterator.c
src/backend/access/common/heaptuple.c
src/backend/access/common/indextuple.c
src/backend/access/common/printtup.c
src/backend/access/common/tupdesc.c
src/backend/access/heap/heapam.c
src/backend/catalog/catalog.c
src/backend/catalog/heap.c
src/backend/commands/copy.c
src/backend/executor/execTuples.c
src/backend/executor/execUtils.c
src/backend/parser/parse_func.c
src/backend/utils/adt/arrayfuncs.c
src/backend/utils/cache/lsyscache.c
src/include/access/heapam.h
src/include/access/htup.h
src/include/access/itup.h
src/include/access/tupmacs.h
src/include/catalog/catalog.h
src/include/catalog/pg_type.h
src/include/config.h.in