PostgreSQL Give idetifier for transaction

postgresql

Is there a way to give a identifier for Postgresql transaction.
Ex :

 begin transaction a;
 ...

If not, will this be supported in future.

I'm asking this if transaction has identifiers then true asynchronous database call will be possible with frameworks like Netty or Vert.x

Best Answer

No, you can't assign a transaction an arbitrary user-defined identifier.

Transactions already have transaction IDs, but only read/write transactions get true, persistent ones.

I'm asking this if transaction has identifiers then true asynchronous database call will be possible with frameworks like Netty or Vert.x

Having a transaction identifier would do you no good there anyway.