Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id 06BC4475C50 for ; Fri, 10 May 2002 00:58:06 -0400 (EDT) Received: from lucidindia.net (unknown [61.11.73.194]) by postgresql.org (Postfix) with ESMTP id 70C03475982 for ; Fri, 10 May 2002 00:57:54 -0400 (EDT) Received: from a4005 ([192.168.1.18]) by lucidindia.net (8.11.2/8.11.2) with SMTP id g4A53RB07337 for ; Fri, 10 May 2002 10:33:27 +0530 Message-ID: <001201c1f7e0$04e5ab60$1201a8c0@a4005> From: "shreedhar" To: "PostgreSQL" Subject: problem using trigger Date: Fri, 10 May 2002 10:33:26 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 X-Archive-Number: 200205/76 X-Sequence-Number: 4251 Hi All, It is not a Admin question, But it is part of Administration. I would like store details of groups as well as users in to my dummy table as i inserted into pg_user as well as pg_group. for that i created a dummy table for pg_group with same structure. gdump; i created a function aa_insertgdump with the following script No input parameters, return value is integer, language plpgsql declare gid integer; begin select max(grosysid) into gid from pg_group; insert into gdump select * from pg_group where grosysid = gid); return 1; end; I thought of executing this function using a trigger after insertion into pg_group. create trigger gdumptable after insert on pg_group for each row execute procedure aa_insertgdump(); but, it is giving error as "can't create trigger for system relation pg_group". Can any one suggest what is the solution to my problem. regards, bhaskarraju.