SELECT 
	STRING_AGG(
		'ALTER TABLE ' || rel.relname || ' DROP CONSTRAINT ' || con.conname,
		 ';' || E'\n' 
	) ||  ';' || E'\n'
FROM 
	pg_catalog.pg_constraint con
	LEFT JOIN pg_catalog.pg_class rel
			   ON rel.oid = con.conrelid
	LEFT JOIN pg_catalog.pg_namespace nsp
			   ON nsp.oid = connamespace
WHERE
	nsp.nspname = '<schema_name>'
	AND con.contype = 'f'

