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

Commitdc2be6e

Browse files
committed
Remove JsonPathSpec typedef
It doesn't seem very useful, and it's a bit in the way of the plannednode support automation.Discussion:https://www.postgresql.org/message-id/202204191140.3wsbevfhqmu3@alvherre.pgsql
1 parentd47a11d commitdc2be6e

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

‎src/backend/parser/parse_jsontable.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ transformJsonTableColumn(JsonTableColumn *jtc, Node *contextItemExpr,
7373
JsonFuncExpr*jfexpr=makeNode(JsonFuncExpr);
7474
JsonCommon*common=makeNode(JsonCommon);
7575
JsonOutput*output=makeNode(JsonOutput);
76-
JsonPathSpecpathspec;
76+
char*pathspec;
7777
JsonFormat*default_format;
7878

7979
jfexpr->op=

‎src/include/nodes/parsenodes.h

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1619,12 +1619,6 @@ typedef enum JsonTableColumnType
16191619
JTC_NESTED,
16201620
}JsonTableColumnType;
16211621

1622-
/*
1623-
* JsonPathSpec -
1624-
*representation of JSON path constant
1625-
*/
1626-
typedefchar*JsonPathSpec;
1627-
16281622
/*
16291623
* JsonOutput -
16301624
*representation of JSON output clause (RETURNING type [FORMAT format])
@@ -1688,7 +1682,7 @@ typedef struct JsonTableColumn
16881682
JsonTableColumnTypecoltype;/* column type */
16891683
char*name;/* column name */
16901684
TypeName*typeName;/* column type name */
1691-
JsonPathSpecpathspec;/* path specification, if any */
1685+
char*pathspec;/* path specification, if any */
16921686
char*pathname;/* path name, if any */
16931687
JsonFormat*format;/* JSON format clause, if specified */
16941688
JsonWrapperwrapper;/* WRAPPER behavior for formatted columns */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp