From: Craig Ringer <craig@2ndquadrant.com>
To: pgsql-odbc@postgresql.org <pgsql-odbc@postgresql.org>
Subject: Enabling pgxalib.dll logging in msdtc
Date: Tue, 01 Jul 2014 17:33:01 +0800
Message-ID: <53B2804D.50107@2ndquadrant.com> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>
Hi all
Just for the information of the wider world, if you want to enable
logging in pgxalib.dll under MSDTC.EXE to trace psqlODBC's XA
transactions you can't just use the mylog parameter. Enabling ODBC
logging won't help either.
You must instead create the following registry key:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI\PostgreSQL]
"MsdtcLog"="1"
If your app is 32-bit on a 64-bit system (i.e. SysWow64) then you must
NOT create the key under \SysWow64\, it must be under the regular 64-bit
registry tree.
Then create C:\pgdtclog (it's hard coded to that path) and make sure
it's writable by NETWORKSERVICE. Which it should be by default.
If you're debugging MSDTC you're likely to also want the MSDTC logs.
These are separate. MSDTC produces a binary log that must be decoded
using a separate utility invoked via a batch file. See:
http://msdn.microsoft.com/en-us/library/ms684379(v=vs.85).aspxhttp://msdn.microsoft.com/en-us/library/ms678917(v=vs.85).aspx
for details.
I found that only the tracefmt.exe from the Windows 7.1 SDK worked; the
one in Visual Studio Express 2012 failed to process the MSDTC logs on
the Win2k8 R2 system I was testing on.
Please feel free to add any/all of this to the documentation if desired.
--
Craig Ringer http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
--
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: craig@2ndquadrant.com
Subject: Re: Enabling pgxalib.dll logging in msdtc
In-Reply-To: <53B2804D.50107@2ndquadrant.com>
References: <53B2804D.50107@2ndquadrant.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox