X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id C484F534E3 for ; Mon, 9 May 2005 09:42:49 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 11227-01 for ; Mon, 9 May 2005 12:42:39 +0000 (GMT) Received: from tigger.fuhr.org (tigger.fuhr.org [63.214.45.158]) by svr1.postgresql.org (Postfix) with ESMTP id 8F60453623 for ; Mon, 9 May 2005 09:42:38 -0300 (ADT) Received: from winnie.fuhr.org (winnie.fuhr.org [10.1.0.1]) by tigger.fuhr.org (8.13.3/8.13.3) with ESMTP id j49CgTdT016050 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 9 May 2005 06:42:32 -0600 (MDT) (envelope-from mfuhr@winnie.fuhr.org) Received: from winnie.fuhr.org (localhost [127.0.0.1]) by winnie.fuhr.org (8.13.3/8.13.3) with ESMTP id j49CgTeN042644; Mon, 9 May 2005 06:42:29 -0600 (MDT) (envelope-from mfuhr@winnie.fuhr.org) Received: (from mfuhr@localhost) by winnie.fuhr.org (8.13.3/8.13.3/Submit) id j49CgTAw042643; Mon, 9 May 2005 06:42:29 -0600 (MDT) (envelope-from mfuhr) Date: Mon, 9 May 2005 06:42:29 -0600 From: Michael Fuhr To: Vasilis Ventirozos Cc: pgsql-admin@postgresql.org Subject: Re: thats funny :) Message-ID: <20050509124229.GA42559@winnie.fuhr.org> References: <427F4446.8030808@cosmoline.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <427F4446.8030808@cosmoline.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.005 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200505/87 X-Sequence-Number: 17516 [Please use a descriptive subject -- "thats funny :)" conveys no information about the problem, and it resembles subjects seen on some viruses.] On Mon, May 09, 2005 at 02:06:46PM +0300, Vasilis Ventirozos wrote: > > hi all i created a function that restarts the server, i will show you > what i am doing The trigger function you posted is called whenever you insert a record into the favorites table, then the function inserts a record into favorites, which calls the trigger, which inserts a record, which calls the trigger, etc. Infinite recursion. -- Michael Fuhr http://www.fuhr.org/~mfuhr/