XLog: how to log? - Mailing list pgsql-hackers

From Alvaro Herrera
Subject XLog: how to log?
Date
Msg-id 20040510231334.GB4362@dcc.uchile.cl
Whole thread Raw
Responses Re: XLog: how to log?
List pgsql-hackers
Hackers,

I'm trying to figure out how to log the subtransaction operations.

A simple idea would be to add the committed subxact Xids to the
xl_xact_commit and xl_xact_abort structs.  However, this will be a
variable length array, and those structs already have variable length
arrays at the end (filenodes to drop).  I don't see how would I overlay
that into a C struct.

A different idea would be to write a XLog record for subxact aborts
(which would include Xids of all committed child subxacts), and
at main transaction commit write another (different) XLog record, where
XLogRecord.Xid = mainTransactionXid, which would carry the committed
subtransactions.

Does this make any sense?  Ideas, comments?

-- 
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"No reniegues de lo que alguna vez creíste"


pgsql-hackers by date:

Previous
From: Neil Conway
Date:
Subject: Re: email built in type
Next
From: Gaetano Mendola
Date:
Subject: Re: email built in type