The following bug has been logged on the website:
Bug reference: 15927
Logged by: Vladimir Dobrokhotov
Email address: pm_fon(at)mail(dot)ru
PostgreSQL version: 10.1
Operating system: freebsd 11.1
Description:
create temp table ttt(a text)
...
select * from ttt where a= $1
create temp view vvv as select * from ttt where a= $1
>ERROR: bind message supplies 1 parameters, but prepared statement ""
requires 0
(there are no restrictions on specific commands in the documentation)