Re: create view

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: create view
Дата
Msg-id 11397.1046193853@sss.pgh.pa.us
обсуждение исходный текст
Ответ на create view  (Ryan VanderBijl <rvbijl-pgsql@vanderbijlfamily.com>)
Ответы Re: create view  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Ryan VanderBijl <rvbijl-pgsql@vanderbijlfamily.com> writes:
> I've found a way to crash PostgreSQL, using a self-refering view:

This is what comes of saying "oh, adding a REPLACE option to CREATE
is trivial and requires no thought" :-(

While we could check for and disallow direct self-references pretty
easily, I don't think that solves the problem --- one could
still construct infinite recursions involving multiple views.

AFAICS the only real defense is to add a run-time check for recursion
in ApplyRetrieveRule.  Annoying; anyone see a better answer?

            regards, tom lane

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

Предыдущее
От: Steve Crawford
Дата:
Сообщение: Re: Can postgresql be run in memory (like a memory resi
Следующее
От: Tom Lane
Дата:
Сообщение: Re: libpq++ in 7.3?