Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id EC6D464FEED for ; Tue, 25 Nov 2008 10:11:37 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 53116-10 for ; Tue, 25 Nov 2008 10:11:35 -0400 (AST) Received: from news.hub.org (news.hub.org [200.46.204.72]) by mail.postgresql.org (Postfix) with ESMTP id 3A98564FDDF for ; Tue, 25 Nov 2008 10:11:35 -0400 (AST) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.14.1/8.14.1) with ESMTP id mAPEBTlK072548 for ; Tue, 25 Nov 2008 10:11:29 -0400 (AST) (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.14.1/8.14.1/Submit) id mAPE6GKE066769 for pgsql-admin@postgresql.org; Tue, 25 Nov 2008 10:06:16 -0400 (AST) (envelope-from news) From: =?iso-8859-2?Q?Csaba_Egy=FCd?= X-Newsgroups: pgsql.admin Subject: Separate Sessions?? (View data <-> Query tool) Date: Tue, 25 Nov 2008 15:06:23 +0100 Organization: Hub.Org Networking Services Lines: 31 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-2"; reply-type=original Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@news.hub.org X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Windows Mail 6.0.6001.18000 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18049 To: pgsql-admin@postgresql.org X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=STOX_REPLY_TYPE=0.001 X-Spam-Level: X-Archive-Number: 200811/142 X-Sequence-Number: 30796 Hi, I'm administering a Pg8.3 database with PgAdmin3. The users need views "pre" filtered on a session based vairable wich is stored in a temporary table. Immediately after logging into the database the client software creates a temporary table and stores an idin that. The users query views when they want to see the contents of a filtered table and modify the tables directly - which tables have BEFORE UPDATE/DELETE/INSERT trigers to check the existence of the Temp table and to force filter field values to be defaulted to the temporary table field. I hope it is clear... :) When I log in with PgAdmin I have to create the temp table manually. It's ok, and if I use the query tool i cansee query the views after creating the temp table. But if I want to see the contents of a view in table view (View Data-View all rows), the views are empty indicating that it lacks of the temporary table. When I view directly the table (not the view) and try to edit a field the trigger refuses it because of the lack of temp table. I guess View data function establishes a separate connection to the database to serve the query - or what?? How could I force PgAdmin3 to use the same session or how could I make the table view to see the session wide temp table which was created earlier in a query tool? Many thanks, -- Best Regards, Csaba Együd