From: | Thomas Munro <thomas(dot)munro(at)enterprisedb(dot)com> |
---|---|
To: | Mark Dilger <hornschnorter(at)gmail(dot)com> |
Cc: | PostgreSQL mailing lists <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: dsa_allocate could not find 4 free pages |
Date: | 2017-12-05 19:25:18 |
Message-ID: | CAEepm=0hhVnXAFrG_mu0_UDVAtwi7-ZRk=XQ_HB7LwQYo5HVPw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Wed, Dec 6, 2017 at 6:17 AM, Mark Dilger <hornschnorter(at)gmail(dot)com> wrote:
> I'm not asking for help configuring my system. If this is a run of the mill out of memory
> type error, I'll deal with it myself. But if this indicates a bug, I'll be happy to try to distill
> what I'm doing to a test case that I can share. (I've only hit this once, and have little
> idea whether it would be reproducible.) The gist of the query was an array_agg over
> the results of a parallel query over a partitioned table, executed from within a plpgsql
> function, like:
>
> SELECT ARRAY_AGG((a, latest, timelogged, b, cnt)::custom_composite_type) AS trans FROM
> (SELECT a, b, timelogged, MAX(timelogged) OVER (PARTITION BY a) AS latest, SUM(cnt) AS cnt FROM
> (SELECT a, b, timelogged, COUNT(*) AS cnt
> FROM mytable
> WHERE a= ANY('{65537,65538,65539,65540,65541,65542,65543,65544}'::OID[])
> AND timelogged >= '2017-12-04 16:12:50-08'::TIMESTAMP
> AND timelogged < '2017-12-04 17:12:50-08'::TIMESTAMP
> GROUP BY a, b, timelogged
> ) AS ss
> GROUP BY a, b, timelogged
> ) AS s
Hi Mark,
Does the plan have multiple Gather nodes with Parallel Bitmap Heap Scan?
--
Thomas Munro
http://www.enterprisedb.com
From | Date | Subject | |
---|---|---|---|
Next Message | Robert Haas | 2017-12-05 19:40:34 | Re: explain analyze output with parallel workers - question about meaning of information for explain.depesz.com |
Previous Message | Tom Lane | 2017-12-05 18:55:36 | Re: Usage of epoch in txid_current |