Re: 回复: [GENERAL] How to make the user-defined function or type beingaccessed in the global database server?

From: John R Pierce <pierce(at)hogranch(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: 回复: [GENERAL] How to make the user-defined function or type beingaccessed in the global database server?
Date: 2011-02-21 08:54:51
Message-ID: 4D62285B.9090208@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Yan Cheng CHEOK 2011-02-21 09:39:10 Drop CHECK Constraint
Previous Message Craig Ringer 2011-02-21 08:42:47 Re: 回复: [GENERAL] How to make the user-defined function or type beingaccessed in the global database server?