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

Commit 4d18bfb

Browse files
author
Nikita Glukhov
committed
Fix XXX comment about first elements of jsonb stavalues
1 parent 633eba3 commit 4d18bfb

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/backend/utils/adt/jsonb_typanalyze.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,15 @@
3535
*
3636
* This is stored in the stavalues array.
3737
*
38+
* The first element of stavalues is a path prefix. It is used for avoiding
39+
* path transformations when the derived statistics for the chains of ->
40+
* operators is computed.
41+
*
3842
* The per-column stats (stored in the "json" key) have additional internal
3943
* structure, to allow storing multiple stakind types (histogram, mcv). See
4044
* jsonAnalyzeMakeScalarStats for details.
4145
*
4246
*
43-
* XXX There's additional stuff (prefix, length stats) stored in the first
44-
* two elements, I think.
45-
*
4647
* XXX It's a bit weird the "regular" stats are stored in the "json" key,
4748
* while the JSON stats (frequencies of different JSON types) are right
4849
* at the top level.

0 commit comments

Comments
 (0)