CREATE OR REPLACE FUNCTION public.list_views()
RETURNS TABLE (table_schema text, table_name text)
LANGUAGE sql
STABLE
AS $$
  SELECT table_schema, table_name
  FROM information_schema.views
  WHERE table_schema NOT in ('pg_catalog', 'information_schema')
  ORDER BY table_schema, table_name;
$$;

