Skip site navigation (1) Skip section navigation (2)

Re: [HACKERS] CREATE OR REPLACE VIEW/TRIGGER

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Bill Studenmund <wrstuden(at)netbsd(dot)org>
Cc: Jean-Michel POURE <jm(dot)poure(at)freesurf(dot)fr>, pgsql-hackers(at)postgresql(dot)org, pgadmin-hackers(at)postgresql(dot)org, dpage(at)vale-housing(dot)co(dot)uk, peter_e(at)gmx(dot)net, lockhart(at)fourpalms(dot)org, Inoue(at)tpf(dot)co(dot)jp, oleg(at)sai(dot)msu(dot)su, scrappy(at)hub(dot)org
Subject: Re: [HACKERS] CREATE OR REPLACE VIEW/TRIGGER
Date: 2001-10-24 00:56:57
Message-ID: 200110240056.f9O0uvU28519@candle.pha.pa.us (view raw or flat)
Thread:
Lists: pgadmin-hackerspgsql-hackers
> > > Alternatively, could someone implement CREATE OR DROP VIEW / TRIGGER? These
> > > features are needed for pgAdmin II (we could also provide a patch for
> > > PhpPgAdmin). If this cannot be implemented in PostgreSQL, we will go for
> > > pseudo-modification solutions (which is definitely not a good solution).
> >
> > Our current CREATE OR REPLACE FUNCTION perserves the OID of the
> > function.  Is there similar functionality you need where a simple
> > DROP (ignore the error), CREATE will not work?
> 
> If possible, it's nice to not have commands whose error codes you ignore.
> That way if you see an error, you know you need to do something about it.

Folks, is this a valid reason for adding OR REPLACE to all CREATE object
commands?


-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman(at)candle(dot)pha(dot)pa(dot)us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

In response to

Responses

pgsql-hackers by date

Next:From: Bruce MomjianDate: 2001-10-24 01:01:07
Subject: Re: CREATE OR REPLACE VIEW/TRIGGER
Previous:From: Bruce MomjianDate: 2001-10-23 23:22:04
Subject: Re: [HACKERS] CREATE OR REPLACE VIEW/TRIGGER

pgadmin-hackers by date

Next:From: Bruce MomjianDate: 2001-10-24 01:01:07
Subject: Re: CREATE OR REPLACE VIEW/TRIGGER
Previous:From: Bruce MomjianDate: 2001-10-23 23:22:04
Subject: Re: [HACKERS] CREATE OR REPLACE VIEW/TRIGGER

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group