Is there an easy way to see the code used to create a view using the PostgreSQL command-line client?
Something like the SHOW CREATE VIEW from MySQL.
SHOW CREATE VIEW
select definition from pg_views where viewname = 'my_view'