Preprocesses multiple PostgreSQL scripts and intelligently combines them into a single script.