1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-08 11:42:09 +03:00

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
This commit is contained in:
Peter Eisentraut
2022-05-04 17:36:31 +02:00
parent d47a11da9e
commit dc2be6ed47
2 changed files with 2 additions and 8 deletions

View File

@ -73,7 +73,7 @@ transformJsonTableColumn(JsonTableColumn *jtc, Node *contextItemExpr,
JsonFuncExpr *jfexpr = makeNode(JsonFuncExpr); JsonFuncExpr *jfexpr = makeNode(JsonFuncExpr);
JsonCommon *common = makeNode(JsonCommon); JsonCommon *common = makeNode(JsonCommon);
JsonOutput *output = makeNode(JsonOutput); JsonOutput *output = makeNode(JsonOutput);
JsonPathSpec pathspec; char *pathspec;
JsonFormat *default_format; JsonFormat *default_format;
jfexpr->op = jfexpr->op =

View File

@ -1619,12 +1619,6 @@ typedef enum JsonTableColumnType
JTC_NESTED, JTC_NESTED,
} JsonTableColumnType; } JsonTableColumnType;
/*
* JsonPathSpec -
* representation of JSON path constant
*/
typedef char *JsonPathSpec;
/* /*
* JsonOutput - * JsonOutput -
* representation of JSON output clause (RETURNING type [FORMAT format]) * representation of JSON output clause (RETURNING type [FORMAT format])
@ -1688,7 +1682,7 @@ typedef struct JsonTableColumn
JsonTableColumnType coltype; /* column type */ JsonTableColumnType coltype; /* column type */
char *name; /* column name */ char *name; /* column name */
TypeName *typeName; /* column type name */ TypeName *typeName; /* column type name */
JsonPathSpec pathspec; /* path specification, if any */ char *pathspec; /* path specification, if any */
char *pathname; /* path name, if any */ char *pathname; /* path name, if any */
JsonFormat *format; /* JSON format clause, if specified */ JsonFormat *format; /* JSON format clause, if specified */
JsonWrapper wrapper; /* WRAPPER behavior for formatted columns */ JsonWrapper wrapper; /* WRAPPER behavior for formatted columns */