forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit11b5e3e
committed
Split JSON lexer/parser from 'json' data type support.
Keep the code that pertains to the 'json' data type in json.c, butmove the lexing and parsing code to a new file jsonapi.c, a nameI chose because the corresponding prototypes are in jsonapi.h.This seems like a logical division, because the JSON lexer and parserare also used by the 'jsonb' data type, but the SQL-callable functionsin json.c are a separate thing. Also, the new jsonapi.c file needs toinclude far fewer header files than json.c, which seems like a goodsign that this is an appropriate place to insert an abstractionboundary. I took the opportunity to remove a few apparently-unneededincludes from json.c at the same time.Patch by me, reviewed by David Steele, Mark Dilger, and AndrewDunstan. The previous commit was, too, but I forgot to note itin the commit message.Discussion:http://postgr.es/m/CA+TgmoYfOXhd27MUDGioVh6QtpD0C1K-f6ObSA10AWiHBAL5bA@mail.gmail.com1 parentce0425b commit11b5e3e
4 files changed
+1224
-1205
lines changedLines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
44 | 44 |
| |
45 | 45 |
| |
46 | 46 |
| |
| 47 | + | |
47 | 48 |
| |
48 | 49 |
| |
49 | 50 |
| |
|
0 commit comments
Comments
(0)