Aggregates and row types

From: Thomas Munro <thomas(dot)munro(at)enterprisedb(dot)com>
To: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Aggregates and row types
Date: 2017-03-21 23:34:17
Message-ID: CAEepm=1ecCwkEVCn2ZmEscv8KH-ULT5sFvEXsXDhVcJ=ThXFhA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

Is is expected that the first query below can be analysed and planned,
but the second can't?

explain select x from (select row(42)) s(x);

explain select count(x) from (select row(42)) s(x);
ERROR: record type has not been registered

That may be a strange thing to want to do, but it's something I
noticed and thought I'd ask about, when I was trying (and failing) to
find a query that would get transient types into a hash table in a
parallel worker for a test case yesterday.

--
Thomas Munro
http://www.enterprisedb.com

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Geoghegan 2017-03-21 23:37:22 Re: Parallel tuplesort (for parallel B-Tree index creation)
Previous Message David Steele 2017-03-21 23:26:48 Re: PATCH: Make pg_stop_backup() archive wait optional