From: Leo Fink <leo.fink@gmx.net>
To: pgsql-sql@postgresql.org
Subject: Re: Array of Arrays of int
Date: Mon, 2 May 2005 06:26:28 +0200
Message-ID: <60948b9fc1ee07c0f106ed4585a08f84@gmx.net> (raw)
In-Reply-To: <10431.1115007066@sss.pgh.pa.us>
References: <178c0af58f0514c54835d2e0723c525a@gmx.net>
<10431.1115007066@sss.pgh.pa.us>
Hello Tom.
Am 02.05.2005 um 06:11 schrieb Tom Lane:
> Leo Fink <leo.fink@gmx.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 ;-))
Actually, I don't. In my application I can work around the problem by
using an array of string representations of these pairs, or by using
two arrays of ints. I just thought that was less elegant and I was
missing something obvious.
Thanks for your quick response.
Best,
Leo
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: leo.fink@gmx.net
Subject: Re: Array of Arrays of int
In-Reply-To: <60948b9fc1ee07c0f106ed4585a08f84@gmx.net>
* 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