BUG #8573: int4range memory consumption - Mailing list pgsql-bugs

From g.vanluffelen@qipc.com
Subject BUG #8573: int4range memory consumption
Date
Msg-id E1VcC7Y-0006Tl-He@wrigleys.postgresql.org
Whole thread Raw
List pgsql-bugs
The following bug has been logged on the website:

Bug reference:      8573
Logged by:          Godfried Vanluffelen
Email address:      g.vanluffelen@qipc.com
PostgreSQL version: 9.3.1
Operating system:   Windows 7 64 bit
Description:

int4range ( and any other range function) consumes much memory when used in
a select statement on a big table.


steps to reproduce:
-generate or use a table with 10M+ rows with 2 columns that are usable to
create a range. For example 1 column with negative numbers, and one with
positive numbers.


-invoke a simple select statement where you create a range of 2 columns. For
example select int4range(col1,col2) from table.


-memory builds up until the query is finished, or when out of memory error
occurs.

pgsql-bugs by date:

Previous
From: Patrick Lademan
Date:
Subject: Re: BUG #8343: plperl/plperlu Install Fails
Next
From: Tom Lane
Date:
Subject: Re: BUG #8572: Combination of SET TIME ZONEs and CAST gives wrong results