Re: Constraint stuff

Поиск
Список
Период
Сортировка
От Hannu Krosing
Тема Re: Constraint stuff
Дата
Msg-id 398EF0A0.BB614A9E@tm.ee
обсуждение исходный текст
Ответ на Constraint stuff  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
Ответы Re: Constraint stuff  (Don Baccus <dhogaza@pacifier.com>)
Список pgsql-hackers
Tom Lane wrote:
> 
> Stephan Szabo <sszabo@megazone23.bigpanda.com> writes:
> > Tom had suggested storing a more
> > understandable form of the foreign key constraint
> > to make dumping more reasonable in its own table.
> > I'd guess like the src stored for check constraints.

...

> I don't think we should worry about that.  What's actually needed IMHO
> is an "ALTER FUNCTION" command that allows you to replace the body of
> an existing function, and perhaps change its name, but NOT its type
> signature (result type and number/types of arguments). 

IIRC Oracle allows the syntax CREATE OR REPLACE in many places, for 
example for changing VIEWS and PROCEDURES without affecting the things 
dependent on them.

CREATE OR REPLACE works also for not-yet-existing function which ALTER 
probably would not.

> Changing the
> signature is inherently not a transparent operation because it'd
> invalidate stored expressions that use the function.  ALTER would let
> you make safe changes to a function without changing its OID and thus
> without invalidating references-by-OID.
> 

----------
Hannu


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: Constraint stuff
Следующее
От: Don Baccus
Дата:
Сообщение: Re: Re: [GENERAL] Trouble with float4 after upgrading from 6.5.3 to 7.0.2