Ok. Updated patch attached.

Bruce Momjian <bruce@momjian.us>

Commit: 01c76f7411c24b11e4ab36a9fe5f5017dc33be78
Author: Bruce Momjian <bruce@momjian.us>
Date: 2002-03-06T20:35:02Z
Releases: 7.3.1
Ok.  Updated patch attached.

- domain.patch -> source patch against pgsql in cvs
- drop_domain.sgml and create_domain.sgml -> New doc/src/sgml/ref docs

- dominfo.txt -> basic domain related queries I used for testing
[ ADDED TO /doc]

Enables domains of array elements -> CREATE DOMAIN dom int4[3][2];

Uses a typbasetype column to describe the origin of the domain.

Copies data to attnotnull rather than processing in execMain().

Some documentation differences from earlier.

If this is approved, I'll start working on pg_dump, and a \dD <domain>
option in psql, and regression tests.  I don't really feel like doing
those until the system table structure settles for pg_type.


CHECKS when added, will also be copied to to the table attributes.  FK
Constraints (if I ever figure out how) will be done similarly.  Both
will lbe handled by MergeDomainAttributes() which is called shortly
before MergeAttributes().

Rod Taylor

Files

PathChange+/−
doc/dominfo.txt added +87 −0
doc/src/sgml/catalogs.sgml modified +48 −1
doc/src/sgml/ref/allfiles.sgml modified +3 −1
doc/src/sgml/ref/comment.sgml modified +8 −7
doc/src/sgml/ref/create_domain.sgml added +231 −0
doc/src/sgml/ref/drop_domain.sgml added +167 −0
doc/src/sgml/reference.sgml modified +4 −2
src/backend/catalog/heap.c modified +97 −61
src/backend/catalog/pg_type.c modified +58 −7
src/backend/commands/creatinh.c modified +91 −2
src/backend/commands/define.c modified +359 −4
src/backend/commands/remove.c modified +57 −2
src/backend/nodes/copyfuncs.c modified +14 −1
src/backend/nodes/equalfuncs.c modified +15 −1
src/backend/optimizer/prep/preptlist.c modified +32 −21
src/backend/parser/gram.y modified +60 −6
src/backend/parser/keywords.c modified +2 −1
src/backend/parser/parse_coerce.c modified +31 −1
src/backend/parser/parse_expr.c modified +4 −3
src/backend/tcop/utility.c modified +16 −1
src/backend/utils/adt/format_type.c modified +27 −1
src/backend/utils/cache/lsyscache.c modified +34 −29
src/backend/utils/cache/relcache.c modified +7 −3
src/include/catalog/heap.h modified +9 −1
src/include/catalog/pg_attribute.h modified +14 −3
src/include/catalog/pg_class.h modified +2 −2
src/include/catalog/pg_type.h modified +154 −103
src/include/commands/defrem.h modified +3 −1
src/include/nodes/nodes.h modified +2 −1
src/include/nodes/parsenodes.h modified +20 −1
src/include/parser/parse_coerce.h modified +2 −1
src/include/utils/lsyscache.h modified +2 −2