Recovering from crash

Derek Atkins warlord at MIT.EDU
Thu Oct 13 11:37:36 EDT 2011


Andrew Sullivan <ajs at anvilwalrusden.com> writes:

>> to Accounts, either, so if you added or deleted or otherwise modified an
>> account that change wont be recorded in the log.  
>
> But if you performed a transaction that caused the account to be
> increased or decreased, it would be logged?  (I guess I'm confused

Yes, but that's because the only way to increase/decrease the value of
an account is by adding a transaction, and transactions are what gets
logged in the transaction log.  So indirectly, yes, account
increases/decreases get logged.  But if you create a new account, then
create a transaction into that account, and then crash -- replaying that
transaction log wont work because the account creation wasn't logged.

> here, because when you post an invoice it does alter an account, which
> should be a transaction, no?  The docs seem to suggest that what you
> actually get is maybe a transaction entry without the associated
> invoices and so on.  This is a powerful incentive to move everything
> onto Postgres soon.)

The tranasction resulting from the account will be logged, but the
invoice metadata changes wont.

-derek

-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord at MIT.EDU                        PGP key available


More information about the gnucash-user mailing list