Re: indexes on functions and create or replace function - Mailing list pgsql-general

From Matthew Dennis
Subject Re: indexes on functions and create or replace function
Date
Msg-id e94d85500808281749p52edb592q914f23baefa1ec93@mail.gmail.com
Whole thread Raw
In response to Re: indexes on functions and create or replace function  (Christophe <xof@thebuild.com>)
Responses Re: indexes on functions and create or replace function
List pgsql-general
On Thu, Aug 28, 2008 at 5:32 PM, Christophe <xof@thebuild.com> wrote:
On Aug 28, 2008, at 3:21 PM, Matthew Dennis wrote:
I have no doubt that someone would complain about it, but I think it's better than the alternative.

Determining if changing any function will cause an index to break is not a straight-forward problem.  I don't believe that PG right now keeps a graph of which functions call which, so replacing a function deep in the logical calling hierarchy could break the index as easily as one mentioned at the top.

Yes, I can see that would indeed be a problem.  Are there future plans to start tracking such dependencies?  It seems like it would be a good idea in general.

pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: ERROR: relation . . . does not exist
Next
From: "Matthew Dennis"
Date:
Subject: Re: indexes on functions and create or replace function