Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 0F39290656E for ; Sat, 19 Nov 2011 13:45:29 -0400 (AST) Received: from news.hub.org ([200.46.204.72]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RRoyl-0002ml-Bc for pgsql-bugs@postgresql.org; Sat, 19 Nov 2011 17:45:28 +0000 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 pAJHjD7P076340 for ; Sat, 19 Nov 2011 13:45:13 -0400 (AST) (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.14.4/8.14.4/Submit) id pAJHJi2d052512 for pgsql-bugs@postgresql.org; Sat, 19 Nov 2011 13:19:44 -0400 (AST) (envelope-from news) From: lindebg X-Newsgroups: pgsql.bugs Subject: Re: BUG #6299: pg_dump, pg_dumpall - Problem with the order of backup functions Date: Sat, 19 Nov 2011 18:19:43 +0100 Organization: Hub.Org Networking Services Lines: 37 Message-ID: <4EC7E52F.1000509@gmail.com> References: <201111172054.pAHKsFc7052692@wwwmaster.postgresql.org> <15140.1321576938@sss.pgh.pa.us> <4EC767AB.4090005@gmail.com> <16935.1321716868@sss.pgh.pa.us> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@news.hub.org To: Tom Lane User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16) Gecko/20111110 Icedove/3.0.11 In-Reply-To: <16935.1321716868@sss.pgh.pa.us> To: pgsql-bugs@postgresql.org X-Archive-Number: 201111/149 X-Sequence-Number: 31744 On 11/19/2011 04:34 AM, Tom Lane wrote: > Color me skeptical. Under what conceivable use-case could you have > functions that were mutually dependent in that way? And actually did > something useful (not recurse till stack overflow) when called? > > regards, tom lane > Does this mean that this situation will not be handled by pg_dump / pg_restore? These functions do not cause a stack overflow: select fn1(); 3 select fn2(); 8 select fn3(); 5 select fn3(10); 10 It is not about to find now a practical example of use. There is always the possibility of finding another solution, without cyclical. But since PostgreSQL allows you to create such cyclically dependent functions, it should handle it in any case, also the pg_dump / pg_restore, or block the ability to create cycle-dependent functions. It's just my opinion. PostgreSQL is very good. I wish it was the most perfect. PS: Sorry if it hurt the language. I'm using Google Translate.