| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: Possible problems with Date & McGoveran View Updating
Costin Cozianu wrote:
> Jan Hidders wrote:
My mistake. When I wrote "a unique smallest set" I meant "a unique minimal set" where "miminal" means, as usual, that there is not a proper subset that also satisfies the requirements.
> Maybe you can derive that the existence of smallest implies uniqueness > (The examples that I think of where there is no unique set also implies > there is no smallest).
No, in general that is not true, i.e., there can more than one such minimal set. For example if the view is defined as a union of two relations.
> If we pick smallest (vs. unique), then we can have problems, i.e. users > observe a derived fact, the database chooses the "smallest" update, > however in reality a "larger" set of facts is true. Then we broke the > close world assumption: the user might: > select count(*) ... > and get the wrong results.
Actually, no, I don't believe it does break the CWA. The CWA says that all the facts that you told to the database are presumed by it to be true and all other facts that are not implied by these facts are presumed to be false. This means that facts that the database can derive with the help of constraints or view definitions (conceptually a view definition is not really different from a constraint) are also considered by it to be true, and facts that it cannot derive are considered to be false. That's exactly why you add the (unique) minimal extra set of facts; these are precisely the facts that logically follow from the constraints and the update that was made.
![]() |
![]() |