Transactions and the Two-Phase commit protocol

@daschl My point is that I would like to have a distributed transaction between a PostgreSQL database and a Couchbase bucket. I’m using the .NET SDK by the way.

I’m confused about the reference to the 2PC protocol in the documentation about transactional logic. I need to write a very basic .NET resource manager for Couchbase in order to enlist in this distributed transaction, Prepare it (Phase 1) and finally Commit or Rollback (Phase 2).

Thanks in advance.