Re: [GENERAL] intarray index vs gin index

2007-02-09 Thread Teodor Sigaev
intarray. My question is whether I still should use intarray for 
indexing (if yes then either I should use GIST or GIN) or maybe GIN 
index is faster than GIST+intarray / GIN+intarray.

Yes, with intarray you can use GiST/GIN indexes which you wish

--
Teodor Sigaev   E-mail: [EMAIL PROTECTED]
   WWW: http://www.sigaev.ru/

---(end of broadcast)---
TIP 9: In versions below 8.0, the planner will ignore your desire to
  choose an index scan if your joining column's datatypes do not
  match


[GENERAL] intarray index vs gin index

2007-02-09 Thread Marek Lewczuk

Hello,
I'm trying to update my database to 8.2 version and have some problems 
with intarray module. As far I know PG 8.2 contains many features that 
are contained within intarray - indexing array fields (using gin), 
operators etc. Currently (in PostgreSQL 8.1) I'm using intarray not only 
for indexing (but this is the main feature) but also I'm using functions 
(like count, sort...) and operators (+, -) that are provided by 
intarray. My question is whether I still should use intarray for 
indexing (if yes then either I should use GIST or GIN) or maybe GIN 
index is faster than GIST+intarray / GIN+intarray.


Thanks in advance for reply.
ML



---(end of broadcast)---
TIP 6: explain analyze is your friend


Re: [GENERAL] intarray index

2005-11-28 Thread Oleg Bartunov

On Mon, 28 Nov 2005, Marek Lewczuk wrote:


Hello,
I have a question about IntArray contrib package. The docs says:
"...current implementation provides index support for one-dimensional array 
of

int4's - gist__int_ops, suitable for small and medium size of arrays (used on
default), and gist__intbig_ops for indexing large arrays (we use superimposed
signature with length of 4096 bits to represent sets)..."

How many elements within single array is suggested within small/medium/large 
array ? I have arrays with up to 200 elements - which index I should use ?


gist__intbig_ops



Thanks.

ML



---(end of broadcast)---
TIP 4: Have you searched our list archives?

 http://archives.postgresql.org



Regards,
Oleg
_
Oleg Bartunov, sci.researcher, hostmaster of AstroNet,
Sternberg Astronomical Institute, Moscow University (Russia)
Internet: oleg@sai.msu.su, http://www.sai.msu.su/~megera/
phone: +007(095)939-16-83, +007(095)939-23-83

---(end of broadcast)---
TIP 3: Have you checked our extensive FAQ?

  http://www.postgresql.org/docs/faq


[GENERAL] intarray index

2005-11-28 Thread Marek Lewczuk

Hello,
I have a question about IntArray contrib package. The docs says:
"...current implementation provides index support for one-dimensional 
array of
int4's - gist__int_ops, suitable for small and medium size of arrays 
(used on
default), and gist__intbig_ops for indexing large arrays (we use 
superimposed

signature with length of 4096 bits to represent sets)..."

How many elements within single array is suggested within 
small/medium/large array ? I have arrays with up to 200 elements - which 
index I should use ?


Thanks.

ML



---(end of broadcast)---
TIP 4: Have you searched our list archives?

  http://archives.postgresql.org