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

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 3beb945) | patch
common/jsonapi: support libpq as a client
2024年9月11日 06:28:35 +0000 (08:28 +0200)
2024年9月11日 07:01:07 +0000 (09:01 +0200)
commit 0785d1b8b2fa27074eeb18a3ac1f2a0e76cb8339
common/jsonapi: support libpq as a client

Based on a patch by Michael Paquier.

For libpq, use PQExpBuffer instead of StringInfo. This requires us to
track allocation failures so that we can return JSON_OUT_OF_MEMORY as
needed rather than exit()ing.

Author: Jacob Champion <jacob.champion@enterprisedb.com>
Co-authored-by: Michael Paquier <michael@paquier.xyz>
Co-authored-by: Daniel Gustafsson <daniel@yesql.se>
Reviewed-by: Peter Eisentraut <peter@eisentraut.org>
Discussion: https://www.postgresql.org/message-id/flat/d1b467a78e0e36ed85a09adf979d04cf124a9d4b.camel@vmware.com
src/common/Makefile diff | blob | blame | history
src/common/jsonapi.c diff | blob | blame | history
src/common/meson.build diff | blob | blame | history
src/include/common/jsonapi.h diff | blob | blame | history
src/test/modules/test_json_parser/Makefile diff | blob | blame | history
src/test/modules/test_json_parser/meson.build diff | blob | blame | history
src/test/modules/test_json_parser/t/001_test_json_parser_incremental.pl diff | blob | blame | history
src/test/modules/test_json_parser/t/002_inline.pl diff | blob | blame | history
src/test/modules/test_json_parser/t/003_test_semantic.pl diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

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