diff options
Diffstat (limited to 'jsonpath.c')
| -rw-r--r-- | jsonpath.c | 23 |
1 files changed, 17 insertions, 6 deletions
@@ -1,3 +1,14 @@ +/*------------------------------------------------------------------------- + * + * jsonpath.c + * JSONPath implementation routines for JSON data type support. + * + * Copyright (c) 2010, PostgreSQL Global Development Group + * Written by Joey Adams <joeyadams3.14159@gmail.com>. + * + *------------------------------------------------------------------------- + */ + #include "jsonpath.h" #include "util.h" @@ -379,12 +390,12 @@ failed: } /* -Currently, a lot of JPRef nodes are allocated just to pass json_node pointers -to match_recurse. If this becomes a memory/performance issue in the future, -JPRef could merged with json_node by adding JPRef's specialty types to the -json_type enum and json_node union. JPRef is currently not merged with -json_node in an attempt to keep the codebase tidy and easier to extend. -*/ + * Currently, a lot of JPRef nodes are allocated just to pass json_node pointers + * to match_recurse. If this becomes a memory/performance issue in the future, + * JPRef could merged with json_node by adding JPRef's specialty types to the + * json_type enum and json_node union. JPRef is currently not merged with + * json_node in an attempt to keep the codebase tidy and easier to extend. + */ static void match_recurse(void on_match(void *ctx, JPRef * ref), void *ctx, ListCell *path, JPRef * ref) { |
