Thread: Index row requires 9324 bytes maximum size is 8191

Index row requires 9324 bytes maximum size is 8191

From
solAris23
Date:

Hello,

I am trying to index a field in my database of size about 16K rows, but i m
getting this error.

" Index row requires 9324 bytes maximum size is 8191  "

Can anyone please guide me how to remove this error....

Also, average time to search for a query in a table is taking about 15
seconds. I have done indexing but the time is not reducing.....
Is there any way to reduce the time to less than 1 sec ???
The type of indexing which I am performing on the field is btree... My field
contains large text. Is there any more suitable indexing type ??

--
View this message in context:
http://www.nabble.com/Index-row-requires-9324-bytes-maximum-size-is-8191-tp25511356p25511356.html
Sent from the PostgreSQL - performance mailing list archive at Nabble.com.


Re: Index row requires 9324 bytes maximum size is 8191

From
Euler Taveira de Oliveira
Date:
solAris23 escreveu:
> I am trying to index a field in my database of size about 16K rows, but i m
> getting this error.
>
Why are you want to index such a big field? BTW, it'll be worthless.

> " Index row requires 9324 bytes maximum size is 8191  "
>
That is a known limitation; but even if it would be possible I don't think it
would be a good idea. Why on Earth would I search using a big field?

What kind of content are you trying to index?


--
  Euler Taveira de Oliveira
  http://www.timbira.com/

Re: Index row requires 9324 bytes maximum size is 8191

From
Pavel Stehule
Date:
Hello

2009/9/18 solAris23 <vikas.kumar@dolcera.com>:
>
>
> Hello,
>
> I am trying to index a field in my database of size about 16K rows, but i m
> getting this error.
>
> " Index row requires 9324 bytes maximum size is 8191  "
>
> Can anyone please guide me how to remove this error....
>
> Also, average time to search for a query in a table is taking about 15
> seconds. I have done indexing but the time is not reducing.....
> Is there any way to reduce the time to less than 1 sec ???
> The type of indexing which I am performing on the field is btree... My field
> contains large text. Is there any more suitable indexing type ??
>

you can use hashing functions

http://www.postgres.cz/index.php/PostgreSQL_SQL_Tricks#Using_hash_functions_for_ensuring_uniqueness_of_texts

regards
Pavel Stehule

> --
> View this message in context:
http://www.nabble.com/Index-row-requires-9324-bytes-maximum-size-is-8191-tp25511356p25511356.html
> Sent from the PostgreSQL - performance mailing list archive at Nabble.com.
>
>
> --
> Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-performance
>

Re: Index row requires 9324 bytes maximum size is 8191

From
Grzegorz Jaśkiewicz
Date:
not only that's slow, but limited as you can see. Use something like:
http://gjsql.wordpress.com/2009/04/19/how-to-speed-up-index-on-bytea-text-etc/
instead.

Re: Index row requires 9324 bytes maximum size is 8191

From
Florian Weimer
Date:
* solAris:

> Also, average time to search for a query in a table is taking about 15
> seconds. I have done indexing but the time is not reducing.....
> Is there any way to reduce the time to less than 1 sec ???

How are your queries structured?  Do you just compare values?  Do you
perform range queries?  Or something like "WHERE col LIKE '%string%')?

--
Florian Weimer                <fweimer@bfk.de>
BFK edv-consulting GmbH       http://www.bfk.de/
Kriegsstraße 100              tel: +49-721-96201-1
D-76133 Karlsruhe             fax: +49-721-96201-99

Re: Index row requires 9324 bytes maximum size is 8191

From
solAris23
Date:


Euler Taveira de Oliveira-2 wrote:
>
> solAris23 escreveu:
>> I am trying to index a field in my database of size about 16K rows, but i
>> m
>> getting this error.
>>
> Why are you want to index such a big field? BTW, it'll be worthless.
>
>> " Index row requires 9324 bytes maximum size is 8191  "
>>
> That is a known limitation; but even if it would be possible I don't think
> it
> would be a good idea. Why on Earth would I search using a big field?
>
> What kind of content are you trying to index?
>
> Thanks for the feed back... Actually I want to index text field which is
> substantially big.
> As I already told in the post.. the searching takes too long.. so I want
> to index it....
>
> I went through gist and gin indexes but they are applicable for tsvector
> and tsquery i think...
>
> For me any option is fine... if i am able to get result within a
> second....
>
> Thanks.
>
>
> --
>   Euler Taveira de Oliveira
>   http://www.timbira.com/
>
> --
> Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-performance
>
>

--
View this message in context:
http://www.nabble.com/Index-row-requires-9324-bytes-maximum-size-is-8191-tp25511356p25549641.html
Sent from the PostgreSQL - performance mailing list archive at Nabble.com.