Subject | Re: [Firebird-Architect] rfc: TRUNCATE TABLE |
---|---|
Author | Dmitry Yemanov |
Post date | 2008-10-18T15:30:22Z |
Vlad Khorsun wrote:
Dmitry
>Sounds okay to me.
> c) Syntax rule 3 means truncated table must not participate in FOREIGN KEY constraints as
> master table.
> ORACLE relaxed this rule and allow self-referenced constraints. I think we can follow it.
> e) it will be good to implement TRUNCATE privilege to satisfy Access rules but for the first timeAgreed.
> we can allow to TRUNCATE table only for SYSDBA and OWNER.
> The main concern is about rollback's (or undo). If we will perform TRUNCATE TABLE as usualI believe we should treat TRUNCATE TABLE similarly to DDL statements.
> DML statement
> Another approach is to require exclusive lock on table when TRUNCATE is issued (to preventThis is a way to go, IMO.
> any concurrent access to table's data) and to defer TRUNCATE execution to the commit time. It
> allows us to not preserve table contents for the indefinite time and to avoid complex manipulations
> with undo-log.
Dmitry