Change stored procedures schema name - Mailing list pgsql-admin

From Mainor Alonso Morales González
Subject Change stored procedures schema name
Date
Msg-id 4A7B3BD9.5060402@ncq.co.cr
Whole thread Raw
Responses Re: Change stored procedures schema name  (Alvaro Herrera <alvherre@commandprompt.com>)
Re: Change stored procedures schema name  (Lennin Caro <lennin.caro@yahoo.com>)
List pgsql-admin
There exist any way to change the name of my stored procedures schemas but the code used inside of them???
for example:

I have this stored procedure:

CREATE OR REPLACE FUNCTION schema1.example(double precision) RETURNS numeric AS
$BODY$
DECLARE
    pIn    ALIAS FOR $1;   
BEGIN
    insert into schema1.table values(pIn,0); --this is just an example :)
    return 0;
END;
$BODY$
LANGUAGE 'plpgsql' VOLATILE

If I change the schema name using PGADMIN it just change this part:

    CREATE OR REPLACE FUNCTION new_schema.example(double precision) RETURNS numeric AS
    ...........

I'm asking about any way to change the schema of the command inside of the code automatically, because I have many
stored procedure in the database (about 63) and this process could take so much time, I hope had been clear, sorry about
my bad english :S


--
Attachment

pgsql-admin by date:

Previous
From: Steve Crawford
Date:
Subject: Re: error from postgresql 8.4.0 after a dump/restore from 8.3.5
Next
From: Alvaro Herrera
Date:
Subject: Re: Change stored procedures schema name