Re: How to automatically propagate new/changed database functions from one database to another

From: "Atul Chojar" <achojar(at)airfacts(dot)com>
To: <jd(at)commandprompt(dot)com>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: How to automatically propagate new/changed database functions from one database to another
Date: 2009-06-05 21:17:04
Message-ID: 004701c9e622$f9eac900$edc05b00$@com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-general

Could you give some examples of such utilities?

Thanks!
atul

-----Original Message-----
From: pgsql-general-owner(at)postgresql(dot)org
[mailto:pgsql-general-owner(at)postgresql(dot)org] On Behalf Of Joshua D. Drake
Sent: Friday, June 05, 2009 1:37 PM
To: Atul Chojar
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: [GENERAL] How to automatically propagate new/changed database
functions from one database to another

On Fri, 2009-06-05 at 13:12 -0400, Atul Chojar wrote:
> We want to implement a mechanism by which if any database function is
> created or modified in one database, then the same should
> automatically get done in another (1 or more) database(s).
>
>
>
> It seems triggers on system catalogs like pg_proc are not allowed. Is
> there any way in postgres to do this, by some other way?

This is the wrong away to go about it. You should put this into your
development process not within the database itself. There are a number
of utilities that would allow you to do such a thing.

Joshua D. Drake

--
PostgreSQL - XMPP: jdrake(at)jabber(dot)postgresql(dot)org
Consulting, Development, Support, Training
503-667-4564 - http://www.commandprompt.com/
The PostgreSQL Company, serving since 1997

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Michael Monnerie 2009-06-06 15:14:36 Who knows this SELECT in PostgreSQL
Previous Message Kevin Grittner 2009-06-05 18:38:35 Re: Postgres has stopped logging

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2009-06-05 21:35:19 Re: why dropping a trigger may cause a deadlock
Previous Message Jeff Davis 2009-06-05 21:14:01 Re: NOT NULL with CREATE TYPE