"Go" PostgreSQL Distributed transaction Configuration

Source: Internet
Author: User
Tags postgresql

XA is the Distributed transaction Processing specification proposed by Open Group, JTA supports XA specification, JTA only specifies interfaces, some application containers provide implementations, and some three-party open source implementations are available, such as Atomikos.

If PostgreSQL participates in Distributed transaction (XA) processing, you need to set the Max_prepared_transactions parameter in configuration file postgres.conf, which is used to specify the maximum number of two-step commit preparation transactions in a distributed transaction. The default value is 0, and distributed transactions are not supported at this time.

The max_prepared_transactions parameter value should not be less than the Max_connections parameter value, so that each session can have at least one prepared transaction available.

12 max_connections = 100max_prepared_transactions = 100

If you have a standby server, both parameter values on the standby server cannot be smaller than the corresponding values on the master server.

"Go" PostgreSQL Distributed transaction Configuration

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.