Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VUX2X-0000J9-My for pgsql-bugs@arkaria.postgresql.org; Fri, 11 Oct 2013 07:21:37 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VUX2W-0006iw-O0 for pgsql-bugs@arkaria.postgresql.org; Fri, 11 Oct 2013 07:21:36 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VUX2U-0006in-ME for pgsql-bugs@postgresql.org; Fri, 11 Oct 2013 07:21:34 +0000 Received: from acidenitrix.villemain.org ([91.121.90.165]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VUX2Q-0005R2-4I for pgsql-bugs@postgresql.org; Fri, 11 Oct 2013 07:21:34 +0000 Received: from 56.129.88.79.rev.sfr.net ([79.88.129.56] helo=Dimitris-MacBook-Air.local) by acidenitrix.villemain.org with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1VUX2O-000783-24; Fri, 11 Oct 2013 09:21:28 +0200 From: Dimitri Fontaine To: 'Bruce Momjian' Cc: Dwayne Towell , pgsql-bugs@postgresql.org Subject: Re: BUG #8516: Calling VOLATILE from STABLE function Organization: 2ndQuadrant References: <20131010225931.GZ7092@momjian.us> <1c4601cec60d$ed9bfaa0$c8d3efe0$@docketnavigator.com> <20131010231546.GB7092@momjian.us> User-Mail-Address: dimitri@2ndQuadrant.fr Date: Fri, 11 Oct 2013 09:21:21 +0200 In-Reply-To: <20131010231546.GB7092@momjian.us> (Bruce Momjian's message of "Thu, 10 Oct 2013 19:15:46 -0400") Message-ID: User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3 (darwin) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 'Bruce Momjian' writes: > Well, we can't walk the function tree to know all called functions, and > those they call, so we don't even try. Inter function dependencies is a hard topic indeed. I still would like to see some kind of progress being made someday. The general case is turing complete tho, because you can use EXECUTE against programatically generated SQL. You could even generate a CREATE FUNCTION command from within a PL function and EXECUTE it then call the created function=E2=80=A6 and I think= I've seen people do that in the past. Still some kind of limited in scope static analysis for the cases where it's possible to do so would be great. With pg_depend tracking so that you know you're doing something wrong at DROP FUNCTION time. Regards, --=20 Dimitri Fontaine http://2ndQuadrant.fr PostgreSQL : Expertise, Formation et Support --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs