How modify a sql-function without breaking views ?

Поиск
Список
Период
Сортировка
От Andreas
Тема How modify a sql-function without breaking views ?
Дата
Msg-id 49C3D392.50409@gmx.net
обсуждение исходный текст
Список pgsql-novice
Hi,

I'm wondering how I might modify a sql-function without breaking views
that use it.
Basically the function gets called with a parameter and fetches a SETOF
type_X where type_X is a columnlist for the function's result.
The function joins a couple of tables to make some code-columns nicely
readable and selects some columns.

Later there are a growing number of views that need all those columns
from the function and join some other tables agains it.
Nothing impressive, yet.

But what can I do if I figure I'd like to have another column in this
function result?
To add it, I had to drop the type and recreate it.
This drops the function and with it go all subsequent views down the
drain.   :(


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

Предыдущее
От: David Saracini
Дата:
Сообщение: Re: Service start up error "The service name is invalid net helpmsg 2185"
Следующее
От: Richard Sickler
Дата:
Сообщение: Question on returning Rows in a stored proc