postgresql/src/backend
Tom Lane d677550493 Allow to_date/to_timestamp to recognize non-English month/day names.
to_char() has long allowed the TM (translation mode) prefix to
specify output of translated month or day names; but that prefix
had no effect in input format strings.  Now it does.  to_date()
and to_timestamp() will now recognize the same month or day names
that to_char() would output for the same format code.  Matching is
case-insensitive (per the active collation's notion of what that
means), just as it has always been for English month/day names
without the TM prefix.

(As per the discussion thread, there are lots of cases that this
feature will not handle, such as alternate day names.  But being
able to accept what to_char() will output seems useful enough.)

In passing, fix some shaky English and violations of message
style guidelines in jsonpath errors for the .datetime() method,
which depends on this code.

Juan José Santamaría Flecha, reviewed and modified by me,
with other commentary from Alvaro Herrera, Tomas Vondra,
Arthur Zakirov, Peter Eisentraut, Mark Dilger.

Discussion: https://postgr.es/m/CAC+AXB3u1jTngJcoC1nAHBf=M3v-jrEfo86UFtCqCjzbWS9QhA@mail.gmail.com
2020-03-03 11:06:47 -05:00
..
access Remove overzealous _bt_split() assertions. 2020-03-02 21:40:11 -08:00
bootstrap Update copyrights for 2020 2020-01-01 12:21:45 -05:00
catalog Report progress of streaming base backup. 2020-03-03 12:03:43 +09:00
commands Represent command completion tags as structs 2020-03-02 18:19:51 -03:00
executor Represent command completion tags as structs 2020-03-02 18:19:51 -03:00
foreign Update copyrights for 2020 2020-01-01 12:21:45 -05:00
jit expression eval: Reduce number of steps for agg transition invocations. 2020-02-24 15:09:09 -08:00
lib Move src/backend/utils/hash/hashfn.c to src/common 2020-02-27 09:25:41 +05:30
libpq Assume that we have utime() and <utime.h>. 2020-02-21 14:30:47 -05:00
main Add PostgreSQL home page to --help output 2020-02-28 13:12:21 +01:00
nodes Fix commit c11cb17d. 2020-02-28 09:35:11 -08:00
optimizer Save calculated transitionSpace in Agg node. 2020-02-27 11:20:56 -08:00
parser Fix assertion failure with ALTER TABLE ATTACH PARTITION and indexes 2020-03-03 13:55:41 +09:00
partitioning Move src/backend/utils/hash/hashfn.c to src/common 2020-02-27 09:25:41 +05:30
po Translation updates 2019-06-17 15:30:20 +02:00
port Update copyrights for 2020 2020-01-01 12:21:45 -05:00
postmaster Avoid failure if autovacuum tries to access a just-dropped temp namespace. 2020-02-28 20:28:34 -05:00
regex Update copyrights for 2020 2020-01-01 12:21:45 -05:00
replication Report progress of streaming base backup. 2020-03-03 12:03:43 +09:00
rewrite Make rewriter prevent auto-updates on views with conditional INSTEAD rules. 2020-01-14 09:52:21 +00:00
snowball Update copyrights for 2020 2020-01-01 12:21:45 -05:00
statistics Report progress of ANALYZE commands 2020-01-15 11:14:39 -03:00
storage Move src/backend/utils/hash/hashfn.c to src/common 2020-02-27 09:25:41 +05:30
tcop Represent command completion tags as structs 2020-03-02 18:19:51 -03:00
tsearch Move src/backend/utils/hash/hashfn.c to src/common 2020-02-27 09:25:41 +05:30
utils Allow to_date/to_timestamp to recognize non-English month/day names. 2020-03-03 11:06:47 -05:00
.gitignore Add .gitignore entries for AIX-specific intermediate build artifacts. 2015-07-08 20:44:22 -04:00
common.mk Remove PARTIAL_LINKING build mode. 2018-03-30 17:33:04 -07:00
Makefile Update copyrights for 2020 2020-01-01 12:21:45 -05:00
nls.mk Translation updates 2019-05-20 16:00:53 +02:00