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

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 1f3a021) | patch
Move some code from jsonapi.c to jsonfuncs.c.
2020年1月27日 16:22:13 +0000 (11:22 -0500)
2020年1月27日 16:22:13 +0000 (11:22 -0500)
commit 73ce2a03f30b52d6bfb26bc28f1e3e1aa1637577
Move some code from jsonapi.c to jsonfuncs.c.

Specifically, move those functions that depend on ereport()
from jsonapi.c to jsonfuncs.c, in preparation for allowing
jsonapi.c to be used from frontend code.

A few cases where elog(ERROR, ...) is used for can't-happen
conditions are left alone; we can handle those in some other
way in frontend code.

Reviewed by Mark Dilger and Andrew Dunstan.

Discussion: http://postgr.es/m/CA+TgmoYfOXhd27MUDGioVh6QtpD0C1K-f6ObSA10AWiHBAL5bA@mail.gmail.com
src/backend/utils/adt/json.c diff | blob | blame | history
src/backend/utils/adt/jsonapi.c diff | blob | blame | history
src/backend/utils/adt/jsonb.c diff | blob | blame | history
src/backend/utils/adt/jsonfuncs.c diff | blob | blame | history
src/include/utils/jsonapi.h diff | blob | blame | history
src/include/utils/jsonfuncs.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

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