postgresql/src/backend/commands
Peter Eisentraut 54637508f8 Change collate and ctype fields to type text
This changes the data type of the catalog fields datcollate, datctype,
collcollate, and collctype from name to text.  There wasn't ever a
really good reason for them to be of type name; presumably this was
just carried over from when they were fixed-size fields in pg_control,
first into the corresponding pg_database fields, and then to
pg_collation.  The values are not identifiers or object names, and we
don't ever look them up that way.

Changing to type text saves space in the typical case, since locale
names are typically only a few bytes long.  But it is also possible
that an ICU locale name with several customization options appended
could be longer than 63 bytes, so this also enables that case, which
was previously probably broken.

Reviewed-by: Julien Rouhaud <rjuju123@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/5e756dd6-0e91-d778-96fd-b1bcb06c161a@2ndquadrant.com
2022-01-27 08:54:25 +01:00
..
aggregatecmds.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
alter.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
amcmds.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
analyze.c Add stxdinherit flag to pg_statistic_ext_data 2022-01-16 13:38:01 +01:00
async.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
cluster.c Fix various typos, grammar and code style in comments and docs 2022-01-25 09:40:04 +09:00
collationcmds.c Change collate and ctype fields to type text 2022-01-27 08:54:25 +01:00
comment.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
constraint.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
conversioncmds.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
copy.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
copyfrom.c Remove redundant memory context switches in BeginCopyFrom(). 2022-01-19 12:31:15 -05:00
copyfromparse.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
copyto.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
createas.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
dbcommands.c Change collate and ctype fields to type text 2022-01-27 08:54:25 +01:00
define.c Add Boolean node 2022-01-17 10:38:23 +01:00
discard.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
dropcmds.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
event_trigger.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
explain.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
extension.c Improve error message for missing extension. 2022-01-11 14:22:00 -05:00
foreigncmds.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
functioncmds.c Add Boolean node 2022-01-17 10:38:23 +01:00
indexcmds.c Fix various typos, grammar and code style in comments and docs 2022-01-25 09:40:04 +09:00
lockcmds.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
Makefile Move parallel vacuum code to vacuumparallel.c. 2021-12-23 11:42:52 +05:30
matview.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
opclasscmds.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
operatorcmds.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
policy.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
portalcmds.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
prepare.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
proclang.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
publicationcmds.c Fix various typos, grammar and code style in comments and docs 2022-01-25 09:40:04 +09:00
schemacmds.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
seclabel.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
sequence.c Add Boolean node 2022-01-17 10:38:23 +01:00
statscmds.c Check syscache result in AlterStatistics 2022-01-23 03:16:31 +01:00
subscriptioncmds.c Fix various typos, grammar and code style in comments and docs 2022-01-25 09:40:04 +09:00
tablecmds.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
tablespace.c pg_upgrade: Preserve relfilenodes and tablespace OIDs. 2022-01-17 13:40:27 -05:00
trigger.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
tsearchcmds.c Add Boolean node 2022-01-17 10:38:23 +01:00
typecmds.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
user.c Add Boolean node 2022-01-17 10:38:23 +01:00
vacuum.c Remove useless inline marker. 2022-01-22 17:11:33 -05:00
vacuumparallel.c Unify VACUUM VERBOSE and autovacuum logging. 2022-01-14 16:50:34 -08:00
variable.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
view.c Update copyright for 2022 2022-01-07 19:04:57 -05:00