Re: create view

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Ryan VanderBijl <rvbijl-pgsql(at)vanderbijlfamily(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: create view
Date: 2003-02-25 17:24:13
Message-ID: 11397.1046193853@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Ryan VanderBijl <rvbijl-pgsql(at)vanderbijlfamily(dot)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

In response to

  • create view at 2003-02-25 16:27:59 from Ryan VanderBijl

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2003-02-25 17:28:50 Re: libpq++ in 7.3?
Previous Message Steve Crawford 2003-02-25 17:22:00 Re: Can postgresql be run in memory (like a memory resi