Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UB6wZ-0003pt-Ut for pgsql-jdbc@arkaria.postgresql.org; Thu, 28 Feb 2013 17:06:56 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UB6wY-0008OK-OO for pgsql-jdbc@arkaria.postgresql.org; Thu, 28 Feb 2013 17:06:54 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UB4si-00019C-Ic for pgsql-jdbc@postgresql.org; Thu, 28 Feb 2013 14:54:48 +0000 Received: from mail-lb0-f169.google.com ([209.85.217.169]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UB4sg-0002Xq-95 for pgsql-jdbc@postgresql.org; Thu, 28 Feb 2013 14:54:47 +0000 Received: by mail-lb0-f169.google.com with SMTP id m4so1462014lbo.14 for ; Thu, 28 Feb 2013 06:54:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:cc :subject:content-type:content-transfer-encoding; bh=+ityBti2JzIOE86BuOPnGNradz3Fpk+cZM48I2zMNJI=; b=U9dM77ZvOrrq6lO8vSNSjqkBgGt93xuuCt/ZlbfuqiIy2D0m8cjQ/4zoUzPqrFlZS2 3YwRPMifxsAgXcQE5mitM8lvb7sMNo3yR/9H3JIIccNxMOkKVSZiU7jNJDa5cdEfRo1t t0HszpEbAsuBKX4YmZIkA48rBYh7xf06S1pVO9lTi3h/l3LoSTbCT9lwR51bg9RQkm0R WaDM8u2V3PRNThEnHSTPhA0aIR+3/3WqwZno8KYtXRybsZj0hjBoxuo+ZHgWRRq4tXoI LPfYX9XaOOJTiocikpoWuYX+ISUj4QjRg7EFTHk1sg1qYWeUNfP1ZHm28yeIl1qjiI6B tSFA== X-Received: by 10.152.144.202 with SMTP id so10mr5956390lab.9.1362063285222; Thu, 28 Feb 2013 06:54:45 -0800 (PST) Received: from [172.30.8.158] ([195.218.191.147]) by mx.google.com with ESMTPS id gm20sm4827596lab.7.2013.02.28.06.54.43 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 28 Feb 2013 06:54:43 -0800 (PST) Message-ID: <512F6F9F.9000906@gmail.com> Date: Thu, 28 Feb 2013 18:54:23 +0400 From: Andrew Frolov User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120714 Thunderbird/14.0 MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org CC: heikki.linnakangas@iki.fi Subject: PostgreSQL JDBC bug with XA recovery? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org Hi! I've encountered a problem with xa transaction recovery. PGXAConnection.recover() functions returns all pending XA transactions. But the problem is, that in general case we cannot recover this transactions in current connection, PostgreSQL require us to connect to target database before recovering. This behavior breaks the expectations of transaction managers. We literally can't perform recovery if we have a lot of pending xa transactions in different databases in PostgreSQL cluster. Maybe it would be good to replace SELECT gid FROM pg_prepared_xacts by SELECT gid FROM pg_prepared_xacts,where owner = current_user ? I found an old thread with same question, but without an answer. http://www.postgresql.org/message-id/CAPSK6ngYLaRAy_FGGQqknTPE9FUDCRn32UShxuncWEyD+swD=w@mail.gmail.com -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc