pg_control read error message

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: pg_control read error message
Date: 2018-05-18 11:32:41
Message-ID: CABUevEx8ZRV5Ut_FvP2etXiQppx3xVzm7oOaV3AcdHxX81Yt8Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

If pg_control is for some reason empty, we give an error messagfe like:

2018-05-18 13:24:03.342 CEST [19697] PANIC: could not read from control
file: Success

Which is, uh, wrong -- it's definitely not successful.

Obviously this is a state where the user is fairly screwed anyway, but we
should give a better message.

Attached is a patch that does this. Reasonable?

--
Magnus Hagander
Me: https://www.hagander.net/ <http://www.hagander.net/>
Work: https://www.redpill-linpro.com/ <http://www.redpill-linpro.com/>

Attachment Content-Type Size
pg_control_error.patch text/x-patch 1.0 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message John Naylor 2018-05-18 11:49:15 Re: master fails to build on Windows
Previous Message John Naylor 2018-05-18 10:53:34 Re: inconsistency and inefficiency in setup_conversion()