PostgreSQL Bugs

Collected from the PG bugs email list.

Bug ID16112
PG Version12.0
OSlinux 2.6.32
Opened2019-11-13 12:22:07+00
Reported byBen Cornett
StatusNew

Body of first available message related to this bug follows.

The following bug has been logged on the website:

Bug reference:      16112
Logged by:          Ben Cornett
Email address:      (redacted)
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

Messages

DateAuthorSubject
2019-11-13 12:22:07+00PG Bug reporting formBUG #16112: large, unexpected memory consumption
2019-11-13 14:50:04+00Tomas VondraRe: BUG #16112: large, unexpected memory consumption
2019-11-13 17:05:28+00Andres FreundRe: BUG #16112: large, unexpected memory consumption
2019-11-13 17:21:47+00Tom LaneRe: BUG #16112: large, unexpected memory consumption
2019-11-13 17:28:03+00Tomas VondraRe: BUG #16112: large, unexpected memory consumption
2019-11-13 17:47:33+00Andres FreundRe: BUG #16112: large, unexpected memory consumption
2019-11-13 18:03:31+00Tom LaneRe: BUG #16112: large, unexpected memory consumption
2019-11-13 22:53:28+00Jeff JanesRe: BUG #16112: large, unexpected memory consumption
2019-11-13 23:04:07+00Andres FreundRe: BUG #16112: large, unexpected memory consumption
2019-11-13 23:18:27+00Tomas VondraRe: BUG #16112: large, unexpected memory consumption
2019-11-15 02:47:07+00Andres FreundRe: BUG #16112: large, unexpected memory consumption
2020-04-09 12:21:54+00Ben CornettRe: BUG #16112: large, unexpected memory consumption
2020-04-11 18:35:52+00Tomas VondraRe: BUG #16112: large, unexpected memory consumption
2020-04-20 18:55:30+00Andres FreundRe: BUG #16112: large, unexpected memory consumption
2020-04-20 19:19:13+00Tom LaneRe: BUG #16112: large, unexpected memory consumption
2020-04-23 03:00:07+00Andres FreundRe: BUG #16112: large, unexpected memory consumption