diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2021-05-12 13:14:10 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2021-05-12 13:14:10 -0400 |
commit | def5b065ff22a16a80084587613599fe15627213 (patch) | |
tree | 13f424449b7fb90c85659071b6adf4e27ae6d272 /src/backend/parser | |
parent | e6ccd1ce1644d1b40b7981f8bc172394de524f99 (diff) | |
download | postgresql-def5b065ff22a16a80084587613599fe15627213.tar.gz postgresql-def5b065ff22a16a80084587613599fe15627213.zip |
Initial pgindent and pgperltidy run for v14.
Also "make reformat-dat-files".
The only change worthy of note is that pgindent messed up the formatting
of launcher.c's struct LogicalRepWorkerId, which led me to notice that
that struct wasn't used at all anymore, so I just took it out.
Diffstat (limited to 'src/backend/parser')
-rw-r--r-- | src/backend/parser/analyze.c | 4 | ||||
-rw-r--r-- | src/backend/parser/parse_agg.c | 15 | ||||
-rw-r--r-- | src/backend/parser/parse_cte.c | 2 | ||||
-rw-r--r-- | src/backend/parser/parse_relation.c | 4 | ||||
-rw-r--r-- | src/backend/parser/parse_utilcmd.c | 4 |
5 files changed, 15 insertions, 14 deletions
diff --git a/src/backend/parser/analyze.c b/src/backend/parser/analyze.c index e415bc3df0f..168198acd14 100644 --- a/src/backend/parser/analyze.c +++ b/src/backend/parser/analyze.c @@ -2752,7 +2752,7 @@ transformDeclareCursorStmt(ParseState *pstate, DeclareCursorStmt *stmt) (stmt->options & CURSOR_OPT_NO_SCROLL)) ereport(ERROR, (errcode(ERRCODE_INVALID_CURSOR_DEFINITION), - /* translator: %s is a SQL keyword */ + /* translator: %s is a SQL keyword */ errmsg("cannot specify both %s and %s", "SCROLL", "NO SCROLL"))); @@ -2760,7 +2760,7 @@ transformDeclareCursorStmt(ParseState *pstate, DeclareCursorStmt *stmt) (stmt->options & CURSOR_OPT_INSENSITIVE)) ereport(ERROR, (errcode(ERRCODE_INVALID_CURSOR_DEFINITION), - /* translator: %s is a SQL keyword */ + /* translator: %s is a SQL keyword */ errmsg("cannot specify both %s and %s", "ASENSITIVE", "INSENSITIVE"))); diff --git a/src/backend/parser/parse_agg.c b/src/backend/parser/parse_agg.c index ceb0bf597d6..9562ffcf3e2 100644 --- a/src/backend/parser/parse_agg.c +++ b/src/backend/parser/parse_agg.c @@ -1749,19 +1749,20 @@ cmp_list_len_asc(const ListCell *a, const ListCell *b) static int cmp_list_len_contents_asc(const ListCell *a, const ListCell *b) { - int res = cmp_list_len_asc(a, b); + int res = cmp_list_len_asc(a, b); if (res == 0) { - List *la = (List *) lfirst(a); - List *lb = (List *) lfirst(b); - ListCell *lca; - ListCell *lcb; + List *la = (List *) lfirst(a); + List *lb = (List *) lfirst(b); + ListCell *lca; + ListCell *lcb; forboth(lca, la, lcb, lb) { - int va = lfirst_int(lca); - int vb = lfirst_int(lcb); + int va = lfirst_int(lca); + int vb = lfirst_int(lcb); + if (va > vb) return 1; if (va < vb) diff --git a/src/backend/parser/parse_cte.c b/src/backend/parser/parse_cte.c index ee7613187aa..f6ae96333af 100644 --- a/src/backend/parser/parse_cte.c +++ b/src/backend/parser/parse_cte.c @@ -356,7 +356,7 @@ analyzeCTE(ParseState *pstate, CommonTableExpr *cte) * than just being recursive. It basically means the query expression * looks like * - * non-recursive query UNION [ALL] recursive query + * non-recursive query UNION [ALL] recursive query * * and that the recursive query is not itself a set operation. * diff --git a/src/backend/parser/parse_relation.c b/src/backend/parser/parse_relation.c index d451f055f72..74659190447 100644 --- a/src/backend/parser/parse_relation.c +++ b/src/backend/parser/parse_relation.c @@ -2360,8 +2360,8 @@ addRangeTableEntryForCTE(ParseState *pstate, * list --- caller must do that if appropriate. */ psi = buildNSItemFromLists(rte, list_length(pstate->p_rtable), - rte->coltypes, rte->coltypmods, - rte->colcollations); + rte->coltypes, rte->coltypmods, + rte->colcollations); /* * The columns added by search and cycle clauses are not included in star diff --git a/src/backend/parser/parse_utilcmd.c b/src/backend/parser/parse_utilcmd.c index 48cce4567b4..d5b67d48cfc 100644 --- a/src/backend/parser/parse_utilcmd.c +++ b/src/backend/parser/parse_utilcmd.c @@ -447,8 +447,8 @@ generateSerialExtraStmts(CreateStmtContext *cxt, ColumnDef *column, ereport(DEBUG1, (errmsg_internal("%s will create implicit sequence \"%s\" for serial column \"%s.%s\"", - cxt->stmtType, sname, - cxt->relation->relname, column->colname))); + cxt->stmtType, sname, + cxt->relation->relname, column->colname))); /* * Build a CREATE SEQUENCE command to create the sequence object, and add |