pgsql: Improve reporting of run-time-detected indeterminate-collation e

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Improve reporting of run-time-detected indeterminate-collation e
Дата
Msg-id E1Q28cG-0004ov-Fr@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Improve reporting of run-time-detected indeterminate-collation errors.

pg_newlocale_from_collation does not have enough context to give an error
message that's even a little bit useful, so move the responsibility for
complaining up to its callers.  Also, reword ERRCODE_INDETERMINATE_COLLATION
error messages in a less jargony, more message-style-guide-compliant
fashion.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/6e197cb2e537880f36828a6c55d0f6df5bf7daa8

Modified Files
--------------
src/backend/commands/collationcmds.c             |    2 +-
src/backend/commands/indexcmds.c                 |    2 +-
src/backend/commands/view.c                      |    2 +-
src/backend/utils/adt/formatting.c               |   78 ++++++++++++++++++++++
src/backend/utils/adt/pg_locale.c                |   14 +---
src/backend/utils/adt/varlena.c                  |   13 ++++
src/test/regress/expected/collate.linux.utf8.out |    6 +-
src/test/regress/expected/collate.out            |    6 +-
8 files changed, 105 insertions(+), 18 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Throw error for indeterminate collation of an ORDER/GROUP/DISTIN
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Make initdb ignore locales for client-only encodings.