Stijn Sanders
Stijn Sanders

Reputation: 36850

Postgres: detect current transaction level

What's PostgreSQL's equivalent of select @@trancount?

Upvotes: 3

Views: 1719

Answers (1)

user_0
user_0

Reputation: 3363

Postgresql uses savepoints. There are not nested transactions.
And you can name them.

I suggest you to start here: http://www.postgresql.org/docs/9.5/static/sql-savepoint.html

Upvotes: 1

Related Questions