Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 6592D133740B for ; Tue, 28 Dec 2010 06:00:22 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 62522-04 for ; Tue, 28 Dec 2010 10:00:15 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from smadev.internal.net (host3.dynacom.ondsl.gr [62.103.35.211]) by mail.postgresql.org (Postfix) with ESMTP id C94901336FA7 for ; Tue, 28 Dec 2010 06:00:14 -0400 (AST) Received: from smadev.internal.net (localhost.internal.net [127.0.0.1]) by smadev.internal.net (8.14.2/8.14.2) with ESMTP id oBSA0CZW091004 for ; Tue, 28 Dec 2010 12:00:12 +0200 (EET) (envelope-from achill@matrix.gatewaynet.com) Received: from localhost (localhost [[UNIX: localhost]]) by smadev.internal.net (8.14.2/8.14.2/Submit) id oBSA0CKW091003 for pgsql-jdbc@postgresql.org; Tue, 28 Dec 2010 12:00:12 +0200 (EET) (envelope-from achill@matrix.gatewaynet.com) From: Achilleas Mantzios Organization: Dynacom Tankers Mgmt To: pgsql-jdbc@postgresql.org Subject: PostgreSQL Authentication and Pooling in JBoss : static 'postgres' user VS dynamic jboss user Date: Tue, 28 Dec 2010 13:00:11 +0300 User-Agent: KMail/1.9.7 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <201012281200.11993.achill@matrix.gatewaynet.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.451 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RCVD_IN_BRBL_LASTEXT=1.449 X-Spam-Level: X-Archive-Number: 201012/79 X-Sequence-Number: 21317 Hello, and merry xmas, Traditionally we have been using jboss JCA pools with postgresql by having every connection authenticate against the static postgres user, or 3 other predifined static users. This was working ok, but made debugging hard, there was no way to confidently link log from the jboss log with log from postgresql, or just find out which user causes a faulty situation. The pgsql user was also one of those 4. Lately i have been thinking of authenticating the connections in jboss JCA pools against the active web user, i configured it, and it actually works in some tests i made. I find this more attractive, since it will give much better statistics, ( i would trust pgsql stats over jboss stats). What i'd like to ask, is if anyone of you has done this and had a good experience. The resaons why i ask, is that documentation in jboss is minimal regarding this issue, and the commonly usual practice is to use the same user when creating connections in the pool. I should ask the jboss ppl as well, but my experiences on their camp were not very encouraging (i never got any serious feedback from there). Well, i'd just like to hear your thoughts on that. -- Achilleas Mantzios