BUG #16112: large, unexpected memory consumption

From: PG Bug reporting form <noreply(at)postgresql(dot)org>
To: pgsql-bugs(at)lists(dot)postgresql(dot)org
Cc: ben(at)lantern(dot)is
Subject: BUG #16112: large, unexpected memory consumption
Date: 2019-11-13 12:22:07
Message-ID: 16112-4448bbf55a404189@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 16112
Logged by: Ben Cornett
Email address: ben(at)lantern(dot)is
PostgreSQL version: 12.0
Operating system: linux 2.6.32
Description:

Creation of table t1 in the query below causes the server process to consume
close to 1GB of memory. The amount of memory consumed is proportional to
the value passed to generate_series in the first query.

CREATE temp TABLE t0 AS
SELECT
i,
ARRAY[1,2,3] a
FROM GENERATE_SERIES(1, 12000000) i
;

CREATE TEMP TABLE t1 AS
SELECT
i,
x
FROM t0, UNNEST(a) x;

I observed the same behavior in other test queries that included implicit
lateral joins.

Thanks very much,
Ben

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Michael Paquier 2019-11-13 12:58:32 Re: Random crashes - segmentation fault
Previous Message Pavel Stehule 2019-11-13 10:49:58 Re: BUG #16109: Postgres planning time is high across version - 10.6 vs 10.10