forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit0785d1b
common/jsonapi: support libpq as a client
Based on a patch by Michael Paquier.For libpq, use PQExpBuffer instead of StringInfo. This requires us totrack allocation failures so that we can return JSON_OUT_OF_MEMORY asneeded 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.com1 parent3beb945 commit0785d1b
File tree
9 files changed
+558
-243
lines changed- src
- common
- include/common
- test/modules/test_json_parser
- t
9 files changed
+558
-243
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
106 | 110 | | |
107 | 111 | | |
108 | 112 | | |
109 | 113 | | |
110 | | - | |
111 | | - | |
| 114 | + | |
112 | 115 | | |
113 | 116 | | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
114 | 120 | | |
115 | 121 | | |
116 | 122 | | |
| |||
121 | 127 | | |
122 | 128 | | |
123 | 129 | | |
124 | | - | |
| 130 | + | |
125 | 131 | | |
126 | 132 | | |
127 | 133 | | |
| |||
154 | 160 | | |
155 | 161 | | |
156 | 162 | | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
157 | 168 | | |
158 | 169 | | |
159 | 170 | | |
| |||
163 | 174 | | |
164 | 175 | | |
165 | 176 | | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
166 | 181 | | |
167 | 182 | | |
168 | 183 | | |
| |||
196 | 211 | | |
197 | 212 | | |
198 | 213 | | |
199 | | - | |
| 214 | + | |
200 | 215 | | |
201 | 216 | | |
0 commit comments
Comments
(0)