postgresql/src/include
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 Silence nbtree.h cpluspluscheck warning. 2020-03-02 10:29:30 -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 Report progress of streaming base backup. 2020-03-03 12:03:43 +09:00
common Move src/backend/utils/hash/hashfn.c to src/common 2020-02-27 09:25:41 +05:30
datatype Update copyrights for 2020 2020-01-01 12:21:45 -05:00
executor expression eval: Reduce number of steps for agg transition invocations. 2020-02-24 15:09:09 -08:00
fe_utils Reduce size of backend scanner's tables. 2020-01-13 15:04:31 -05:00
foreign Update copyrights for 2020 2020-01-01 12:21:45 -05:00
jit jit: Reference expression step functions via llvmjit_types. 2020-02-06 22:29:14 -08:00
lib Skip memcpy(x, x) in qunique(). 2020-01-04 11:31:42 -08:00
libpq Allow building without default socket directory 2020-01-31 16:28:43 +01:00
mb Rationalize code placement between wchar.c, encnames.c, and mbutils.c. 2020-01-16 18:08:21 -05: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 Fill in extraUpdatedCols in logical replication 2020-02-17 15:20:57 +01:00
partitioning Update copyrights for 2020 2020-01-01 12:21:45 -05:00
port Assume that we have utime() and <utime.h>. 2020-02-21 14:30:47 -05:00
portability Update copyrights for 2020 2020-01-01 12:21:45 -05:00
postmaster Update copyrights for 2020 2020-01-01 12:21:45 -05:00
regex Assume that we have <wchar.h>. 2020-02-21 14:30:47 -05:00
replication Set ReorderBufferTXN->final_lsn more eagerly 2020-01-17 18:00:39 -03:00
rewrite Update copyrights for 2020 2020-01-01 12:21:45 -05:00
snowball Update copyrights for 2020 2020-01-01 12:21:45 -05:00
statistics Update copyrights for 2020 2020-01-01 12:21:45 -05:00
storage Account explicitly for long-lived FDs that are allocated outside fd.c. 2020-02-24 17:28:33 -05:00
tcop Represent command completion tags as structs 2020-03-02 18:19:51 -03:00
tsearch Assume that we have <wchar.h>. 2020-02-21 14:30:47 -05:00
utils Allow to_date/to_timestamp to recognize non-English month/day names. 2020-03-03 11:06:47 -05:00
.gitignore Refactor dlopen() support 2018-09-06 11:33:04 +02:00
c.h Assume that we have signed integral types and flexible array members. 2020-02-21 14:30:48 -05:00
fmgr.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
funcapi.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
getaddrinfo.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
getopt_long.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
Makefile Get rid of jsonpath_gram.h and jsonpath_scanner.h 2019-03-20 11:13:34 +03:00
miscadmin.h Make vacuum buffer counters 64 bits wide 2020-02-05 16:59:29 -03:00
pg_config.h.in Assume that we have signed integral types and flexible array members. 2020-02-21 14:30:48 -05:00
pg_config_ext.h.in Autoconfiscate selection of 64-bit int type for 64-bit large object API. 2012-10-07 21:52:43 -04:00
pg_config_manual.h Allow building without default socket directory 2020-01-31 16:28:43 +01:00
pg_getopt.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
pg_trace.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
pgstat.h Report progress of streaming base backup. 2020-03-03 12:03:43 +09:00
pgtar.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
pgtime.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
port.h Assume that we have rint(). 2020-02-21 14:30:47 -05:00
postgres.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
postgres_ext.h Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
postgres_fe.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
rusagestub.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
windowapi.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00