I
I
Introducer2018-04-26 11:48:23
SQL
Introducer, 2018-04-26 11:48:23

Does PostgreSQL allow ddl and dml in the same transaction?

If yes, are there any restrictions?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Melkij, 2018-04-26
@melkij

Yes, it does.
In some cases, it breaks transaction isolation, for example, truncate is immediately visible from concurrent transactions, but on rollback its effect will be rolled back normally.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question