About "Allow VIEW/RULE recompilation when the underlying tables change"

From: "suzhiyang" <suzhiyang(at)gmail(dot)com>
To: "pgsql-hackers" <pgsql-hackers(at)postgresql(dot)org>
Subject: About "Allow VIEW/RULE recompilation when the underlying tables change"
Date: 2009-12-19 02:58:21
Message-ID: 200912191058189847804@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I'm doing the Todo List's "Allow VIEW/RULE recompilation when the underlying tables change ". I've a very simple idea that I save the "create view" query_string in systable. When I found that I select from a view, I drop the view and recreate the view by execute the source query_string. Then go on execute this "select from a view" and will get the right answer. My problem is that how could I get the orginal query which user typed to postgres?
Er, maybe drop and recreate the view is an ugly idea...Is there any better methods to do recompilation?

Thank you!

2009-12-19

suzhiyang

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2009-12-19 03:05:47 Re: Largeobject Access Controls (r2460)
Previous Message Tom Lane 2009-12-19 02:51:52 Re: Largeobject Access Controls (r2460)