pgsql: Fix error message on short read of pg_control

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix error message on short read of pg_control
Date: 2018-05-18 15:55:14
Message-ID: E1fJhis-00040Q-NB@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix error message on short read of pg_control

Instead of saying "error: success", indicate that we got a working read
but it was too short.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/cfb758b6d9c1df58fb1dfd5d3f6e70393fb17869

Modified Files
--------------
src/backend/access/transam/xlog.c | 16 ++++++++++++----
src/common/controldata_utils.c | 35 ++++++++++++++++++++++++++---------
2 files changed, 38 insertions(+), 13 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2018-05-18 16:10:46 pgsql: Small improvement for plpgsql regression test.
Previous Message Tom Lane 2018-05-18 15:53:24 pgsql: MSVC builds must use a separate stamp file for copying generated