B.7. PostgreSQL
Example B.23. PostgreSQL Local-TX Datasource
Important
XA Transactions are denied if
max_prepared_transactions
uses the default value (0) in PostgreSQL v8.4 and v8.2.
PostgreSQL user documentation recommends you set the
max_prepared_transactions
value to meet or exceed the value of max_connections
so every session can have a prepared transaction pending.
For more information, refer to the PostgreSQL v8.4 User Documentation, located at http://www.postgresql.org/docs/8.4/interactive/runtime-config-resource.html#GUC-MAX-PREPARED-TRANSACTIONS
Example B.24. PostgreSQL XA Datasource
This configuration works for PostgreSQL 8.x and later.