I am looking for a solution. I am trying to truncate all the tables in my postgres database:
I am using a simple SQL script
SELECT 'TRUNCATE ' || table_name || ';'
FROM information_schema.tables WHERE table_schema='sda' AND table_type='BASE TABLE';
unfortunately it does not work because many relations do not exist.
please help. ( i am using postgresql 9.2)