Skip to content

Instantly share code, notes, and snippets.

@david-pm
Created June 11, 2016 04:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save david-pm/dad30dc33248acf14c9a438f0a4e2af6 to your computer and use it in GitHub Desktop.
Save david-pm/dad30dc33248acf14c9a438f0a4e2af6 to your computer and use it in GitHub Desktop.
get a list of all custom SQL views in postgres
SELECT table_name
FROM INFORMATION_SCHEMA.views
WHERE table_schema = ANY (current_schemas(false));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment