]> granicus.if.org Git - postgresql/blobdiff - src/include/utils/jsonapi.h
Fix initialization of fake LSN for unlogged relations
[postgresql] / src / include / utils / jsonapi.h
index b9993a9aad4e3fe98af3ee0d58c73fe1db1dfd00..e1dab24d5dd91319f381e351777ce46d29371bc7 100644 (file)
@@ -94,7 +94,7 @@ typedef struct JsonSemAction
 } JsonSemAction;
 
 /*
- * parse_json will parse the string in the lex calling the
+ * pg_parse_json will parse the string in the lex calling the
  * action functions in sem at the appropriate points. It is
  * up to them to keep what state they need     in semstate. If they
  * need access to the state of the lexer, then its pointer
@@ -122,8 +122,8 @@ extern int  json_count_array_elements(JsonLexContext *lex);
  */
 extern JsonLexContext *makeJsonLexContext(text *json, bool need_escapes);
 extern JsonLexContext *makeJsonLexContextCstringLen(char *json,
-                                                        int len,
-                                                        bool need_escapes);
+                                                                                                       int len,
+                                                                                                       bool need_escapes);
 
 /*
  * Utility function to check if a string is a valid JSON number.
@@ -145,7 +145,7 @@ typedef enum JsonToIndex
        jtiAll = jtiKey | jtiString | jtiNumeric | jtiBool
 } JsonToIndex;
 
-/* an action that will be applied to each value in iterate_json(b)_vaues functions */
+/* an action that will be applied to each value in iterate_json(b)_values functions */
 typedef void (*JsonIterateStringValuesAction) (void *state, char *elem_value, int elem_len);
 
 /* an action that will be applied to each value in transform_json(b)_values functions */
@@ -153,14 +153,15 @@ typedef text *(*JsonTransformStringValuesAction) (void *state, char *elem_value,
 
 extern uint32 parse_jsonb_index_flags(Jsonb *jb);
 extern void iterate_jsonb_values(Jsonb *jb, uint32 flags, void *state,
-                                        JsonIterateStringValuesAction action);
+                                                                JsonIterateStringValuesAction action);
 extern void iterate_json_values(text *json, uint32 flags, void *action_state,
-                                       JsonIterateStringValuesAction action);
+                                                               JsonIterateStringValuesAction action);
 extern Jsonb *transform_jsonb_string_values(Jsonb *jsonb, void *action_state,
-                                                         JsonTransformStringValuesAction transform_action);
+                                                                                       JsonTransformStringValuesAction transform_action);
 extern text *transform_json_string_values(text *json, void *action_state,
-                                                        JsonTransformStringValuesAction transform_action);
+                                                                                 JsonTransformStringValuesAction transform_action);
 
-extern char *JsonEncodeDateTime(char *buf, Datum value, Oid typid);
+extern char *JsonEncodeDateTime(char *buf, Datum value, Oid typid,
+                                                               const int *tzp);
 
 #endif                                                 /* JSONAPI_H */