Flip the default typispreferred setting from true to false. This affects
Tom Lane <tgl@sss.pgh.pa.us>
Flip the default typispreferred setting from true to false. This affects only type categories in which the previous coding made *every* type preferred; so there is no change in effective behavior, because the function resolution rules only do something different when faced with a choice between preferred and non-preferred types in the same category. It just seems safer and less surprising to have CREATE TYPE default to non-preferred status ...
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/ref/create_type.sgml | modified | +4 −4 |
| doc/src/sgml/typeconv.sgml | modified | +2 −14 |
| src/backend/catalog/heap.c | modified | +3 −3 |
| src/backend/commands/typecmds.c | modified | +6 −6 |
| src/bin/pg_dump/pg_dump.c | modified | +10 −10 |
| src/include/catalog/catversion.h | modified | +2 −2 |
| src/include/catalog/pg_type.h | modified | +87 −87 |
| src/test/regress/expected/create_type.out | modified | +1 −1 |
| src/test/regress/sql/create_type.sql | modified | +1 −1 |