Re: view management

Поиск
Список
Период
Сортировка
От Ed L.
Тема Re: view management
Дата
Msg-id 200711161547.01425.pgsql@bluepolka.net
обсуждение исходный текст
Ответ на Re: view management  ("Scott Marlowe" <scott.marlowe@gmail.com>)
Ответы Re: view management
Список pgsql-general
On Friday 16 November 2007 2:48 pm, Scott Marlowe wrote:
> On Nov 16, 2007 3:43 PM, Ed L. <pgsql@bluepolka.net> wrote:
> > That looks about as ugly as can be.  Ugh.  What it appears
> > to boil down to is that views become unusable unless you are
> > willing to invest the effort in a complex build system.  The
> > DB should handle this issue automatically.  Does Oracle?
>
> Really?  I find a build system to be a pretty necessary part
> of enterprise development.  I can't imagine trying to keep
> track of what I've done to my db without using some kind of
> simple .sql scripts with all my ddl in them.
>
> And I use views and user defined functions a lot.

The overall schema upgrade management system is not the difficult
part.  I find the difficulty comes with, for example, 5 levels
of view dependencies.  The view you want to update requires you
to rebuild 15 others, which in turn requires you to trace back
another 15 views, and so on until you reach the leafs of the
tree.  You don't know those dependencies when you create the
first few views.  Maybe you just manually discover all these
dependency paths each time you decide to change a view with
dependencies.  That's the part I'm griping about and for which I
was hoping for a better way.

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

Предыдущее
От: Tom Hart
Дата:
Сообщение: Re: convert access sql to postgresql
Следующее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: public schema doubt