Skip to content

Commit 9e1c9f9

Browse files
committed
pgindent run prior to branching v12.
pgperltidy and reformat-dat-files too, though the latter didn't find anything to change.
1 parent 145b186 commit 9e1c9f9

File tree

15 files changed

+32
-30
lines changed

15 files changed

+32
-30
lines changed

contrib/postgres_fdw/postgres_fdw.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ typedef struct PgFdwRelationInfo
6464
int width;
6565
Cost startup_cost;
6666
Cost total_cost;
67+
6768
/*
6869
* Estimated number of rows fetched from the foreign server, and costs
6970
* excluding costs for transferring those rows from the foreign server.

src/backend/commands/indexcmds.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1085,9 +1085,9 @@ DefineIndex(Oid relationId,
10851085
childrel = table_open(childRelid, lockmode);
10861086

10871087
/*
1088-
* Don't try to create indexes on foreign tables, though.
1089-
* Skip those if a regular index, or fail if trying to create
1090-
* a constraint index.
1088+
* Don't try to create indexes on foreign tables, though. Skip
1089+
* those if a regular index, or fail if trying to create a
1090+
* constraint index.
10911091
*/
10921092
if (childrel->rd_rel->relkind == RELKIND_FOREIGN_TABLE)
10931093
{
@@ -1097,7 +1097,7 @@ DefineIndex(Oid relationId,
10971097
errmsg("cannot create unique index on partitioned table \"%s\"",
10981098
RelationGetRelationName(rel)),
10991099
errdetail("Table \"%s\" contains partitions that are foreign tables.",
1100-
RelationGetRelationName(rel))));
1100+
RelationGetRelationName(rel))));
11011101

11021102
table_close(childrel, lockmode);
11031103
continue;

src/backend/commands/tablecmds.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1077,7 +1077,7 @@ DefineRelation(CreateStmt *stmt, char relkind, Oid ownerId,
10771077
errmsg("cannot create foreign partition of partitioned table \"%s\"",
10781078
RelationGetRelationName(parent)),
10791079
errdetail("Table \"%s\" contains indexes that are unique.",
1080-
RelationGetRelationName(parent))));
1080+
RelationGetRelationName(parent))));
10811081
else
10821082
{
10831083
index_close(idxRel, AccessShareLock);
@@ -15682,6 +15682,7 @@ ATExecAttachPartition(List **wqueue, Relation rel, PartitionCmd *cmd)
1568215682
defaultrel = table_open(defaultPartOid, NoLock);
1568315683
defPartConstraint =
1568415684
get_proposed_default_constraint(partBoundConstraint);
15685+
1568515686
/*
1568615687
* Map the Vars in the constraint expression from rel's attnos to
1568715688
* defaultrel's.

src/backend/commands/tablespace.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1211,8 +1211,8 @@ check_temp_tablespaces(char **newval, void **extra, GucSource source)
12111211
/*
12121212
* If we aren't inside a transaction, or connected to a database, we
12131213
* cannot do the catalog accesses necessary to verify the name. Must
1214-
* accept the value on faith.
1215-
* Fortunately, there's then also no need to pass the data to fd.c.
1214+
* accept the value on faith. Fortunately, there's then also no need to
1215+
* pass the data to fd.c.
12161216
*/
12171217
if (IsTransactionState() && MyDatabaseId != InvalidOid)
12181218
{

src/backend/executor/nodeIndexonlyscan.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -528,9 +528,8 @@ ExecInitIndexOnlyScan(IndexOnlyScan *node, EState *estate, int eflags)
528528
&TTSOpsVirtual);
529529

530530
/*
531-
* We need another slot, in a format that's suitable for the table AM,
532-
* for when we need to fetch a tuple from the table for rechecking
533-
* visibility.
531+
* We need another slot, in a format that's suitable for the table AM, for
532+
* when we need to fetch a tuple from the table for rechecking visibility.
534533
*/
535534
indexstate->ioss_TableSlot =
536535
ExecAllocTableSlot(&estate->es_tupleTable,

src/backend/executor/nodeModifyTable.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2317,8 +2317,8 @@ ExecInitModifyTable(ModifyTable *node, EState *estate, int eflags)
23172317
* indexes for insertion of new index entries. Note we *must* set
23182318
* estate->es_result_relation_info correctly while we initialize each
23192319
* sub-plan; external modules such as FDWs may depend on that (see
2320-
* contrib/postgres_fdw/postgres_fdw.c: postgresBeginDirectModify()
2321-
* as one example).
2320+
* contrib/postgres_fdw/postgres_fdw.c: postgresBeginDirectModify() as one
2321+
* example).
23222322
*/
23232323
saved_resultRelInfo = estate->es_result_relation_info;
23242324

src/backend/partitioning/partbounds.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1237,13 +1237,14 @@ check_default_partition_contents(Relation parent, Relation default_rel,
12371237
: get_qual_for_range(parent, new_spec, false);
12381238
def_part_constraints =
12391239
get_proposed_default_constraint(new_part_constraints);
1240+
12401241
/*
12411242
* Map the Vars in the constraint expression from parent's attnos to
12421243
* default_rel's.
12431244
*/
12441245
def_part_constraints =
1245-
map_partition_varattnos(def_part_constraints, 1, default_rel,
1246-
parent, NULL);
1246+
map_partition_varattnos(def_part_constraints, 1, default_rel,
1247+
parent, NULL);
12471248

12481249
/*
12491250
* If the existing constraints on the default partition imply that it will

src/backend/utils/adt/pg_lsn.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ pg_lsn_in(PG_FUNCTION_ARGS)
6161
{
6262
char *str = PG_GETARG_CSTRING(0);
6363
XLogRecPtr result;
64-
bool have_error = false;
64+
bool have_error = false;
6565

6666
result = pg_lsn_in_internal(str, &have_error);
6767
if (have_error)

src/backend/utils/cache/syscache.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,7 @@ static const struct cachedesc cacheinfo[] = {
728728
},
729729
32
730730
},
731-
{StatisticExtDataRelationId, /* STATEXTDATASTXOID */
731+
{StatisticExtDataRelationId, /* STATEXTDATASTXOID */
732732
StatisticExtDataStxoidIndexId,
733733
1,
734734
{

src/backend/utils/misc/guc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11615,7 +11615,7 @@ check_recovery_target_time(char **newval, void **extra, GucSource source)
1161511615
dterr = DecodeDateTime(field, ftype, nf, &dtype, tm, &fsec, &tz);
1161611616
if (dterr != 0)
1161711617
return false;
11618-
if (dtype != DTK_DATE)
11618+
if (dtype != DTK_DATE)
1161911619
return false;
1162011620

1162111621
if (tm2timestamp(tm, fsec, &tz, &timestamp) != 0)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy