Received: from magus.postgresql.org ([87.238.57.229]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TQnxm-0001FV-PQ for pgsql-bugs@postgresql.org; Tue, 23 Oct 2012 23:32:46 +0000 Received: from mahout.postgresql.org ([98.129.198.123]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TQnxg-0006a2-E8 for pgsql-bugs@postgresql.org; Tue, 23 Oct 2012 23:32:46 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TQnxf-0001XT-5m for pgsql-bugs@postgresql.org; Tue, 23 Oct 2012 23:32:39 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1TQnxe-0002WI-DP for pgsql-bugs@postgresql.org; Tue, 23 Oct 2012 23:32:38 +0000 Date: Tue, 23 Oct 2012 23:32:38 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #7620: array_to_json doesn't support heterogeneous arrays To: pgsql-bugs@postgresql.org From: ghazel@gmail.com X-Pg-Spam-Score: -1.7 (-) X-Archive-Number: 201210/205 X-Sequence-Number: 34505 The following bug has been logged on the website: Bug reference: 7620 Logged by: Greg Hazel Email address: ghazel@gmail.com PostgreSQL version: 9.2.1 Operating system: Amazon Linux Description: = array_to_json(ARRAY['foo', 100, true]) complains because arrays can't have mixed types, but json arrays can. So, it's not possible to form a heterogeneous json array, when this is often desired.