Re: invalid memory alloc request size 2147483648 using toode LIKE 'ä%'

From: "Andrus" <kobruleht2(at)hot(dot)ee>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: invalid memory alloc request size 2147483648 using toode LIKE 'ä%'
Date: 2007-07-25 09:22:07
Message-ID: f874r0$h87$1@news.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> This looks like a problem already reported, and patched here:
> http://archives.postgresql.org/pgsql-committers/2007-05/msg00088.php
> but that fix hasn't made it into any released version yet.

Thank you.

I fixed it in my application by changing index to upper() instead of lower :

CREATE UNIQUE INDEX toode_toode_unique_pattern_idx1
ON firma1.toode
USING btree
(upper(toode::text) text_pattern_ops);

and using

SELECT * FROM firma1.toode WHERE upper(toode) LIKE 'Ä%'

Will this work OK ?

Andrus.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Sorin N. Ciolofan 2007-07-25 10:14:20 granting acces to an external client
Previous Message Csaba Nagy 2007-07-25 08:29:54 Re: Delete/update with limit