How do I list all views for a database using an SQL command in PostgreSQL?
I would like something similar to output of the psql \dv
command, but preferably just a list of view names. e.g.,
SELECT ...;
my_view_1
my_view_2
my_view_3
I'm running PostgreSQL v9.1.4 on Ubuntu Linux.
Best Answer
From the documentation:
If you don't want the system views is your result, try this: