Thread: pgsql: Make RecordTransactionCommit() respect wal_level.

pgsql: Make RecordTransactionCommit() respect wal_level.

From
rhaas@postgresql.org (Robert Haas)
Date:
Log Message:
-----------
Make RecordTransactionCommit() respect wal_level.

Since the only purpose of WAL-loggin SharedInvalidationMessages is to support
Hot Standby operation, they needn't be included when wal_level < hot_standby.

Back-patch to 9.0.

Review by Heikki Linnakanagas and Fujii Masao.

Modified Files:
--------------
    pgsql/src/backend/access/transam:
        xact.c (r1.296 -> r1.297)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/access/transam/xact.c?r1=1.296&r2=1.297)

Re: pgsql: Make RecordTransactionCommit() respect wal_level.

From
Simon Riggs
Date:
On Fri, 2010-08-13 at 15:42 +0000, Robert Haas wrote:
> Log Message:
> -----------
> Make RecordTransactionCommit() respect wal_level.
>
> Since the only purpose of WAL-loggin SharedInvalidationMessages is to support
> Hot Standby operation, they needn't be included when wal_level < hot_standby.
>
> Back-patch to 9.0.
>
> Review by Heikki Linnakanagas and Fujii Masao.

Patch looks fine to me.

--
 Simon Riggs           www.2ndQuadrant.com
 PostgreSQL Development, 24x7 Support, Training and Services