Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id B76D71337B9A for ; Tue, 28 Dec 2010 09:54:53 -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 64058-06 for ; Tue, 28 Dec 2010 13:54:46 +0000 (UTC) Received: from news.hub.org (news.hub.org [200.46.204.72]) by mail.postgresql.org (Postfix) with ESMTP id 826711337B6C for ; Tue, 28 Dec 2010 09:54:46 -0400 (AST) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.14.4/8.14.4) with ESMTP id oBSDsjIV061816 for ; Tue, 28 Dec 2010 09:54:46 -0400 (AST) (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.14.4/8.14.4/Submit) id oBSDPbxj008838 for pgsql-jdbc@postgresql.org; Tue, 28 Dec 2010 09:25:37 -0400 (AST) (envelope-from news) From: Lew X-Newsgroups: pgsql.interfaces.jdbc Subject: Re: PostgreSQL Authentication and Pooling in JBoss : static 'postgres' user VS dynamic jboss user Date: Tue, 28 Dec 2010 08:26:11 -0500 Organization: albasani.net Lines: 28 Message-ID: References: <201012281200.11993.achill@matrix.gatewaynet.com> <4D19B8BA.10108@hogranch.com> <201012281405.08236.achill@matrix.gatewaynet.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit In-Reply-To: <201012281405.08236.achill@matrix.gatewaynet.com> Cancel-Lock: sha1:Oc52aBZehJQF3VzeZ6kvgeRT0+E= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7 Injection-Info: news.albasani.net; logging-data="NgtYYfUGqDzH4nPHpQ8ZP3WadQvB+AmPPpcEM1pdTURHL7SIAO5jRll9wMINCpMJEVqoojEDskax+TA+DVMQ+jQ5hV14hrRHzuI+3/F6396ieonGy1DTKoPI7sdUpsag"; mail-complaints-to="abuse@albasani.net" To: pgsql-jdbc@postgresql.org X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201012/82 X-Sequence-Number: 21320 Achilleas Mantzios wrote: > Yes that's the logic. One connection pool per user. > I find it more clever, fine grained and just better from > many perspectives (security/auditing/diagnosis/debugging being the main ones). Too clever by half. What do you do with the pool when a user is logged off for a few days, then comes back? How many pools will you have when a thousand users log off and another thousand log on? How many connections will you keep in each pool? How will the DB engine keep up with all that? I predict that you will get no increase in security or auditing capability that couldn't be handled with the conventional "one user per application" approach, and that diagnosis and debugging will be complicated in some other way, and that you'll have performance and resource issues. > We have LDAP based authentication in Jboss. And i [sic] use the very same LDAP server for postgresql authentication as well. > So i [sic] have one point of authentication for both Jboss, PostgreSQL, the very same LDAP server. > User logs in, and his credentials are delegated to PostgreSQL with *no* involvement of any application code. > So from a one-user monolithic declarative model we can go now on fully multi sql [sic] user, with *no changes* in the app, > or the .EAR configuration!!! > As we speak i [sic] am testing it with max 4 connections/user. > Both systems (postgresql [sic], jboss [sic]) support this as is, with just recompilation (postgresql) / configuration (jboss). > The main question is twofold: If any one has any theoretical objections to this model, > and 2nd if anyone has encountered any problems by using this or smth [sic] similar. -- Lew Ceci n'est pas une pipe.