Useful PostgreSQL utilities
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

6 lines
267 B

SELECT 'SET DROP TABLE (origin=@master, id='||tab_id||'); #',tab_id,tab_nspname||'.'||tab_relname from _slony.sl_table
UNION ALL
SELECT 'SET DROP SEQUENCE (origin=@master, id='||seq_id||'); #',seq_id,seq_nspname||'.'||seq_relname from _slony.sl_sequence
order by 1