Post-PG 10 beta1 pgindent run
authorBruce Momjian <[email protected]>
Wed, 17 May 2017 20:31:56 +0000 (16:31 -0400)
committerBruce Momjian <[email protected]>
Wed, 17 May 2017 20:31:56 +0000 (16:31 -0400)
perltidy run not included.

310 files changed:
contrib/bloom/blinsert.c
contrib/bloom/blutils.c
contrib/btree_gin/btree_gin.c
contrib/btree_gist/btree_cash.c
contrib/btree_gist/btree_date.c
contrib/btree_gist/btree_enum.c
contrib/btree_gist/btree_float4.c
contrib/btree_gist/btree_float8.c
contrib/btree_gist/btree_inet.c
contrib/btree_gist/btree_int2.c
contrib/btree_gist/btree_int4.c
contrib/btree_gist/btree_int8.c
contrib/btree_gist/btree_interval.c
contrib/btree_gist/btree_oid.c
contrib/btree_gist/btree_time.c
contrib/btree_gist/btree_ts.c
contrib/btree_gist/btree_utils_num.h
contrib/btree_gist/btree_utils_var.c
contrib/btree_gist/btree_utils_var.h
contrib/btree_gist/btree_uuid.c
contrib/dblink/dblink.c
contrib/oid2name/oid2name.c
contrib/pageinspect/brinfuncs.c
contrib/pageinspect/hashfuncs.c
contrib/pageinspect/rawpage.c
contrib/pg_standby/pg_standby.c
contrib/pg_visibility/pg_visibility.c
contrib/pgcrypto/openssl.c
contrib/pgcrypto/pgcrypto.c
contrib/pgrowlocks/pgrowlocks.c
contrib/pgstattuple/pgstatapprox.c
contrib/pgstattuple/pgstatindex.c
contrib/postgres_fdw/deparse.c
contrib/postgres_fdw/postgres_fdw.c
contrib/postgres_fdw/postgres_fdw.h
src/backend/access/brin/brin.c
src/backend/access/brin/brin_revmap.c
src/backend/access/brin/brin_xlog.c
src/backend/access/common/printsimple.c
src/backend/access/gin/ginvacuum.c
src/backend/access/hash/hash.c
src/backend/access/hash/hash_xlog.c
src/backend/access/hash/hashinsert.c
src/backend/access/hash/hashpage.c
src/backend/access/hash/hashutil.c
src/backend/access/heap/heapam.c
src/backend/access/nbtree/nbtree.c
src/backend/access/rmgrdesc/brindesc.c
src/backend/access/rmgrdesc/clogdesc.c
src/backend/access/rmgrdesc/gindesc.c
src/backend/access/spgist/spginsert.c
src/backend/access/transam/clog.c
src/backend/access/transam/commit_ts.c
src/backend/access/transam/subtrans.c
src/backend/access/transam/twophase.c
src/backend/access/transam/varsup.c
src/backend/access/transam/xact.c
src/backend/access/transam/xlog.c
src/backend/access/transam/xlogfuncs.c
src/backend/access/transam/xloginsert.c
src/backend/access/transam/xlogreader.c
src/backend/access/transam/xlogutils.c
src/backend/catalog/dependency.c
src/backend/catalog/heap.c
src/backend/catalog/objectaddress.c
src/backend/catalog/pg_collation.c
src/backend/catalog/pg_depend.c
src/backend/catalog/pg_inherits.c
src/backend/catalog/pg_namespace.c
src/backend/catalog/pg_publication.c
src/backend/catalog/pg_subscription.c
src/backend/commands/alter.c
src/backend/commands/analyze.c
src/backend/commands/collationcmds.c
src/backend/commands/copy.c
src/backend/commands/dbcommands.c
src/backend/commands/define.c
src/backend/commands/dropcmds.c
src/backend/commands/event_trigger.c
src/backend/commands/foreigncmds.c
src/backend/commands/publicationcmds.c
src/backend/commands/sequence.c
src/backend/commands/statscmds.c
src/backend/commands/subscriptioncmds.c
src/backend/commands/tablecmds.c
src/backend/commands/trigger.c
src/backend/commands/tsearchcmds.c
src/backend/commands/user.c
src/backend/commands/vacuumlazy.c
src/backend/commands/view.c
src/backend/executor/execAmi.c
src/backend/executor/execGrouping.c
src/backend/executor/execMain.c
src/backend/executor/execParallel.c
src/backend/executor/execProcnode.c
src/backend/executor/execReplication.c
src/backend/executor/execUtils.c
src/backend/executor/nodeAgg.c
src/backend/executor/nodeAppend.c
src/backend/executor/nodeBitmapHeapscan.c
src/backend/executor/nodeGather.c
src/backend/executor/nodeGatherMerge.c
src/backend/executor/nodeMergeAppend.c
src/backend/executor/nodeModifyTable.c
src/backend/executor/nodeProjectSet.c
src/backend/executor/nodeSetOp.c
src/backend/executor/nodeTableFuncscan.c
src/backend/executor/spi.c
src/backend/lib/rbtree.c
src/backend/libpq/auth.c
src/backend/libpq/crypt.c
src/backend/libpq/hba.c
src/backend/libpq/pqcomm.c
src/backend/nodes/copyfuncs.c
src/backend/nodes/nodeFuncs.c
src/backend/nodes/outfuncs.c
src/backend/nodes/tidbitmap.c
src/backend/optimizer/path/allpaths.c
src/backend/optimizer/path/costsize.c
src/backend/optimizer/path/indxpath.c
src/backend/optimizer/plan/createplan.c
src/backend/optimizer/plan/planner.c
src/backend/optimizer/plan/setrefs.c
src/backend/optimizer/prep/prepunion.c
src/backend/optimizer/util/pathnode.c
src/backend/optimizer/util/plancat.c
src/backend/optimizer/util/relnode.c
src/backend/parser/analyze.c
src/backend/parser/parse_clause.c
src/backend/parser/parse_expr.c
src/backend/parser/parse_relation.c
src/backend/parser/parse_utilcmd.c
src/backend/port/posix_sema.c
src/backend/postmaster/bgworker.c
src/backend/postmaster/bgwriter.c
src/backend/postmaster/checkpointer.c
src/backend/postmaster/pgstat.c
src/backend/postmaster/postmaster.c
src/backend/postmaster/syslogger.c
src/backend/replication/basebackup.c
src/backend/replication/libpqwalreceiver/libpqwalreceiver.c
src/backend/replication/logical/launcher.c
src/backend/replication/logical/logical.c
src/backend/replication/logical/logicalfuncs.c
src/backend/replication/logical/proto.c
src/backend/replication/logical/relation.c
src/backend/replication/logical/snapbuild.c
src/backend/replication/logical/tablesync.c
src/backend/replication/logical/worker.c
src/backend/replication/pgoutput/pgoutput.c
src/backend/replication/slot.c
src/backend/replication/slotfuncs.c
src/backend/replication/syncrep.c
src/backend/replication/walreceiver.c
src/backend/replication/walsender.c
src/backend/rewrite/rewriteDefine.c
src/backend/rewrite/rewriteHandler.c
src/backend/statistics/dependencies.c
src/backend/statistics/extended_stats.c
src/backend/statistics/mvdistinct.c
src/backend/storage/file/fd.c
src/backend/storage/lmgr/condition_variable.c
src/backend/storage/lmgr/lwlock.c
src/backend/storage/smgr/md.c
src/backend/tcop/utility.c
src/backend/tsearch/to_tsany.c
src/backend/tsearch/wparser.c
src/backend/utils/adt/cash.c
src/backend/utils/adt/dbsize.c
src/backend/utils/adt/formatting.c
src/backend/utils/adt/genfile.c
src/backend/utils/adt/json.c
src/backend/utils/adt/jsonb.c
src/backend/utils/adt/jsonfuncs.c
src/backend/utils/adt/like.c
src/backend/utils/adt/mac.c
src/backend/utils/adt/mac8.c
src/backend/utils/adt/pg_locale.c
src/backend/utils/adt/ruleutils.c
src/backend/utils/adt/selfuncs.c
src/backend/utils/adt/txid.c
src/backend/utils/adt/varlena.c
src/backend/utils/adt/xml.c
src/backend/utils/cache/inval.c
src/backend/utils/cache/lsyscache.c
src/backend/utils/cache/plancache.c
src/backend/utils/cache/relcache.c
src/backend/utils/cache/syscache.c
src/backend/utils/fmgr/dfmgr.c
src/backend/utils/fmgr/fmgr.c
src/backend/utils/mb/conv.c
src/backend/utils/mb/conversion_procs/utf8_and_iso8859/utf8_and_iso8859.c
src/backend/utils/mb/conversion_procs/utf8_and_win/utf8_and_win.c
src/backend/utils/mb/encnames.c
src/backend/utils/misc/backend_random.c
src/backend/utils/misc/guc.c
src/backend/utils/sort/tuplesort.c
src/backend/utils/time/snapmgr.c
src/bin/initdb/findtimezone.c
src/bin/initdb/initdb.c
src/bin/pg_archivecleanup/pg_archivecleanup.c
src/bin/pg_basebackup/pg_basebackup.c
src/bin/pg_basebackup/pg_receivewal.c
src/bin/pg_basebackup/receivelog.c
src/bin/pg_basebackup/walmethods.c
src/bin/pg_basebackup/walmethods.h
src/bin/pg_ctl/pg_ctl.c
src/bin/pg_dump/pg_backup.h
src/bin/pg_dump/pg_backup_archiver.c
src/bin/pg_dump/pg_backup_archiver.h
src/bin/pg_dump/pg_dump.c
src/bin/pg_dump/pg_dump.h
src/bin/pg_dump/pg_dumpall.c
src/bin/pg_resetwal/pg_resetwal.c
src/bin/pg_test_timing/pg_test_timing.c
src/bin/pg_upgrade/exec.c
src/bin/pg_upgrade/info.c
src/bin/pg_upgrade/option.c
src/bin/pg_waldump/pg_waldump.c
src/bin/psql/conditional.h
src/bin/psql/describe.c
src/bin/psql/describe.h
src/bin/psql/tab-complete.c
src/common/file_utils.c
src/common/saslprep.c
src/common/scram-common.c
src/common/sha2_openssl.c
src/common/unicode_norm.c
src/include/access/brin.h
src/include/access/brin_tuple.h
src/include/access/brin_xlog.h
src/include/access/clog.h
src/include/access/hash.h
src/include/access/hash_xlog.h
src/include/access/relscan.h
src/include/access/twophase.h
src/include/access/xact.h
src/include/access/xlog.h
src/include/access/xlogreader.h
src/include/access/xlogutils.h
src/include/c.h
src/include/catalog/dependency.h
src/include/catalog/pg_authid.h
src/include/catalog/pg_collation.h
src/include/catalog/pg_operator.h
src/include/catalog/pg_policy.h
src/include/catalog/pg_proc.h
src/include/catalog/pg_publication.h
src/include/catalog/pg_publication_rel.h
src/include/catalog/pg_sequence.h
src/include/catalog/pg_statistic_ext.h
src/include/catalog/pg_subscription.h
src/include/catalog/pg_subscription_rel.h
src/include/commands/createas.h
src/include/commands/explain.h
src/include/commands/subscriptioncmds.h
src/include/common/file_utils.h
src/include/common/scram-common.h
src/include/executor/executor.h
src/include/executor/nodeGatherMerge.h
src/include/executor/spi.h
src/include/executor/tablefunc.h
src/include/lib/simplehash.h
src/include/libpq/hba.h
src/include/mb/pg_wchar.h
src/include/nodes/execnodes.h
src/include/nodes/makefuncs.h
src/include/nodes/parsenodes.h
src/include/nodes/plannodes.h
src/include/nodes/relation.h
src/include/optimizer/cost.h
src/include/optimizer/pathnode.h
src/include/optimizer/paths.h
src/include/parser/parse_func.h
src/include/parser/parse_node.h
src/include/parser/parse_oper.h
src/include/replication/logical.h
src/include/replication/logicallauncher.h
src/include/replication/logicalproto.h
src/include/replication/logicalrelation.h
src/include/replication/pgoutput.h
src/include/replication/snapbuild.h
src/include/replication/syncrep.h
src/include/replication/walreceiver.h
src/include/replication/worker_internal.h
src/include/statistics/extended_stats_internal.h
src/include/storage/condition_variable.h
src/include/storage/proc.h
src/include/storage/procarray.h
src/include/tcop/utility.h
src/include/utils/jsonapi.h
src/include/utils/lsyscache.h
src/include/utils/pg_locale.h
src/include/utils/plancache.h
src/include/utils/queryenvironment.h
src/include/utils/regproc.h
src/include/utils/rel.h
src/include/utils/varlena.h
src/interfaces/libpq/fe-auth-scram.c
src/interfaces/libpq/fe-connect.c
src/interfaces/libpq/fe-secure-openssl.c
src/interfaces/libpq/libpq-fe.h
src/pl/plperl/plperl.c
src/pl/plpgsql/src/plpgsql.h
src/pl/plpython/plpy_exec.c
src/pl/plpython/plpy_typeio.c
src/pl/tcl/pltcl.c
src/port/dirmod.c
src/test/regress/regress.c
src/tools/testint128.c

