Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kzvvd-0006uV-Jy for pgsql-general@arkaria.postgresql.org; Thu, 14 Jan 2021 06:16:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kzvvc-0002be-GN for pgsql-general@arkaria.postgresql.org; Thu, 14 Jan 2021 06:16:16 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kzvvc-0002bX-8d for pgsql-general@lists.postgresql.org; Thu, 14 Jan 2021 06:16:16 +0000 Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kzvva-0001uS-7V for pgsql-general@lists.postgresql.org; Thu, 14 Jan 2021 06:16:15 +0000 Received: by mail-wr1-x434.google.com with SMTP id d13so4498053wrc.13 for ; Wed, 13 Jan 2021 22:16:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=sRp4BpV2znXK6/Y4gf7PC+yFSDnoTgM+bY5gH/cqolg=; b=Exu1rvQV1R/s4KY0aVQZofFBcLZVMsEj6pCbsLLGPy66vd+B1P3g1nkctk8evSyvqD ANHkDcbp9dsHRwQxcWPRZmn2Xfe0/19JBuot5LuiYuKgRuIEKv0ZoF8Pg862NfM4sCyP ZLPv8ar0aD1/EhT/BXoyFBEUvEHpSq4U5LKe2Yr2GJ9xf2kYI4z2CTmwgVI3v2EwCs6h sFt/YCcUOJ7yZto/c62p05G/M5W1tiJdv3m6SwMBi9c7sx+QbNBf7eByXhjXdCuSDDlD L9FiOBc4+lnbSWVh+iXqxfYEML8pt7xsJPeT+Tcr2jb74zOzrhAxA/dHi/2MnBrgjN6D +yLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=sRp4BpV2znXK6/Y4gf7PC+yFSDnoTgM+bY5gH/cqolg=; b=CEHNGmEKC95FwB1QM5WwfzqQNT4VR2LsxwOyOD6osgPWgRUrmgnG0VTl0ogPsmAwbL EfYpHSCjQgh+AuhUF+W1cN9wfKzrVG3mgJekjyB19st2xFeTOtyboe7z4ZzBlKnjpgzC TUheLW0oBGWbU2pTQqnoxlkULb7UM47IMQ5NkQL5ffddHEvp+EIHlMrSmXE5esrD1F5G 6Jmv4E6JkdBZrQ57gvc207yuJH4YUlmKCJaSGe4xgau2+k5grI3+R7uiiSYh0mt9IdBi ju6yiq8gS4naGUHeygvC+OB3u2Oseb6bOdax0nrt+GGAB8dxsLBEDMQ5AzYAvEU1o6L/ arUQ== X-Gm-Message-State: AOAM532XUuSO6wRazAnvbECAaopUqNJj0mhunss7wVy5v/sLL9FecL0+ Ies5GQrJZyVBvnJTzH39pZA= X-Google-Smtp-Source: ABdhPJyCdA9U3tRqcjFRY3Axf34sVoAG6NhW9X3Toh7biA1M/H8dpnU8aQ1MdF1C3oOMMARN9JmRXg== X-Received: by 2002:a5d:4243:: with SMTP id s3mr6075475wrr.31.1610604971893; Wed, 13 Jan 2021 22:16:11 -0800 (PST) Received: from [192.168.1.8] (241-57-239-77.dyn.cable.fcom.ch. [77.239.57.241]) by smtp.gmail.com with ESMTPSA id t25sm210105wmj.39.2021.01.13.22.16.11 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Jan 2021 22:16:11 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.40.0.2.32\)) Subject: Re: How to keep format of views source code as entered? From: =?utf-8?Q?Paul_F=C3=B6rster?= In-Reply-To: <05bbb83f4efe2eb860c701e77557c7cc6c9356fa.camel@cybertec.at> Date: Thu, 14 Jan 2021 07:16:10 +0100 Cc: Adam Brusselback , "David G. Johnston" , raf , "pgsql-generallists.postgresql.org" Content-Transfer-Encoding: quoted-printable Message-Id: References: <20210107233813.zjat7zmdfxqapjvv@raf.org> <05bbb83f4efe2eb860c701e77557c7cc6c9356fa.camel@cybertec.at> To: =?utf-8?Q?Cybertec_Sch=C3=B6nig_=26_Sch=C3=B6nig_GmbH?= X-Mailer: Apple Mail (2.3654.40.0.2.32) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi Laurenz, > On 14. Jan, 2021, at 04:59, Laurenz Albe = wrote: >=20 > 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=