OSDN Git Service

Fix bogus date in SPEC file
[pgstoreplans/pg_store_plans.git] / json2sql.pl
index a83d824..4d07bb8 100755 (executable)
@@ -48,7 +48,7 @@ while(<>) {
                if (/[}\]:,]/) {
                        die("??? : $_");
                }
-               next if (!/^( *){ *\+?$/);
+               next if (!/^( *)\{ *\+?$/);
         $indent = $1;
                $plan = $_;
                $plan =~ s/^   (.*[^ ]) *\+$/$1\n/;
@@ -252,6 +252,7 @@ sub setplan0 {
   "Workers Launched": "0",
   "Workers": "x",
   "Worker Number": "0",
+  "Async Capable": "false",
   "Filter": "a",
   "Join Filter": "a",
   "Hash Cond": "a",
@@ -333,7 +334,8 @@ sub setplan1 {
   "Sampling Parameters": ["''10''::real"],
   "Repeatable Seed": "''0''::double precision",
   "Workers": "dummy",
-  "Worker Number": 0
+  "Worker Number": 0,
+  "Async Capable": 0
 EOS
 
 # Avoid trailing new line