]> granicus.if.org Git - postgresql/commit
Replace direct assignments to VARATT_SIZEP(x) with SET_VARSIZE(x, len).
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 27 Feb 2007 23:48:10 +0000 (23:48 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 27 Feb 2007 23:48:10 +0000 (23:48 +0000)
commit234a02b2a888cacc4c09363cc1411ae4eac9bb51
tree4aadb74b5d7bbcfc3cdae9c8703eac168d6108ae
parent0459b591fc90b197ed31923b170c658cc30758d5
Replace direct assignments to VARATT_SIZEP(x) with SET_VARSIZE(x, len).
Get rid of VARATT_SIZE and VARATT_DATA, which were simply redundant with
VARSIZE and VARDATA, and as a consequence almost no code was using the
longer names.  Rename the length fields of struct varlena and various
derived structures to catch anyplace that was accessing them directly;
and clean up various places so caught.  In itself this patch doesn't
change any behavior at all, but it is necessary infrastructure if we hope
to play any games with the representation of varlena headers.
Greg Stark and Tom Lane
87 files changed:
contrib/btree_gist/btree_bit.c
contrib/btree_gist/btree_utils_var.c
contrib/chkpass/chkpass.c
contrib/cube/cube.c
contrib/cube/cubedata.h
contrib/cube/cubeparse.y
contrib/fuzzystrmatch/dmetaphone.c
contrib/hstore/hstore_op.c
contrib/intagg/int_aggregate.c
contrib/intarray/_int_bool.c
contrib/intarray/_int_tool.c
contrib/ltree/ltree_op.c
contrib/pg_trgm/trgm_op.c
contrib/pgcrypto/pgcrypto.c
contrib/pgcrypto/pgp-pgsql.c
contrib/sslinfo/sslinfo.c
contrib/tsearch2/common.c
contrib/tsearch2/ginidx.c
contrib/tsearch2/query.c
contrib/tsearch2/rank.c
contrib/tsearch2/ts_cfg.c
contrib/tsearch2/ts_stat.c
contrib/tsearch2/ts_stat.h
contrib/tsearch2/tsvector.c
contrib/tsearch2/tsvector.h
contrib/tsearch2/tsvector_op.c
contrib/xml2/xpath.c
contrib/xml2/xslt_proc.c
doc/src/sgml/xfunc.sgml
src/backend/access/common/heaptuple.c
src/backend/access/common/indextuple.c
src/backend/access/common/reloptions.c
src/backend/access/heap/tuptoaster.c
src/backend/catalog/pg_conversion.c
src/backend/executor/execQual.c
src/backend/libpq/be-fsstubs.c
src/backend/libpq/pqformat.c
src/backend/storage/large_object/inv_api.c
src/backend/utils/adt/acl.c
src/backend/utils/adt/array_userfuncs.c
src/backend/utils/adt/arrayfuncs.c
src/backend/utils/adt/cash.c
src/backend/utils/adt/char.c
src/backend/utils/adt/date.c
src/backend/utils/adt/datum.c
src/backend/utils/adt/dbsize.c
src/backend/utils/adt/encode.c
src/backend/utils/adt/float.c
src/backend/utils/adt/formatting.c
src/backend/utils/adt/genfile.c
src/backend/utils/adt/geo_ops.c
src/backend/utils/adt/int.c
src/backend/utils/adt/int8.c
src/backend/utils/adt/like.c
src/backend/utils/adt/like_match.c
src/backend/utils/adt/mac.c
src/backend/utils/adt/nabstime.c
src/backend/utils/adt/network.c
src/backend/utils/adt/numeric.c
src/backend/utils/adt/oid.c
src/backend/utils/adt/oracle_compat.c
src/backend/utils/adt/pg_lzcompress.c
src/backend/utils/adt/pgstatfuncs.c
src/backend/utils/adt/quote.c
src/backend/utils/adt/regexp.c
src/backend/utils/adt/ruleutils.c
src/backend/utils/adt/selfuncs.c
src/backend/utils/adt/timestamp.c
src/backend/utils/adt/varbit.c
src/backend/utils/adt/varchar.c
src/backend/utils/adt/varlena.c
src/backend/utils/adt/version.c
src/backend/utils/adt/xml.c
src/backend/utils/cache/relcache.c
src/backend/utils/mb/mbutils.c
src/include/access/htup.h
src/include/access/tupmacs.h
src/include/c.h
src/include/postgres.h
src/include/utils/array.h
src/include/utils/geo_decls.h
src/include/utils/numeric.h
src/include/utils/pg_lzcompress.h
src/include/utils/rel.h
src/include/utils/varbit.h
src/tutorial/funcs.c
src/tutorial/funcs_new.c