Re: create view - Mailing list pgsql-general

From Tom Lane
Subject Re: create view
Date
Msg-id 11397.1046193853@sss.pgh.pa.us
Whole thread Raw
In response to create view  (Ryan VanderBijl <rvbijl-pgsql@vanderbijlfamily.com>)
Responses Re: create view
List 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 by date:

Previous
From: Steve Crawford
Date:
Subject: Re: Can postgresql be run in memory (like a memory resi
Next
From: Tom Lane
Date:
Subject: Re: libpq++ in 7.3?