title: Is it possible to wrap DDL changes in a transaction in PostgreSQL?
body: <p>I know that in MySQL ddl statements such as alter table/create table/etc cause an implicit transaction commit.  </p>
  
  <p>As we are moving to PostgreSQL is it possible to wrap multiple DDL statments in a transaction?  </p>
  
  <p>This would make migration scripts a lot more robust, a failed DDL change would cause everything to rollback.</p>