Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit bc6fa14

Browse files
author
Nikita Glukhov
committed
Fix FIXME comment
1 parent 38688c8 commit bc6fa14

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/backend/utils/adt/jsonb_selfuncs.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -829,7 +829,10 @@ jsonPathStatsFormTuple(JsonPathStats pstats, JsonStatType type, float4 nullfrac)
829829
if (!pstats || !pstats->datum)
830830
return NULL;
831831

832-
/* FIXME What does this mean? */
832+
/*
833+
* If it is the ordinary root path stats, there is no need to transform
834+
* the tuple, it can be simply copied.
835+
*/
833836
if (pstats->datum == &pstats->data->values[1] &&
834837
pstats->type == JsonPathStatsValues)
835838
return heap_copytuple(pstats->data->statsTuple);

0 commit comments

Comments
 (0)