You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Drop all tables of the current schema of the current database,
DO $$ DECLARE
r RECORD;
BEGIN
FOR r IN (SELECT tablename FROM pg_tables WHERE schemaname = current_schema()) LOOP
EXECUTE 'DROP TABLE '|| quote_ident(r.tablename) ||' CASCADE';
END LOOP;
END $$;
pg_dump "dbname=abc host=abc user=abc password=abc port=123" --no-owner > abc.sql