]> granicus.if.org Git - postgresql/commit
The cstring datatype can now be copied, passed around, etc. The typlen
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 24 Aug 2002 15:00:47 +0000 (15:00 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 24 Aug 2002 15:00:47 +0000 (15:00 +0000)
commit976246cc7e4d8b673fc62fe6daa61c76d94af1af
treeb61ea3f5bbd8fa025587754bc90c3fd43889337c
parentcf4d885c67744637d82f6fec657e8205578c5905
The cstring datatype can now be copied, passed around, etc.  The typlen
value '-2' is used to indicate a variable-width type whose width is
computed as strlen(datum)+1.  Everything that looks at typlen is updated
except for array support, which Joe Conway is working on; at the moment
it wouldn't work to try to create an array of cstring.
23 files changed:
doc/src/sgml/catalogs.sgml
src/backend/access/common/heaptuple.c
src/backend/access/common/indextuple.c
src/backend/access/common/printtup.c
src/backend/catalog/pg_type.c
src/backend/commands/analyze.c
src/backend/commands/copy.c
src/backend/commands/tablecmds.c
src/backend/executor/nodeHash.c
src/backend/nodes/copyfuncs.c
src/backend/tcop/fastpath.c
src/backend/utils/adt/datum.c
src/backend/utils/adt/format_type.c
src/backend/utils/adt/pseudotypes.c
src/backend/utils/sort/tuplesort.c
src/bin/psql/describe.c
src/include/access/tupmacs.h
src/include/catalog/catversion.h
src/include/catalog/pg_type.h
src/interfaces/libpq/fe-exec.c
src/pl/plpgsql/src/pl_exec.c
src/test/regress/expected/type_sanity.out
src/test/regress/sql/type_sanity.sql