pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dimitri Fontaine <dimitri@2ndQuadrant.fr>
To: Bruce Momjian <bruce@momjian.us>
Cc: Dwayne Towell <dwayne@docketnavigator.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #8516: Calling VOLATILE from STABLE function
Date: Fri, 11 Oct 2013 09:21:21 +0200
Message-ID: <m27gdk6zny.fsf@2ndQuadrant.fr> (raw)
In-Reply-To: <20131010231546.GB7092@momjian.us>
References: <E1VU0qE-0003bl-7o@wrigleys.postgresql.org>
	<20131010225931.GZ7092@momjian.us>
	<1c4601cec60d$ed9bfaa0$c8d3efe0$@docketnavigator.com>
	<20131010231546.GB7092@momjian.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

'Bruce Momjian' <bruce@momjian.us> 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… 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,
-- 
Dimitri Fontaine
http://2ndQuadrant.fr     PostgreSQL : Expertise, Formation et Support


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (7+ messages)  latest in thread

Message-ID: <m27gdk6zny.fsf@2ndQuadrant.fr>
Permalink:  ../m27gdk6zny.fsf@2ndQuadrant.fr/
Also on:    postgresql.org/message-id/m27gdk6zny.fsf@2ndQuadrant.fr

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: dimitri@2ndQuadrant.fr, bruce@momjian.us, dwayne@docketnavigator.com
  Subject: Re: BUG #8516: Calling VOLATILE from STABLE function
  In-Reply-To: <m27gdk6zny.fsf@2ndQuadrant.fr>
  References: <E1VU0qE-0003bl-7o@wrigleys.postgresql.org> <20131010225931.GZ7092@momjian.us> <1c4601cec60d$ed9bfaa0$c8d3efe0$@docketnavigator.com> <20131010231546.GB7092@momjian.us> <m27gdk6zny.fsf@2ndQuadrant.fr>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox