Re: [PATCH] Print error when libpq-refs-stamp fails - Mailing list pgsql-hackers

From Daniel Gustafsson
Subject Re: [PATCH] Print error when libpq-refs-stamp fails
Date
Msg-id 893A8F1B-0F23-42B6-BC72-003298885C7A@yesql.se
Whole thread Raw
In response to [PATCH] Print error when libpq-refs-stamp fails  (Rachel Heaton <rachelmheaton@gmail.com>)
Responses Re: [PATCH] Print error when libpq-refs-stamp fails  (Rachel Heaton <rachelmheaton@gmail.com>)
List pgsql-hackers
> On 28 Sep 2021, at 00:55, Rachel Heaton <rachelmheaton@gmail.com> wrote:

> While developing I got this error and it was difficult to figure out what was going on.
>
> Thanks to Jacob, I was able to learn the context of the failure, so we created this small patch.

I can see that, and I think this patch makes sense even though we don't have
much of a precedent for outputting informational messages from Makefiles.

> The text of the error message, of course, is up for debate, but hopefully this will make it more clear to others.

+    echo 'libpq must not call exit'; exit 1; \

Since it's not actually libpq which calls exit (no such patch would ever be
committed), I think it would be clearer to indicate that a library linked to is
the culprit.  How about something like "libpq must not be linked against any
library calling exit"?

--
Daniel Gustafsson        https://vmware.com/




pgsql-hackers by date:

Previous
From: Nitin Jadhav
Date:
Subject: Re: when the startup process doesn't (logging startup delays)
Next
From: Magnus Hagander
Date:
Subject: Re: PROXY protocol support