Subject | Re: [Firebird-Architect] the insert into t select * from t infinite |
---|---|
Author | Ann W. Harrison |
Post date | 2005-07-05T16:21:53Z |
> "Jim Starkey" <jas@...> wrote:Dmitry Yemanov wrote:
>
>>The problem is, in fact, quite simple, and Ann has sketched the
>>solution. All that is necessary is to track the record numbers of newly
>>inserted records so the outer select can ignore them.
>
>OK, not ignore them completely - the records are stored in the database
> This is not as simple. Updates and deletes are also affected by this issue.
> We cannot just track the records and ignore them.
in the completely normal way. The insert case is simple - the
subselect that drives an insert ignores records that appear on the undo
list of the insert. Update and delete are slightly more complicated.
For those verbs, the subselect recognized that it must use the next
older version of records that appear on the undo list for the update or
delete.
> They're required to beNot RSE - record selection expression, RSB - record source block. Quite
> partially reconstructed using the undo log to represent the state of the
> record at the moment of the remembered savepoint. And I really doubt that
> RSE is a proper place for that.
a different animal. Sorry about the TLA's - they seemed like a good
idea at the time.
Regards,
Ann