pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedGlobal / cluster-wide functions
3+ messages / 3 participants
[nested] [flat]
* Global / cluster-wide functions
@ 2008-05-16 21:12 kevin kempter <kevin@kevinkempterllc.com>
2008-05-16 21:25 ` Re: Global / cluster-wide functions Joshua D. Drake <jd@commandprompt.com>
0 siblings, 1 reply; 3+ messages in thread
From: kevin kempter @ 2008-05-16 21:12 UTC (permalink / raw)
To: pgsql-admin
Hi List;
Can I install a PL/pgSQL function so it's global to all databases
within a cluster or do I need to install per database ?
Thanks in advance
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Global / cluster-wide functions
2008-05-16 21:12 Global / cluster-wide functions kevin kempter <kevin@kevinkempterllc.com>
@ 2008-05-16 21:25 ` Joshua D. Drake <jd@commandprompt.com>
2008-05-19 15:07 ` Re: Global / cluster-wide functions Chander Ganesan <chander@otg-nc.com>
0 siblings, 1 reply; 3+ messages in thread
From: Joshua D. Drake @ 2008-05-16 21:25 UTC (permalink / raw)
To: kevin kempter <kevin@kevinkempterllc.com>; +Cc: pgsql-admin
On Fri, 16 May 2008 15:12:02 -0600
kevin kempter <kevin@kevinkempterllc.com> wrote:
> Hi List;
>
> Can I install a PL/pgSQL function so it's global to all databases
> within a cluster or do I need to install per database ?
>
Install it into template1 then each database created after that will
have the function.
Joshua D. Drake
>
> Thanks in advance
>
--
The PostgreSQL Company since 1997: http://www.commandprompt.com/
PostgreSQL Community Conference: http://www.postgresqlconference.org/
United States PostgreSQL Association: http://www.postgresql.us/
Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate
Attachments:
signature.asc (application/pgp-signature, 188B) download
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Global / cluster-wide functions
2008-05-16 21:12 Global / cluster-wide functions kevin kempter <kevin@kevinkempterllc.com>
2008-05-16 21:25 ` Re: Global / cluster-wide functions Joshua D. Drake <jd@commandprompt.com>
@ 2008-05-19 15:07 ` Chander Ganesan <chander@otg-nc.com>
0 siblings, 0 replies; 3+ messages in thread
From: Chander Ganesan @ 2008-05-19 15:07 UTC (permalink / raw)
To: Joshua D. Drake <jd@commandprompt.com>; +Cc: kevin kempter <kevin@kevinkempterllc.com>; pgsql-admin
Joshua D. Drake wrote:
> On Fri, 16 May 2008 15:12:02 -0600
> kevin kempter <kevin@kevinkempterllc.com> wrote:
>
>
>> Hi List;
>>
>> Can I install a PL/pgSQL function so it's global to all databases
>> within a cluster or do I need to install per database ?
>>
>>
>
> Install it into template1 then each database created after that will
> have the function.
>
As a corollary to that, you'll need to create the function in all
existing databases, since changes to the template database only apply to
new databases.
--
Chander Ganesan
Open Technology Group, Inc.
One Copley Parkway, Suite 210
Morrisville, NC 27560
919-463-0999/877-258-8987
http://www.otg-nc.com
Ask me about OTG's expert PostgreSQL, PostGIS, and other Open Source training offerings.
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2008-05-19 15:07 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2008-05-16 21:12 Global / cluster-wide functions kevin kempter <kevin@kevinkempterllc.com>
2008-05-16 21:25 ` Joshua D. Drake <jd@commandprompt.com>
2008-05-19 15:07 ` Chander Ganesan <chander@otg-nc.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox