Robert Haas <robertmhaas(at)gmail(dot)com> writes:
> rhaas=# create or replace view foo (x) AS (select 1 union all select 2);
> CREATE VIEW
> rhaas=# select * from foo where false;
> The connection to the server was lost. Attempting reset: Failed.
Ugh. I'm about to leave for the day, but I'll take a look later.
regards, tom lane