]> granicus.if.org Git - postgresql/commit
Use cstring_to_text_with_len when length is known.
authorRobert Haas <rhaas@postgresql.org>
Mon, 18 Nov 2013 15:17:07 +0000 (10:17 -0500)
committerRobert Haas <rhaas@postgresql.org>
Mon, 18 Nov 2013 15:19:00 +0000 (10:19 -0500)
commitf1df4731eea6bc05e0769e9cc789e7304722efe4
tree056c5c8b2e1244bcd237de08203848350fa6c1ae
parent4c697d8f4845823a8af67788b219ffa4516ad14c
Use cstring_to_text_with_len when length is known.

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

David Rowley
contrib/pageinspect/fsmfuncs.c
src/backend/utils/adt/json.c