Re: »Ø¸´£º [GENERAL] How to make the user-defined function or type beingaccessed in the global database server? - Mailing list pgsql-general

From John R Pierce
Subject Re: »Ø¸´£º [GENERAL] How to make the user-defined function or type beingaccessed in the global database server?
Date
Msg-id 4D62285B.9090208@hogranch.com
Whole thread Raw
In response to 回复: [GENERAL] How to make the user-defined function or type beingaccessed in the global database server?  ("页公倒龙" <77287991@qq.com>)
List pgsql-general
On 02/19/11 10:13 PM, 页公倒龙 wrote:
> Thanks for your replying. But actually there are some difference
> database now, and I really want to define the user-defined function or
> type one time so that they can be accessed as system-defined function
> or type, how can I do? Thanks!
>

an alternative might be to define your functions in the template
database used to create your other databases, then it will be copied
into each of them at CREATE DATABASE time.

this of course is of no use if these databases already exist.




pgsql-general by date:

Previous
From: Craig Ringer
Date:
Subject: Re: »Ø¸´£º [GENERAL] How to make the user-defined function or type beingaccessed in the global database server?
Next
From: Yan Cheng CHEOK
Date:
Subject: Drop CHECK Constraint