pgsql: Promote the assertion that XLogBeginInsert() is not called twice - Mailing list pgsql-committers

From Heikki Linnakangas
Subject pgsql: Promote the assertion that XLogBeginInsert() is not called twice
Date
Msg-id E1Z9IIF-0006J3-Cq@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Promote the assertion that XLogBeginInsert() is not called twice into ERROR.

Seems like cheap insurance for WAL bugs. A spurious call to
XLogBeginInsert() in itself would be fairly harmless, but if there is any
data registered and the insertion is not completed/cancelled properly, there
is a risk that the data ends up in a wrong WAL record.

Per Jeff Janes's suggestion.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/a32c3ec893cafbd3a4b42c34270a80198f28f123

Modified Files
--------------
src/backend/access/transam/xloginsert.c |    4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)


pgsql-committers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: pgsql: Fix double-XLogBeginInsert call in GIN page splits.
Next
From: Heikki Linnakangas
Date:
Subject: pgsql: Fix markup in docs.