Find out what on what function depends an index - Mailing list pgsql-general

From Andreas Ulbrich
Subject Find out what on what function depends an index
Date
Msg-id 556C66FE.5040605@matheversum.de
Whole thread Raw
Responses Re: Find out what on what function depends an index  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
Salvete.

If I have an expression based index (a fucntion call) then the index
will become corrupt, if the function is changed. As the function
developer, I do not know, who uses the function for an index, and as the
user of the function in an index I do not know if the function is
changed. So the idea is: Have an event trigger ON ddl_command_end to do
a REINDEX; see the attached example.

The question is the todo in the script: Is there a way to find out what
indexes depends on what function?

thanks
Andreas



Attachment

pgsql-general by date:

Previous
From: Maxim Boguk
Date:
Subject: Re: Curious case of huge simple btree indexes bloat.
Next
From: Tom Lane
Date:
Subject: Re: Find out what on what function depends an index