Skip to content

Commit dc2be6e

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

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-
JsonPathSpec pathspec;
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-
typedef char *JsonPathSpec;
1627-
16281622
/*
16291623
* JsonOutput -
16301624
* representation of JSON output clause (RETURNING type [FORMAT format])
@@ -1688,7 +1682,7 @@ typedef struct JsonTableColumn
16881682
JsonTableColumnType coltype; /* column type */
16891683
char *name; /* column name */
16901684
TypeName *typeName; /* column type name */
1691-
JsonPathSpec pathspec; /* 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
JsonWrapper wrapper; /* WRAPPER behavior for formatted columns */

0 commit comments

Comments
 (0)