Re: maintaining nested views - Mailing list pgsql-sql

From Tom Lane
Subject Re: maintaining nested views
Date
Msg-id 7083.1255355829@sss.pgh.pa.us
Whole thread Raw
In response to maintaining nested views  (Maximilian Tyrtania <maximilian.tyrtania@byte-employer.de>)
List pgsql-sql
Maximilian Tyrtania <maximilian.tyrtania@byte-employer.de> writes:
> Quite often i find myself reluctant to nest views, because of the
> maintenance issues this usually involves. As you know, you can't easily
> alter the "lower level" views, because the higher level ones depend on them.
> So, to add a field to a lower level view one has to:

> drop view vw_lowlevel CASCADE;

As of 8.4 you can add a column via CREATE OR REPLACE VIEW without that.
        regards, tom lane


pgsql-sql by date:

Previous
From: Maximilian Tyrtania
Date:
Subject: maintaining nested views
Next
From: Shruthi A
Date:
Subject: How to get the previous date?