From: Richard Huxton <dev@archonet.com>
To: mario.splivalo@mobart.hr
Cc: pgsql-sql@postgresql.org
Subject: Re: CREATE VIEW form stored in database?
Date: Tue, 31 Jan 2006 12:30:36 +0000
Message-ID: <43DF586C.1070009@archonet.com> (raw)
In-Reply-To: <1138701111.8587.3.camel@localhost.localdomain>
References: <1138701111.8587.3.camel@localhost.localdomain>
Mario Splivalo wrote:
> When I create a view, I like to define it like this (just representing
> the form here):
[snip]
> But, when I extracit it from postgres, it's somehow stored like this:
[snip]
> The later is much more hard to read, and when I need to change the view,
> i get rash and stuff :)
>
> Is there a way to tell postgres NOT to format the 'source code' of my
> views?
I don't think it stores the "source code", but rather the structure of
the underlying query. So I'm afraid you lose the spacing.
I keep all my definitions in a set of files and read in updates with \i
my_filename.sql from psql. That lets me keep all my spaces and comments.
--
Richard Huxton
Archonet Ltd
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: dev@archonet.com, mario.splivalo@mobart.hr
Subject: Re: CREATE VIEW form stored in database?
In-Reply-To: <43DF586C.1070009@archonet.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