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 1kxYRb-0007xL-Cf for pgsql-general@arkaria.postgresql.org; Thu, 07 Jan 2021 16:47:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kxYRa-0005aQ-AM for pgsql-general@arkaria.postgresql.org; Thu, 07 Jan 2021 16:47:26 +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 1kxYRa-0005a8-2b for pgsql-general@lists.postgresql.org; Thu, 07 Jan 2021 16:47:26 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kxYRX-0003zj-5b for pgsql-general@lists.postgresql.org; Thu, 07 Jan 2021 16:47:25 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 107GlKSu206353; Thu, 7 Jan 2021 11:47:20 -0500 From: Tom Lane To: "Markhof, Ingolf" cc: "pgsql-general@lists.postgresql.org" Subject: Re: How to keep format of views source code as entered? In-reply-to: References: Comments: In-reply-to "Markhof, Ingolf" message dated "Thu, 07 Jan 2021 16:19:25 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <206351.1610038040.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 07 Jan 2021 11:47:20 -0500 Message-ID: <206352.1610038040@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk "Markhof, Ingolf" writes: > I want the SLQ code of my views stored as I entered it. Is there any way= to achieve this? No. Lots of people prefer to keep their SQL code in some sort of source-code-control system, anyway. regards, tom lane