pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Scott Ribe <scott_ribe@elevated-dev.com>
To: Alvaro Aguayo Garcia-Rada <aaguayo@opensysperu.com>
Cc: Postgresql General <pgsql-general@postgresql.org>
Subject: Re: different empty array syntax requirements
Date: Fri, 22 Apr 2016 05:13:13 -0600
Message-ID: <E00603DA-D7BC-4019-A8E7-D7BE843CEFD0@elevated-dev.com> (raw)
In-Reply-To: <57gu64mgblimccc593b7357u.1461291904081@email.android.com>
References: <ED37E303-1B0A-4CD8-8E1E-B9C4C2DD9A17@elevated-dev.com>
	<57gu64mgblimccc593b7357u.1461291904081@email.android.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-general>

On Apr 21, 2016, at 8:25 PM, Alvaro Aguayo Garcia-Rada <aaguayo@opensysperu.com> wrote:
> 
> 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=# create database test;
CREATE DATABASE
pedcard=# \c test
SSL connection (protocol: TLSv1, cipher: DHE-RSA-AES256-SHA, bits: 256, compression: off)
You are now connected to database "test" as user "admin".
test=# 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[].


-- 
Scott Ribe
scott_ribe@elevated-dev.com
http://www.elevated-dev.com/
https://www.linkedin.com/in/scottribe/
(303) 722-0567 voice







-- 
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general



view thread (5+ messages)  latest in thread

Message-ID: <E00603DA-D7BC-4019-A8E7-D7BE843CEFD0@elevated-dev.com>
Permalink:  ../E00603DA-D7BC-4019-A8E7-D7BE843CEFD0@elevated-dev.com/
Also on:    postgresql.org/message-id/E00603DA-D7BC-4019-A8E7-D7BE843CEFD0@elevated-dev.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: scott_ribe@elevated-dev.com, aaguayo@opensysperu.com
  Subject: Re: different empty array syntax requirements
  In-Reply-To: <E00603DA-D7BC-4019-A8E7-D7BE843CEFD0@elevated-dev.com>
  References: <ED37E303-1B0A-4CD8-8E1E-B9C4C2DD9A17@elevated-dev.com> <57gu64mgblimccc593b7357u.1461291904081@email.android.com> <E00603DA-D7BC-4019-A8E7-D7BE843CEFD0@elevated-dev.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox