Re: RecordTransactionCommit() and SharedInvalidationMessages - Mailing list pgsql-hackers

From Fujii Masao
Subject Re: RecordTransactionCommit() and SharedInvalidationMessages
Date
Msg-id AANLkTind-5tstrf0oLtr0FcQ01YvdRyWEBANNxxyZfdC@mail.gmail.com
Whole thread Raw
In response to RecordTransactionCommit() and SharedInvalidationMessages  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: RecordTransactionCommit() and SharedInvalidationMessages  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
On Tue, Aug 10, 2010 at 9:30 AM, Robert Haas <robertmhaas@gmail.com> wrote:
> It appears to me that RecordTransactionCommit() only needs to WAL-log
> shared invalidation messages when wal_level is hot_standby, but I
> don't see a guard to prevent it from doing it in all cases.

Perhaps right. During not hot standby, there is no backend which the
startup process should send invalidation message to in the standby.
So, ISTM we don't need to log invalidation message when wal_level is
not hot_standby.

Regards,

-- 
Fujii Masao
NIPPON TELEGRAPH AND TELEPHONE CORPORATION
NTT Open Source Software Center


pgsql-hackers by date:

Previous
From: Greg Smith
Date:
Subject: Re: Cost of AtEOXact_Buffers in --enable-cassert
Next
From: Peter Eisentraut
Date:
Subject: assertions and constraint triggers