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.
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/ccb161b66addc9d0ede31359c05f7e9df61ab8d4
Modified Files
--------------
src/backend/replication/slot.c | 21 ++------------------
src/common/Makefile | 2 +-
src/common/string.c | 43 ++++++++++++++++++++++++++++++++++++++++
src/include/common/string.h | 15 ++++++++++++++
src/tools/msvc/Mkvcbuild.pm | 2 +-
5 files changed, 62 insertions(+), 21 deletions(-)