index 913f1f8a51870667a26c7339dd5b5af255375b52..0d506e3c1ad6afa79133e02804aabfe1fa45c6b9 100644 (file)
@@ -165,11 +165,11 @@ blbuildempty(Relation index)
        BloomFillMetapage(index, metapage);
 
        /*
-        * Write the page and log it.  It might seem that an immediate sync
-        * would be sufficient to guarantee that the file exists on disk, but
-        * recovery itself might remove it while replaying, for example, an
-        * XLOG_DBASE_CREATE or XLOG_TBLSPC_CREATE record.  Therefore, we
-        * need this even when wal_level=minimal.
+        * Write the page and log it.  It might seem that an immediate sync would
+        * be sufficient to guarantee that the file exists on disk, but recovery
+        * itself might remove it while replaying, for example, an
+        * XLOG_DBASE_CREATE or XLOG_TBLSPC_CREATE record.  Therefore, we need
+        * this even when wal_level=minimal.
         */
        PageSetChecksumInplace(metapage, BLOOM_METAPAGE_BLKNO);
        smgrwrite(index->rd_smgr, INIT_FORKNUM, BLOOM_METAPAGE_BLKNO,
index f2eda67e0aeb87c5e61cdb93617e3d86938276b6..00a65875b03a711f8320b18deb09c7466bd56f18 100644 (file)
@@ -75,7 +75,7 @@ _PG_init(void)
                bl_relopt_tab[i + 1].optname = MemoryContextStrdup(TopMemoryContext,
                                                                                                                   buf);
                bl_relopt_tab[i + 1].opttype = RELOPT_TYPE_INT;
-               bl_relopt_tab[i + 1].offset = offsetof(BloomOptions, bitSize[0]) + sizeof(int) * i;
+               bl_relopt_tab[i + 1].offset = offsetof(BloomOptions, bitSize[0]) +sizeof(int) * i;
        }
 }
 
index 7191fbf54f7dc8eed034f5be987391320c292ce8..6f0c752b2e89e0a7d8229b17c5246f0207846840 100644 (file)
@@ -112,13 +112,13 @@ gin_btree_compare_prefix(FunctionCallInfo fcinfo)
                                cmp;
 
        cmp = DatumGetInt32(CallerFInfoFunctionCall2(
-                                                       data->typecmp,
-                                                       fcinfo->flinfo,
-                                                       PG_GET_COLLATION(),
-                                                       (data->strategy == BTLessStrategyNumber ||
-                                                        data->strategy == BTLessEqualStrategyNumber)
-                                                       ? data->datum : a,
-                                                       b));
+                                                                                                data->typecmp,
+                                                                                                fcinfo->flinfo,
+                                                                                                PG_GET_COLLATION(),
+                                                                  (data->strategy == BTLessStrategyNumber ||
+                                                                data->strategy == BTLessEqualStrategyNumber)
+                                                                                                ? data->datum : a,
+                                                                                                b));
 
        switch (data->strategy)
        {
@@ -438,16 +438,16 @@ GIN_SUPPORT(numeric, true, leftmostvalue_numeric, gin_numeric_cmp)
  */
 
 
-#define ENUM_IS_LEFTMOST(x)    ((x) == InvalidOid)
+#define ENUM_IS_LEFTMOST(x) ((x) == InvalidOid)
 
 PG_FUNCTION_INFO_V1(gin_enum_cmp);
 
 Datum
 gin_enum_cmp(PG_FUNCTION_ARGS)
 {
-       Oid             a = PG_GETARG_OID(0);
-       Oid             b = PG_GETARG_OID(1);
-       int             res = 0;
+       Oid                     a = PG_GETARG_OID(0);
+       Oid                     b = PG_GETARG_OID(1);
+       int                     res = 0;
 
        if (ENUM_IS_LEFTMOST(a))
        {
@@ -460,11 +460,11 @@ gin_enum_cmp(PG_FUNCTION_ARGS)
        else
        {
                res = DatumGetInt32(CallerFInfoFunctionCall2(
-                                                               enum_cmp,
-                                                               fcinfo->flinfo,
-                                                               PG_GET_COLLATION(),
-                                                               ObjectIdGetDatum(a),
-                                                               ObjectIdGetDatum(b)));
+                                                                                                        enum_cmp,
+                                                                                                        fcinfo->flinfo,
+                                                                                                        PG_GET_COLLATION(),
+                                                                                                        ObjectIdGetDatum(a),
+                                                                                                        ObjectIdGetDatum(b)));
        }
 
        PG_RETURN_INT32(res);
index ca0c86b5d82df8c42b4aef6c9bc94d67dbd390f4..1116ca084f3ab544985dd33ee1e7dbd8c2b225aa 100644 (file)
@@ -170,7 +170,7 @@ gbt_cash_distance(PG_FUNCTION_ARGS)
        key.upper = (GBT_NUMKEY *) &kkk->upper;
 
        PG_RETURN_FLOAT8(
-                       gbt_num_distance(&key, (void *) &query, GIST_LEAF(entry), &tinfo, fcinfo->flinfo)
+                                        gbt_num_distance(&key, (void *) &query, GIST_LEAF(entry), &tinfo, fcinfo->flinfo)
                );
 }
 
index c9daf340976285f664020b5b7bb5d5006c5816d9..28c7c2ac8611bc216f06f42e6bfcd5df7ac3aa55 100644 (file)
@@ -182,7 +182,7 @@ gbt_date_distance(PG_FUNCTION_ARGS)
        key.upper = (GBT_NUMKEY *) &kkk->upper;
 
        PG_RETURN_FLOAT8(
-                       gbt_num_distance(&key, (void *) &query, GIST_LEAF(entry), &tinfo, fcinfo->flinfo)
+                                        gbt_num_distance(&key, (void *) &query, GIST_LEAF(entry), &tinfo, fcinfo->flinfo)
                );
 }
 
index 5e46e782befe90de308d196a5587b50519d3502a..8bbadfe860c1a976bf8d5ed73d400bc3125857ae 100644 (file)
@@ -32,14 +32,14 @@ static bool
 gbt_enumgt(const void *a, const void *b, FmgrInfo *flinfo)
 {
        return DatumGetBool(
-               CallerFInfoFunctionCall2(enum_gt, flinfo, InvalidOid, ObjectIdGetDatum(*((const Oid *) a)), ObjectIdGetDatum(*((const Oid *) b)))
+                                               CallerFInfoFunctionCall2(enum_gt, flinfo, InvalidOid, ObjectIdGetDatum(*((const Oid *) a)), ObjectIdGetDatum(*((const Oid *) b)))
                );
 }
 static bool
 gbt_enumge(const void *a, const void *b, FmgrInfo *flinfo)
 {
        return DatumGetBool(
-               CallerFInfoFunctionCall2(enum_ge, flinfo, InvalidOid, ObjectIdGetDatum(*((const Oid *) a)), ObjectIdGetDatum(*((const Oid *) b)))
+                                               CallerFInfoFunctionCall2(enum_ge, flinfo, InvalidOid, ObjectIdGetDatum(*((const Oid *) a)), ObjectIdGetDatum(*((const Oid *) b)))
                );
 }
 static bool
@@ -74,12 +74,12 @@ gbt_enumkey_cmp(const void *a, const void *b, FmgrInfo *flinfo)
                        return 0;
 
                return DatumGetInt32(
-                       CallerFInfoFunctionCall2(enum_cmp, flinfo, InvalidOid, ObjectIdGetDatum(ia->upper), ObjectIdGetDatum(ib->upper))
+                                                        CallerFInfoFunctionCall2(enum_cmp, flinfo, InvalidOid, ObjectIdGetDatum(ia->upper), ObjectIdGetDatum(ib->upper))
                        );
        }
 
        return DatumGetInt32(
-               CallerFInfoFunctionCall2(enum_cmp, flinfo, InvalidOid, ObjectIdGetDatum(ia->lower), ObjectIdGetDatum(ib->lower))
+                                                CallerFInfoFunctionCall2(enum_cmp, flinfo, InvalidOid, ObjectIdGetDatum(ia->lower), ObjectIdGetDatum(ib->lower))
                );
 }
 
@@ -94,7 +94,7 @@ static const gbtree_ninfo tinfo =
        gbt_enumle,
        gbt_enumlt,
        gbt_enumkey_cmp,
-       NULL /* no KNN support at least for now */
+       NULL                                            /* no KNN support at least for now */
 };
 
 
index 46b3edbab3b7497b938531bcd4d77c903dcfdca6..fe6993c226cda3fa78556ca48bd588252d000321 100644 (file)
@@ -163,7 +163,7 @@ gbt_float4_distance(PG_FUNCTION_ARGS)
        key.upper = (GBT_NUMKEY *) &kkk->upper;
 
        PG_RETURN_FLOAT8(
-                       gbt_num_distance(&key, (void *) &query, GIST_LEAF(entry), &tinfo, fcinfo->flinfo)
+                                        gbt_num_distance(&key, (void *) &query, GIST_LEAF(entry), &tinfo, fcinfo->flinfo)
                );
 }
 
index 7d653075c571db1a8722fb836cce13dcd8608612..13153d811fdfeccb986bc18bd0a777a22c074bc9 100644 (file)
@@ -170,7 +170,7 @@ gbt_float8_distance(PG_FUNCTION_ARGS)
        key.upper = (GBT_NUMKEY *) &kkk->upper;
 
        PG_RETURN_FLOAT8(
-                       gbt_num_distance(&key, (void *) &query, GIST_LEAF(entry), &tinfo, fcinfo->flinfo)
+                                        gbt_num_distance(&key, (void *) &query, GIST_LEAF(entry), &tinfo, fcinfo->flinfo)
                );
 }
 
index 7c95ee6814525d2fd69db4bdea84d010c5884495..e1561b37b73d7f9f007ef8cbdd4dc5f5396aa92d 100644 (file)
@@ -133,7 +133,7 @@ gbt_inet_consistent(PG_FUNCTION_ARGS)
        key.upper = (GBT_NUMKEY *) &kkk->upper;
 
        PG_RETURN_BOOL(gbt_num_consistent(&key, (void *) &query,
-                                                                         &strategy, GIST_LEAF(entry), &tinfo, fcinfo->flinfo));
+                                          &strategy, GIST_LEAF(entry), &tinfo, fcinfo->flinfo));
 }
 
 
index 3dae5e7c61dc8a3223e47d7f2266ae44bc532898..0a4498a693a028167e98444dd785073b61215a77 100644 (file)
@@ -170,7 +170,7 @@ gbt_int2_distance(PG_FUNCTION_ARGS)
        key.upper = (GBT_NUMKEY *) &kkk->upper;
 
        PG_RETURN_FLOAT8(
-                       gbt_num_distance(&key, (void *) &query, GIST_LEAF(entry), &tinfo, fcinfo->flinfo)
+                                        gbt_num_distance(&key, (void *) &query, GIST_LEAF(entry), &tinfo, fcinfo->flinfo)
                );
 }
 
index 213bfa3323f82b5329989cbb86e21d8ec627e50f..b29cbc81a3e66ee7475054f8342965d4d3627529 100644 (file)
@@ -171,7 +171,7 @@ gbt_int4_distance(PG_FUNCTION_ARGS)
        key.upper = (GBT_NUMKEY *) &kkk->upper;
 
        PG_RETURN_FLOAT8(
-                       gbt_num_distance(&key, (void *) &query, GIST_LEAF(entry), &tinfo, fcinfo->flinfo)
+                                        gbt_num_distance(&key, (void *) &query, GIST_LEAF(entry), &tinfo, fcinfo->flinfo)
                );
 }
 
index 62b079bba698816b1970a358d050c0c723a7b5aa..df1f5338c845023e2d50f30c0d63179a0cb46cf2 100644 (file)
@@ -171,7 +171,7 @@ gbt_int8_distance(PG_FUNCTION_ARGS)
        key.upper = (GBT_NUMKEY *) &kkk->upper;
 
        PG_RETURN_FLOAT8(
-                       gbt_num_distance(&key, (void *) &query, GIST_LEAF(entry), &tinfo, fcinfo->flinfo)
+                                        gbt_num_distance(&key, (void *) &query, GIST_LEAF(entry), &tinfo, fcinfo->flinfo)
                );
 }
 
index f41f471bf6e20bd86b9dcc2b3f4cd09956be650c..e4dd9e4238a0e7ab04a4604875e49433c161d7c7 100644 (file)
@@ -245,7 +245,7 @@ gbt_intv_distance(PG_FUNCTION_ARGS)
        key.upper = (GBT_NUMKEY *) &kkk->upper;
 
        PG_RETURN_FLOAT8(
-                        gbt_num_distance(&key, (void *) query, GIST_LEAF(entry), &tinfo, fcinfo->flinfo)
+                                        gbt_num_distance(&key, (void *) query, GIST_LEAF(entry), &tinfo, fcinfo->flinfo)
                );
 }
 
index e588faa15a33740bde8e7f9f3f667ac6a396a237..e0d6f2adf18236ea5ae100abfd15858ec2c0217f 100644 (file)
@@ -171,7 +171,7 @@ gbt_oid_distance(PG_FUNCTION_ARGS)
        key.upper = (GBT_NUMKEY *) &kkk->upper;
 
        PG_RETURN_FLOAT8(
-                       gbt_num_distance(&key, (void *) &query, GIST_LEAF(entry), &tinfo, fcinfo->flinfo)
+                                        gbt_num_distance(&key, (void *) &query, GIST_LEAF(entry), &tinfo, fcinfo->flinfo)
                );
 }
 
index a4a1ad5aebc17317dbadb6726ef960fb471d76db..5eec8323f553ad133d9435bb75ca756db5c50a0e 100644 (file)
@@ -235,7 +235,7 @@ gbt_time_distance(PG_FUNCTION_ARGS)
        key.upper = (GBT_NUMKEY *) &kkk->upper;
 
        PG_RETURN_FLOAT8(
-                       gbt_num_distance(&key, (void *) &query, GIST_LEAF(entry), &tinfo, fcinfo->flinfo)
+                                        gbt_num_distance(&key, (void *) &query, GIST_LEAF(entry), &tinfo, fcinfo->flinfo)
                );
 }
 
index 13bc39424b256c01f85ec3621715b927da769bfa..592466c948add31978d0abf47b3347645fee0909 100644 (file)
@@ -283,7 +283,7 @@ gbt_ts_distance(PG_FUNCTION_ARGS)
        key.upper = (GBT_NUMKEY *) &kkk->upper;
 
        PG_RETURN_FLOAT8(
-                       gbt_num_distance(&key, (void *) &query, GIST_LEAF(entry), &tinfo, fcinfo->flinfo)
+                                        gbt_num_distance(&key, (void *) &query, GIST_LEAF(entry), &tinfo, fcinfo->flinfo)
                );
 }
 
@@ -328,7 +328,7 @@ gbt_tstz_distance(PG_FUNCTION_ARGS)
        qqq = tstz_to_ts_gmt(query);
 
        PG_RETURN_FLOAT8(
-                         gbt_num_distance(&key, (void *) &qqq, GIST_LEAF(entry), &tinfo, fcinfo->flinfo)
+                                        gbt_num_distance(&key, (void *) &qqq, GIST_LEAF(entry), &tinfo, fcinfo->flinfo)
                );
 }
 
index 17561fa9e4ef888a8e459a0c0330e0044a7e8c5f..8aab19396c494075162cf296922143b306a95c6b 100644 (file)
@@ -42,13 +42,13 @@ typedef struct
 
        /* Methods */
 
