>> The right way IMHO would be to give views another relkind.
> This appeals to me.
I like it too. Aside from the advantages Jan mentioned, we could also
refrain from creating an underlying file for a view, which would be
nice to avoid cluttering the database directory.
regards, tom lane