BUG #2694: Memory allocation error when selecting array of empty arrays

From: "Vitali Stupin" <Vitali(dot)Stupin(at)ria(dot)ee>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #2694: Memory allocation error when selecting array of empty arrays
Date: 2006-10-16 06:33:28
Message-ID: 200610160633.k9G6XSdt012021@wwwmaster.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


The following bug has been logged online:

Bug reference: 2694
Logged by: Vitali Stupin
Email address: Vitali(dot)Stupin(at)ria(dot)ee
PostgreSQL version: 8.1.4
Operating system: sparc-sun-solaris2.10
Description: Memory allocation error when selecting array of empty
arrays
Details:

The error "invalid memory alloc request size 4294967293" apears when
selecting array of empty arrays:

select ARRAY['{}'::text[],'{}'::text[]];

This bug can be also reproduced on:
PostgreSQL 8.1.3 on sparc-sun-solaris2.10;
PostgreSQL 8.1.3 on i686-pc-linux-gnu.

The only difference is that linux version of postgre is trying to allocate
4294967294 (or 2^32 - 2) bytes.

...Sorry for posting the same bug report for the second time, but the
previous post sent almost a month ago (bug reference 2641) still had not
appeared in bug-list.

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Jakub 2006-10-16 08:18:11 BUG #2695: Randomly repeated query execution
Previous Message David Fetter 2006-10-16 04:41:58 Re: BUG #2683: spi_exec_query in plperl returns column names which are not marked as UTF8