mirror of
https://github.com/postgres/postgres.git
synced 2025-08-22 21:53:06 +03:00
Move jsonapi.c and jsonapi.h to src/common.
To make this work, (1) makeJsonLexContextCstringLen now takes the encoding to be used as an argument; (2) check_stack_depth() is made to do nothing in frontend code, and (3) elog(ERROR, ...) is changed to pg_log_fatal + exit in frontend code. Mark Dilger, reviewed and slightly revised by me. Discussion: http://postgr.es/m/CA+TgmoYfOXhd27MUDGioVh6QtpD0C1K-f6ObSA10AWiHBAL5bA@mail.gmail.com
This commit is contained in:
@@ -13,10 +13,10 @@
|
||||
*/
|
||||
#include "postgres.h"
|
||||
|
||||
#include "common/jsonapi.h"
|
||||
#include "tsearch/ts_cache.h"
|
||||
#include "tsearch/ts_utils.h"
|
||||
#include "utils/builtins.h"
|
||||
#include "utils/jsonapi.h"
|
||||
#include "utils/jsonfuncs.h"
|
||||
|
||||
|
||||
|
@@ -16,11 +16,11 @@
|
||||
#include "catalog/namespace.h"
|
||||
#include "catalog/pg_type.h"
|
||||
#include "commands/defrem.h"
|
||||
#include "common/jsonapi.h"
|
||||
#include "funcapi.h"
|
||||
#include "tsearch/ts_cache.h"
|
||||
#include "tsearch/ts_utils.h"
|
||||
#include "utils/builtins.h"
|
||||
#include "utils/jsonapi.h"
|
||||
#include "utils/jsonfuncs.h"
|
||||
#include "utils/varlena.h"
|
||||
|
||||
|
Reference in New Issue
Block a user