Use cstring_to_text_with_len when length is known.

Robert Haas <rhaas@postgresql.org>

Commit: f1df4731eea6bc05e0769e9cc789e7304722efe4
Author: Robert Haas <rhaas@postgresql.org>
Date: 2013-11-18T15:19:00Z
Releases: 9.4.0
Use cstring_to_text_with_len when length is known.

This avoids a potentially-expensive extra call to strlen().

David Rowley

Files

PathChange+/−
contrib/pageinspect/fsmfuncs.c modified +1 −1
src/backend/utils/adt/json.c modified +6 −6