Repair an embarrassingly large number of alphabetization mistakes in the
Tom Lane <tgl@sss.pgh.pa.us>
Repair an embarrassingly large number of alphabetization mistakes in the datetime token tables. Even more embarrassing, the regression tests revealed some of the problems --- but evidently the bogus output wasn't questioned. Add code to postmaster startup to directly check the tables for correct ordering, in hopes of not being embarrassed like this again.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/postmaster/postmaster.c | modified | +10 −1 |
| src/backend/utils/adt/datetime.c | modified | +58 −21 |
| src/include/utils/datetime.h | modified | +5 −3 |
| src/test/regress/expected/timestamp.out | modified | +3 −3 |
| src/test/regress/expected/timestamptz.out | modified | +3 −3 |