"Chris Fischer" <Chris(dot)Fischer(at)channeladvisor(dot)com> writes:
> I'm attempting to write a function which produces a script. The script
> will contain steps necessary to drop/recreate all the functions.
If you're trying to modify functions that are in live use, don't drop
them. Just apply CREATE OR REPLACE FUNCTION. This avoids breaking
cached plans that refer to the function(s) by OID.
regards, tom lane
In response to
pgsql-general by date
|Next:||From: Ed L.||Date: 2007-03-07 20:10:19|
|Subject: Re: invalid page header in pg_statistic|
|Previous:||From: Chris Fischer||Date: 2007-03-07 17:28:57|
|Subject: "Cache lookup failed for function" when recreating procs|