Add pg_string_endswith as the start of a string helper library in src/common.

Andres Freund <andres@anarazel.de>

Commit: ccb161b66addc9d0ede31359c05f7e9df61ab8d4
Author: Andres Freund <andres@anarazel.de>
Date: 2015-01-03T19:54:12Z
Releases: 9.5.0
Add pg_string_endswith as the start of a string helper library in src/common.

Backpatch to 9.3 where src/common was introduce, because a bugfix that
needs to be backpatched, requires the function. Earlier branches will
have to duplicate the code.

Files

PathChange+/−
src/backend/replication/slot.c modified +2 −19
src/common/Makefile modified +1 −1
src/common/string.c added +43 −0
src/include/common/string.h added +15 −0
src/tools/msvc/Mkvcbuild.pm modified +1 −1