1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-07 19:06:32 +03:00

Post-PG 10 beta1 pgindent run

perltidy run not included.
This commit is contained in:
Bruce Momjian
2017-05-17 16:31:56 -04:00
parent 8a94332478
commit a6fd7b7a5f
310 changed files with 3338 additions and 3171 deletions

View File

@@ -373,7 +373,7 @@ _copyGather(const Gather *from)
static GatherMerge *
_copyGatherMerge(const GatherMerge *from)
{
GatherMerge *newnode = makeNode(GatherMerge);
GatherMerge *newnode = makeNode(GatherMerge);
/*
* copy node superclass fields
@@ -691,7 +691,7 @@ _copyCteScan(const CteScan *from)
static NamedTuplestoreScan *
_copyNamedTuplestoreScan(const NamedTuplestoreScan *from)
{
NamedTuplestoreScan *newnode = makeNode(NamedTuplestoreScan);
NamedTuplestoreScan *newnode = makeNode(NamedTuplestoreScan);
/*
* copy node superclass fields

View File

@@ -1129,7 +1129,8 @@ exprSetCollation(Node *expr, Oid collation)
Assert(!OidIsValid(collation)); /* result is always boolean */
break;
case T_NextValueExpr:
Assert(!OidIsValid(collation)); /* result is always an integer type */
Assert(!OidIsValid(collation)); /* result is always an integer
* type */
break;
default:
elog(ERROR, "unrecognized node type: %d", (int) nodeTag(expr));

View File

@@ -468,7 +468,7 @@ _outGather(StringInfo str, const Gather *node)
static void
_outGatherMerge(StringInfo str, const GatherMerge *node)
{
int i;
int i;
WRITE_NODE_TYPE("GATHERMERGE");

View File

@@ -109,7 +109,7 @@ typedef struct PagetableEntry
*/
typedef struct PTEntryArray
{
pg_atomic_uint32 refcount; /* no. of iterator attached */
pg_atomic_uint32 refcount; /* no. of iterator attached */
PagetableEntry ptentry[FLEXIBLE_ARRAY_MEMBER];
} PTEntryArray;
@@ -206,7 +206,7 @@ typedef struct TBMSharedIteratorState
*/
typedef struct PTIterationArray
{
pg_atomic_uint32 refcount; /* no. of iterator attached */
pg_atomic_uint32 refcount; /* no. of iterator attached */
int index[FLEXIBLE_ARRAY_MEMBER]; /* index array */
} PTIterationArray;
@@ -905,8 +905,8 @@ tbm_prepare_shared_iterate(TIDBitmap *tbm)
/*
* For every shared iterator, referring to pagetable and iterator array,
* increase the refcount by 1 so that while freeing the shared iterator
* we don't free pagetable and iterator array until its refcount becomes 0.
* increase the refcount by 1 so that while freeing the shared iterator we
* don't free pagetable and iterator array until its refcount becomes 0.
*/
if (ptbase != NULL)
pg_atomic_add_fetch_u32(&ptbase->refcount, 1);