Re: POSS. FEATURE REQ: "Dynamic" Views

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: POSS. FEATURE REQ: "Dynamic" Views
Дата
Msg-id 5060.1125028466@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: POSS. FEATURE REQ: "Dynamic" Views  ("Jim C. Nasby" <jnasby@pervasive.com>)
Список pgsql-general
"Jim C. Nasby" <jnasby@pervasive.com> writes:
> ... since currently CREATE VIEW v AS SELECT * FROM t
> actually expands the * out at creation time.

I believe that that behavior is required by the SQL spec.  For instance,
SQL92's description of ALTER TABLE ADD COLUMN sez:

            Note: The addition of a column to a table has no effect on any
            existing <query expression> included in a view descriptor or
            <search condition> included in constraint descriptor because
            any implicit <column reference>s in these clauses are replaced
            by explicit <column reference>s when the clause is originally
            evaluated. See the Syntax Rules of Subclause 7.10, "<query ex-
            pression>".

            regards, tom lane

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

Предыдущее
От: Ian Harding
Дата:
Сообщение: Re: POSS. FEATURE REQ: "Dynamic" Views
Следующее
От: felix@crowfix.com
Дата:
Сообщение: Re: unsubscribe