pgsql: Add parens to ConvertToXSegs macro - Mailing list pgsql-committers

From Alvaro Herrera
Subject pgsql: Add parens to ConvertToXSegs macro
Date
Msg-id E1jo9iA-0007D7-1R@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Add parens to ConvertToXSegs macro

The current definition is dangerous.  No bugs exist in our code at
present, but backpatch to 11 nonetheless where it was introduced.

Author: Álvaro Herrera <alvherre@alvh.no-ip.org>

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/368d7f3297e7e1304da03904d2e1310d79fa82a9

Modified Files
--------------
src/backend/access/transam/xlog.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)


pgsql-committers by date:

Previous
From: Michael Paquier
Date:
Subject: pgsql: Fix comment in heap.c
Next
From: Alvaro Herrera
Date:
Subject: pgsql: Save slot's restart_lsn when invalidated due to size