Hi,
Here is an updated patch which adds some simple syntax for adding the optimization barrier. For example:
WITH x AS MATERIALIZED ( SELECT 1)SELECT * FROM x;
Andreas