Re: logical decoding - GetOldestXmin
Michael Paquier <michael.paquier@gmail.com>
From: Michael Paquier <michael.paquier@gmail.com>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Andres Freund <andres@2ndquadrant.com>, Peter Geoghegan <peter@2ndquadrant.com>, pgsql-hackers@postgresql.org
Date: 2012-12-14T03:40:36Z
Lists: pgsql-hackers
On Fri, Dec 14, 2012 at 2:29 AM, Robert Haas <robertmhaas@gmail.com> wrote: > On Thu, Dec 13, 2012 at 3:03 PM, Andres Freund <andres@2ndquadrant.com> > wrote: > > It moves a computation of the sort of: > > > > result -= vacuum_defer_cleanup_age; > > if (!TransactionIdIsNormal(result)) > > result = FirstNormalTransactionId; > > > > inside ProcArrayLock. But I can't really imagine that to be relevant... > > I can. Go look at some of the 9.2 optimizations around > GetSnapshotData(). Those made a BIG difference under heavy > concurrency and they were definitely micro-optimization. For example, > the introduction of NormalTransactionIdPrecedes() was shockingly > effective. > The two commits coming to my mind are: - ed0b409 (Separate PGPROC into PGPROC and PGXACT) - 0d76b60 (introduction of NormalTransactionIdPrecedes) Those ones really improved concurrency performance. -- Michael Paquier http://michael.otacoo.com
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Background worker processes
- da07a1e85651 9.3.0 cited
-
Rearrange storage of data in xl_running_xacts.
- 5c11725867ac 9.3.0 cited
-
Basic binary heap implementation.
- 7a2fe9bd0371 9.3.0 cited
-
Embedded list interface
- a66ee69add6e 9.3.0 cited
-
Refactor xlog.c to create src/backend/postmaster/startup.c
- 9aceb6ab3c20 9.2.0 cited