From: | Oleg Bartunov <oleg(at)sai(dot)msu(dot)su> |
---|---|
To: | Achilleus Mantzios <rnd(at)gatewaynet(dot)com> |
Cc: | <pgsql-sql(at)postgresql(dot)org>, <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Arrays Question |
Date: | 2002-01-25 18:10:47 |
Message-ID: | Pine.GSO.4.33.0201252110180.19023-100000@ra.sai.msu.su |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-sql |
Check contrib/intarray for indexed access methods to arrays of integers.
Oleg
On Fri, 25 Jan 2002, Achilleus Mantzios wrote:
> Hi
> Is it possible to have subarrays from an array constant??
> Is it possible to have indices on arrays??
>
> For the first here it is whats on 7.1.2:
>
> dynacom=# select '{1,2,3}'::_int4 ;
> ?column?
> ----------
> {1,2,3}
> (1 row)
>
> dynacom=#
>
> dynacom=# select '{1,2,3}[1:2]'::_int4 ;
> ?column?
> ----------
> {1,2,3}
> (1 row)
>
> dynacom=#
>
> What would someone expect is the select to return {1,2}.
>
> Any one has a clue???
>
> If postgresql had this feature along with the indexing on arrays, that would
> make it (not that it is not allready!) the perfect candidate for tree
> manipulation.
>
> Thanx in advance
>
Regards,
Oleg
_____________________________________________________________
Oleg Bartunov, sci.researcher, hostmaster of AstroNet,
Sternberg Astronomical Institute, Moscow University (Russia)
Internet: oleg(at)sai(dot)msu(dot)su, http://www.sai.msu.su/~megera/
phone: +007(095)939-16-83, +007(095)939-23-83
From | Date | Subject | |
---|---|---|---|
Next Message | Frank Joerdens | 2002-01-25 18:17:58 | Re: Problems with initdb on Cygwin |
Previous Message | Tom Lane | 2002-01-25 17:55:03 | Re: Problems with initdb on Cygwin |
From | Date | Subject | |
---|---|---|---|
Next Message | alexandre paes :: aldeia digital | 2002-01-25 18:32:07 | Re: LIMIT Optimization |
Previous Message | Tom Lane | 2002-01-25 17:58:16 | Re: LIMIT Optimization |