Content-Length: 1358595 | pFad | http://github.com/tonybelloni/postgres/commit/eaedf0df7197b21182f6c341a44e4fdaa3cd6ea6

E4 Update typedefs.list and re-run pgindent · tonybelloni/postgres@eaedf0d · GitHub
Skip to content

Commit eaedf0d

Browse files
committed
1 parent 801386a commit eaedf0d

File tree

52 files changed

+224
-197
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+224
-197
lines changed

contrib/fuzzystrmatch/fuzzystrmatch.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ soundex_code(char letter)
104104
#define TH '0'
105105

106106
static char Lookahead(char *word, int how_far);
107-
static void _metaphone(char *word, int max_phonemes, char **phoned_word);
107+
static void _metaphone(char *word, int max_phonemes, char **phoned_word);
108108

109109
/* Metachar.h ... little bits about characters for metaphone */
110110

contrib/isn/isn.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -925,7 +925,7 @@ string2ean(const char *str, bool errorOK, ean13 *result,
925925
* Exported routines.
926926
*---------------------------------------------------------*/
927927

928-
void _PG_init(void);
928+
void _PG_init(void);
929929

930930
void
931931
_PG_init(void)

src/backend/access/brin/brin.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1314,8 +1314,8 @@ brinsummarize(Relation index, Relation heapRel, BlockNumber pageRange,
13141314

13151315
/*
13161316
* Unless requested to summarize even a partial range, go away now if
1317-
* we think the next range is partial. Caller would pass true when
1318-
* it is typically run once bulk data loading is done
1317+
* we think the next range is partial. Caller would pass true when it
1318+
* is typically run once bulk data loading is done
13191319
* (brin_summarize_new_values), and false when it is typically the
13201320
* result of arbitrarily-scheduled maintenance command (vacuuming).
13211321
*/

src/backend/access/common/printsimple.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ printsimple_startup(DestReceiver *self, int operation, TupleDesc tupdesc)
4141
Form_pg_attribute attr = TupleDescAttr(tupdesc, i);
4242

4343
pq_sendstring(&buf, NameStr(attr->attname));
44-
pq_sendint32(&buf, 0); /* table oid */
45-
pq_sendint16(&buf, 0); /* attnum */
44+
pq_sendint32(&buf, 0); /* table oid */
45+
pq_sendint16(&buf, 0); /* attnum */
4646
pq_sendint32(&buf, (int) attr->atttypid);
4747
pq_sendint16(&buf, attr->attlen);
4848
pq_sendint32(&buf, attr->atttypmod);
49-
pq_sendint16(&buf, 0); /* format code */
49+
pq_sendint16(&buf, 0); /* format code */
5050
}
5151

5252
pq_endmessage(&buf);

src/backend/access/transam/xlog.c

+8-6
Original file line numberDiff line numberDiff line change
@@ -6586,10 +6586,10 @@ StartupXLOG(void)
65866586
else
65876587
{
65886588
/*
6589-
* We used to attempt to go back to a secondary checkpoint
6590-
* record here, but only when not in standby_mode. We now
6591-
* just fail if we can't read the last checkpoint because
6592-
* this allows us to simplify processing around checkpoints.
6589+
* We used to attempt to go back to a secondary checkpoint record
6590+
* here, but only when not in standby_mode. We now just fail if we
6591+
* can't read the last checkpoint because this allows us to
6592+
* simplify processing around checkpoints.
65936593
*/
65946594
ereport(PANIC,
65956595
(errmsg("could not locate a valid checkpoint record")));
@@ -8888,7 +8888,8 @@ CreateCheckPoint(int flags)
88888888
(errmsg("concurrent write-ahead log activity while database system is shutting down")));
88898889

88908890
/*
8891-
* Remember the prior checkpoint's redo ptr for UpdateCheckPointDistanceEstimate()
8891+
* Remember the prior checkpoint's redo ptr for
8892+
* UpdateCheckPointDistanceEstimate()
88928893
*/
88938894
PriorRedoPtr = ControlFile->checkPointCopy.redo;
88948895

@@ -9211,7 +9212,8 @@ CreateRestartPoint(int flags)
92119212
CheckPointGuts(lastCheckPoint.redo, flags);
92129213

92139214
/*
9214-
* Remember the prior checkpoint's redo ptr for UpdateCheckPointDistanceEstimate()
9215+
* Remember the prior checkpoint's redo ptr for
9216+
* UpdateCheckPointDistanceEstimate()
92159217
*/
92169218
PriorRedoPtr = ControlFile->checkPointCopy.redo;
92179219

src/backend/access/transam/xlogutils.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,7 @@ void
802802
XLogReadDetermineTimeline(XLogReaderState *state, XLogRecPtr wantPage, uint32 wantLength)
803803
{
804804
const XLogRecPtr lastReadPage = state->readSegNo *
805-
state->wal_segment_size + state->readOff;
805+
state->wal_segment_size + state->readOff;
806806

807807
Assert(wantPage != InvalidXLogRecPtr && wantPage % XLOG_BLCKSZ == 0);
808808
Assert(wantLength <= XLOG_BLCKSZ);

src/backend/catalog/partition.c

+19-20
Original file line numberDiff line numberDiff line change
@@ -2134,7 +2134,7 @@ get_qual_for_range(Relation parent, PartitionBoundSpec *spec,
21342134

21352135
if (or_expr_args != NIL)
21362136
{
2137-
Expr *other_parts_constr;
2137+
Expr *other_parts_constr;
21382138

21392139
/*
21402140
* Combine the constraints obtained for non-default partitions
@@ -2143,20 +2143,20 @@ get_qual_for_range(Relation parent, PartitionBoundSpec *spec,
21432143
* useless repetition). Add the same now.
21442144
*/
21452145
other_parts_constr =
2146-
makeBoolExpr(AND_EXPR,
2147-
lappend(get_range_nulltest(key),
2148-
list_length(or_expr_args) > 1
2149-
? makeBoolExpr(OR_EXPR, or_expr_args,
2150-
-1)
2151-
: linitial(or_expr_args)),
2152-
-1);
2146+
makeBoolExpr(AND_EXPR,
2147+
lappend(get_range_nulltest(key),
2148+
list_length(or_expr_args) > 1
2149+
? makeBoolExpr(OR_EXPR, or_expr_args,
2150+
-1)
2151+
: linitial(or_expr_args)),
2152+
-1);
21532153

21542154
/*
21552155
* Finally, the default partition contains everything *NOT*
21562156
* contained in the non-default partitions.
21572157
*/
21582158
result = list_make1(makeBoolExpr(NOT_EXPR,
2159-
list_make1(other_parts_constr), -1));
2159+
list_make1(other_parts_constr), -1));
21602160
}
21612161

21622162
return result;
@@ -2502,9 +2502,9 @@ generate_partition_qual(Relation rel)
25022502
int
25032503
get_partition_for_tuple(Relation relation, Datum *values, bool *isnull)
25042504
{
2505-
int bound_offset;
2506-
int part_index = -1;
2507-
PartitionKey key = RelationGetPartitionKey(relation);
2505+
int bound_offset;
2506+
int part_index = -1;
2507+
PartitionKey key = RelationGetPartitionKey(relation);
25082508
PartitionDesc partdesc = RelationGetPartitionDesc(relation);
25092509

25102510
/* Route as appropriate based on partitioning strategy. */
@@ -2513,8 +2513,8 @@ get_partition_for_tuple(Relation relation, Datum *values, bool *isnull)
25132513
case PARTITION_STRATEGY_HASH:
25142514
{
25152515
PartitionBoundInfo boundinfo = partdesc->boundinfo;
2516-
int greatest_modulus = get_greatest_modulus(boundinfo);
2517-
uint64 rowHash = compute_hash_value(key, values, isnull);
2516+
int greatest_modulus = get_greatest_modulus(boundinfo);
2517+
uint64 rowHash = compute_hash_value(key, values, isnull);
25182518

25192519
part_index = boundinfo->indexes[rowHash % greatest_modulus];
25202520
}
@@ -2548,8 +2548,7 @@ get_partition_for_tuple(Relation relation, Datum *values, bool *isnull)
25482548

25492549
/*
25502550
* No range includes NULL, so this will be accepted by the
2551-
* default partition if there is one, and otherwise
2552-
* rejected.
2551+
* default partition if there is one, and otherwise rejected.
25532552
*/
25542553
for (i = 0; i < key->partnatts; i++)
25552554
{
@@ -2563,7 +2562,7 @@ get_partition_for_tuple(Relation relation, Datum *values, bool *isnull)
25632562
if (!range_partkey_has_null)
25642563
{
25652564
bound_offset = partition_bound_bsearch(key,
2566-
partdesc->boundinfo,
2565+
partdesc->boundinfo,
25672566
values,
25682567
false,
25692568
&equal);
@@ -2585,8 +2584,8 @@ get_partition_for_tuple(Relation relation, Datum *values, bool *isnull)
25852584
}
25862585

25872586
/*
2588-
* part_index < 0 means we failed to find a partition of this parent.
2589-
* Use the default partition, if there is one.
2587+
* part_index < 0 means we failed to find a partition of this parent. Use
2588+
* the default partition, if there is one.
25902589
*/
25912590
if (part_index < 0)
25922591
part_index = partdesc->boundinfo->default_index;
@@ -3125,7 +3124,7 @@ satisfies_hash_partition(PG_FUNCTION_ARGS)
31253124
bool variadic_typbyval;
31263125
char variadic_typalign;
31273126
FmgrInfo partsupfunc[PARTITION_MAX_KEYS];
3128-
} ColumnsHashData;
3127+
} ColumnsHashData;
31293128
Oid parentId;
31303129
int modulus;
31313130
int remainder;

src/backend/commands/copy.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ typedef struct CopyStateData
168168
PartitionDispatch *partition_dispatch_info;
169169
int num_dispatch; /* Number of entries in the above array */
170170
int num_partitions; /* Number of members in the following arrays */
171-
ResultRelInfo **partitions; /* Per partition result relation pointers */
171+
ResultRelInfo **partitions; /* Per partition result relation pointers */
172172
TupleConversionMap **partition_tupconv_maps;
173173
TupleTableSlot *partition_tuple_slot;
174174
TransitionCaptureState *transition_capture;
@@ -360,7 +360,7 @@ SendCopyBegin(CopyState cstate)
360360
pq_sendbyte(&buf, format); /* overall format */
361361
pq_sendint16(&buf, natts);
362362
for (i = 0; i < natts; i++)
363-
pq_sendint16(&buf, format); /* per-column formats */
363+
pq_sendint16(&buf, format); /* per-column formats */
364364
pq_endmessage(&buf);
365365
cstate->copy_dest = COPY_NEW_FE;
366366
}
@@ -393,7 +393,7 @@ ReceiveCopyBegin(CopyState cstate)
393393
pq_sendbyte(&buf, format); /* overall format */
394394
pq_sendint16(&buf, natts);
395395
for (i = 0; i < natts; i++)
396-
pq_sendint16(&buf, format); /* per-column formats */
396+
pq_sendint16(&buf, format); /* per-column formats */
397397
pq_endmessage(&buf);
398398
cstate->copy_dest = COPY_NEW_FE;
399399
cstate->fe_msgbuf = makeStringInfo();

