Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0b3611b

Browse files
author
Nikita Glukhov
committed
Hide JsonbParseState struct definition
1 parent73233b3 commit0b3611b

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

‎src/backend/utils/adt/jsonb_util.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,14 @@
3333
#defineJSONB_MAX_ELEMS (Min(MaxAllocSize / sizeof(JsonbValue), JB_CMASK))
3434
#defineJSONB_MAX_PAIRS (Min(MaxAllocSize / sizeof(JsonbPair), JB_CMASK))
3535

36+
/* Conversion state used when parsing Jsonb from text, or for type coercion */
37+
structJsonbParseState
38+
{
39+
JsonbValuecontVal;
40+
Sizesize;
41+
structJsonbParseState*next;
42+
};
43+
3644
staticvoidfillJsonbValue(JsonbContainer*container,intindex,
3745
char*base_addr,uint32offset,
3846
JsonbValue*result);

‎src/include/utils/jsonb.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -301,12 +301,7 @@ struct JsonbPair
301301
};
302302

303303
/* Conversion state used when parsing Jsonb from text, or for type coercion */
304-
typedefstructJsonbParseState
305-
{
306-
JsonbValuecontVal;
307-
Sizesize;
308-
structJsonbParseState*next;
309-
}JsonbParseState;
304+
typedefstructJsonbParseStateJsonbParseState;
310305

311306
/*
312307
* JsonbIterator holds details of the type for each iteration. It also stores a

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp