From: Tom Lane <tgl@sss.pgh.pa.us>
To: Mathijs Brands <mathijs@ilse.nl>
Cc: pgsql-sql@postgresql.org
Subject: Re: all views in database broken at once
Date: Sat, 24 Mar 2001 23:36:56 -0500
Message-ID: <10339.985495016@sss.pgh.pa.us> (raw)
In-Reply-To: <20010325015704.A46087@ilse.nl>
References: <Pine.LNX.4.21.0103241930230.26693-100000@nujoma.perrins>
<10008.985481400@sss.pgh.pa.us>
<20010325015704.A46087@ilse.nl>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, mathijs@ilse.nl
Subject: Re: all views in database broken at once
In-Reply-To: <10339.985495016@sss.pgh.pa.us>
References: <Pine.LNX.4.21.0103241930230.26693-100000@nujoma.perrins> <10008.985481400@sss.pgh.pa.us> <20010325015704.A46087@ilse.nl> <10339.985495016@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox