Limits on PostgreSQL schema changes inside transactions?

后端 未结 5 1289
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-11 09:59

My database background is with Oracle, so I was surprised to discover that Postgres includes schema changes in transactions - if you begin one, create a table and then rollb

5条回答
  •  爱一瞬间的悲伤
    2021-01-11 10:43

    • nextval and setval operations on sequences are never rolled back.
    • REINDEX DATABASE
    • REINDEX SYSTEM

    There's an article about transactional DDL on the PostgreSQL Wiki

提交回复
热议问题