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 1kxnNZ-0006X5-0T for pgsql-general@arkaria.postgresql.org; Fri, 08 Jan 2021 08:44: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 1kxnNX-0003kC-U6 for pgsql-general@arkaria.postgresql.org; Fri, 08 Jan 2021 08:44:15 +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 1kxnNX-0003k5-LG for pgsql-general@lists.postgresql.org; Fri, 08 Jan 2021 08:44:15 +0000 Received: from mout.gmx.net ([212.227.15.18]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kxnNV-0002tl-5T for pgsql-general@lists.postgresql.org; Fri, 08 Jan 2021 08:44:14 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1610095450; bh=FOCoPI3nw5tOFDCADEpA2wCzJ8RGkKR4LpUZd4nSDEg=; h=X-UI-Sender-Class:Date:From:To:Subject:References:In-Reply-To; b=G9jgtdQNSCRqiJ+p++mhcH0izS9GLYSTaug0T5W6zVE3mEuRO/q8ToM7zRc8UOCuq 6PEJDDa1hr9zVUM/iXgd09h69VocT0sWZKNuUZmlzHvQtKFqqGsT+vd2cd2ojtlzqq DaVQqyah3UxRDTe2n8teD3w+kyIMENIijHJoSoGU= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from hermes ([77.13.4.52]) by mail.gmx.com (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MRTN9-1kdE5P0oAX-00NTrp for ; Fri, 08 Jan 2021 09:44:10 +0100 Received: from ncq by hermes with local (Exim 4.94) (envelope-from ) id 1kxnNR-0004Yu-EO for pgsql-general@lists.postgresql.org; Fri, 08 Jan 2021 09:44:09 +0100 Date: Fri, 8 Jan 2021 09:44:09 +0100 From: Karsten Hilbert To: pgsql-general@lists.postgresql.org Subject: Re: How to keep format of views source code as entered? Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Ma_X_il-Followup-to: d Re_X_turn-receipt-to: Karsten.Hilbert@gmx.net Di_X_sposition-Notification-To: Karsten.Hilbert@gmx.net X-Confi_X_rm-Reading-To: Karsten.Hilbert@gmx.net X-Pri_X_ority: 2 (High) Sender: X-Provags-ID: V03:K1:xqxocoj1O000P8L34orUUKhzRxHHOv6sd13HAuNrJ/0DhUept+6 SV8Bru94nypAgY2TDhmIqVD2s4pYT0NUgp8BzYAxqD4NbWbQfQe2pDrybCkdmdz79Kq3xAG zibvHhn6yOpyCQrN7sHU+sQX5ZlwWGKGDGyrTu814kYWPhucYKPx8Pvgz3+6RwkRgJj2x8u ASHuvPRsFBdW+b9pWIpXw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:Ajjrgx9fg/g=:gNSPmXKLyKM8JGE8EeTegN UE1GzVYT9kg3NeGLW7frxjz17kwmveKpsrlYBcCAScyogpnXkHSkPccFQGqJY7g+cGbpjsL6y iAafczP064t25blkB+NA+1g3dqze9YolGhDMmZRlKEl5LbIxTofkbq5QCh+HBf4uL1iEJdixe R1+8PoLXKdW2jyuxcRrENUEtLhPKDLr0JMj7tIo9PpMV3C4Uod9lj6qfZHu6/VkU9YlwmOUWp iqwye+NwGcmMK+TcRY3BpZ0GSmoYA8urIa1AGl5FpwbMgGVZ4R+gVb/J0M0T0tcbkZmIEbkUv o8p5QxQHwHrqTYoO1dyf5lTRRZoqxprRVFhBtUBCtV/rZl/PDT+8EdeNt++gBZV3lkYeC1tB7 rztSZm6EqdBHZyTK22HijpmHN6r/ax86yCkS/Wkon538evMVWx03NlBgJ4GWzmt/Xyk0tx5Pk OUSENO/BBLRXgCzcvVav5JNl/oO9DHp0wyh8l3N9WPxYhiNTAp/i5PInMOJbnH0uTUlrGDj7n mlM0asQwEriIxsXTLFGZykwhfzsUmPFnb4JOdods0IBJofS82g+YBokx6QLbfKiUb+00KiM47 4AuhbeazzjbPp4hhLVolOx2UG925nFh1CBcR9CldqMJrO77Hq0viBqXojavx/un330hUlPteE CemzvnGs2uUH8fwfwCNaCf/nat6rfbHNPLrQZNfSRKl6Mt0D4LYy+2cECGsTPO7Rfdu6tfBBU ma6GtHw5h4zJIbZScHir5SDzXazvsIE8hedazI17fZPSTgVPoBBahHJTcGEiJyFRp2QcIOKic 5SnmDA6lsGkLK1SqOabholEC8kA+wiKrVTlT2pgmINemAGd8npfLtQpgHAFSc4OWkgL6B0AXg E2G8HNoltr2TPqe6a7Mw== Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Am Fri, Jan 08, 2021 at 08:38:29AM +0000 schrieb Markhof, Ingolf: > I am really surprised that PostgreSQL is unable to keep the > source text of a view. Honestly, for me the looks like an > implementation gap. Consider software development. You are > writing code in C++ maybe on a UNIX host. And whenever you > feed you source code into the compiler, it will delete it, > keeping the resulting executable, only. You expect the compiler to keep your source code for you ? Most certainly, PostgreSQL does not delete your view source code, just as the compiler does. I am not so sure that analogy holds up. Karsten =2D- GPG 40BE 5B0E C98E 1713 AFA6 5BC0 3BEA AC80 7D4F C89B