How To Generate Script In Postgresql