X-Original-To: pgsql-sql-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id F14739FB388 for ; Tue, 11 Jul 2006 18:29:46 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 35448-02 for ; Tue, 11 Jul 2006 18:29:42 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from relay02.mdc.ubisoft.com (relay02.mdc.ubisoft.com [216.98.56.135]) by postgresql.org (Postfix) with ESMTP id 787839FB33E for ; Tue, 11 Jul 2006 18:29:42 -0300 (ADT) Received: from UBIMAIL1.ubisoft.org (unknown [10.129.1.15]) by smarthost.mdc.ubisoft.com (Postfix) with ESMTP id 9734F509F3 for ; Tue, 11 Jul 2006 17:29:41 -0400 (EDT) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Tue, 11 Jul 2006 17:29:40 -0400 Message-ID: <1E293D3FF63A3740B10AD5AAD88535D233E68E@UBIMAIL1.ubisoft.org> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Invalid memory alloc request size Thread-Index: AcalLDTLmm3n11w3Q9GgHeHjjuqV0A== From: "Daniel Caune" To: X-Ubisoft-MailScanner-Information: Please contact administrators@ubisoft.qc.ca X-Ubisoft-MailScanner: Found to be clean X-Ubisoft-MailScanner-SpamCheck: X-MailScanner-From: daniel.caune@ubisoft.com Subject: Invalid memory alloc request size X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200607/186 X-Sequence-Number: 25760 Hi, I'm using PostgreSQL 8.1.4 on a Linux 2.6.8-2-686-smp machine, 2 Go memory. I have a strange error "invalid memory alloc request size", when I perform the following query: =3D> select * from player where lower(username) =3D 'wario'; ERROR: invalid memory alloc request size 1918988375 where player contains a bit more than 1 million records, username is a character varying(255) not null. I have strictly no idea about what goes wrong here. Whatever operation I try to apply on the column username's value (lower, upper, length) raises such an error. I searched for some similar cases in the pgsql-sql archive but nothing really similar. Any idea? Regards, P.S.: I don't have this problem on other tables containing less data. -- Daniel CAUNE Ubisoft Online Technology (514) 490 2040 ext. 3613