Re: [HACKERS] Re: Rules with Conditions: Bug, or Misunderstanding
От | Mark Hollomon |
---|---|
Тема | Re: [HACKERS] Re: Rules with Conditions: Bug, or Misunderstanding |
Дата | |
Msg-id | 00113022072200.00743@jupiter.hollomon.fam обсуждение исходный текст |
Ответ на | Re: Rules with Conditions: Bug, or Misunderstanding (Tom Lane <tgl@sss.pgh.pa.us>) |
Ответы |
Re: [HACKERS] Re: Rules with Conditions: Bug, or Misunderstanding
|
Список | pgsql-sql |
On Wednesday 29 November 2000 19:42, Tom Lane wrote: > > Hm. Perhaps the "cannot update view" test is too strict --- it's not > bright enough to realize that the two rules together cover all cases, > so it complains that you *might* be trying to update the view. As the > code stands, you must provide an unconditional DO INSTEAD rule to > implement insertion or update of a view. The idea was to check just before the update occurred to see if the destination was view. Maybe the test is too high up, before all rewriting occurs. It is in InitPlan, the same place we check to make sure that we are not changing a sequence or a toast table. (actually initResultRelInfo called from InitPlan). I gathered from the backend flowchart that this wasn't called until all rewriting was done. Was I wrong? If all rewriting _is_ done at that point, why is the view still in the ResultRelInfo ? -- Mark Hollomon
В списке pgsql-sql по дате отправления: