2010-10-21 59 views
3

有可能從一個架構移動表到另一個:功能移動到另一個模式

update table my_table set schema different_schema; 

但是,我找不到等效特點從一個模式移動功能到另一個。

我該怎麼做?

(版本8.3+)

+0

優選沒有降/創建 – pstanton 2010-10-21 20:55:32

+0

我就遇到了這個有用的帖子近日,[但要一次把所有的功能需要] (http://stackoverflow.com/questions/19148055/change-schema-of-multiple-postgresql-functions-in-one-operation)。也許這可以幫助處於相同情況的人。 – 2013-10-02 22:51:55

回答

6

docs摘自:

ALTER FUNCTION name ([ [ argmode ] [ argname ] argtype [, ...] ]) 
SET SCHEMA new_schema 
+0

啊!忘記了紀念碑;) – pstanton 2010-10-21 21:18:03