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
Files
| Path | Change | +/− |
|---|---|---|
| contrib/pageinspect/fsmfuncs.c | modified | +1 −1 |
| src/backend/utils/adt/json.c | modified | +6 −6 |