More precise errors from initial pg_control check

Use a separate error message for invalid checkpoint location and
invalid state instead of just "invalid data" for both.

Reviewed-by: Michael Paquier <[email protected]>
Discussion: 
https://www.postgresql.org/message-id/[email protected]

Branch
------
master

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

Modified Files
--------------
src/backend/access/transam/xlog.c | 82 +++++++++++++++++++++++----------------
1 file changed, 48 insertions(+), 34 deletions(-)

Reply via email to