Skip site navigation (1) Skip section navigation (2)

Re: Array of Arrays of int

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Leo Fink <leo(dot)fink(at)gmx(dot)net>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Array of Arrays of int
Date: 2005-05-02 04:11:06
Message-ID: 10431.1115007066@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-sql
Leo Fink <leo(dot)fink(at)gmx(dot)net> writes:
> Why does
> select array(select array[1,2]);
> give me an error: "could not find array type for data type integer[]"?

We don't do arrays of arrays.  You seem to be hoping for a 2-D array,
which is something fundamentally different (even though some programming
languages consider them the same ;-))

			regards, tom lane

In response to

Responses

pgsql-sql by date

Next:From: hatuanDate: 2005-05-02 04:15:04
Subject: Re: Division in Postgre
Previous:From: Enrico WeigeltDate: 2005-05-02 03:55:53
Subject: Re: pgtop, display PostgreSQL processes in `top' style

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group