diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2015-05-24 15:04:10 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2015-05-24 15:04:10 -0400 |
commit | 2aa0476dc38f7e510b8cde627e83b4c76fa05d61 (patch) | |
tree | 19dad7292f6cad84a485e9670c786b2f1dcd3c18 /src/backend/executor/nodeHash.c | |
parent | 17b48a1a9f87f7479d38dcc78a27c23f1f8124f8 (diff) | |
download | postgresql-2aa0476dc38f7e510b8cde627e83b4c76fa05d61.tar.gz postgresql-2aa0476dc38f7e510b8cde627e83b4c76fa05d61.zip |
Manual cleanup of pgindent results.
Fix some places where pgindent did silly stuff, often because project
style wasn't followed to begin with. (I've not touched the atomics
headers, though.)
Diffstat (limited to 'src/backend/executor/nodeHash.c')
-rw-r--r-- | src/backend/executor/nodeHash.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/executor/nodeHash.c b/src/backend/executor/nodeHash.c index 2a049240549..906cb46b658 100644 --- a/src/backend/executor/nodeHash.c +++ b/src/backend/executor/nodeHash.c @@ -527,8 +527,8 @@ ExecChooseHashTableSize(double ntuples, int tupwidth, bool useskew, * Buckets are simple pointers to hashjoin tuples, while tupsize * includes the pointer, hash code, and MinimalTupleData. So buckets * should never really exceed 25% of work_mem (even for - * NTUP_PER_BUCKET=1); except maybe * for work_mem values that are not - * 2^N bytes, where we might get more * because of doubling. So let's + * NTUP_PER_BUCKET=1); except maybe for work_mem values that are not + * 2^N bytes, where we might get more because of doubling. So let's * look for 50% here. */ Assert(bucket_bytes <= hash_table_bytes / 2); @@ -691,9 +691,9 @@ ExecHashIncreaseNumBatches(HashJoinTable hashtable) if (batchno == curbatch) { /* keep tuple in memory - copy it into the new chunk */ - HashJoinTuple copyTuple = - (HashJoinTuple) dense_alloc(hashtable, hashTupleSize); + HashJoinTuple copyTuple; + copyTuple = (HashJoinTuple) dense_alloc(hashtable, hashTupleSize); memcpy(copyTuple, hashTuple, hashTupleSize); /* and add it back to the appropriate bucket */ |