-       bool            (*f_gt) (const void *, const void *, FmgrInfo *);       /* greater than */
-       bool            (*f_ge) (const void *, const void *, FmgrInfo *);       /* greater or equal */
-       bool            (*f_eq) (const void *, const void *, FmgrInfo *);       /* equal */
-       bool            (*f_le) (const void *, const void *, FmgrInfo *);       /* less or equal */
-       bool            (*f_lt) (const void *, const void *, FmgrInfo *);       /* less than */
-       int                     (*f_cmp) (const void *, const void *, FmgrInfo *);      /* key compare function */
-       float8          (*f_dist) (const void *, const void *, FmgrInfo *); /* key distance function */
+       bool            (*f_gt) (const void *, const void *, FmgrInfo *);               /* greater than */
+       bool            (*f_ge) (const void *, const void *, FmgrInfo *);               /* greater or equal */
+       bool            (*f_eq) (const void *, const void *, FmgrInfo *);               /* equal */
+       bool            (*f_le) (const void *, const void *, FmgrInfo *);               /* less or equal */
+       bool            (*f_lt) (const void *, const void *, FmgrInfo *);               /* less than */
+       int                     (*f_cmp) (const void *, const void *, FmgrInfo *);              /* key compare function */
+       float8          (*f_dist) (const void *, const void *, FmgrInfo *);             /* key distance function */
 } gbtree_ninfo;
 
 
index e0b4b377796a5b3a74a2f48f57744065c7941936..3648adccef7b6b5552bf1b9f6190491e30cd31f9 100644 (file)
@@ -25,7 +25,7 @@ typedef struct
 {
        const gbtree_vinfo *tinfo;
        Oid                     collation;
-       FmgrInfo *flinfo;
+       FmgrInfo   *flinfo;
 } gbt_vsrt_arg;
 
 
@@ -402,8 +402,8 @@ gbt_var_penalty(float *res, const GISTENTRY *o, const GISTENTRY *n,
                *res = 0.0;
        else if (!(((*tinfo->f_cmp) (nk.lower, ok.lower, collation, flinfo) >= 0 ||
                                gbt_bytea_pf_match(ok.lower, nk.lower, tinfo)) &&
-                          ((*tinfo->f_cmp) (nk.upper, ok.upper, collation, flinfo) <= 0 ||
-                               gbt_bytea_pf_match(ok.upper, nk.upper, tinfo))))
+                        ((*tinfo->f_cmp) (nk.upper, ok.upper, collation, flinfo) <= 0 ||
+                         gbt_bytea_pf_match(ok.upper, nk.upper, tinfo))))
        {
                Datum           d = PointerGetDatum(0);
                double          dres;
index fbc76ce738564369c7217f4d3d1d9347f776ae94..04a356276bf23b73331f059c3a76e7c393b2fe68 100644 (file)
@@ -34,12 +34,12 @@ typedef struct
 
        /* Methods */
 
-       bool            (*f_gt) (const void *, const void *, Oid, FmgrInfo *);          /* greater than */
-       bool            (*f_ge) (const void *, const void *, Oid, FmgrInfo *);          /* greater equal */
-       bool            (*f_eq) (const void *, const void *, Oid, FmgrInfo *);          /* equal */
-       bool            (*f_le) (const void *, const void *, Oid, FmgrInfo *);          /* less equal */
-       bool            (*f_lt) (const void *, const void *, Oid, FmgrInfo *);          /* less than */
-       int32           (*f_cmp) (const void *, const void *, Oid, FmgrInfo *);         /* compare */
+       bool            (*f_gt) (const void *, const void *, Oid, FmgrInfo *);  /* greater than */
+       bool            (*f_ge) (const void *, const void *, Oid, FmgrInfo *);  /* greater equal */
+       bool            (*f_eq) (const void *, const void *, Oid, FmgrInfo *);  /* equal */
+       bool            (*f_le) (const void *, const void *, Oid, FmgrInfo *);  /* less equal */
+       bool            (*f_lt) (const void *, const void *, Oid, FmgrInfo *);  /* less than */
+       int32           (*f_cmp) (const void *, const void *, Oid, FmgrInfo *); /* compare */
        GBT_VARKEY *(*f_l2n) (GBT_VARKEY *, FmgrInfo *flinfo);          /* convert leaf to node */
 } gbtree_vinfo;
 
index 5ed80925d3e3ad979293b54c260219aa955af072..e67b8cc989894266dd44505d94181afd47e800b1 100644 (file)
@@ -150,7 +150,7 @@ gbt_uuid_consistent(PG_FUNCTION_ARGS)
 
        PG_RETURN_BOOL(
                                   gbt_num_consistent(&key, (void *) query, &strategy,
-                                                                         GIST_LEAF(entry), &tinfo, fcinfo->flinfo)
+                                                                       GIST_LEAF(entry), &tinfo, fcinfo->flinfo)
                );
 }
 
index 44b67daedba699a82de7f23f3670b78f9e852d4c..a6a3c09ff8e5c2499b26e636b58a4ac9b10e1583 100644 (file)
@@ -113,7 +113,7 @@ static char *generate_relation_name(Relation rel);
 static void dblink_connstr_check(const char *connstr);
 static void dblink_security_check(PGconn *conn, remoteConn *rconn);
 static void dblink_res_error(PGconn *conn, const char *conname, PGresult *res,
-                                                        const char *dblink_context_msg, bool fail);
+                                const char *dblink_context_msg, bool fail);
 static char *get_connect_string(const char *servername);
 static char *escape_param_str(const char *from);
 static void validate_pkattnums(Relation rel,
@@ -152,16 +152,19 @@ xpstrdup(const char *in)
        return pstrdup(in);
 }
 
-static void pg_attribute_noreturn()
+static void
+pg_attribute_noreturn()
 dblink_res_internalerror(PGconn *conn, PGresult *res, const char *p2)
 {
        char       *msg = pchomp(PQerrorMessage(conn));
+
        if (res)
                PQclear(res);
        elog(ERROR, "%s: %s", p2, msg);
 }
 
-static void pg_attribute_noreturn()
+static void
+pg_attribute_noreturn()
 dblink_conn_not_avail(const char *conname)
 {
        if (conname)
@@ -176,7 +179,7 @@ dblink_conn_not_avail(const char *conname)
 
 static void
 dblink_get_conn(char *conname_or_str,
-                               PGconn * volatile *conn_p, char **conname_p, volatile bool *freeconn_p)
+         PGconn *volatile * conn_p, char **conname_p, volatile bool *freeconn_p)
 {
        remoteConn *rconn = getConnectionByName(conname_or_str);
        PGconn     *conn;
@@ -201,11 +204,12 @@ dblink_get_conn(char *conname_or_str,
                if (PQstatus(conn) == CONNECTION_BAD)
                {
                        char       *msg = pchomp(PQerrorMessage(conn));
+
                        PQfinish(conn);
                        ereport(ERROR,
-                                       (errcode(ERRCODE_SQLCLIENT_UNABLE_TO_ESTABLISH_SQLCONNECTION),
-                                        errmsg("could not establish connection"),
-                                        errdetail_internal("%s", msg)));
+                          (errcode(ERRCODE_SQLCLIENT_UNABLE_TO_ESTABLISH_SQLCONNECTION),
+                               errmsg("could not establish connection"),
+                               errdetail_internal("%s", msg)));
                }
                dblink_security_check(conn, rconn);
                if (PQclientEncoding(conn) != GetDatabaseEncoding())
@@ -223,11 +227,12 @@ static PGconn *
 dblink_get_named_conn(const char *conname)
 {
        remoteConn *rconn = getConnectionByName(conname);
+
        if (rconn)
                return rconn->conn;
 
        dblink_conn_not_avail(conname);
-       return NULL;            /* keep compiler quiet */
+       return NULL;                            /* keep compiler quiet */
 }
 
 static void
@@ -2699,9 +2704,9 @@ dblink_res_error(PGconn *conn, const char *conname, PGresult *res,
        message_context = xpstrdup(pg_diag_context);
 
        /*
-        * If we don't get a message from the PGresult, try the PGconn.  This
-        * is needed because for connection-level failures, PQexec may just
-        * return NULL, not a PGresult at all.
+        * If we don't get a message from the PGresult, try the PGconn.  This is
+        * needed because for connection-level failures, PQexec may just return
+        * NULL, not a PGresult at all.
         */
        if (message_primary == NULL)
                message_primary = pchomp(PQerrorMessage(conn));
@@ -2732,7 +2737,7 @@ get_connect_string(const char *servername)
        ForeignServer *foreign_server = NULL;
        UserMapping *user_mapping;
        ListCell   *cell;
-       StringInfoData  buf;
+       StringInfoData buf;
        ForeignDataWrapper *fdw;
        AclResult       aclresult;
        char       *srvname;
@@ -2820,7 +2825,7 @@ static char *
 escape_param_str(const char *str)
 {
        const char *cp;
-       StringInfoData  buf;
+       StringInfoData buf;
 
        initStringInfo(&buf);
 
index ec93e4b8d0a9498bc58c2aa5855cadaf0ac5d293..aab71aed2faa889523c4555fa1cfcd99e67c45fa 100644 (file)
@@ -507,7 +507,7 @@ sql_exec_searchtables(PGconn *conn, struct options * opts)
        todo = psprintf(
                                        "SELECT pg_catalog.pg_relation_filenode(c.oid) as \"Filenode\", relname as \"Table Name\" %s\n"
                                        "FROM pg_catalog.pg_class c\n"
-                     LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace\n"
+                "      LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace\n"
                                        "       LEFT JOIN pg_catalog.pg_database d ON d.datname = pg_catalog.current_database(),\n"
                                        "       pg_catalog.pg_tablespace t\n"
                                        "WHERE relkind IN (" CppAsString2(RELKIND_RELATION) ","
index dc9cc2d09aa3c67b2e1b2c7d544b1de91c2b136c..d52807dcdd6ab8964f16656dcc493d7009e88950 100644 (file)
@@ -226,8 +226,8 @@ brin_page_items(PG_FUNCTION_ARGS)
                        if (ItemIdIsUsed(itemId))
                        {
                                dtup = brin_deform_tuple(bdesc,
-                                                                       (BrinTuple *) PageGetItem(page, itemId),
-                                                                       NULL);
+                                                                        (BrinTuple *) PageGetItem(page, itemId),
+                                                                                NULL);
                                attno = 1;
                                unusedItem = false;
                        }
index 6e52969fd3447f7674fe93aaa523ab1547ab2348..228a147c9e81efc38ce3c8ba9da79a65a26fb799 100644 (file)
@@ -34,10 +34,10 @@ PG_FUNCTION_INFO_V1(hash_metapage_info);
  */
 typedef struct HashPageStat
 {
-       int             live_items;
-       int             dead_items;
-       int             page_size;
-       int             free_size;
+       int                     live_items;
+       int                     dead_items;
+       int                     page_size;
+       int                     free_size;
 
        /* opaque data */
        BlockNumber hasho_prevblkno;
@@ -45,7 +45,7 @@ typedef struct HashPageStat
        Bucket          hasho_bucket;
        uint16          hasho_flag;
        uint16          hasho_page_id;
-}      HashPageStat;
+} HashPageStat;
 
 
 /*
@@ -99,7 +99,7 @@ verify_hash_page(bytea *raw_page, int flags)
                        case LH_BUCKET_PAGE | LH_OVERFLOW_PAGE:
                                ereport(ERROR,
                                                (errcode(ERRCODE_INVALID_PARAMETER_VALUE),
-                                                errmsg("page is not a hash bucket or overflow page")));
+                                         errmsg("page is not a hash bucket or overflow page")));
                        case LH_OVERFLOW_PAGE:
                                ereport(ERROR,
                                                (errcode(ERRCODE_INVALID_PARAMETER_VALUE),
@@ -107,7 +107,7 @@ verify_hash_page(bytea *raw_page, int flags)
                        default:
                                elog(ERROR,
                                         "hash page of type %08x not in mask %08x",
-                                       pagetype, flags);
+                                        pagetype, flags);
                }
        }
 
@@ -143,7 +143,7 @@ verify_hash_page(bytea *raw_page, int flags)
  * -------------------------------------------------
  */
 static void
-GetHashPageStatistics(Page page, HashPageStat * stat)
+GetHashPageStatistics(Page page, HashPageStat *stat)
 {
        OffsetNumber maxoff = PageGetMaxOffsetNumber(page);
        HashPageOpaque opaque = (HashPageOpaque) PageGetSpecialPointer(page);
@@ -515,8 +515,8 @@ hash_metapage_info(PG_FUNCTION_ARGS)
                                j;
        Datum           values[16];
        bool            nulls[16];
-       Datum       spares[HASH_MAX_SPLITPOINTS];
-       Datum       mapp[HASH_MAX_BITMAPS];
+       Datum           spares[HASH_MAX_SPLITPOINTS];
+       Datum           mapp[HASH_MAX_BITMAPS];
 
        if (!superuser())
                ereport(ERROR,
index 631e435a939c2a56c30ea3d7ac28bd623e69c681..f273dfa7cb2f5e877c64f22c4e1559a440cb087e 100644 (file)
@@ -311,9 +311,9 @@ page_checksum(PG_FUNCTION_ARGS)
        if (raw_page_size != BLCKSZ)
                ereport(ERROR,
                                (errcode(ERRCODE_INVALID_PARAMETER_VALUE),
-                                errmsg("incorrect size of input page (%d bytes)", raw_page_size)));
+                 errmsg("incorrect size of input page (%d bytes)", raw_page_size)));
 
        page = (PageHeader) VARDATA(raw_page);
 
-       PG_RETURN_INT16(pg_checksum_page((char *)page, blkno));
+       PG_RETURN_INT16(pg_checksum_page((char *) page, blkno));
 }
index 5703032397915ab11bd758a65c75393339fbae08..c37eaa395dae51c6a7917ed92e6509571417cf8b 100644 (file)
@@ -57,7 +57,7 @@ char     *xlogFilePath;               /* where we are going to restore to */
 char      *nextWALFileName;    /* the file we need to get from archive */
 char      *restartWALFileName; /* the file from which we can restart restore */
 char      *priorWALFileName;   /* the file we need to get from archive */
-char           WALFilePath[MAXPGPATH * 2];             /* the file path including archive */
+char           WALFilePath[MAXPGPATH * 2]; /* the file path including archive */
 char           restoreCommand[MAXPGPATH];      /* run this to restore */
 char           exclusiveCleanupFileName[MAXFNAMELEN];          /* the file we need to
                                                                                                                 * get from archive */
index ee3936e09a9ae4046e8e153b0f166e60a176b410..480f917d0871d528a599937f8dda0da35ebcaf30 100644 (file)
@@ -774,6 +774,6 @@ check_relation_relkind(Relation rel)
                rel->rd_rel->relkind != RELKIND_TOASTVALUE)
                ereport(ERROR,
                                (errcode(ERRCODE_WRONG_OBJECT_TYPE),
-                                errmsg("\"%s\" is not a table, materialized view, or TOAST table",
-                                               RelationGetRelationName(rel))));
+                  errmsg("\"%s\" is not a table, materialized view, or TOAST table",
+                                 RelationGetRelationName(rel))));
 }
index 8063f34227043f0022283327a407671582347074..f71a933407d600f0fa81d37b20d5dfc437cdef7e 100644 (file)
@@ -238,7 +238,7 @@ px_find_digest(const char *name, PX_MD **res)
  * prototype for the EVP functions that return an algorithm, e.g.
  * EVP_aes_128_cbc().
  */
-typedef const EVP_CIPHER *(*ossl_EVP_cipher_func)(void);
+typedef const EVP_CIPHER *(*ossl_EVP_cipher_func) (void);
 
 /*
  * ossl_cipher contains the static information about each cipher.
@@ -706,13 +706,15 @@ static const struct ossl_cipher ossl_cast_cbc = {
 
 static const struct ossl_cipher ossl_aes_ecb = {
        ossl_aes_ecb_init,
-       NULL, /* EVP_aes_XXX_ecb(), determined in init function */
+       NULL,                                           /* EVP_aes_XXX_ecb(), determined in init
+                                                                * function */
        128 / 8, 256 / 8
 };
 
 static const struct ossl_cipher ossl_aes_cbc = {
        ossl_aes_cbc_init,
-       NULL, /* EVP_aes_XXX_cbc(), determined in init function */
+       NULL,                                           /* EVP_aes_XXX_cbc(), determined in init
+                                                                * function */
        128 / 8, 256 / 8
 };
 
index ccfdc20ed72c8cfd73475c2456ca5e869e6c4ac5..4e3516a86adfff3ae4e856ecdca74d6731a69fdc 100644 (file)
@@ -454,8 +454,8 @@ pg_random_uuid(PG_FUNCTION_ARGS)
        uint8      *buf = (uint8 *) palloc(UUID_LEN);
 
        /*
-        * Generate random bits. pg_backend_random() will do here, we don't
-        * promis UUIDs to be cryptographically random, when built with
+        * Generate random bits. pg_backend_random() will do here, we don't promis
+        * UUIDs to be cryptographically random, when built with
         * --disable-strong-random.
         */
        if (!pg_backend_random((char *) buf, UUID_LEN))
index 8dd561c02ad437692e720efdbb093e936148999e..00e2015c5c956b691417238686f4037692161678 100644 (file)
@@ -99,7 +99,10 @@ pgrowlocks(PG_FUNCTION_ARGS)
                relrv = makeRangeVarFromNameList(textToQualifiedNameList(relname));
                rel = heap_openrv(relrv, AccessShareLock);
 
-               /* check permissions: must have SELECT on table or be in pg_stat_scan_tables */
+               /*
+                * check permissions: must have SELECT on table or be in
+                * pg_stat_scan_tables
+                */
                aclresult = pg_class_aclcheck(RelationGetRelid(rel), GetUserId(),
                                                                          ACL_SELECT);
                if (aclresult != ACLCHECK_OK)
index 46c167a96a5e67d6bb39140dbff42126b80fbe2d..9facf6513784625be428c3bb4faf1cbadd00ea76 100644 (file)
@@ -31,7 +31,7 @@
 PG_FUNCTION_INFO_V1(pgstattuple_approx);
 PG_FUNCTION_INFO_V1(pgstattuple_approx_v1_5);
 
-Datum pgstattuple_approx_internal(Oid relid, FunctionCallInfo fcinfo);
+Datum          pgstattuple_approx_internal(Oid relid, FunctionCallInfo fcinfo);
 
 typedef struct output_type
 {
index 15aedec1bfd4f939952822970567357275b7e01f..03b387f6b6bf3fc20bfc3700108dc1a26702c7bd 100644 (file)
@@ -64,7 +64,7 @@ PG_FUNCTION_INFO_V1(pg_relpages_v1_5);
 PG_FUNCTION_INFO_V1(pg_relpagesbyid_v1_5);
 PG_FUNCTION_INFO_V1(pgstatginindex_v1_5);
 
-Datum pgstatginindex_internal(Oid relid, FunctionCallInfo fcinfo);
+Datum          pgstatginindex_internal(Oid relid, FunctionCallInfo fcinfo);
 
 #define IS_INDEX(r) ((r)->rd_rel->relkind == RELKIND_INDEX)
 #define IS_BTREE(r) ((r)->rd_rel->relam == BTREE_AM_OID)
@@ -113,17 +113,17 @@ typedef struct GinIndexStat
  */
 typedef struct HashIndexStat
 {
-       int32   version;
-       int32   space_per_page;
+       int32           version;
+       int32           space_per_page;
 
-       BlockNumber     bucket_pages;
+       BlockNumber bucket_pages;
        BlockNumber overflow_pages;
        BlockNumber bitmap_pages;
        BlockNumber unused_pages;
 
-       int64   live_items;
-       int64   dead_items;
-       uint64  free_space;
+       int64           live_items;
+       int64           dead_items;
+       uint64          free_space;
 } HashIndexStat;
 
 static Datum pgstatindex_impl(Relation rel, FunctionCallInfo fcinfo);
@@ -581,8 +581,8 @@ Datum
 pgstathashindex(PG_FUNCTION_ARGS)
 {
        Oid                     relid = PG_GETARG_OID(0);
-       BlockNumber     nblocks;
-       BlockNumber     blkno;
+       BlockNumber nblocks;
+       BlockNumber blkno;
        Relation        rel;
        HashIndexStat stats;
        BufferAccessStrategy bstrategy;
@@ -591,7 +591,7 @@ pgstathashindex(PG_FUNCTION_ARGS)
        Datum           values[8];
        bool            nulls[8];
        Buffer          metabuf;
-       HashMetaPage    metap;
+       HashMetaPage metap;
        float8          free_percent;
        uint64          total_space;
 
@@ -648,13 +648,13 @@ pgstathashindex(PG_FUNCTION_ARGS)
                                 MAXALIGN(sizeof(HashPageOpaqueData)))
                        ereport(ERROR,
                                        (errcode(ERRCODE_INDEX_CORRUPTED),
-                                        errmsg("index \"%s\" contains corrupted page at block %u",
-                                                       RelationGetRelationName(rel),
-                                                       BufferGetBlockNumber(buf))));
+                                  errmsg("index \"%s\" contains corrupted page at block %u",
+                                                 RelationGetRelationName(rel),
+                                                 BufferGetBlockNumber(buf))));
                else
                {
-                       HashPageOpaque  opaque;
-                       int             pagetype;
+                       HashPageOpaque opaque;
+                       int                     pagetype;
 
                        opaque = (HashPageOpaque) PageGetSpecialPointer(page);
                        pagetype = opaque->hasho_flag & LH_PAGE_TYPE;
@@ -676,9 +676,9 @@ pgstathashindex(PG_FUNCTION_ARGS)
                        else
                                ereport(ERROR,
                                                (errcode(ERRCODE_INDEX_CORRUPTED),
-                                       errmsg("unexpected page type 0x%04X in HASH index \"%s\" block %u",
+                                                errmsg("unexpected page type 0x%04X in HASH index \"%s\" block %u",
                                                        opaque->hasho_flag, RelationGetRelationName(rel),
-                                                       BufferGetBlockNumber(buf))));
+                                                               BufferGetBlockNumber(buf))));
                }
                UnlockReleaseBuffer(buf);
        }
@@ -735,12 +735,12 @@ static void
 GetHashPageStats(Page page, HashIndexStat *stats)
 {
        OffsetNumber maxoff = PageGetMaxOffsetNumber(page);
-       int off;
+       int                     off;
 
        /* count live and dead tuples, and free space */
        for (off = FirstOffsetNumber; off <= maxoff; off++)
        {
-               ItemId      id = PageGetItemId(page, off);
+               ItemId          id = PageGetItemId(page, off);
 
                if (!ItemIdIsDead(id))
                        stats->live_items++;
index 1d5aa837635e84005b3b900a2fe3422b2e69ab10..482a3dd3016dbc2afc0c99a83205a48134dc7358 100644 (file)
@@ -171,8 +171,8 @@ static void deparseFromExprForRel(StringInfo buf, PlannerInfo *root,
                                        RelOptInfo *joinrel, bool use_alias, List **params_list);
 static void deparseFromExpr(List *quals, deparse_expr_cxt *context);
 static void deparseRangeTblRef(StringInfo buf, PlannerInfo *root,
-                                                          RelOptInfo *foreignrel, bool make_subquery,
-                                                          List **params_list);
+                                  RelOptInfo *foreignrel, bool make_subquery,
+                                  List **params_list);
 static void deparseAggref(Aggref *node, deparse_expr_cxt *context);
 static void appendGroupByClause(List *tlist, deparse_expr_cxt *context);
 static void appendAggOrderBy(List *orderList, List *targetList,
@@ -185,9 +185,9 @@ static Node *deparseSortGroupClause(Index ref, List *tlist,
  * Helper functions
  */
 static bool is_subquery_var(Var *node, RelOptInfo *foreignrel,
-                                                       int *relno, int *colno);
+                               int *relno, int *colno);
 static void get_relation_column_alias_ids(Var *node, RelOptInfo *foreignrel,
-                                                                                 int *relno, int *colno);
+                                                         int *relno, int *colno);
 
 
 /*
@@ -1017,8 +1017,8 @@ deparseSelectSql(List *tlist, bool is_subquery, List **retrieved_attrs,
        {
                /*
                 * For a relation that is deparsed as a subquery, emit expressions
-                * specified in the relation's reltarget.  Note that since this is
-                * for the subquery, no need to care about *retrieved_attrs.
+                * specified in the relation's reltarget.  Note that since this is for
+                * the subquery, no need to care about *retrieved_attrs.
                 */
                deparseSubqueryTargetList(context);
        }
@@ -2189,8 +2189,8 @@ deparseVar(Var *node, deparse_expr_cxt *context)
 
        /*
         * If the Var belongs to the foreign relation that is deparsed as a
-        * subquery, use the relation and column alias to the Var provided
-        * by the subquery, instead of the remote name.
+        * subquery, use the relation and column alias to the Var provided by the
+        * subquery, instead of the remote name.
         */
        if (is_subquery_var(node, context->scanrel, &relno, &colno))
        {
index 18b4b01cfa429b99b897aff76fd487fb193c8c21..080cb0a0742b364bbf36dc987cf328b1c3b05aca 100644 (file)
@@ -417,8 +417,8 @@ static void add_foreign_grouping_paths(PlannerInfo *root,
 static void apply_server_options(PgFdwRelationInfo *fpinfo);
 static void apply_table_options(PgFdwRelationInfo *fpinfo);
 static void merge_fdw_options(PgFdwRelationInfo *fpinfo,
-                                                         const PgFdwRelationInfo *fpinfo_o,
-                                                         const PgFdwRelationInfo *fpinfo_i);
+                                 const PgFdwRelationInfo *fpinfo_o,
+                                 const PgFdwRelationInfo *fpinfo_i);
 
 
 /*
@@ -4170,8 +4170,8 @@ foreign_join_ok(PlannerInfo *root, RelOptInfo *joinrel, JoinType jointype,
        fpinfo->jointype = jointype;
 
        /*
-        * By default, both the input relations are not required to be deparsed
-        * as subqueries, but there might be some relations covered by the input
+        * By default, both the input relations are not required to be deparsed as
+        * subqueries, but there might be some relations covered by the input
         * relations that are required to be deparsed as subqueries, so save the
         * relids of those relations for later use by the deparser.
         */
@@ -4227,8 +4227,8 @@ foreign_join_ok(PlannerInfo *root, RelOptInfo *joinrel, JoinType jointype,
                case JOIN_FULL:
 
                        /*
-                        * In this case, if any of the input relations has conditions,
-                        * we need to deparse that relation as a subquery so that the
+                        * In this case, if any of the input relations has conditions, we
+                        * need to deparse that relation as a subquery so that the
                         * conditions can be evaluated before the join.  Remember it in
                         * the fpinfo of this relation so that the deparser can take
                         * appropriate action.  Also, save the relids of base relations
@@ -4305,7 +4305,7 @@ foreign_join_ok(PlannerInfo *root, RelOptInfo *joinrel, JoinType jointype,
         * Note that since this joinrel is at the end of the join_rel_list list
         * when we are called, we can get the position by list_length.
         */
-       Assert(fpinfo->relation_index == 0);    /* shouldn't be set yet */
+       Assert(fpinfo->relation_index == 0);            /* shouldn't be set yet */
        fpinfo->relation_index =
                list_length(root->parse->rtable) + list_length(root->join_rel_list);
 
@@ -4354,7 +4354,7 @@ add_paths_with_pathkeys_for_rel(PlannerInfo *root, RelOptInfo *rel,
 static void
 apply_server_options(PgFdwRelationInfo *fpinfo)
 {
-       ListCell *lc;
+       ListCell   *lc;
 
        foreach(lc, fpinfo->server->options)
        {
@@ -4382,7 +4382,7 @@ apply_server_options(PgFdwRelationInfo *fpinfo)
 static void
 apply_table_options(PgFdwRelationInfo *fpinfo)
 {
-       ListCell *lc;
+       ListCell   *lc;
 
        foreach(lc, fpinfo->table->options)
        {
@@ -4439,7 +4439,7 @@ merge_fdw_options(PgFdwRelationInfo *fpinfo,
                 * best.
                 */
                fpinfo->use_remote_estimate = fpinfo_o->use_remote_estimate ||
-                                                                         fpinfo_i->use_remote_estimate;
+                       fpinfo_i->use_remote_estimate;
 
                /*
                 * Set fetch size to maximum of the joining sides, since we are
@@ -4869,7 +4869,7 @@ add_foreign_grouping_paths(PlannerInfo *root, RelOptInfo *input_rel,
        fpinfo->table = ifpinfo->table;
        fpinfo->server = ifpinfo->server;
        fpinfo->user = ifpinfo->user;
-       merge_fdw_options(fpinfo, ifpinfo , NULL);
+       merge_fdw_options(fpinfo, ifpinfo, NULL);
 
        /* Assess if it is safe to push down aggregation and grouping. */
        if (!foreign_grouping_ok(root, grouped_rel))
index 2bae799ccfe6c59a6c26852b8221475ddf6b20f1..25c950dd768f0974c3b405933218f2b641f3188c 100644 (file)
@@ -96,9 +96,9 @@ typedef struct PgFdwRelationInfo
        List       *grouped_tlist;
 
        /* Subquery information */
-       bool            make_outerrel_subquery; /* do we deparse outerrel as a
+       bool            make_outerrel_subquery; /* do we deparse outerrel as a
                                                                                 * subquery? */
-       bool            make_innerrel_subquery; /* do we deparse innerrel as a
+       bool            make_innerrel_subquery; /* do we deparse innerrel as a
                                                                                 * subquery? */
        Relids          lower_subquery_rels;    /* all relids appearing in lower
                                                                                 * subqueries */
index 2594407754696bf2f839d88474d94242ed32c541..442a46140db6e24e6c948d2a3777541d87a05438 100644 (file)
@@ -364,7 +364,7 @@ bringetbitmap(IndexScanDesc scan, TIDBitmap *tbm)
        MemoryContext oldcxt;
        MemoryContext perRangeCxt;
        BrinMemTuple *dtup;
-       BrinTuple    *btup = NULL;
+       BrinTuple  *btup = NULL;
        Size            btupsz = 0;
 
        opaque = (BrinOpaque *) scan->opaque;
@@ -920,13 +920,13 @@ brin_summarize_range(PG_FUNCTION_ARGS)
 Datum
 brin_desummarize_range(PG_FUNCTION_ARGS)
 {
-       Oid             indexoid = PG_GETARG_OID(0);
-       int64   heapBlk64 = PG_GETARG_INT64(1);
+       Oid                     indexoid = PG_GETARG_OID(0);
+       int64           heapBlk64 = PG_GETARG_INT64(1);
        BlockNumber heapBlk;
-       Oid             heapoid;
-       Relation heapRel;
-       Relation indexRel;
-       bool    done;
+       Oid                     heapoid;
+       Relation        heapRel;
+       Relation        indexRel;
+       bool            done;
 
        if (heapBlk64 > MaxBlockNumber || heapBlk64 < 0)
        {
@@ -977,7 +977,8 @@ brin_desummarize_range(PG_FUNCTION_ARGS)
                                                RelationGetRelationName(indexRel))));
 
        /* the revmap does the hard work */
-       do {
+       do
+       {
                done = brinRevmapDesummarizeRange(indexRel, heapBlk);
        }
        while (!done);
index 9ed279bf42fa2b8ac1f4fee151f63ef766c3d5ff..fc8b10ab396709f684d56e02da9de5ea0dc26f39 100644 (file)
@@ -318,11 +318,11 @@ bool
 brinRevmapDesummarizeRange(Relation idxrel, BlockNumber heapBlk)
 {
        BrinRevmap *revmap;
-       BlockNumber     pagesPerRange;
+       BlockNumber pagesPerRange;
        RevmapContents *contents;
        ItemPointerData *iptr;
-       ItemPointerData invalidIptr;
-       BlockNumber     revmapBlk;
+       ItemPointerData invalidIptr;
+       BlockNumber revmapBlk;
        Buffer          revmapBuf;
        Buffer          regBuf;
        Page            revmapPg;
@@ -415,7 +415,7 @@ brinRevmapDesummarizeRange(Relation idxrel, BlockNumber heapBlk)
        if (RelationNeedsWAL(idxrel))
        {
                xl_brin_desummarize xlrec;
-               XLogRecPtr              recptr;
+               XLogRecPtr      recptr;
 
                xlrec.pagesPerRange = revmap->rm_pagesPerRange;
                xlrec.heapBlk = heapBlk;
index 8f5b5ceb3f29d4ddf96b795fc479f433c8b9084b..dff7198a39e6116bad787b7204dfa49cfc0ef7b2 100644 (file)
@@ -268,7 +268,7 @@ brin_xlog_desummarize_page(XLogReaderState *record)
        action = XLogReadBufferForRedo(record, 0, &buffer);
        if (action == BLK_NEEDS_REDO)
        {
-               ItemPointerData iptr;
+               ItemPointerData iptr;
 
                ItemPointerSetInvalid(&iptr);
                brinSetHeapBlockItemptr(buffer, xlrec->pagesPerRange, xlrec->heapBlk, iptr);
@@ -283,7 +283,7 @@ brin_xlog_desummarize_page(XLogReaderState *record)
        action = XLogReadBufferForRedo(record, 1, &buffer);
        if (action == BLK_NEEDS_REDO)
        {
-               Page    regPg = BufferGetPage(buffer);
+               Page            regPg = BufferGetPage(buffer);
 
                PageIndexTupleDeleteNoCompact(regPg, xlrec->regOffset);
 
index 5fe1c72da8385690b4f8a222319133d4730eb09d..851c3bf4debc775ab6f1db0e757950c50e35f7c2 100644 (file)
@@ -102,8 +102,8 @@ printsimple(TupleTableSlot *slot, DestReceiver *self)
 
                        case INT4OID:
                                {
-                                       int32   num = DatumGetInt32(value);
-                                       char    str[12];        /* sign, 10 digits and '\0' */
+                                       int32           num = DatumGetInt32(value);
+                                       char            str[12];                /* sign, 10 digits and '\0' */
 
                                        pg_ltoa(num, str);
                                        pq_sendcountedtext(&buf, str, strlen(str), false);
@@ -112,8 +112,8 @@ printsimple(TupleTableSlot *slot, DestReceiver *self)
 
                        case INT8OID:
                                {
-                                       int64   num = DatumGetInt64(value);
-                                       char    str[23];        /* sign, 21 digits and '\0' */
+                                       int64           num = DatumGetInt64(value);
+                                       char            str[23];                /* sign, 21 digits and '\0' */
 
                                        pg_lltoa(num, str);
                                        pq_sendcountedtext(&buf, str, strlen(str), false);
index 26c077a7bb9f025cc2b00f5c55006d895cd754f5..27e502a36064619e29f2ad3ce4f3f529bf6a7757 100644 (file)
@@ -140,9 +140,9 @@ ginDeletePage(GinVacuumState *gvs, BlockNumber deleteBlkno, BlockNumber leftBlkn
         * exclusive cleanup lock. This guarantees that no insertions currently
         * happen in this subtree. Caller also acquire Exclusive lock on deletable
         * page and is acquiring and releasing exclusive lock on left page before.
-        * Left page was locked and released. Then parent and this page are locked.
-        * We acquire left page lock here only to mark page dirty after changing
-        * right pointer.
+        * Left page was locked and released. Then parent and this page are
+        * locked. We acquire left page lock here only to mark page dirty after
+        * changing right pointer.
         */
        lBuffer = ReadBufferExtended(gvs->index, MAIN_FORKNUM, leftBlkno,
                                                                 RBM_NORMAL, gvs->strategy);
@@ -258,7 +258,7 @@ ginScanToDelete(GinVacuumState *gvs, BlockNumber blkno, bool isRoot,
        buffer = ReadBufferExtended(gvs->index, MAIN_FORKNUM, blkno,
                                                                RBM_NORMAL, gvs->strategy);
 
-       if(!isRoot)
+       if (!isRoot)
                LockBuffer(buffer, GIN_EXCLUSIVE);
 
        page = BufferGetPage(buffer);
@@ -295,8 +295,8 @@ ginScanToDelete(GinVacuumState *gvs, BlockNumber blkno, bool isRoot,
                }
        }
 
-       if(!isRoot)
-                       LockBuffer(buffer, GIN_UNLOCK);
+       if (!isRoot)
+               LockBuffer(buffer, GIN_UNLOCK);
 
        ReleaseBuffer(buffer);
 
@@ -326,7 +326,7 @@ ginVacuumPostingTreeLeaves(GinVacuumState *gvs, BlockNumber blkno, bool isRoot)
                                                                RBM_NORMAL, gvs->strategy);
        page = BufferGetPage(buffer);
 
-       ginTraverseLock(buffer,false);
+       ginTraverseLock(buffer, false);
 
        Assert(GinPageIsData(page));
 
@@ -347,15 +347,15 @@ ginVacuumPostingTreeLeaves(GinVacuumState *gvs, BlockNumber blkno, bool isRoot)
        }
        else
        {
-               OffsetNumber    i;
-               bool                    hasEmptyChild = FALSE;
-               bool                    hasNonEmptyChild = FALSE;
-               OffsetNumber    maxoff = GinPageGetOpaque(page)->maxoff;
-               BlockNumber*    children = palloc(sizeof(BlockNumber) * (maxoff + 1));
+               OffsetNumber i;
+               bool            hasEmptyChild = FALSE;
+               bool            hasNonEmptyChild = FALSE;
+               OffsetNumber maxoff = GinPageGetOpaque(page)->maxoff;
+               BlockNumber *children = palloc(sizeof(BlockNumber) * (maxoff + 1));
 
                /*
-                * Read all children BlockNumbers.
-                * Not sure it is safe if there are many concurrent vacuums.
+                * Read all children BlockNumbers. Not sure it is safe if there are
+                * many concurrent vacuums.
                 */
 
                for (i = FirstOffsetNumber; i <= maxoff; i++)
@@ -380,26 +380,26 @@ ginVacuumPostingTreeLeaves(GinVacuumState *gvs, BlockNumber blkno, bool isRoot)
                vacuum_delay_point();
 
                /*
-                * All subtree is empty - just return TRUE to indicate that parent must
-                * do a cleanup. Unless we are ROOT an there is way to go upper.
+                * All subtree is empty - just return TRUE to indicate that parent
+                * must do a cleanup. Unless we are ROOT an there is way to go upper.
                 */
 
-               if(hasEmptyChild && !hasNonEmptyChild && !isRoot)
+               if (hasEmptyChild && !hasNonEmptyChild && !isRoot)
                        return TRUE;
 
-               if(hasEmptyChild)
+               if (hasEmptyChild)
                {
                        DataPageDeleteStack root,
                                           *ptr,
                                           *tmp;
 
                        buffer = ReadBufferExtended(gvs->index, MAIN_FORKNUM, blkno,
-                                                                                       RBM_NORMAL, gvs->strategy);
+                                                                               RBM_NORMAL, gvs->strategy);
                        LockBufferForCleanup(buffer);
 
                        memset(&root, 0, sizeof(DataPageDeleteStack));
-                               root.leftBlkno = InvalidBlockNumber;
-                               root.isRoot = TRUE;
+                       root.leftBlkno = InvalidBlockNumber;
+                       root.isRoot = TRUE;
 
                        ginScanToDelete(gvs, blkno, TRUE, &root, InvalidOffsetNumber);
 
index df54638f3e06f4b1e51aef9046028bd872355224..d0b0547491f7c34df3dca328eef3e1eb2851c3d0 100644 (file)
@@ -333,12 +333,12 @@ hashgettuple(IndexScanDesc scan, ScanDirection dir)
                if (scan->kill_prior_tuple)
                {
                        /*
-                        * Yes, so remember it for later. (We'll deal with all such
-                        * tuples at once right after leaving the index page or at
-                        * end of scan.) In case if caller reverses the indexscan
-                        * direction it is quite possible that the same item might
-                        * get entered multiple times. But, we don't detect that;
-                        * instead, we just forget any excess entries.
+                        * Yes, so remember it for later. (We'll deal with all such tuples
+                        * at once right after leaving the index page or at end of scan.)
+                        * In case if caller reverses the indexscan direction it is quite
+                        * possible that the same item might get entered multiple times.
+                        * But, we don't detect that; instead, we just forget any excess
+                        * entries.
                         */
                        if (so->killedItems == NULL)
                                so->killedItems = palloc(MaxIndexTuplesPerPage *
@@ -348,7 +348,7 @@ hashgettuple(IndexScanDesc scan, ScanDirection dir)
                        {
                                so->killedItems[so->numKilled].heapTid = so->hashso_heappos;
                                so->killedItems[so->numKilled].indexOffset =
-                                                       ItemPointerGetOffsetNumber(&(so->hashso_curpos));
+                                       ItemPointerGetOffsetNumber(&(so->hashso_curpos));
                                so->numKilled++;
                        }
                }
@@ -477,9 +477,8 @@ hashrescan(IndexScanDesc scan, ScanKey scankey, int nscankeys,
        Relation        rel = scan->indexRelation;
 
        /*
-        * Before leaving current page, deal with any killed items.
-        * Also, ensure that we acquire lock on current page before
-        * calling _hash_kill_items.
+        * Before leaving current page, deal with any killed items. Also, ensure
+        * that we acquire lock on current page before calling _hash_kill_items.
         */
        if (so->numKilled > 0)
        {
@@ -516,9 +515,8 @@ hashendscan(IndexScanDesc scan)
        Relation        rel = scan->indexRelation;
 
        /*
-        * Before leaving current page, deal with any killed items.
-        * Also, ensure that we acquire lock on current page before
-        * calling _hash_kill_items.
+        * Before leaving current page, deal with any killed items. Also, ensure
+        * that we acquire lock on current page before calling _hash_kill_items.
         */
        if (so->numKilled > 0)
        {
@@ -889,8 +887,8 @@ hashbucketcleanup(Relation rel, Bucket cur_bucket, Buffer bucket_buf,
 
                        /*
                         * Let us mark the page as clean if vacuum removes the DEAD tuples
-                        * from an index page. We do this by clearing LH_PAGE_HAS_DEAD_TUPLES
-                        * flag.
+                        * from an index page. We do this by clearing
+                        * LH_PAGE_HAS_DEAD_TUPLES flag.
                         */
                        if (tuples_removed && *tuples_removed > 0 &&
                                H_HAS_DEAD_TUPLES(opaque))
index d1c0e6904fcd58a8d0febf63ab70f6f6bf86faad..0ea11b2e7422b20cc5a8d6ff3d3c3cc66937b94a 100644 (file)
@@ -950,22 +950,22 @@ hash_xlog_update_meta_page(XLogReaderState *record)
 static TransactionId
 hash_xlog_vacuum_get_latestRemovedXid(XLogReaderState *record)
 {
-       xl_hash_vacuum_one_page *xlrec;
-       OffsetNumber    *unused;
+       xl_hash_vacuum_one_page *xlrec;
+       OffsetNumber *unused;
        Buffer          ibuffer,
                                hbuffer;
        Page            ipage,
                                hpage;
-       RelFileNode     rnode;
-       BlockNumber     blkno;
+       RelFileNode rnode;
+       BlockNumber blkno;
        ItemId          iitemid,
                                hitemid;
        IndexTuple      itup;
-       HeapTupleHeader htuphdr;
-       BlockNumber     hblkno;
-       OffsetNumber    hoffnum;
-       TransactionId   latestRemovedXid = InvalidTransactionId;
-       int             i;
+       HeapTupleHeader htuphdr;
+       BlockNumber hblkno;
+       OffsetNumber hoffnum;
+       TransactionId latestRemovedXid = InvalidTransactionId;
+       int                     i;
 
        xlrec = (xl_hash_vacuum_one_page *) XLogRecGetData(record);
 
@@ -984,9 +984,9 @@ hash_xlog_vacuum_get_latestRemovedXid(XLogReaderState *record)
                return latestRemovedXid;
 
        /*
-        * Check if WAL replay has reached a consistent database state. If not,
-        * we must PANIC. See the definition of btree_xlog_delete_get_latestRemovedXid
-        * for more details.
+        * Check if WAL replay has reached a consistent database state. If not, we
+        * must PANIC. See the definition of
+        * btree_xlog_delete_get_latestRemovedXid for more details.
         */
        if (!reachedConsistency)
                elog(PANIC, "hash_xlog_vacuum_get_latestRemovedXid: cannot operate with inconsistent data");
@@ -1098,11 +1098,11 @@ hash_xlog_vacuum_get_latestRemovedXid(XLogReaderState *record)
 static void
 hash_xlog_vacuum_one_page(XLogReaderState *record)
 {
-       XLogRecPtr lsn = record->EndRecPtr;
+       XLogRecPtr      lsn = record->EndRecPtr;
        xl_hash_vacuum_one_page *xldata;
-       Buffer buffer;
-       Buffer metabuf;
-       Page page;
+       Buffer          buffer;
+       Buffer          metabuf;
+       Page            page;
        XLogRedoAction action;
        HashPageOpaque pageopaque;
 
@@ -1123,7 +1123,7 @@ hash_xlog_vacuum_one_page(XLogReaderState *record)
        if (InHotStandby)
        {
                TransactionId latestRemovedXid =
-                                       hash_xlog_vacuum_get_latestRemovedXid(record);
+               hash_xlog_vacuum_get_latestRemovedXid(record);
                RelFileNode rnode;
 
                XLogRecGetBlockTag(record, 0, &rnode, NULL, NULL);
@@ -1146,8 +1146,8 @@ hash_xlog_vacuum_one_page(XLogReaderState *record)
                }
 
                /*
-                * Mark the page as not containing any LP_DEAD items. See comments
-                * in _hash_vacuum_one_page() for details.
+                * Mark the page as not containing any LP_DEAD items. See comments in
+                * _hash_vacuum_one_page() for details.
                 */
                pageopaque = (HashPageOpaque) PageGetSpecialPointer(page);
                pageopaque->hasho_flag &= ~LH_PAGE_HAS_DEAD_TUPLES;
@@ -1160,7 +1160,7 @@ hash_xlog_vacuum_one_page(XLogReaderState *record)
 
        if (XLogReadBufferForRedo(record, 1, &metabuf) == BLK_NEEDS_REDO)
        {
-               Page metapage;
+               Page            metapage;
                HashMetaPage metap;
 
                metapage = BufferGetPage(metabuf);
index 8699b5bc30b46bb41569c24d6b30d4a764bb5fdc..01c8d8006c0322bb371b6fc1b16c8655968a675a 100644 (file)
@@ -24,7 +24,7 @@
 #include "storage/buf_internals.h"
 
 static void _hash_vacuum_one_page(Relation rel, Buffer metabuf, Buffer buf,
-                                                                 RelFileNode hnode);
+                                         RelFileNode hnode);
 
 /*
  *     _hash_doinsert() -- Handle insertion of a single index tuple.
@@ -63,8 +63,8 @@ restart_insert:
 
        /*
         * Read the metapage.  We don't lock it yet; HashMaxItemSize() will
-        * examine pd_pagesize_version, but that can't change so we can examine
-        * it without a lock.
+        * examine pd_pagesize_version, but that can't change so we can examine it
+        * without a lock.