Re: create view
От
Tom Lane
Тема
Re: create view
Дата
Msg-id
11397.1046193853@sss.pgh.pa.us
Ответ на
create view (Ryan VanderBijl)
Список
Дерево обсуждения
create view Ryan VanderBijl <rvbijl-pgsql@vanderbijlfamily.com>
Re: create view Neil Conway <neilc@samurai.com>
Re: create view Tom Lane <tgl@sss.pgh.pa.us>
Re: create view Tom Lane <tgl@sss.pgh.pa.us>
Ryan VanderBijl 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
Дата: