pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Daniel Caune <daniel.caune@ubisoft.com>
To: pgsql-sql@postgresql.org
Subject: Invalid memory alloc request size
Date: Tue, 11 Jul 2006 17:29:40 -0400
Message-ID: <1E293D3FF63A3740B10AD5AAD88535D233E68E@UBIMAIL1.ubisoft.org> (raw)

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:

=> select * from player where lower(username) = '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




Message-ID: <1E293D3FF63A3740B10AD5AAD88535D233E68E@UBIMAIL1.ubisoft.org>
Permalink:  ../1E293D3FF63A3740B10AD5AAD88535D233E68E@UBIMAIL1.ubisoft.org/
Also on:    postgresql.org/message-id/1E293D3FF63A3740B10AD5AAD88535D233E68E@UBIMAIL1.ubisoft.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: daniel.caune@ubisoft.com
  Subject: Re: Invalid memory alloc request size
  In-Reply-To: <1E293D3FF63A3740B10AD5AAD88535D233E68E@UBIMAIL1.ubisoft.org>
  References: <1E293D3FF63A3740B10AD5AAD88535D233E68E@UBIMAIL1.ubisoft.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox