Revert ECPG's use of pnstrdup()

Peter Eisentraut <peter@eisentraut.org>

Commit: f0096ef13be263cfefb0b47e48c00a0e2fbfef06
Author: Peter Eisentraut <peter@eisentraut.org>
Date: 2024-08-08T05:42:46Z
Releases: 13.17
Revert ECPG's use of pnstrdup()

Commit 0b9466fce added a dependency on fe_memutils' pnstrdup() inside
informix.c.  This adds an exit() path in a library, which we don't
want.  (Unlike libpq, the ecpg libraries don't have an automated check
for that, but it makes sense to keep them to a similar standard.)  The
ecpg code can already handle failure results from the *strdup() call
by itself.

Author: Jacob Champion <jacob.champion@enterprisedb.com>
Discussion: https://www.postgresql.org/message-id/CAOYmi+=pg=W5L1h=3MEP_EB24jaBu2FyATrLXqQHGe7cpuvwyg@mail.gmail.com

Files

PathChange+/−
src/interfaces/ecpg/compatlib/informix.c modified +21 −2

Discussion