pgsql: Use cstring_to_text_with_len when length is known.
pgsql: Use cstring_to_text_with_len when length is known.
От:
Robert Haas <rhaas@postgresql.org>
Дата:
Use cstring_to_text_with_len when length is known. This avoids a potentially-expensive extra call to strlen(). David Rowley Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/f1df4731eea6bc05e0769e9cc789e7304722efe4 Modified Files -------------- contrib/pageinspect/fsmfuncs.c | 2 +- src/backend/utils/adt/json.c | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-)