Re: Two-phase commit - Mailing list pgsql-hackers

From Fabien COELHO
Subject Re: Two-phase commit
Date
Msg-id Pine.LNX.4.61.0410070825590.17826@sablons.cri.ensmp.fr
Whole thread Raw
In response to Re: Two-phase commit  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Two-phase commit
List pgsql-hackers
> Implementation-wise, I really dislike storing the info in a shared hash
> table, because I don't see any reasonable bound on the size of the hash
> table (your existing code uses 100 which is about as arbitrary as it
> gets). [...]
>
> The idea that occurs to me instead is to not use WAL or shared memory at
> all for keeping the prepared-transaction state info.  Instead, suppose
> that we store the status information in a file named after the GID,
> "$PGDATA/pg_twophase/gid". [...]

Sorry for this stupid general comment, but why couldn't the gid be stored 
in some shared system table that would rely on pg infrastructure for 
caching, sharing, locking and so on? More over, that would allow the 
administrator to have a look at them quite simply. Is this just a 
performance issue?

-- 
Fabien.


pgsql-hackers by date:

Previous
From: Greg Stark
Date:
Subject: Re: libpq and prepared statements progress for 8.0
Next
From: "Simon Riggs"
Date:
Subject: Re: PITR question