From: Paul Förster <paul.foerster@gmail.com>
To: Markhof, Ingolf <ingolf.markhof@de.verizon.com>
Cc: Cybertec Schönig & Schönig GmbH <laurenz.albe@cybertec.at>
Cc: Adam Brusselback <adambrusselback@gmail.com>
Cc: David G. Johnston <david.g.johnston@gmail.com>
Cc: raf <raf@raf.org>
Cc: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: How to keep format of views source code as entered?
Date: Tue, 26 Jan 2021 14:51:39 +0100
Message-ID: <BCC054EB-27C3-48C3-B86C-1F997CEF054D@gmail.com> (raw)
In-Reply-To: <9e6ab24a4a03449abdd9b1e26dde8179@MS-FRA-E13EX02.intl.ad.vzwcorp.com>
References: <9e6ab24a4a03449abdd9b1e26dde8179@MS-FRA-E13EX02.intl.ad.vzwcorp.com>
Hi Ingolf,
> On 26. Jan, 2021, at 14:41, Markhof, Ingolf <ingolf.markhof@de.verizon.com> wrote:
>
> You may not be able to delete tables / views that are referenced by other users objects, e.g. views. Unless you add the CASCADE option which will cause all depending views to be deleted as well. And the CASCASE will work and delete the other users view even when you don't have the permission to drop that other users view!
>
> Looks like the Oracle concept of marking views as invalid makes some sense...
yes, PostgreSQL's and Oracle's approaches IMHO both make perfect sense in their own way, depending on your design philosophy. I never said otherwise. I just said that I hate to debug invalid objects in Oracle because Oracle does not clearly show dependencies and reading source code can be hard, especially if the author was one of those genius generators which produce tons of code.
Cheers,
Paul
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: paul.foerster@gmail.com, ingolf.markhof@de.verizon.com, laurenz.albe@cybertec.at, adambrusselback@gmail.com, david.g.johnston@gmail.com, raf@raf.org
Subject: Re: How to keep format of views source code as entered?
In-Reply-To: <BCC054EB-27C3-48C3-B86C-1F997CEF054D@gmail.com>
References: <9e6ab24a4a03449abdd9b1e26dde8179@MS-FRA-E13EX02.intl.ad.vzwcorp.com> <BCC054EB-27C3-48C3-B86C-1F997CEF054D@gmail.com>
* 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