src/backend/commands/vacuumlazy.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ lazy_vacuum_rel(Relation onerel, int options, VacuumParams *params,
355355
params->log_min_duration))
356356
{
357357
StringInfoData buf;
358-
char *msgfmt;
358+
char *msgfmt;
359359

360360
TimestampDifference(starttime, endtime, &secs, &usecs);
361361

src/backend/executor/execPartition.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -184,10 +184,10 @@ ExecFindPartition(ResultRelInfo *resultRelInfo, PartitionDispatch *pd,
184184
parent = pd[0];
185185
while (true)
186186
{
187-
PartitionDesc partdesc;
187+
PartitionDesc partdesc;
188188
TupleTableSlot *myslot = parent->tupslot;
189189
TupleConversionMap *map = parent->tupmap;
190-
int cur_index = -1;
190+
int cur_index = -1;
191191

192192
rel = parent->reldesc;
193193
partdesc = RelationGetPartitionDesc(rel);

src/backend/executor/nodeModifyTable.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1518,8 +1518,8 @@ ExecSetupTransitionCaptureState(ModifyTableState *mtstate, EState *estate)
15181518
if (mtstate->mt_partition_dispatch_info != NULL)
15191519
{
15201520
/*
1521-
* For tuple routing among partitions, we need TupleDescs based
1522-
* on the partition routing table.
1521+
* For tuple routing among partitions, we need TupleDescs based on
1522+
* the partition routing table.
15231523
*/
15241524
ResultRelInfo **resultRelInfos = mtstate->mt_partitions;
15251525

src/backend/libpq/auth-scram.c

+6-3
Original file line numberDiff line numberDiff line change
@@ -791,6 +791,7 @@ read_client_first_message(scram_state *state, char *input)
791791
switch (*input)
792792
{
793793
case 'n':
794+
794795
/*
795796
* The client does not support channel binding or has simply
796797
* decided to not use it. In that case just let it go.
@@ -805,6 +806,7 @@ read_client_first_message(scram_state *state, char *input)
805806
input++;
806807
break;
807808
case 'y':
809+
808810
/*
809811
* The client supports channel binding and thinks that the server
810812
* does not. In this case, the server must fail authentication if
@@ -827,12 +829,13 @@ read_client_first_message(scram_state *state, char *input)
827829
input++;
828830
break;
829831
case 'p':
832+
830833
/*
831834
* The client requires channel binding. Channel binding type
832835
* follows, e.g., "p=tls-unique".
833836
*/
834837
{
835-
char *channel_binding_type;
838+
char *channel_binding_type;
836839

837840
if (!state->ssl_in_use)
838841
{
@@ -1139,8 +1142,8 @@ read_client_final_message(scram_state *state, char *input)
11391142
b64_message[b64_message_len] = '\0';
11401143

11411144
/*
1142-
* Compare the value sent by the client with the value expected by
1143-
* the server.
1145+
* Compare the value sent by the client with the value expected by the
1146+
* server.
11441147
*/
11451148
if (strcmp(channel_binding, b64_message) != 0)
11461149
ereport(ERROR,

src/backend/libpq/auth.c

+5-3
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ static struct pam_conv pam_passw_conv = {
100100
NULL
101101
};
102102

103-
static const char *pam_passwd = NULL; /* Workaround for Solaris 2.6 brokenness */
103+
static const char *pam_passwd = NULL; /* Workaround for Solaris 2.6
104+
* brokenness */
104105
static Port *pam_port_cludge; /* Workaround for passing "Port *port" into
105106
* pam_passwd_conv_proc */
106107
#endif /* USE_PAM */
@@ -914,6 +915,7 @@ CheckSCRAMAuth(Port *port, char *shadow_pass, char **logdetail)
914915
pfree(sasl_mechs);
915916

916917
#ifdef USE_SSL
918+
917919
/*
918920
* Get data for channel binding.
919921
*/
@@ -2343,7 +2345,7 @@ CheckBSDAuth(Port *port, char *user)
23432345
*/
23442346
#ifdef USE_LDAP
23452347

2346-
static int errdetail_for_ldap(LDAP *ldap);
2348+
static int errdetail_for_ldap(LDAP *ldap);
23472349

23482350
/*
23492351
* Initialize a connection to the LDAP server, including setting up
@@ -2514,7 +2516,7 @@ CheckLDAPAuth(Port *port)
25142516
char *filter;
25152517
LDAPMessage *search_message;
25162518
LDAPMessage *entry;
2517-
char *attributes[] = { LDAP_NO_ATTRS, NULL };
2519+
char *attributes[] = {LDAP_NO_ATTRS, NULL};
25182520
char *dn;
25192521
char *c;
25202522
int count;

src/backend/optimizer/plan/setrefs.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1795,7 +1795,7 @@ set_upper_references(PlannerInfo *root, Plan *plan, int rtoffset)
17951795
static void
17961796
set_param_references(PlannerInfo *root, Plan *plan)
17971797
{
1798-
Assert(IsA(plan, Gather) || IsA(plan, GatherMerge));
1798+
Assert(IsA(plan, Gather) ||IsA(plan, GatherMerge));
17991799

18001800
if (plan->lefttree->extParam)
18011801
{

src/backend/optimizer/util/clauses.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1118,7 +1118,7 @@ is_parallel_safe(PlannerInfo *root, Node *node)
11181118

11191119
foreach(l2, initsubplan->setParam)
11201120
context.safe_param_ids = lcons_int(lfirst_int(l2),
1121-
context.safe_param_ids);
1121+
context.safe_param_ids);
11221122
}
11231123
}
11241124

src/backend/optimizer/util/pathnode.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -2412,7 +2412,7 @@ apply_projection_to_path(PlannerInfo *root,
24122412
* workers can help project. But if there is something that is not
24132413
* parallel-safe in the target expressions, then we can't.
24142414
*/
2415-
if ((IsA(path, GatherPath) || IsA(path, GatherMergePath)) &&
2415+
if ((IsA(path, GatherPath) ||IsA(path, GatherMergePath)) &&
24162416
is_parallel_safe(root, (Node *) target->exprs))
24172417
{
24182418
/*
@@ -2421,9 +2421,9 @@ apply_projection_to_path(PlannerInfo *root,
24212421
* It seems unlikely at present that there could be any other
24222422
* references to the subpath, but better safe than sorry.
24232423
*
2424-
* Note that we don't change the parallel path's cost estimates; it might
2425-
* be appropriate to do so, to reflect the fact that the bulk of the
2426-
* target evaluation will happen in workers.
2424+
* Note that we don't change the parallel path's cost estimates; it
2425+
* might be appropriate to do so, to reflect the fact that the bulk of
2426+
* the target evaluation will happen in workers.
24272427
*/
24282428
if (IsA(path, GatherPath))
24292429
{

src/backend/optimizer/util/plancat.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -1825,7 +1825,7 @@ set_relation_partition_info(PlannerInfo *root, RelOptInfo *rel,
18251825
Relation relation)
18261826
{
18271827
PartitionDesc partdesc;
1828-
PartitionKey partkey;
1828+
PartitionKey partkey;
18291829

18301830
Assert(relation->rd_rel->relkind == RELKIND_PARTITIONED_TABLE);
18311831

@@ -1890,8 +1890,8 @@ find_partition_scheme(PlannerInfo *root, Relation relation)
18901890

18911891
/*
18921892
* Did not find matching partition scheme. Create one copying relevant
1893-
* information from the relcache. We need to copy the contents of the array
1894-
* since the relcache entry may not survive after we have closed the
1893+
* information from the relcache. We need to copy the contents of the
1894+
* array since the relcache entry may not survive after we have closed the
18951895
* relation.
18961896
*/
18971897
part_scheme = (PartitionScheme) palloc0(sizeof(PartitionSchemeData));

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/tonybelloni/postgres/commit/eaedf0df7197b21182f6c341a44e4fdaa3cd6ea6

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy