pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Paul Förster <paul.foerster@gmail.com>
To: 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: Thu, 14 Jan 2021 07:16:10 +0100
Message-ID: <D5C683A7-00A3-4D6A-8F04-CAD7E28B6012@gmail.com> (raw)
In-Reply-To: <05bbb83f4efe2eb860c701e77557c7cc6c9356fa.camel@cybertec.at>
References: <d082c7257ff647e9aba17790938e92de@MS-FRA-E13EX02.intl.ad.vzwcorp.com>
	<b91237db66a5419cac100fd2100f7cb0@MS-FRA-E13EX02.intl.ad.vzwcorp.com>
	<20210107233813.zjat7zmdfxqapjvv@raf.org>
	<CAKFQuwasSDMoW1A5uWVu9jm3YgG6FHuNCfvgR2OGn=BPjY=_+Q@mail.gmail.com>
	<CAMjNa7dOD93jbf-zBohFUu=R6s=Qez-KrEMnH8tqmgL4ZA+Z7Q@mail.gmail.com>
	<05bbb83f4efe2eb860c701e77557c7cc6c9356fa.camel@cybertec.at>

Hi Laurenz,

> On 14. Jan, 2021, at 04:59, Laurenz Albe <laurenz.albe@cybertec.at> wrote:
> 
> If PostgreSQL were to store the original text, either that text would become
> wrong, or you would have to forbid renaming of anything that is referenced
> by a view.

this is why views, procedures, functions and packages can become invalid in Oracle, which I really hate because as a DBA, it's almost impossible to quickly see (or in fact see at all) why this happens, or having to debug applications that you don't know and/or can't fix anyway. Oracle's invalid object concept doesn't make sense.

So, I'm not at all in favor of saving the original statement text.

Cheers,
Paul




view thread (31+ messages)  latest in thread

Message-ID: <D5C683A7-00A3-4D6A-8F04-CAD7E28B6012@gmail.com>
Permalink:  ../D5C683A7-00A3-4D6A-8F04-CAD7E28B6012@gmail.com/
Also on:    postgresql.org/message-id/D5C683A7-00A3-4D6A-8F04-CAD7E28B6012@gmail.com

 · 

reply

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, 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: <D5C683A7-00A3-4D6A-8F04-CAD7E28B6012@gmail.com>
  References: <d082c7257ff647e9aba17790938e92de@MS-FRA-E13EX02.intl.ad.vzwcorp.com> <b91237db66a5419cac100fd2100f7cb0@MS-FRA-E13EX02.intl.ad.vzwcorp.com> <20210107233813.zjat7zmdfxqapjvv@raf.org> <CAKFQuwasSDMoW1A5uWVu9jm3YgG6FHuNCfvgR2OGn=BPjY=_+Q@mail.gmail.com> <CAMjNa7dOD93jbf-zBohFUu=R6s=Qez-KrEMnH8tqmgL4ZA+Z7Q@mail.gmail.com> <05bbb83f4efe2eb860c701e77557c7cc6c9356fa.camel@cybertec.at> <D5C683A7-00A3-4D6A-8F04-CAD7E28B6012@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