Re: all views in database broken at once - Mailing list pgsql-sql

From Tom Lane
Subject Re: all views in database broken at once
Date
Msg-id 10339.985495016@sss.pgh.pa.us
Whole thread Raw
In response to Re: all views in database broken at once  (Mathijs Brands <mathijs@ilse.nl>)
Responses Re: all views in database broken at once  (Mathijs Brands <mathijs@ilse.nl>)
List pgsql-sql
Mathijs Brands <mathijs@ilse.nl> writes:
> How about being able to recompile them (keeping the SQL around in the
> system catalogs)? Doesn't Oracle allow you to do something like that?

That's another possibility.  It's not real clear that there's any
advantage to storing rules in preparsed form to begin with --- if
we just stored the original text and reparsed it each time it was
read, the system would be vastly more flexible, and probably not
noticeably slower.

Right now the parser doesn't really support this: there's no way to
extract the portion of the original query string that corresponds
to the body of the CREATE RULE/VIEW command.  But that could be fixed
with some straightforward hacking...
        regards, tom lane


pgsql-sql by date:

Previous
From: Dan Lyke
Date:
Subject: Re: Serials.
Next
From: Jan Wieck
Date:
Subject: Re: all views in database broken at once