Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 894DA633623 for ; Mon, 16 Mar 2009 11:22:34 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 37984-02 for ; Mon, 16 Mar 2009 11:22:16 -0300 (ADT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by mail.postgresql.org (Postfix) with ESMTP id B7CF7632E6E for ; Mon, 16 Mar 2009 11:22:23 -0300 (ADT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.14.3/8.14.3) with ESMTP id n2GEMGv9014453 for ; Mon, 16 Mar 2009 11:22:16 -0300 (ADT) (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.14.3/8.14.3/Submit) id n2GE6woI093486 for pgsql-jdbc@postgresql.org; Mon, 16 Mar 2009 11:06:58 -0300 (ADT) (envelope-from news) From: "Peter" X-Newsgroups: pgsql.interfaces.jdbc References: <49b7bfef$0$1343$834e42db@reader.greatnowhere.com> <491f66a50903120342j67e87c7dob10cfdc23580c8f4@mail.gmail.com> <003001c9a315$a68a9330$f39fb990$@com> <200903121341.59498.cservin@cromagnon.com> <49bca9e8$0$1341$834e42db@reader.greatnowhere.com> <491f66a50903150409y648b448pc3825ef4fc1ed7e@mail.gmail.com> <49bcfe15$0$1344$834e42db@reader.greatnowhere.com> <49BDABC7.3030108@burntmail.com> Subject: Re: Totally weird behaviour in org.postgresql.Driver Date: Mon, 16 Mar 2009 15:50:22 +0200 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5512 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-RFC2646: Format=Flowed; Response Lines: 14 Message-ID: <49be591f$0$1348$834e42db@reader.greatnowhere.com> X-Complaints-To: usenet@greatnowhere.com To: pgsql-jdbc@postgresql.org X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200903/83 X-Sequence-Number: 19413 > Set a user variable after you've obtained a connection from the pool, and > use that to log user-specific values. That way, you maintain the benefits > of connection pools, but can still identify individual users. Do you mean setting a variable (or connection property) in Java? That wont work - I need it for much more than just auditing. There are tons of PGSQL code that relies on knowing the logged-on user, and performs complex data analysis based on that. Now, if I had a way to set user-defined variable in Postgres connection context that would work - but does not seem like PG supports it... Peter