pgsql-server/src/backend/utils/adt formatting.c
pgsql-server/src/backend/utils/adt formatting.c
От:
tgl@svr1.postgresql.org (Tom Lane)
Дата:
CVSROOT: /cvsroot Module name: pgsql-server Changes by: tgl@svr1.postgresql.org 03/08/25 13:13:30 Modified files: src/backend/utils/adt: formatting.c Log message: 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.