]> granicus.if.org Git - postgresql/commit
Refactor code so that to_date() does not call to_timestamp() and then
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 25 Aug 2003 16:13:27 +0000 (16:13 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 25 Aug 2003 16:13:27 +0000 (16:13 +0000)
commita17f2d76ccc8ba0801f6d92595cf3adbc3f0c54f
tree1627076751e8b918a86fd4fbf73137d2b0ba4aff
parent4b02f3c4eb447f02eb02d6549403a86b96c9b237
Refactor code so that to_date() does not call to_timestamp() and then
perform a timestamp-to-date coercion.  Instead both routines share a
subroutine that delivers the parsing result as a struct tm.  This avoids
problems with timezone dependency of to_date's result, and should be
at least marginally faster too.
src/backend/utils/adt/formatting.c