Re: CREATE VIEW form stored in database?

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: CREATE VIEW form stored in database?
Дата
Msg-id 43DF586C.1070009@archonet.com
обсуждение исходный текст
Ответ на CREATE VIEW form stored in database?  (Mario Splivalo <mario.splivalo@mobart.hr>)
Ответы Re: CREATE VIEW form stored in database?  (Mario Splivalo <mario.splivalo@mobart.hr>)
Список pgsql-sql
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


В списке pgsql-sql по дате отправления:

Предыдущее
От: Mario Splivalo
Дата:
Сообщение: CREATE VIEW form stored in database?
Следующее
От: Mario Splivalo
Дата:
Сообщение: Re: CREATE VIEW form stored in database?