Re: BUG #16255: No respect for 'not materialized' on CTEs with group by - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #16255: No respect for 'not materialized' on CTEs with group by
Date
Msg-id 23590.1581520297@sss.pgh.pa.us
Whole thread Raw
In response to BUG #16255: No respect for 'not materialized' on CTEs with group by  (PG Bug reporting form <noreply@postgresql.org>)
List pgsql-bugs
PG Bug reporting form <noreply@postgresql.org> writes:
> I have an simple CTE expression with group by and a string_aggr() function,
> and Postgresql seems to materialize it anyhow, even if 'not materialized' is
> instructed. I can't see that this is documented behaviour.

Since you haven't given a concrete example, nobody else can see whether it
is either.  But in general, there is no guarantee that "NOT MATERIALIZED"
will do anything.  There are multiple conditions that will prevent
inlining a CTE, either for semantic or implementation reasons.

            regards, tom lane



pgsql-bugs by date:

Previous
From: PG Bug reporting form
Date:
Subject: BUG #16255: No respect for 'not materialized' on CTEs with group by
Next
From: Vera Gangeskar Johne
Date:
Subject: pg_dump is not backwards compatible in PG12