git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: d91da5e) | patch
Centralize json and jsonb handling of datetime types
2018年1月17日 00:07:13 +0000 (19:07 -0500)
2018年1月17日 00:07:13 +0000 (19:07 -0500)
commit cc4feded0a31d2b732d4ea68613115cb720e624e
Centralize json and jsonb handling of datetime types

The creates a single function JsonEncodeDateTime which will format these
data types in an efficient and consistent manner. This will be all the
more important when we come to jsonpath so we don't have to implement yet
more code doing the same thing in two more places.

This also extends the code to handle time and timetz types which were
not previously handled specially. This requires exposing the time2tm and
timetz2tm functions.

Patch from Nikita Glukhov
src/backend/utils/adt/date.c diff | blob | blame | history
src/backend/utils/adt/json.c diff | blob | blame | history
src/backend/utils/adt/jsonb.c diff | blob | blame | history
src/include/utils/date.h diff | blob | blame | history
src/include/utils/jsonapi.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /