pgsql: Use an enum instead of two bools to indicate wal inclusion in ba

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Use an enum instead of two bools to indicate wal inclusion in ba
Date: 2017-01-09 15:05:11
Message-ID: E1cQbVX-0000jC-2O@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Use an enum instead of two bools to indicate wal inclusion in base backups

This makes the code easier to read as it becomes more explicit what the
different allowed combinations really are.

Suggested by Michael Paquier

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/534b6f3ef29a11d19deeef6cef3bc8d4984de3c8

Modified Files
--------------
src/bin/pg_basebackup/pg_basebackup.c | 38 ++++++++++++++++++++---------------
1 file changed, 22 insertions(+), 16 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2017-01-09 15:10:43 pgsql: Expand the regression tests for PL/Tcl.
Previous Message Tom Lane 2017-01-07 21:02:34 pgsql: Improve documentation of struct ParseState.