Provide error hint on exit() check when building libpq
authorDaniel Gustafsson <dgustafsson@postgresql.org>
Mon, 4 Oct 2021 12:32:21 +0000 (14:32 +0200)
committerDaniel Gustafsson <dgustafsson@postgresql.org>
Mon, 4 Oct 2021 12:32:21 +0000 (14:32 +0200)
commite9bc0441f1446f6614fa6712841acec91890e089
tree6d18253de109d3f23a554d0a124daa451e84db0c
parentce27c8953e8e48c69c690c0e5795cde40ed59fd2
Provide error hint on exit() check when building libpq

Commit dc227eb82 introduced a restriction on libpq that no functions which
invoke exit() are allowed to be called. This was further refined and fixed
in e45b0dfa1f and 2f7bae2f92 and 792259591. While this is well documented
in the Makefile, the error message emitted when the check failed was terse,
without hints for new developers without prior context. This adds an error
hint to assist new developers onboarding to postgres.

Author: Rachel Heaton <rheaton@vmware.com>
Co-authored-by: Jacob Champion <pchampion@vmware.com>
Discussion: https://postgr.es/m/CADJcwiVL20955HCNzDqz9BEDr6A77pz6-nac5sbZVvhAEMijLg@mail.gmail.com
src/interfaces/libpq/Makefile