Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 3F31215095CB for ; Sun, 12 Feb 2012 08:31:07 -0400 (AST) Received: from mahout.postgresql.org ([98.129.198.123]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RwYaA-0004Wi-8Q for pgsql-bugs@postgresql.org; Sun, 12 Feb 2012 12:31:06 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RwYZx-0001Tc-J0 for pgsql-bugs@postgresql.org; Sun, 12 Feb 2012 12:30:53 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1RwYZw-0003zu-UD for pgsql-bugs@postgresql.org; Sun, 12 Feb 2012 12:30:52 +0000 Date: Sun, 12 Feb 2012 12:30:52 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #6453: auto_explain produces bad json output To: pgsql-bugs@postgresql.org From: daniele.varrazzo@gmail.com X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201202/97 X-Sequence-Number: 32440 The following bug has been logged on the website: Bug reference: 6453 Logged by: Daniele Varrazzo Email address: daniele.varrazzo@gmail.com PostgreSQL version: 9.1.2 Operating system: Any Description: = Bug verified on PG 9.0.5 and 9.1.2. auto_explain in json format produces an output such as: [ "Query Text": "select pg_sleep(2);", "Plan": { "Node Type": "Result", [...] "Plan Width": 0 } ] The representation is wrapped in a pair of [], but the content is a mapping: it should have been a pair of {}.