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

Commit2d0eee3

Browse files
committed
Changes made by Hiroshi Inoue and approved by Vadim.
See attached mail for more details.-------------------------------------------------------------------From: "Vadim Mikheev" <vadim@krs.ru>To: "Hiroshi Inoue" <Inoue@tpf.co.jp>References: <000201befa94$42fe04c0$2801007e@cadzone.tpf.co.jp>Subject: Re: elog(ERROR) in vacuumDate: Fri, 10 Sep 1999 10:27:10 +0900Organization: OJSC Rostelecom (Krasnoyarsk)Message-ID: <37D85E6E.5AFA126D@krs.ru>Hiroshi Inoue wrote:>> Hello Vadim,>> I have a question about vacuum.>> VACUUM has a phase like commit which calls TransactionIdCommit().> But if elog(ERROR) occured after that,the status of transaction is> changed from XID_COMMIT to XID_ABORT.>> Seems to me this causes inconsistency.> Shoudn't AbortTransaction() be changed not to call TransacionIdAbort()> in case of vacuum.You're right!As usual -:)Vadim
1 parentf2fa38d commit2d0eee3

File tree

1 file changed

+2
-2
lines changed
  • src/backend/access/transam

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/access/transam/xact.c,v 1.51 1999/09/09 16:25:35 tgl Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/access/transam/xact.c,v 1.52 1999/09/16 09:08:56 ishii Exp $
1111
*
1212
* NOTES
1313
*Transaction aborts can now occur two ways:
@@ -736,7 +736,7 @@ RecordTransactionAbort()
736736
* this transaction id in the pg_log relation. We skip it
737737
* if no one shared buffer was changed by this transaction.
738738
*/
739-
if (SharedBufferChanged)
739+
if (SharedBufferChanged&& !TransactionIdDidCommit(xid))
740740
TransactionIdAbort(xid);
741741

742742
ResetBufferPool();

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp