[postgres@yz219 ~]$ psql -d ambari -U ambari ambari=> \i /var/lib/ambari-server/resources/Ambari-DDL-Postgres-CREATE.sql