Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2871b46

Browse files
committed
Replace the KnownAssignedXids hash table with a sorted-array data structure,
and be more tense about the locking requirements for it, to improve performancein Hot Standby mode. In passing fix a few bugs and improve a number ofcomments in the existing HS code.Simon Riggs, with some editorialization by Tom
1 parent871e73b commit2871b46

File tree

2 files changed

+761
-321
lines changed

2 files changed

+761
-321
lines changed

‎src/backend/access/transam/twophase.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Portions Copyright (c) 1994, Regents of the University of California
88
*
99
* IDENTIFICATION
10-
*$PostgreSQL: pgsql/src/backend/access/transam/twophase.c,v 1.60 2010/04/13 14:17:46 heikki Exp $
10+
*$PostgreSQL: pgsql/src/backend/access/transam/twophase.c,v 1.61 2010/04/28 00:09:05 tgl Exp $
1111
*
1212
* NOTES
1313
*Each global transaction is associated with a global transaction
@@ -1200,6 +1200,9 @@ StandbyTransactionIdIsPrepared(TransactionId xid)
12001200

12011201
Assert(TransactionIdIsValid(xid));
12021202

1203+
if (max_prepared_xacts <=0)
1204+
return false;/* nothing to do */
1205+
12031206
/* Read and validate file */
12041207
buf=ReadTwoPhaseFile(xid, false);
12051208
if (buf==NULL)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp