Re: Problems With VIEWS

Поиск
Список
Период
Сортировка
Искать
От
Russell Smith
Тема
Re: Problems With VIEWS
Дата
Msg-id
45A65249.3090007@pws.com.au
Ответ на
Список
Дерево обсуждения
Problems With VIEWS "Jeanna Geier" <jgeier@apt-cafm.com>
Re: Problems With VIEWS Richard Broersma Jr <rabroersma@yahoo.com>
Re: Problems With VIEWS "Jeanna Geier" <jgeier@apt-cafm.com>
Re: Problems With VIEWS Richard Broersma Jr <rabroersma@yahoo.com>
Re: Problems With VIEWS "Jeanna Geier" <jgeier@apt-cafm.com>
Re: Problems With VIEWS "Adam Rich" <adam.r@sbcglobal.net>
Re: Problems With VIEWS Richard Broersma Jr <rabroersma@yahoo.com>
Re: Problems With VIEWS "Jeanna Geier" <jgeier@apt-cafm.com>
Re: Problems With VIEWS Richard Broersma Jr <rabroersma@yahoo.com>
Re: Problems With VIEWS Bernd Helmle <mailings@oopsware.de>
Re: Problems With VIEWS Russell Smith <mr-russ@pws.com.au>
Re: Problems With VIEWS "Jeanna Geier" <jgeier@apt-cafm.com>
Bernd Helmle wrote:
>
> On Thu, 11 Jan 2007 06:36:34 -0800 (PST), Richard Broersma Jr  wrote:
>
>   
>> Either way.  I like to create sql files with all of the DDL for creating
>> the view and rules.
>> Overtime, if I need to change my view or reconfigure the rules, I can edit
>> my sql file and then
>> call it up in psql using "\e "
>>
>> I use the "CREATE OR REPLACE VIEW" syntax to achieve this.
>>
>>     
>
> Additional note: REPLACE doesn't work if you are going to change the
> list/type/name of your view columns. In 8.2 and above you could use 
> DROP VIEW IF EXISTS combined with a following CREATE VIEW, instead.
>   

Does anybody have a reason why this is the case.  I can change all those 
things for a table without dropping it, why can't I do the same on a view?
> Bernd
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: explain analyze is your friend
>
>
>   

В списке pgsql-general по дате отправления
От: Bernd Helmle
Дата:
Сообщение: Re: Problems With VIEWS
От: Scott Ribe
Дата:
FAQ