postgresql/src/backend
Alexander Korotkov 66c74f8b6e Implement parse_datetime() function
This commit adds parse_datetime() function, which implements datetime
parsing with extended features demanded by upcoming jsonpath .datetime()
method:

 * Dynamic type identification based on template string,
 * Support for standard-conforming 'strict' mode,
 * Timezone offset is returned as separate value.

Extracted from original patch by Nikita Glukhov, Teodor Sigaev, Oleg Bartunov.
Revised by me.

Discussion: https://postgr.es/m/fcc6fc6a-b497-f39a-923d-aa34d0c588e8%402ndQuadrant.com
Discussion: https://postgr.es/m/CAPpHfdsZgYEra_PeCLGNoXOWYx6iU-S3wF8aX0ObQUcZU%2B4XTw%40mail.gmail.com
Author: Nikita Glukhov, Teodor Sigaev, Oleg Bartunov, Alexander Korotkov
Reviewed-by: Anastasia Lubennikova, Peter Eisentraut
2019-09-25 22:51:51 +03:00
..
access Support reloptions of enum type 2019-09-25 15:56:52 -03:00
bootstrap Fix inconsistencies and typos in the tree 2019-07-16 13:23:53 +09:00
catalog Speedup truncations of relation forks. 2019-09-24 17:31:26 +09:00
commands Support reloptions of enum type 2019-09-25 15:56:52 -03:00
executor Fix ExprState's tag to be of type NodeTag rather than Node. 2019-09-23 15:28:13 -07:00
foreign Update copyright for 2019 2019-01-02 12:44:25 -05:00
jit Don't rely on llvm::make_unique. 2019-08-25 14:45:51 +12:00
lib Fix inconsistencies in the code 2019-07-08 13:15:09 +09:00
libpq Message style fixes 2019-09-23 13:38:39 +02:00
main initdb: Remove obsolete locale handling 2019-08-14 06:51:13 +02:00
nodes Allow setting statistics target for extended statistics 2019-09-11 00:25:51 +02:00
optimizer Prevent bogus pullup of constant-valued functions returning composite. 2019-09-24 12:11:32 -04:00
parser Allow setting statistics target for extended statistics 2019-09-11 00:25:51 +02:00
partitioning Avoid using INFO elevel for what are fundamentally debug messages. 2019-09-07 19:03:11 -04:00
po Translation updates 2019-06-17 15:30:20 +02:00
port Remove mingwcompat.c 2019-09-17 11:34:28 +02:00
postmaster Rearrange postmaster's startup sequence for better syslogger results. 2019-09-11 11:43:01 -04:00
regex Fix inconsistencies and typos in the tree, take 9 2019-08-05 12:14:58 +09:00
replication Rework WAL-reading supporting structs 2019-09-24 16:39:53 -03:00
rewrite Rationalize use of list_concat + list_copy combinations. 2019-08-12 11:20:18 -04:00
snowball Sync our Snowball stemmer dictionaries with current upstream 2019-07-04 13:26:48 +02:00
statistics Allow setting statistics target for extended statistics 2019-09-11 00:25:51 +02:00
storage Speedup truncations of relation forks. 2019-09-24 17:31:26 +09:00
tcop Allow setting statistics target for extended statistics 2019-09-11 00:25:51 +02:00
tsearch Fix inconsistencies and typos in the tree, take 11 2019-08-19 16:21:39 +09:00
utils Implement parse_datetime() function 2019-09-25 22:51:51 +03:00
.gitignore Add .gitignore entries for AIX-specific intermediate build artifacts. 2015-07-08 20:44:22 -04:00
Makefile Get rid of jsonpath_gram.h and jsonpath_scanner.h 2019-03-20 11:13:34 +03:00
common.mk Remove PARTIAL_LINKING build mode. 2018-03-30 17:33:04 -07:00
nls.mk Translation updates 2019-05-20 16:00:53 +02:00