template1=# create table aa (a int);
CREATE TABLE
template1=# create view aav as select * from aa where a > 10;
CREATE VIEW
template1=# select * from aav;
ERROR: cache lookup failed for function 0
template1=# explain verbose create view aav as select * from aa where a > 10;
ERROR: syntax error at or near "view"
test=# create table aa (a int);
CREATE TABLE
test=# create view aav as select * from aa where a > 10;
CREATE VIEW
test=# select * from aav;
a
---
(0 rows)