Transactional DDL and Rollback Safety in PostgreSQL
The objective is to guarantee that any schema modification performed within a PostgreSQL transaction can be fully undone if the transaction aborts, leaving the database in its original state. Currently PostgreSQL treats most DDL statements as auto‑committed, so they persist even when a surrounding transaction rolls back; only a subset of DDL, such as ALTER T