Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Peter Tse picked up on the missing ext table

...

Code Block
languagesql
titleTruncate Data Location Tables for Postgres
select 'truncate table SCHEMA.' || tablename || ';' generated_statements
from pg_catalog.pg_tables 
where schemaname = 'SCHEMA' 
and tablename not like 'dl_%'
and tablename not like 'ext_%'
and tablename like '%ENTITYNAME'
order by substr(tablename,3), tablename;

...