You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ClinicalTrialsDataProcessing/export/export_data_postgres_materi...

7 lines
208 B
SQL

SELECT
'CREATE OR REPLACE MATERIALIZED VIEW ' || schemaname || '.' || viewname || ' AS ' || definition
FROM pg_views
WHERE schemaname != 'pg_catalog'
and schemaname != 'information_schema'
;