Remove header includes, unneeded after refactoring
authorPeter Geoghegan <[email protected]>
Mon, 17 Mar 2014 20:58:23 +0000 (13:58 -0700)
committerPeter Geoghegan <[email protected]>
Mon, 17 Mar 2014 20:58:46 +0000 (13:58 -0700)
src/backend/utils/adt/jsonb.c
src/backend/utils/adt/jsonb_op.c
src/backend/utils/adt/jsonb_util.c

index fbe949370c8c3e3db268746f64dc158798762a9a..b818b2f8ae7dabb25a959bccd0fa5296a4eef6da 100644 (file)
@@ -302,8 +302,7 @@ jsonb_in_scalar(void *state, char *token, JsonTokenType tokentype)
        case JSON_TOKEN_NUMBER:
            /*
             * No need to check size of numeric values, because maximum numeric
-            * size is well in excess of the restriction we separately impose
-            * of the size of JsonbValues
+            * size is well below the JsonbValue restriction
             */
            v.type = jbvNumeric;
            v.numeric = DatumGetNumeric(DirectFunctionCall3(numeric_in, CStringGetDatum(token), 0, -1));
index 708752189e9c08aeab299291696d7cdb74dc8f5c..1eca7ad1b7c3510fbeb9db74f45f3e07858d99f6 100644 (file)
@@ -13,9 +13,7 @@
  */
 #include "postgres.h"
 
-#include "access/hash.h"
 #include "miscadmin.h"
-#include "utils/builtins.h"
 #include "utils/jsonb.h"
 
 Datum
index ea6bea0b872577767a1a9321583b925edd25875f..266ff1678b4b69c7f7800307c6edb80c4b0de745 100644 (file)
@@ -16,8 +16,8 @@
 #include "catalog/pg_collation.h"
 #include "catalog/pg_type.h"
 #include "utils/builtins.h"
-#include "utils/memutils.h"
 #include "utils/jsonb.h"
+#include "utils/memutils.h"
 
 /*
  * State used while converting an arbitrary JsonbValue into a Jsonb value