Re: How to make the user-defined function or type being accessed in the global database server?

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: How to make the user-defined function or type being accessed in the global database server?
Дата
Msg-id 4D60DC69.5000102@enterprisedb.com
обсуждение исходный текст
Ответ на How to make the user-defined function or type being accessed in the global database server?  ("页公倒龙" <77287991@qq.com>)
Список pgsql-hackers
On 20.02.2011 08:03, 页公倒龙 wrote:
> Hello, I had defined user-defined function and type in database A by using user Root.when i want to access the
functionand type in another database B by using the same user Root, but found that i could't access them. How to make
theuser-defined function or type being accessed in the global database server?
 

You can't. The user-defined function and type need to be created 
separately in each database.

You can, however, create them in the 'template1' database *before* 
creating the other databases. That way they are automatically copied to 
database you create. See 
http://www.postgresql.org/docs/9.0/interactive/manage-ag-templatedbs.html.

--   Heikki Linnakangas  EnterpriseDB   http://www.enterprisedb.com


В списке pgsql-hackers по дате отправления:

Предыдущее
От: "页公倒龙"
Дата:
Сообщение: How to make the user-defined function or type being accessed in the global database server?
Следующее
От: Radosław Smogura
Дата:
Сообщение: Void binary patch