Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1X1uTq-00066k-24 for pgsql-odbc@arkaria.postgresql.org; Tue, 01 Jul 2014 09:36:02 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1X1uTo-0003iD-N7 for pgsql-odbc@arkaria.postgresql.org; Tue, 01 Jul 2014 09:36:00 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1X1uRJ-0003Lv-P8 for pgsql-odbc@postgresql.org; Tue, 01 Jul 2014 09:33:25 +0000 Received: from mout.kundenserver.de ([212.227.17.13]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1X1uRA-0006w1-5V for pgsql-odbc@postgresql.org; Tue, 01 Jul 2014 09:33:24 +0000 Received: from ayaki.localdomain (106-69-40-7.dyn.iinet.net.au [106.69.40.7]) by mrelayeu.kundenserver.de (node=mreue104) with ESMTP (Nemesis) id 0Mg6ir-1XGZfZ1GPF-00NT1x; Tue, 01 Jul 2014 11:33:13 +0200 Message-ID: <53B2804D.50107@2ndquadrant.com> Date: Tue, 01 Jul 2014 17:33:01 +0800 From: Craig Ringer Organization: 2nd Quadrant User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: "pgsql-odbc@postgresql.org" Subject: Enabling pgxalib.dll logging in msdtc X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:tEG0NYmCi9ftKQ7qhBuJfiqsebhRUs45BVrrjr9eBqc We3HYWdQ89UJxyj3owoPswioJqYpKVqrQ6RUKTixxK6SZXf2BG uY7jaOAa4Y9LjR6rnz3u5/iIJKYPz+/rzwAxs9IU+EPJWv19rS SZMxQYRsCwY2unHBsNBU5CHolwvipEm93dnOrXgdF05g5jdCLe Ja+r2u9hXgi5sqdQM/66RDR9uzTEWNi80kC9Jhlh/0yvhKvB6D /mzwTG2saOzuyQRz4tisdnBIATDsz6g8AaGvbT823YgmmIhE9E hxdudIU85fS8net4FiToEjlVyWpfkl3neNfcXxKKj+NnZuBchd 7/sOv35vtqOVUZzp6rPz0ZXUAxI/k9AgAGrvNlGfC X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org 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).aspx http://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