mirror of
https://github.com/postgres/postgres.git
synced 2025-08-31 17:02:12 +03:00
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.
This commit is contained in:
@@ -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")));
|
||||
|
||||
|
@@ -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)
|
||||
|
@@ -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.
|
||||
*
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user