From: | Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Heikki Linnakangas <hlinnaka(at)iki(dot)fi>, PostgreSQL Developers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Two-phase commit |
Date: | 2004-10-07 06:38:16 |
Message-ID: | Pine.LNX.4.61.0410070825590.17826@sablons.cri.ensmp.fr |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-patches |
> 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.
From | Date | Subject | |
---|---|---|---|
Next Message | Simon Riggs | 2004-10-07 07:38:38 | Re: PITR question |
Previous Message | Gavin Sherry | 2004-10-07 05:27:05 | Re: initdb crash |
From | Date | Subject | |
---|---|---|---|
Next Message | Heikki Linnakangas | 2004-10-07 11:15:44 | Re: Two-phase commit |
Previous Message | Greg Stark | 2004-10-07 05:23:56 | Re: libpq and prepared statements progress for 8.0 |