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(-)


-- 
Sent via pgsql-committers mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers

Reply via email to