[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bacula-devel] pruning - using relational integrity

Dan Langille wrote:
> I'm a big fan of relational integrity.  If you delete a job from the  
> Job table, everything
> should magically disappear from the database.
> This approach should greatly simplify the pruning.

Since Dan said it just before I was about to hit reply, I'll just say that I
thoroughly agree with him.  In addition, it would also eliminate the need for
all of the "orphan record" checks in dbcheck.

In fact, it even looks like it's possible to simulate foreign key constraints
in sqlite using its trigger support:


So now all three of the main database engines can support constraints.

Maybe in Bacula v3?  =)

Frank Sweetser fs at wpi.edu  |  For every problem, there is a solution that
WPI Senior Network Engineer   |  is simple, elegant, and wrong. - HL Mencken
    GPG fingerprint = 6174 1257 129E 0D21 D8D4  E8A3 8E39 29E3 E2E8 8CEC

This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
Bacula-devel mailing list

This mailing list archive is a service of Copilot Consulting.