Values larger than 1/3 of a buffer page cannot be indexed (hstore)

From: Stefan Keller <sfkeller(at)gmail(dot)com>
To: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Values larger than 1/3 of a buffer page cannot be indexed (hstore)
Date: 2011-04-30 23:34:33
Message-ID: BANLkTi==EfQvKe66u2PR8wkMCfumJGYMUw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

2011/3/13 Viktor Nagy <viktor(dot)nagy(at)toolpart(dot)hu>
> when trying to insert a long-long value, I get the following error:
>
> ERROR: Index row size 3120 exceeds maximum 2712 for index "ir_translation_ltns"
> HINT: Values larger than 1/3 of a buffer page cannot be indexed.
> Consider a function index of an MD5 hash of the value, or use full text indexing.

I get the same error but I'm using a hstore attribute (called 'tags').

Unfortunately, the trick with the MD5 function index does not work neither:

CREATE INDEX planet_osm_point_tags
ON planet_osm_point ((md5(tags)));
ERROR: Funktion md5(hstore) does not exist
SQL state: 42883

Any ideas on how to index my hstore attribute?

Yours, S.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Rob Sargent 2011-04-30 23:35:43 Re: histogram
Previous Message David Johnston 2011-04-30 21:41:52 Re: histogram