Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1atZ3q-0005yr-Gp for pgsql-general@arkaria.postgresql.org; Fri, 22 Apr 2016 11:15:46 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1atZ3q-0004Sg-38 for pgsql-general@arkaria.postgresql.org; Fri, 22 Apr 2016 11:15:46 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1atZ1a-0001rh-8a for pgsql-general@postgresql.org; Fri, 22 Apr 2016 11:13:26 +0000 Received: from mailout.easymail.ca ([64.68.201.169]) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1atZ1S-00019E-PM for pgsql-general@postgresql.org; Fri, 22 Apr 2016 11:13:24 +0000 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id 2B45EA1598; Fri, 22 Apr 2016 07:13:16 -0400 (EDT) X-Virus-Scanned: Debian amavisd-new at mailout.easymail.ca X-Spam-Flag: NO X-Spam-Score: -3.794 X-Spam-Level: X-Spam-Status: No, score=-3.794 required=5 tests=[ALL_TRUSTED=-1.8, AWL=-0.087, BAYES_00=-2.599, DNS_FROM_AHBL_RHSBL=0.692] Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (easymail-mailout.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NpKCA0QDmMUV; Fri, 22 Apr 2016 07:13:15 -0400 (EDT) Received: from [192.168.2.118] (unknown [8.39.228.5]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mailout.easymail.ca (Postfix) with ESMTPSA id 8E548A156E; Fri, 22 Apr 2016 07:13:15 -0400 (EDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) Subject: Re: different empty array syntax requirements From: Scott Ribe In-Reply-To: <57gu64mgblimccc593b7357u.1461291904081@email.android.com> Date: Fri, 22 Apr 2016 05:13:13 -0600 Cc: Postgresql General Content-Transfer-Encoding: quoted-printable Message-Id: References: <57gu64mgblimccc593b7357u.1461291904081@email.android.com> To: Alvaro Aguayo Garcia-Rada X-Mailer: Apple Mail (2.2104) X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-general Precedence: bulk Sender: pgsql-general-owner@postgresql.org On Apr 21, 2016, at 8:25 PM, Alvaro Aguayo Garcia-Rada wrote: >=20 > Looks like one has the appropiate cast operator, while the other hasn't. = Have you tried doing the same, on both server, on an empty database created= from template0? Excellent suggestion: pedcard=3D# create database test; CREATE DATABASE pedcard=3D# \c test SSL connection (protocol: TLSv1, cipher: DHE-RSA-AES256-SHA, bits: 256, com= pression: off) You are now connected to database "test" as user "admin". test=3D# select (ARRAY[])::text[]; ERROR: cannot determine type of empty array LINE 1: select (ARRAY[])::text[]; ^ HINT: Explicitly cast to the desired type, for example ARRAY[]::integer[]. --=20 Scott Ribe scott_ribe@elevated-dev.com http://www.elevated-dev.com/ https://www.linkedin.com/in/scottribe/ (303) 722-0567 voice --=20 Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general