diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2019-12-04 19:36:06 -0300 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2019-12-04 19:36:06 -0300 |
commit | 0b9466fce2cf4f8c32b3a9170ca272829aa11e66 (patch) | |
tree | 386bbebd3e2de5a4b4443f6fdfc5c130c30f3b1b /src/include/common/fe_memutils.h | |
parent | b1abfec825472434ea445b9700eaa80cde9da86a (diff) | |
download | postgresql-0b9466fce2cf4f8c32b3a9170ca272829aa11e66.tar.gz postgresql-0b9466fce2cf4f8c32b3a9170ca272829aa11e66.zip |
Offer pnstrdup to frontend code
We already had it on the backend. Frontend can also use it now.
Discussion: https://postgr.es/m/20191204144021.GA17976@alvherre.pgsql
Diffstat (limited to 'src/include/common/fe_memutils.h')
-rw-r--r-- | src/include/common/fe_memutils.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/common/fe_memutils.h b/src/include/common/fe_memutils.h index a1e5940d312..3181ee17dd5 100644 --- a/src/include/common/fe_memutils.h +++ b/src/include/common/fe_memutils.h @@ -31,6 +31,7 @@ extern void pg_free(void *pointer); /* Equivalent functions, deliberately named the same as backend functions */ extern char *pstrdup(const char *in); +extern char *pnstrdup(const char *in, Size size); extern void *palloc(Size size); extern void *palloc0(Size size); extern void *palloc_extended(Size size, int flags); |