Skip site navigation (1) Skip section navigation (2)

Re: indexes on functions and create or replace function

From: Christophe <xof(at)thebuild(dot)com>
To: PGSQL General <pgsql-general(at)postgresql(dot)org>
Subject: Re: indexes on functions and create or replace function
Date: 2008-08-29 01:15:03
Message-ID: 714693CC-DD53-4657-9BEE-FCE667EEA8E7@thebuild.com (view raw or flat)
Thread:
Lists: pgsql-general
On Aug 28, 2008, at 6:10 PM, Matthew Dennis wrote:
> I'm not sure I follow.  Couldn't you track which statements were  
> prepared that called a function and either reprepare (just like  
> reindex, recheck, etc) or in the case of dropping a function,  
> refuse to drop it because something depends on it?

EXECUTE in PL/pgSQL accepts a string and executes it as a statement.  
(That's different from the SQL-level EXECUTE.) I'm not sure how one  
would track dependencies there.

In response to

Responses

pgsql-general by date

Next:From: Alvaro HerreraDate: 2008-08-29 01:51:22
Subject: Re: indexes on functions and create or replace function
Previous:From: Matthew DennisDate: 2008-08-29 01:10:14
Subject: Re: indexes on functions and create or replace function

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group