From: Tom Lane <tgl@sss.pgh.pa.us>
To: Maximilian Tyrtania <maximilian.tyrtania@byte-employer.de>
Cc: pgsql-sql@postgresql.org <pgsql-sql@postgresql.org>
Subject: Re: maintaining nested views
Date: Mon, 12 Oct 2009 09:57:09 -0400
Message-ID: <7083.1255355829@sss.pgh.pa.us> (raw)
In-Reply-To: <C6F89AC6.3BFE9%maximilian.tyrtania@byte-employer.de>
References: <C6F89AC6.3BFE9%maximilian.tyrtania@byte-employer.de>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, maximilian.tyrtania@byte-employer.de
Subject: Re: maintaining nested views
In-Reply-To: <7083.1255355829@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox