Phase 2 of pgindent updates.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 21 Jun 2017 19:18:54 +0000 (15:18 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 21 Jun 2017 19:19:25 +0000 (15:19 -0400)
Change pg_bsd_indent to follow upstream rules for placement of comments
to the right of code, and remove pgindent hack that caused comments
following #endif to not obey the general rule.

Commit e3860ffa4dd0dad0dd9eea4be9cc1412373a8c89 wasn't actually using
the published version of pg_bsd_indent, but a hacked-up version that
tried to minimize the amount of movement of comments to the right of
code.  The situation of interest is where such a comment has to be
moved to the right of its default placement at column 33 because there's
code there.  BSD indent has always moved right in units of tab stops
in such cases --- but in the previous incarnation, indent was working
in 8-space tab stops, while now it knows we use 4-space tabs.  So the
net result is that in about half the cases, such comments are placed
one tab stop left of before.  This is better all around: it leaves
more room on the line for comment text, and it means that in such
cases the comment uniformly starts at the next 4-space tab stop after
the code, rather than sometimes one and sometimes two tabs after.

Also, ensure that comments following #endif are indented the same
as comments following other preprocessor commands such as #else.
That inconsistency turns out to have been self-inflicted damage
from a poorly-thought-through post-indent "fixup" in pgindent.

This patch is much less interesting than the first round of indent
changes, but also bulkier, so I thought it best to separate the effects.

Discussion: https://postgr.es/m/E1dAmxK-0006EE-1r@gemulon.postgresql.org
Discussion: https://postgr.es/m/30527.1495162840@sss.pgh.pa.us

1107 files changed:
contrib/bloom/bloom.h
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/cube/cubedata.h
contrib/dblink/dblink.c
contrib/file_fdw/file_fdw.c
contrib/fuzzystrmatch/dmetaphone.c
contrib/hstore/hstore.h
contrib/hstore/hstore_io.c
contrib/intarray/_int.h
contrib/intarray/_int_tool.c
contrib/isn/isn.c
contrib/isn/isn.h
contrib/lo/lo.c
contrib/ltree/ltree.h
contrib/ltree/ltree_gist.c
contrib/pageinspect/pageinspect.h
contrib/pg_buffercache/pg_buffercache_pages.c
contrib/pg_standby/pg_standby.c
contrib/pg_stat_statements/pg_stat_statements.c
contrib/pg_trgm/trgm.h
contrib/pg_trgm/trgm_regexp.c
contrib/pgcrypto/crypt-des.c
contrib/pgcrypto/imath.c
contrib/pgcrypto/imath.h
contrib/pgcrypto/internal.c
contrib/pgcrypto/mbuf.h
contrib/pgcrypto/md5.h
contrib/pgcrypto/pgp.h
contrib/pgcrypto/px-crypt.h
contrib/pgcrypto/px.h
contrib/pgcrypto/rijndael.c
contrib/pgcrypto/rijndael.h
contrib/pgcrypto/sha1.h
contrib/pgstattuple/pgstatindex.c
contrib/postgres_fdw/option.c
contrib/postgres_fdw/postgres_fdw.c
contrib/postgres_fdw/postgres_fdw.h
contrib/sepgsql/label.c
contrib/sepgsql/sepgsql.h
contrib/spi/refint.c
contrib/spi/timetravel.c
contrib/tablefunc/tablefunc.c
contrib/tablefunc/tablefunc.h
contrib/tcn/tcn.c
contrib/uuid-ossp/uuid-ossp.c
contrib/xml2/xpath.c
contrib/xml2/xslt_proc.c
src/backend/access/brin/brin_pageops.c
src/backend/access/brin/brin_revmap.c
src/backend/access/common/heaptuple.c
src/backend/access/common/printsimple.c
src/backend/access/common/tupconvert.c
src/backend/access/gin/ginbulk.c
src/backend/access/gin/ginfast.c
src/backend/access/gin/ginscan.c
src/backend/access/gin/ginvacuum.c
src/backend/access/gist/gist.c
src/backend/access/gist/gistbuild.c
src/backend/access/gist/gistbuildbuffers.c
src/backend/access/gist/gistget.c
src/backend/access/hash/hashfunc.c
src/backend/access/hash/hashsearch.c
src/backend/access/hash/hashutil.c
src/backend/access/heap/heapam.c
src/backend/access/heap/hio.c
src/backend/access/heap/pruneheap.c
src/backend/access/heap/rewriteheap.c
src/backend/access/heap/tuptoaster.c
src/backend/access/index/genam.c
src/backend/access/index/indexam.c
src/backend/access/nbtree/nbtinsert.c
src/backend/access/nbtree/nbtree.c
src/backend/access/nbtree/nbtsearch.c
src/backend/access/nbtree/nbtsort.c
src/backend/access/rmgrdesc/xlogdesc.c
src/backend/access/spgist/spgdoinsert.c
src/backend/access/spgist/spgscan.c
src/backend/access/spgist/spgvacuum.c
src/backend/access/transam/clog.c
src/backend/access/transam/slru.c
src/backend/access/transam/timeline.c
src/backend/access/transam/twophase.c
src/backend/access/transam/twophase_rmgr.c
src/backend/access/transam/xact.c
src/backend/access/transam/xlog.c
src/backend/access/transam/xloginsert.c
src/backend/access/transam/xlogreader.c
src/backend/bootstrap/bootstrap.c
src/backend/catalog/aclchk.c
src/backend/catalog/dependency.c
src/backend/catalog/heap.c
src/backend/catalog/index.c
src/backend/catalog/indexing.c
src/backend/catalog/namespace.c
src/backend/catalog/objectaddress.c
src/backend/catalog/partition.c
src/backend/catalog/pg_aggregate.c
src/backend/catalog/pg_constraint.c
src/backend/catalog/pg_operator.c
src/backend/catalog/pg_type.c
src/backend/catalog/storage.c
src/backend/commands/aggregatecmds.c
src/backend/commands/alter.c
src/backend/commands/analyze.c
src/backend/commands/async.c
src/backend/commands/cluster.c
src/backend/commands/collationcmds.c
src/backend/commands/copy.c
src/backend/commands/dbcommands.c
src/backend/commands/event_trigger.c
src/backend/commands/extension.c
src/backend/commands/functioncmds.c
src/backend/commands/indexcmds.c
src/backend/commands/opclasscmds.c
src/backend/commands/operatorcmds.c
src/backend/commands/portalcmds.c
src/backend/commands/proclang.c
src/backend/commands/sequence.c
src/backend/commands/tablecmds.c
src/backend/commands/tablespace.c
src/backend/commands/trigger.c
src/backend/commands/tsearchcmds.c
src/backend/commands/typecmds.c
src/backend/commands/user.c
src/backend/commands/vacuumlazy.c
src/backend/commands/view.c
src/backend/executor/execExpr.c
src/backend/executor/execExprInterp.c
src/backend/executor/execIndexing.c
src/backend/executor/execMain.c
src/backend/executor/execTuples.c
src/backend/executor/execUtils.c
src/backend/executor/functions.c
src/backend/executor/nodeAgg.c
src/backend/executor/nodeBitmapHeapscan.c
src/backend/executor/nodeBitmapIndexscan.c
src/backend/executor/nodeBitmapOr.c
src/backend/executor/nodeGather.c
src/backend/executor/nodeGatherMerge.c
src/backend/executor/nodeHash.c
src/backend/executor/nodeHashjoin.c
src/backend/executor/nodeIndexscan.c
src/backend/executor/nodeLockRows.c
src/backend/executor/nodeMergejoin.c
src/backend/executor/nodeModifyTable.c
src/backend/executor/nodeSamplescan.c
src/backend/executor/nodeSeqscan.c
src/backend/executor/nodeSetOp.c
src/backend/executor/nodeTidscan.c
src/backend/executor/nodeWindowAgg.c
src/backend/executor/spi.c
src/backend/executor/tqueue.c
src/backend/lib/ilist.c
src/backend/libpq/auth.c
src/backend/libpq/be-fsstubs.c
src/backend/libpq/hba.c
src/backend/libpq/ifaddr.c
src/backend/libpq/pqcomm.c
src/backend/main/main.c
src/backend/nodes/equalfuncs.c
src/backend/nodes/list.c
src/backend/nodes/makefuncs.c
src/backend/nodes/nodeFuncs.c
src/backend/nodes/params.c
src/backend/nodes/readfuncs.c
src/backend/nodes/tidbitmap.c
src/backend/optimizer/geqo/geqo_cx.c
src/backend/optimizer/geqo/geqo_erx.c
src/backend/optimizer/geqo/geqo_misc.c
src/backend/optimizer/geqo/geqo_mutation.c
src/backend/optimizer/geqo/geqo_ox1.c
src/backend/optimizer/geqo/geqo_ox2.c
src/backend/optimizer/geqo/geqo_pmx.c
src/backend/optimizer/geqo/geqo_pool.c
src/backend/optimizer/geqo/geqo_px.c
src/backend/optimizer/geqo/geqo_recombination.c
src/backend/optimizer/path/allpaths.c
src/backend/optimizer/path/clausesel.c
src/backend/optimizer/path/costsize.c
src/backend/optimizer/path/equivclass.c
src/backend/optimizer/path/indxpath.c
src/backend/optimizer/path/joinpath.c
src/backend/optimizer/path/pathkeys.c
src/backend/optimizer/plan/createplan.c
src/backend/optimizer/plan/initsplan.c
src/backend/optimizer/plan/planagg.c
src/backend/optimizer/plan/planmain.c
src/backend/optimizer/plan/planner.c
src/backend/optimizer/plan/setrefs.c
src/backend/optimizer/prep/prepjointree.c
src/backend/optimizer/prep/preptlist.c
src/backend/optimizer/util/clauses.c
src/backend/optimizer/util/orclauses.c
src/backend/optimizer/util/pathnode.c
src/backend/optimizer/util/placeholder.c
src/backend/optimizer/util/plancat.c
src/backend/optimizer/util/predtest.c
src/backend/optimizer/util/relnode.c
src/backend/optimizer/util/restrictinfo.c
src/backend/optimizer/util/tlist.c
src/backend/optimizer/util/var.c
src/backend/parser/analyze.c
src/backend/parser/parse_agg.c
src/backend/parser/parse_clause.c
src/backend/parser/parse_coerce.c
src/backend/parser/parse_collate.c
src/backend/parser/parse_cte.c
src/backend/parser/parse_expr.c
src/backend/parser/parse_func.c
src/backend/parser/parse_node.c
src/backend/parser/parse_oper.c
src/backend/parser/parse_relation.c
src/backend/parser/parse_utilcmd.c
src/backend/port/atomics.c
src/backend/port/dynloader/aix.h
src/backend/port/dynloader/cygwin.h
src/backend/port/dynloader/darwin.c
src/backend/port/dynloader/freebsd.c
src/backend/port/dynloader/freebsd.h
src/backend/port/dynloader/linux.c
src/backend/port/dynloader/linux.h
src/backend/port/dynloader/netbsd.c
src/backend/port/dynloader/netbsd.h
src/backend/port/dynloader/openbsd.c
src/backend/port/dynloader/openbsd.h
src/backend/port/dynloader/solaris.h
src/backend/port/dynloader/win32.h
src/backend/port/posix_sema.c
src/backend/port/sysv_sema.c
src/backend/port/sysv_shmem.c
src/backend/port/win32_shmem.c
src/backend/postmaster/autovacuum.c
src/backend/postmaster/bgworker.c
src/backend/postmaster/bgwriter.c
src/backend/postmaster/checkpointer.c
src/backend/postmaster/fork_process.c
src/backend/postmaster/pgarch.c
src/backend/postmaster/pgstat.c
src/backend/postmaster/postmaster.c
src/backend/postmaster/startup.c
src/backend/postmaster/syslogger.c
src/backend/postmaster/walwriter.c
src/backend/regex/regc_color.c
src/backend/regex/regc_lex.c
src/backend/regex/regc_locale.c
src/backend/regex/regc_nfa.c
src/backend/regex/regc_pg_locale.c
src/backend/regex/regcomp.c
src/backend/regex/rege_dfa.c
src/backend/regex/regerror.c
src/backend/regex/regexec.c
src/backend/regex/regexport.c
src/backend/replication/basebackup.c
src/backend/replication/logical/logical.c
src/backend/replication/logical/origin.c
src/backend/replication/logical/proto.c
src/backend/replication/logical/reorderbuffer.c
src/backend/replication/logical/snapbuild.c
src/backend/replication/logical/tablesync.c
src/backend/replication/logical/worker.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/rewriteHandler.c
src/backend/statistics/dependencies.c
src/backend/storage/buffer/bufmgr.c
src/backend/storage/buffer/localbuf.c
src/backend/storage/file/fd.c
src/backend/storage/ipc/dsm_impl.c
src/backend/storage/ipc/latch.c
src/backend/storage/ipc/pmsignal.c
src/backend/storage/ipc/procarray.c
src/backend/storage/ipc/shmem.c
src/backend/storage/ipc/sinvaladt.c
src/backend/storage/large_object/inv_api.c
src/backend/storage/lmgr/deadlock.c
src/backend/storage/lmgr/lock.c
src/backend/storage/lmgr/lwlock.c
src/backend/storage/lmgr/predicate.c
src/backend/storage/lmgr/s_lock.c
src/backend/storage/lmgr/spin.c
src/backend/storage/page/bufpage.c
src/backend/storage/smgr/md.c
src/backend/storage/smgr/smgr.c
src/backend/tcop/fastpath.c
src/backend/tcop/postgres.c
src/backend/tcop/pquery.c
src/backend/tcop/utility.c
src/backend/tsearch/dict_thesaurus.c
src/backend/tsearch/spell.c
src/backend/tsearch/ts_locale.c
src/backend/tsearch/ts_typanalyze.c
src/backend/tsearch/wparser_def.c
src/backend/utils/adt/acl.c
src/backend/utils/adt/array_selfuncs.c
src/backend/utils/adt/arrayfuncs.c
src/backend/utils/adt/ascii.c
src/backend/utils/adt/cash.c
src/backend/utils/adt/date.c
src/backend/utils/adt/datetime.c
src/backend/utils/adt/float.c
src/backend/utils/adt/formatting.c
src/backend/utils/adt/geo_ops.c
src/backend/utils/adt/int8.c
src/backend/utils/adt/json.c
src/backend/utils/adt/jsonfuncs.c
src/backend/utils/adt/like_match.c
src/backend/utils/adt/nabstime.c
src/backend/utils/adt/name.c
src/backend/utils/adt/numeric.c
src/backend/utils/adt/pg_locale.c
src/backend/utils/adt/rangetypes_gist.c
src/backend/utils/adt/rangetypes_selfuncs.c
src/backend/utils/adt/rangetypes_typanalyze.c
src/backend/utils/adt/ri_triggers.c
src/backend/utils/adt/ruleutils.c
src/backend/utils/adt/selfuncs.c
src/backend/utils/adt/tsquery.c
src/backend/utils/adt/tsrank.c
src/backend/utils/adt/tsvector_op.c
src/backend/utils/adt/varbit.c
src/backend/utils/adt/varlena.c
src/backend/utils/adt/xml.c
src/backend/utils/cache/attoptcache.c
src/backend/utils/cache/catcache.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/relfilenodemap.c
src/backend/utils/cache/relmapper.c
src/backend/utils/cache/syscache.c
src/backend/utils/cache/typcache.c
src/backend/utils/error/elog.c
src/backend/utils/fmgr/dfmgr.c
src/backend/utils/fmgr/fmgr.c
src/backend/utils/fmgr/funcapi.c
src/backend/utils/hash/dynahash.c
src/backend/utils/init/globals.c
src/backend/utils/init/miscinit.c
src/backend/utils/init/postinit.c
src/backend/utils/mb/conversion_procs/euc2004_sjis2004/euc2004_sjis2004.c
src/backend/utils/mb/conversion_procs/euc_tw_and_big5/big5.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/mb/wchar.c
src/backend/utils/misc/backend_random.c
src/backend/utils/misc/guc.c
src/backend/utils/misc/ps_status.c
src/backend/utils/misc/sampling.c
src/backend/utils/mmgr/aset.c
src/backend/utils/mmgr/dsa.c
src/backend/utils/mmgr/memdebug.c
src/backend/utils/mmgr/slab.c
src/backend/utils/resowner/resowner.c
src/backend/utils/sort/logtape.c
src/backend/utils/time/snapmgr.c
src/backend/utils/time/tqual.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/pg_recvlogical.c
src/bin/pg_basebackup/receivelog.c
src/bin/pg_basebackup/receivelog.h
src/bin/pg_basebackup/streamutil.h
src/bin/pg_ctl/pg_ctl.c
src/bin/pg_dump/compress_io.c
src/bin/pg_dump/dumputils.c
src/bin/pg_dump/dumputils.h
src/bin/pg_dump/parallel.c
src/bin/pg_dump/parallel.h
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_backup_tar.c
src/bin/pg_dump/pg_backup_utils.h
src/bin/pg_dump/pg_dump.c
src/bin/pg_dump/pg_dump.h
src/bin/pg_dump/pg_dump_sort.c
src/bin/pg_resetwal/pg_resetwal.c
src/bin/pg_rewind/copy_fetch.c
src/bin/pg_rewind/datapagemap.h
src/bin/pg_rewind/fetch.h
src/bin/pg_rewind/file_ops.h
src/bin/pg_rewind/filemap.h
src/bin/pg_rewind/logging.h
src/bin/pg_rewind/pg_rewind.c
src/bin/pg_rewind/pg_rewind.h
src/bin/pg_upgrade/file.c
src/bin/pg_upgrade/pg_upgrade.h
src/bin/pg_waldump/pg_waldump.c
src/bin/pg_waldump/rmgrdesc.h
src/bin/pgbench/pgbench.c
src/bin/pgbench/pgbench.h
src/bin/psql/command.c
src/bin/psql/command.h
src/bin/psql/common.c
src/bin/psql/common.h
src/bin/psql/conditional.h
src/bin/psql/copy.c
src/bin/psql/crosstabview.h
src/bin/psql/describe.c
src/bin/psql/describe.h
src/bin/psql/help.c
src/bin/psql/input.c
src/bin/psql/input.h
src/bin/psql/large_obj.h
src/bin/psql/mainloop.c
src/bin/psql/mainloop.h
src/bin/psql/prompt.c
src/bin/psql/prompt.h
src/bin/psql/settings.h
src/bin/psql/startup.c
src/bin/psql/stringutils.h
src/bin/psql/tab-complete.c
src/bin/psql/tab-complete.h
src/bin/psql/variables.c
src/bin/psql/variables.h
src/bin/scripts/common.c
src/bin/scripts/common.h
src/common/exec.c
src/common/file_utils.c
src/common/ip.c
src/common/keywords.c
src/common/md5.c
src/common/pg_lzcompress.c
src/common/psprintf.c
src/common/scram-common.c
src/common/sha2.c
src/fe_utils/mbprint.c
src/fe_utils/print.c
src/fe_utils/string_utils.c
src/include/access/amapi.h
src/include/access/amvalidate.h
src/include/access/attnum.h
src/include/access/brin.h
src/include/access/brin_internal.h
src/include/access/brin_page.h
src/include/access/brin_pageops.h
src/include/access/brin_revmap.h
src/include/access/brin_tuple.h
src/include/access/brin_xlog.h
src/include/access/clog.h
src/include/access/commit_ts.h
src/include/access/genam.h
src/include/access/generic_xlog.h
src/include/access/gin.h
src/include/access/gin_private.h
src/include/access/ginblock.h
src/include/access/ginxlog.h
src/include/access/gist.h
src/include/access/gist_private.h
src/include/access/gistscan.h
src/include/access/hash.h
src/include/access/hash_xlog.h
src/include/access/heapam.h
src/include/access/heapam_xlog.h
src/include/access/hio.h
src/include/access/htup.h
src/include/access/htup_details.h
src/include/access/itup.h
src/include/access/multixact.h
src/include/access/nbtree.h
src/include/access/nbtxlog.h
src/include/access/parallel.h
src/include/access/printsimple.h
src/include/access/printtup.h
src/include/access/reloptions.h
src/include/access/relscan.h
src/include/access/rewriteheap.h
src/include/access/rmgr.h
src/include/access/sdir.h
src/include/access/skey.h
src/include/access/slru.h
src/include/access/spgist.h
src/include/access/spgist_private.h
src/include/access/spgxlog.h
src/include/access/stratnum.h
src/include/access/subtrans.h
src/include/access/sysattr.h
src/include/access/timeline.h
src/include/access/transam.h
src/include/access/tsmapi.h
src/include/access/tupconvert.h
src/include/access/tupdesc.h
src/include/access/tupmacs.h
src/include/access/tuptoaster.h
src/include/access/twophase.h
src/include/access/twophase_rmgr.h
src/include/access/valid.h
src/include/access/visibilitymap.h
src/include/access/xact.h
src/include/access/xlog.h
src/include/access/xlog_internal.h
src/include/access/xlogdefs.h
src/include/access/xloginsert.h
src/include/access/xlogreader.h
src/include/access/xlogrecord.h
src/include/bootstrap/bootstrap.h
src/include/c.h
src/include/catalog/binary_upgrade.h
src/include/catalog/catalog.h
src/include/catalog/dependency.h
src/include/catalog/genbki.h
src/include/catalog/heap.h
src/include/catalog/index.h
src/include/catalog/indexing.h
src/include/catalog/namespace.h
src/include/catalog/objectaccess.h
src/include/catalog/objectaddress.h
src/include/catalog/opfam_internal.h
src/include/catalog/partition.h
src/include/catalog/pg_aggregate.h
src/include/catalog/pg_am.h
src/include/catalog/pg_amop.h
src/include/catalog/pg_amproc.h
src/include/catalog/pg_attrdef.h
src/include/catalog/pg_attribute.h
src/include/catalog/pg_auth_members.h
src/include/catalog/pg_authid.h
src/include/catalog/pg_cast.h
src/include/catalog/pg_class.h
src/include/catalog/pg_collation.h
src/include/catalog/pg_collation_fn.h
src/include/catalog/pg_constraint.h
src/include/catalog/pg_constraint_fn.h
src/include/catalog/pg_control.h
src/include/catalog/pg_conversion.h
src/include/catalog/pg_conversion_fn.h
src/include/catalog/pg_database.h
src/include/catalog/pg_db_role_setting.h
src/include/catalog/pg_default_acl.h
src/include/catalog/pg_depend.h
src/include/catalog/pg_description.h
src/include/catalog/pg_enum.h
src/include/catalog/pg_event_trigger.h
src/include/catalog/pg_extension.h
src/include/catalog/pg_foreign_data_wrapper.h
src/include/catalog/pg_foreign_server.h
src/include/catalog/pg_foreign_table.h
src/include/catalog/pg_index.h
src/include/catalog/pg_inherits.h
src/include/catalog/pg_inherits_fn.h
src/include/catalog/pg_init_privs.h
src/include/catalog/pg_language.h
src/include/catalog/pg_largeobject.h
src/include/catalog/pg_largeobject_metadata.h
src/include/catalog/pg_namespace.h
src/include/catalog/pg_opclass.h
src/include/catalog/pg_operator.h
src/include/catalog/pg_operator_fn.h
src/include/catalog/pg_opfamily.h
src/include/catalog/pg_partitioned_table.h
src/include/catalog/pg_pltemplate.h
src/include/catalog/pg_policy.h
src/include/catalog/pg_proc.h
src/include/catalog/pg_proc_fn.h
src/include/catalog/pg_publication.h
src/include/catalog/pg_publication_rel.h
src/include/catalog/pg_range.h
src/include/catalog/pg_replication_origin.h
src/include/catalog/pg_rewrite.h
src/include/catalog/pg_seclabel.h
src/include/catalog/pg_sequence.h
src/include/catalog/pg_shdepend.h
src/include/catalog/pg_shdescription.h
src/include/catalog/pg_shseclabel.h
src/include/catalog/pg_statistic.h
src/include/catalog/pg_statistic_ext.h
src/include/catalog/pg_subscription.h
src/include/catalog/pg_subscription_rel.h
src/include/catalog/pg_tablespace.h
src/include/catalog/pg_transform.h
src/include/catalog/pg_trigger.h
src/include/catalog/pg_ts_config.h
src/include/catalog/pg_ts_config_map.h
src/include/catalog/pg_ts_dict.h
src/include/catalog/pg_ts_parser.h
src/include/catalog/pg_ts_template.h
src/include/catalog/pg_type.h
src/include/catalog/pg_type_fn.h
src/include/catalog/pg_user_mapping.h
src/include/catalog/storage.h
src/include/catalog/storage_xlog.h
src/include/catalog/toasting.h
src/include/commands/alter.h
src/include/commands/async.h
src/include/commands/cluster.h
src/include/commands/collationcmds.h
src/include/commands/comment.h
src/include/commands/conversioncmds.h
src/include/commands/copy.h
src/include/commands/createas.h
src/include/commands/dbcommands.h
src/include/commands/dbcommands_xlog.h
src/include/commands/defrem.h
src/include/commands/discard.h
src/include/commands/event_trigger.h
src/include/commands/explain.h
src/include/commands/extension.h
src/include/commands/lockcmds.h
src/include/commands/matview.h
src/include/commands/policy.h
src/include/commands/portalcmds.h
src/include/commands/prepare.h
src/include/commands/proclang.h
src/include/commands/publicationcmds.h
src/include/commands/schemacmds.h
src/include/commands/seclabel.h
src/include/commands/sequence.h
src/include/commands/subscriptioncmds.h
src/include/commands/tablecmds.h
src/include/commands/tablespace.h
src/include/commands/trigger.h
src/include/commands/typecmds.h
src/include/commands/user.h
src/include/commands/vacuum.h
src/include/commands/variable.h
src/include/commands/view.h
src/include/common/base64.h
src/include/common/config_info.h
src/include/common/controldata_utils.h
src/include/common/fe_memutils.h
src/include/common/file_utils.h
src/include/common/int128.h
src/include/common/ip.h
src/include/common/keywords.h
src/include/common/pg_lzcompress.h
src/include/common/relpath.h
src/include/common/restricted_token.h
src/include/common/saslprep.h
src/include/common/scram-common.h
src/include/common/sha2.h
src/include/common/string.h
src/include/common/unicode_norm.h
src/include/common/unicode_norm_table.h
src/include/common/username.h
src/include/datatype/timestamp.h
src/include/executor/execExpr.h
src/include/executor/execParallel.h
src/include/executor/execdebug.h
src/include/executor/execdesc.h
src/include/executor/executor.h
src/include/executor/functions.h
src/include/executor/hashjoin.h
src/include/executor/instrument.h
src/include/executor/nodeAgg.h
src/include/executor/nodeAppend.h
src/include/executor/nodeBitmapAnd.h
src/include/executor/nodeBitmapHeapscan.h
src/include/executor/nodeBitmapIndexscan.h
src/include/executor/nodeBitmapOr.h
src/include/executor/nodeCtescan.h
src/include/executor/nodeCustom.h
src/include/executor/nodeForeignscan.h
src/include/executor/nodeFunctionscan.h
src/include/executor/nodeGather.h
src/include/executor/nodeGatherMerge.h
src/include/executor/nodeGroup.h
src/include/executor/nodeHash.h
src/include/executor/nodeHashjoin.h
src/include/executor/nodeIndexonlyscan.h
src/include/executor/nodeIndexscan.h
src/include/executor/nodeLimit.h
src/include/executor/nodeLockRows.h
src/include/executor/nodeMaterial.h
src/include/executor/nodeMergeAppend.h
src/include/executor/nodeMergejoin.h
src/include/executor/nodeModifyTable.h
src/include/executor/nodeNamedtuplestorescan.h
src/include/executor/nodeNestloop.h
src/include/executor/nodeProjectSet.h
src/include/executor/nodeRecursiveunion.h
src/include/executor/nodeResult.h
src/include/executor/nodeSamplescan.h
src/include/executor/nodeSeqscan.h
src/include/executor/nodeSetOp.h
src/include/executor/nodeSort.h
src/include/executor/nodeSubplan.h
src/include/executor/nodeSubqueryscan.h
src/include/executor/nodeTableFuncscan.h
src/include/executor/nodeTidscan.h
src/include/executor/nodeUnique.h
src/include/executor/nodeValuesscan.h
src/include/executor/nodeWindowAgg.h
src/include/executor/nodeWorktablescan.h
src/include/executor/spi.h
src/include/executor/spi_priv.h
src/include/executor/tablefunc.h
src/include/executor/tqueue.h
src/include/executor/tstoreReceiver.h
src/include/executor/tuptable.h
src/include/fe_utils/mbprint.h
src/include/fe_utils/print.h
src/include/fe_utils/psqlscan.h
src/include/fe_utils/psqlscan_int.h
src/include/fe_utils/simple_list.h
src/include/fe_utils/string_utils.h
src/include/fmgr.h
src/include/foreign/fdwapi.h
src/include/foreign/foreign.h
src/include/funcapi.h
src/include/getaddrinfo.h
src/include/getopt_long.h
src/include/lib/binaryheap.h
src/include/lib/bipartite_match.h
src/include/lib/hyperloglog.h
src/include/lib/ilist.h
src/include/lib/knapsack.h
src/include/lib/pairingheap.h
src/include/lib/rbtree.h
src/include/lib/simplehash.h
src/include/lib/stringinfo.h
src/include/libpq/auth.h
src/include/libpq/be-fsstubs.h
src/include/libpq/hba.h
src/include/libpq/ifaddr.h
src/include/libpq/libpq-be.h
src/include/libpq/libpq-fs.h
src/include/libpq/libpq.h
src/include/libpq/pqcomm.h
src/include/libpq/pqformat.h
src/include/libpq/pqmq.h
src/include/libpq/pqsignal.h
src/include/libpq/scram.h
src/include/mb/pg_wchar.h
src/include/miscadmin.h
src/include/nodes/bitmapset.h
src/include/nodes/execnodes.h
src/include/nodes/extensible.h
src/include/nodes/lockoptions.h
src/include/nodes/makefuncs.h
src/include/nodes/memnodes.h
src/include/nodes/nodeFuncs.h
src/include/nodes/nodes.h
src/include/nodes/params.h
src/include/nodes/parsenodes.h
src/include/nodes/pg_list.h
src/include/nodes/plannodes.h
src/include/nodes/primnodes.h
src/include/nodes/print.h
src/include/nodes/readfuncs.h
src/include/nodes/relation.h
src/include/nodes/replnodes.h
src/include/nodes/tidbitmap.h
src/include/nodes/value.h
src/include/optimizer/clauses.h
src/include/optimizer/cost.h
src/include/optimizer/geqo.h
src/include/optimizer/geqo_copy.h
src/include/optimizer/geqo_gene.h
src/include/optimizer/geqo_misc.h
src/include/optimizer/geqo_mutation.h
src/include/optimizer/geqo_pool.h
src/include/optimizer/geqo_random.h
src/include/optimizer/geqo_recombination.h
src/include/optimizer/geqo_selection.h
src/include/optimizer/joininfo.h
src/include/optimizer/orclauses.h
src/include/optimizer/pathnode.h
src/include/optimizer/paths.h
src/include/optimizer/placeholder.h
src/include/optimizer/plancat.h
src/include/optimizer/planmain.h
src/include/optimizer/planner.h
src/include/optimizer/predtest.h
src/include/optimizer/prep.h
src/include/optimizer/restrictinfo.h
src/include/optimizer/subselect.h
src/include/optimizer/tlist.h
src/include/optimizer/var.h
src/include/parser/analyze.h
src/include/parser/gramparse.h
src/include/parser/parse_agg.h
src/include/parser/parse_clause.h
src/include/parser/parse_coerce.h
src/include/parser/parse_collate.h
src/include/parser/parse_cte.h
src/include/parser/parse_enr.h
src/include/parser/parse_expr.h
src/include/parser/parse_func.h
src/include/parser/parse_node.h
src/include/parser/parse_oper.h
src/include/parser/parse_param.h
src/include/parser/parse_relation.h
src/include/parser/parse_target.h
src/include/parser/parse_type.h
src/include/parser/parse_utilcmd.h
src/include/parser/parser.h
src/include/parser/parsetree.h
src/include/parser/scanner.h
src/include/parser/scansup.h
src/include/pg_getopt.h
src/include/pg_trace.h
src/include/pgstat.h
src/include/pgtime.h
src/include/port.h
src/include/port/atomics.h
src/include/port/pg_bswap.h
src/include/port/pg_crc32c.h
src/include/port/win32.h
src/include/port/win32/sys/socket.h
src/include/portability/instr_time.h
src/include/portability/mem.h
src/include/postgres.h
src/include/postgres_ext.h
src/include/postgres_fe.h
src/include/postmaster/autovacuum.h
src/include/postmaster/bgworker.h
src/include/postmaster/bgworker_internals.h
src/include/postmaster/bgwriter.h
src/include/postmaster/fork_process.h
src/include/postmaster/pgarch.h
src/include/postmaster/postmaster.h
src/include/postmaster/startup.h
src/include/postmaster/syslogger.h
src/include/postmaster/walwriter.h
src/include/regex/regex.h
src/include/regex/regexport.h
src/include/regex/regguts.h
src/include/replication/basebackup.h
src/include/replication/logicallauncher.h
src/include/replication/logicalproto.h
src/include/replication/logicalrelation.h
src/include/replication/logicalworker.h
src/include/replication/message.h
src/include/replication/origin.h
src/include/replication/output_plugin.h
src/include/replication/pgoutput.h
src/include/replication/slot.h
src/include/replication/snapbuild.h
src/include/replication/syncrep.h
src/include/replication/walreceiver.h
src/include/replication/walsender.h
src/include/replication/walsender_private.h
src/include/replication/worker_internal.h
src/include/rewrite/prs2lock.h
src/include/rewrite/rewriteDefine.h
src/include/rewrite/rewriteHandler.h
src/include/rewrite/rewriteManip.h
src/include/rewrite/rewriteRemove.h
src/include/rewrite/rewriteSupport.h
src/include/rewrite/rowsecurity.h
src/include/rusagestub.h
src/include/snowball/header.h
src/include/statistics/extended_stats_internal.h
src/include/statistics/statistics.h
src/include/storage/backendid.h
src/include/storage/block.h
src/include/storage/buf.h
src/include/storage/buf_internals.h
src/include/storage/buffile.h
src/include/storage/bufmgr.h
src/include/storage/bufpage.h
src/include/storage/checksum.h
src/include/storage/condition_variable.h
src/include/storage/copydir.h
src/include/storage/dsm.h
src/include/storage/dsm_impl.h
src/include/storage/fd.h
src/include/storage/freespace.h
src/include/storage/fsm_internals.h
src/include/storage/indexfsm.h
src/include/storage/ipc.h
src/include/storage/item.h
src/include/storage/itemid.h
src/include/storage/itemptr.h
src/include/storage/large_object.h
src/include/storage/latch.h
src/include/storage/lmgr.h
src/include/storage/lock.h
src/include/storage/lockdefs.h
src/include/storage/lwlock.h
src/include/storage/off.h
src/include/storage/pg_sema.h
src/include/storage/pg_shmem.h
src/include/storage/pmsignal.h
src/include/storage/predicate.h
src/include/storage/predicate_internals.h
src/include/storage/proc.h
src/include/storage/procarray.h
src/include/storage/procsignal.h
src/include/storage/reinit.h
src/include/storage/relfilenode.h
src/include/storage/shm_mq.h
src/include/storage/shm_toc.h
src/include/storage/shmem.h
src/include/storage/sinval.h
src/include/storage/sinvaladt.h
src/include/storage/smgr.h
src/include/storage/spin.h
src/include/storage/standby.h
src/include/storage/standbydefs.h
src/include/tcop/deparse_utility.h
src/include/tcop/dest.h
src/include/tcop/fastpath.h
src/include/tcop/pquery.h
src/include/tcop/tcopprot.h
src/include/tcop/utility.h
src/include/tsearch/ts_cache.h
src/include/tsearch/ts_locale.h
src/include/tsearch/ts_public.h
src/include/tsearch/ts_type.h
src/include/tsearch/ts_utils.h
src/include/utils/acl.h
src/include/utils/aclchk_internal.h
src/include/utils/array.h
src/include/utils/arrayaccess.h
src/include/utils/ascii.h
src/include/utils/attoptcache.h
src/include/utils/backend_random.h
src/include/utils/builtins.h
src/include/utils/bytea.h
src/include/utils/cash.h
src/include/utils/catcache.h
src/include/utils/combocid.h
src/include/utils/date.h
src/include/utils/datetime.h
src/include/utils/datum.h
src/include/utils/dsa.h
src/include/utils/dynahash.h
src/include/utils/dynamic_loader.h
src/include/utils/elog.h
src/include/utils/evtcache.h
src/include/utils/expandeddatum.h
src/include/utils/fmgrtab.h
src/include/utils/freepage.h
src/include/utils/geo_decls.h
src/include/utils/guc.h
src/include/utils/guc_tables.h
src/include/utils/hsearch.h
src/include/utils/index_selfuncs.h
src/include/utils/inet.h
src/include/utils/int8.h
src/include/utils/inval.h
src/include/utils/json.h
src/include/utils/jsonapi.h
src/include/utils/jsonb.h
src/include/utils/logtape.h
src/include/utils/lsyscache.h
src/include/utils/memdebug.h
src/include/utils/memutils.h
src/include/utils/nabstime.h
src/include/utils/numeric.h
src/include/utils/palloc.h
src/include/utils/pg_crc.h
src/include/utils/pg_locale.h
src/include/utils/pg_lsn.h
src/include/utils/pg_rusage.h
src/include/utils/plancache.h
src/include/utils/portal.h
src/include/utils/ps_status.h
src/include/utils/queryenvironment.h
src/include/utils/rangetypes.h
src/include/utils/rel.h
src/include/utils/relcache.h
src/include/utils/relfilenodemap.h
src/include/utils/relmapper.h
src/include/utils/relptr.h
src/include/utils/reltrigger.h
src/include/utils/resowner.h
src/include/utils/resowner_private.h
src/include/utils/rls.h
src/include/utils/ruleutils.h
src/include/utils/sampling.h
src/include/utils/selfuncs.h
src/include/utils/snapmgr.h
src/include/utils/snapshot.h
src/include/utils/sortsupport.h
src/include/utils/spccache.h
src/include/utils/syscache.h
src/include/utils/timeout.h
src/include/utils/timestamp.h
src/include/utils/tqual.h
src/include/utils/tuplesort.h
src/include/utils/tuplestore.h
src/include/utils/typcache.h
src/include/utils/tzparser.h
src/include/utils/uuid.h
src/include/utils/xml.h
src/include/windowapi.h
src/interfaces/ecpg/ecpglib/data.c
src/interfaces/ecpg/ecpglib/descriptor.c
src/interfaces/ecpg/ecpglib/execute.c
src/interfaces/ecpg/ecpglib/extern.h
src/interfaces/ecpg/ecpglib/misc.c
src/interfaces/ecpg/ecpglib/pg_type.h
src/interfaces/ecpg/ecpglib/prepare.c
src/interfaces/ecpg/ecpglib/typename.c
src/interfaces/ecpg/include/datetime.h
src/interfaces/ecpg/include/decimal.h
src/interfaces/ecpg/include/ecpg-pthread-win32.h
src/interfaces/ecpg/include/ecpg_informix.h
src/interfaces/ecpg/include/ecpgerrno.h
src/interfaces/ecpg/include/ecpglib.h
src/interfaces/ecpg/include/ecpgtype.h
src/interfaces/ecpg/include/pgtypes_date.h
src/interfaces/ecpg/include/pgtypes_interval.h
src/interfaces/ecpg/include/pgtypes_numeric.h
src/interfaces/ecpg/include/pgtypes_timestamp.h
src/interfaces/ecpg/include/sql3types.h
src/interfaces/ecpg/include/sqlca.h
src/interfaces/ecpg/include/sqlda-compat.h
src/interfaces/ecpg/include/sqlda-native.h
src/interfaces/ecpg/include/sqlda.h
src/interfaces/ecpg/include/sqltypes.h
src/interfaces/ecpg/pgtypeslib/datetime.c
src/interfaces/ecpg/pgtypeslib/dt.h
src/interfaces/ecpg/pgtypeslib/dt_common.c
src/interfaces/ecpg/pgtypeslib/extern.h
src/interfaces/ecpg/pgtypeslib/interval.c
src/interfaces/ecpg/pgtypeslib/timestamp.c
src/interfaces/ecpg/preproc/extern.h
src/interfaces/ecpg/preproc/output.c
src/interfaces/ecpg/preproc/type.c
src/interfaces/ecpg/preproc/type.h
src/interfaces/ecpg/test/expected/compat_informix-describe.c
src/interfaces/ecpg/test/expected/compat_informix-sqlda.c
src/interfaces/ecpg/test/expected/compat_informix-test_informix2.c
src/interfaces/ecpg/test/expected/preproc-init.c
src/interfaces/ecpg/test/expected/preproc-outofscope.c
src/interfaces/ecpg/test/expected/sql-array.c
src/interfaces/ecpg/test/expected/sql-code100.c
src/interfaces/ecpg/test/expected/sql-copystdout.c
src/interfaces/ecpg/test/expected/sql-define.c
src/interfaces/ecpg/test/expected/sql-describe.c
src/interfaces/ecpg/test/expected/sql-dynalloc.c
src/interfaces/ecpg/test/expected/sql-dynalloc2.c
src/interfaces/ecpg/test/expected/sql-dyntest.c
src/interfaces/ecpg/test/expected/sql-indicators.c
src/interfaces/ecpg/test/expected/sql-sqlda.c
src/interfaces/ecpg/test/expected/thread-alloc.c
src/interfaces/ecpg/test/expected/thread-descriptor.c
src/interfaces/ecpg/test/expected/thread-prep.c
src/interfaces/libpq/fe-auth.c
src/interfaces/libpq/fe-auth.h
src/interfaces/libpq/fe-connect.c
src/interfaces/libpq/fe-exec.c
src/interfaces/libpq/fe-misc.c
src/interfaces/libpq/fe-print.c
src/interfaces/libpq/fe-protocol2.c
src/interfaces/libpq/fe-protocol3.c
src/interfaces/libpq/fe-secure-openssl.c
src/interfaces/libpq/fe-secure.c
src/interfaces/libpq/libpq-events.h
src/interfaces/libpq/libpq-fe.h
src/interfaces/libpq/libpq-int.h
src/interfaces/libpq/pqexpbuffer.c
src/interfaces/libpq/pqexpbuffer.h
src/pl/plperl/plperl.c
src/pl/plperl/plperl.h
src/pl/plperl/plperl_helpers.h
src/pl/plpgsql/src/pl_comp.c
src/pl/plpgsql/src/pl_exec.c
src/pl/plpgsql/src/plpgsql.h
src/pl/plpython/plpy_cursorobject.h
src/pl/plpython/plpy_elog.h
src/pl/plpython/plpy_exec.c
src/pl/plpython/plpy_exec.h
src/pl/plpython/plpy_main.c
src/pl/plpython/plpy_main.h
src/pl/plpython/plpy_planobject.h
src/pl/plpython/plpy_plpymodule.c
src/pl/plpython/plpy_plpymodule.h
src/pl/plpython/plpy_procedure.h
src/pl/plpython/plpy_resultobject.h
src/pl/plpython/plpy_spi.h
src/pl/plpython/plpy_subxactobject.h
src/pl/plpython/plpy_typeio.h
src/pl/plpython/plpy_util.c
src/pl/plpython/plpy_util.h
src/pl/plpython/plpython.h
src/pl/tcl/pltcl.c
src/port/chklocale.c
src/port/crypt.c
src/port/dirent.c
src/port/dirmod.c
src/port/getaddrinfo.c
src/port/getopt.c
src/port/getrusage.c
src/port/mkdtemp.c
src/port/pg_crc32c_sb8.c
src/port/pg_crc32c_sse42.c
src/port/pgsleep.c
src/port/pqsignal.c
src/port/snprintf.c
src/test/isolation/isolationtester.h
src/test/regress/pg_regress.c
src/test/regress/regress.c
src/test/thread/thread_test.c
src/timezone/localtime.c
src/timezone/pgtz.h
src/timezone/private.h
src/timezone/strftime.c
src/timezone/tzfile.h
src/timezone/zic.c
src/tools/pgindent/pgindent
src/tutorial/funcs.c
src/tutorial/funcs_new.c

index 0cfe49aad8228cc60d0e4086759c2467a900d3d1..6d1b3f12a3b1cc9fdc8f4645390527139a318db8 100644 (file)
@@ -75,7 +75,7 @@ typedef BloomPageOpaqueData *BloomPageOpaque;
 
 /* Preserved page numbers */
 #define BLOOM_METAPAGE_BLKNO   (0)
-#define BLOOM_HEAD_BLKNO       (1)     /* first data page */
+#define BLOOM_HEAD_BLKNO       (1) /* first data page */
 
 /*
  * We store Bloom signatures as arrays of uint16 words.
@@ -101,8 +101,8 @@ typedef struct BloomOptions
 {
    int32       vl_len_;        /* varlena header (do not touch directly!) */
    int         bloomLength;    /* length of signature in words (not bits!) */
-   int         bitSize[INDEX_MAX_KEYS];        /* # of bits generated for
-                                                * each index key */
+   int         bitSize[INDEX_MAX_KEYS];    /* # of bits generated for each
+                                            * index key */
 } BloomOptions;
 
 /*
index 8aab19396c494075162cf296922143b306a95c6b..17561fa9e4ef888a8e459a0c0330e0044a7e8c5f 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 c531663f9279968f6f9a229173539653df8cd2b3..b2623a95830c43c3d83e977f95ba9ce2de8914a7 100644 (file)
@@ -488,7 +488,7 @@ gbt_var_picksplit(const GistEntryVector *entryvec, GIST_SPLITVEC *v,
 
        cur = (char *) DatumGetPointer(entryvec->vector[i].key);
        ro = gbt_var_key_readable((GBT_VARKEY *) cur);
-       if (ro.lower == ro.upper)       /* leaf */
+       if (ro.lower == ro.upper)   /* leaf */
        {
            sv[svcntr] = gbt_var_leaf2node((GBT_VARKEY *) cur, tinfo, flinfo);
            arr[i].t = sv[svcntr];
index 04a356276bf23b73331f059c3a76e7c393b2fe68..15d847c139456f7ff32d8dc066dccfde9fdc1127 100644 (file)
@@ -40,7 +40,7 @@ typedef struct
    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 */
+   GBT_VARKEY *(*f_l2n) (GBT_VARKEY *, FmgrInfo *flinfo);  /* convert leaf to node */
 } gbtree_vinfo;
 
 
index e67b8cc989894266dd44505d94181afd47e800b1..58a87decc6466ed4ac6e071f4452d871ce612687 100644 (file)
@@ -171,7 +171,7 @@ static double
 uuid_2_double(const pg_uuid_t *u)
 {
    uint64      uu[2];
-   const double two64 = 18446744073709551616.0;        /* 2^64 */
+   const double two64 = 18446744073709551616.0;    /* 2^64 */
 
    /* Source data may not be suitably aligned, so copy */
    memcpy(uu, u->data, UUID_LEN);
index af02464178c79e43464a2a4e2a5d49f99c7ffbb2..6e6ddfd3d75c55c89abbbb9b7f5d93672298c15e 100644 (file)
@@ -54,10 +54,10 @@ typedef struct NDBOX
 #define PG_RETURN_NDBOX(x) PG_RETURN_POINTER(x)
 
 /* GiST operator strategy numbers */
-#define CubeKNNDistanceCoord           15      /* ~> */
-#define CubeKNNDistanceTaxicab         16      /* <#> */
-#define CubeKNNDistanceEuclid          17      /* <-> */
-#define CubeKNNDistanceChebyshev       18      /* <=> */
+#define CubeKNNDistanceCoord           15  /* ~> */
+#define CubeKNNDistanceTaxicab         16  /* <#> */
+#define CubeKNNDistanceEuclid          17  /* <-> */
+#define CubeKNNDistanceChebyshev       18  /* <=> */
 
 /* in cubescan.l */
 extern int cube_yylex(void);
index f2182bc3f4aef559d5207be3c1a83291e5f1c1bf..5ec3e794a2051a0651c38ffc6def080fd568ec6a 100644 (file)
@@ -67,7 +67,7 @@ typedef struct remoteConn
 {
    PGconn     *conn;           /* Hold the remote connection */
    int         openCursorCount;    /* The number of open cursors */
-   bool        newXactForCursor;       /* Opened a transaction for a cursor */
+   bool        newXactForCursor;   /* Opened a transaction for a cursor */
 } remoteConn;
 
 typedef struct storeInfo
@@ -1098,7 +1098,7 @@ storeQueryResult(volatile storeInfo *sinfo, PGconn *conn, const char *sql)
    if (!PQsendQuery(conn, sql))
        elog(ERROR, "could not send query: %s", pchomp(PQerrorMessage(conn)));
 
-   if (!PQsetSingleRowMode(conn))      /* shouldn't fail */
+   if (!PQsetSingleRowMode(conn))  /* shouldn't fail */
        elog(ERROR, "failed to set single-row mode for dblink query");
 
    for (;;)
index 277639f6e9db8a5ee0da594aacb0fd74b5f95f3c..692c7ce5f1dbbaffbb69893ac732e57a452de5f8 100644 (file)
@@ -544,13 +544,13 @@ fileGetForeignPaths(PlannerInfo *root,
     */
    add_path(baserel, (Path *)
             create_foreignscan_path(root, baserel,
-                                    NULL,      /* default pathtarget */
+                                    NULL,  /* default pathtarget */
                                     baserel->rows,
                                     startup_cost,
                                     total_cost,
-                                    NIL,       /* no pathkeys */
-                                    NULL,      /* no outer rel either */
-                                    NULL,      /* no extra plan */
+                                    NIL,   /* no pathkeys */
+                                    NULL,  /* no outer rel either */
+                                    NULL,  /* no extra plan */
                                     coptions));
 
    /*
index 4e89983afda8c564c55c253d5cac30f72c294e20..918ee0d90e52ce3430e7cdf8432d1ed6caa816cb 100644 (file)
@@ -111,7 +111,7 @@ The remaining code is authored by Andrew Dunstan <amdunstan@ncshp.org> and
 #include <string.h>
 #include <stdarg.h>
 
-#endif   /* DMETAPHONE_MAIN */
+#endif                         /* DMETAPHONE_MAIN */
 
 #include <assert.h>
 #include <ctype.h>
@@ -197,7 +197,7 @@ dmetaphone_alt(PG_FUNCTION_ARGS)
  * in a case like this.
  */
 
-#define META_FREE(x) ((void)true)      /* pfree((x)) */
+#define META_FREE(x) ((void)true)  /* pfree((x)) */
 #else                          /* not defined DMETAPHONE_MAIN */
 
 /* use the standard malloc library when not running in PostgreSQL */
@@ -209,7 +209,7 @@ dmetaphone_alt(PG_FUNCTION_ARGS)
                      (v = (t*)realloc((v),((n)*sizeof(t))))
 
 #define META_FREE(x) free((x))
-#endif   /* defined DMETAPHONE_MAIN */
+#endif                         /* defined DMETAPHONE_MAIN */
 
 
 
@@ -977,7 +977,7 @@ DoubleMetaphone(char *str, char **codes)
                    }
                }
 
-               if (GetAt(original, current + 1) == 'J')        /* it could happen! */
+               if (GetAt(original, current + 1) == 'J')    /* it could happen! */
                    current += 2;
                else
                    current += 1;
index 6bab08b7de0b8028f416b1a38ff6a495d0b12a88..c4862a82e17f785d517647f4e95b6f0cce8e7705 100644 (file)
@@ -181,7 +181,7 @@ extern Pairs *hstoreArrayToPairs(ArrayType *a, int *npairs);
 #define HStoreExistsStrategyNumber     9
 #define HStoreExistsAnyStrategyNumber  10
 #define HStoreExistsAllStrategyNumber  11
-#define HStoreOldContainsStrategyNumber 13     /* backwards compatibility */
+#define HStoreOldContainsStrategyNumber 13 /* backwards compatibility */
 
 /*
  * defining HSTORE_POLLUTE_NAMESPACE=0 will prevent use of old function names;
@@ -202,4 +202,4 @@ extern Pairs *hstoreArrayToPairs(ArrayType *a, int *npairs);
    extern int no_such_variable
 #endif
 
-#endif   /* __HSTORE_H__ */
+#endif                         /* __HSTORE_H__ */
index 1cecf8600489ad5b3d51a20f93b85234fe08e03c..1dd7c7c9ce47e8925c1db0bccbbcba470f7e4e79 100644 (file)
@@ -829,7 +829,7 @@ hstore_from_record(PG_FUNCTION_ARGS)
        my_extra->ncolumns = ncolumns;
    }
 
-   Assert(ncolumns <= MaxTupleAttributeNumber);        /* thus, no overflow */
+   Assert(ncolumns <= MaxTupleAttributeNumber);    /* thus, no overflow */
    pairs = palloc(ncolumns * sizeof(Pairs));
 
    if (rec)
index d524f0fed53feb61650e3dcb1dfc87908e3d1218..b689eb7dedf165052c06a66ed5d58106cbb47e68 100644 (file)
@@ -173,4 +173,4 @@ int         compDESC(const void *a, const void *b);
                  (direction) ? compASC : compDESC ); \
    } while(0)
 
-#endif   /* ___INT_H__ */
+#endif                         /* ___INT_H__ */
index 3c52912bbf4500c47bcc237c882450df5419678c..2fdfd2ec632dd4d3317876f3e37d6ed4362afda2 100644 (file)
@@ -282,7 +282,7 @@ internal_size(int *a, int len)
 
    for (i = 0; i < len; i += 2)
    {
-       if (!i || a[i] != a[i - 1])     /* do not count repeated range */
+       if (!i || a[i] != a[i - 1]) /* do not count repeated range */
            size += a[i + 1] - a[i] + 1;
    }
 
index c3c10e14bca3e31987a5151f8efa7c5720b93fd9..d018ec6af5b4c9b8920bedce67a30b2e05c3e40c 100644 (file)
@@ -131,7 +131,7 @@ invalidindex:
    elog(DEBUG1, "index %d is invalid", j);
    return false;
 }
-#endif   /* ISN_DEBUG */
+#endif                         /* ISN_DEBUG */
 
 /*----------------------------------------------------------
  * Formatting and conversion routines.
@@ -699,11 +699,11 @@ string2ean(const char *str, bool errorOK, ean13 *result,
    /* recognize and validate the number: */
    while (*aux2 && length <= 13)
    {
-       last = (*(aux2 + 1) == '!' || *(aux2 + 1) == '\0');     /* is the last character */
+       last = (*(aux2 + 1) == '!' || *(aux2 + 1) == '\0'); /* is the last character */
        digit = (isdigit((unsigned char) *aux2) != 0);  /* is current character
                                                         * a digit? */
-       if (*aux2 == '?' && last)       /* automagically calculate check digit
-                                        * if it's '?' */
+       if (*aux2 == '?' && last)   /* automagically calculate check digit if
+                                    * it's '?' */
            magic = digit = true;
        if (length == 0 && (*aux2 == 'M' || *aux2 == 'm'))
        {
@@ -832,8 +832,8 @@ string2ean(const char *str, bool errorOK, ean13 *result,
                goto eanwrongtype;
            break;
        case ISMN:
-           memcpy(buf, "9790", 4);     /* this isn't for sure yet, for now
-                                        * ISMN it's only 9790 */
+           memcpy(buf, "9790", 4); /* this isn't for sure yet, for now ISMN
+                                    * it's only 9790 */
            valid = (valid && ((rcheck = checkdig(buf, 13)) == check || magic));
            break;
        case ISBN:
@@ -1123,7 +1123,7 @@ accept_weak_input(PG_FUNCTION_ARGS)
    g_weak = PG_GETARG_BOOL(0);
 #else
    /* function has no effect */
-#endif   /* ISN_WEAK_MODE */
+#endif                         /* ISN_WEAK_MODE */
    PG_RETURN_BOOL(g_weak);
 }
 
index 09dc7c657594732da31e494e11f7941d38b20549..e2c8a262346bfd9257945b99a2dc7453116a9b94 100644 (file)
@@ -32,4 +32,4 @@ typedef uint64 ean13;
 
 extern void initialize(void);
 
-#endif   /* ISN_H */
+#endif                         /* ISN_H */
index 6bd24309319f1bd90e9aa66ca2828b4604e3919c..4585923ee2b5aa257905a29ab9102dd50ec6daa1 100644 (file)
@@ -32,11 +32,11 @@ lo_manage(PG_FUNCTION_ARGS)
    HeapTuple   newtuple;       /* The new value for tuple      */
    HeapTuple   trigtuple;      /* The original value of tuple  */
 
-   if (!CALLED_AS_TRIGGER(fcinfo))     /* internal error */
+   if (!CALLED_AS_TRIGGER(fcinfo)) /* internal error */
        elog(ERROR, "%s: not fired by trigger manager",
             trigdata->tg_trigger->tgname);
 
-   if (!TRIGGER_FIRED_FOR_ROW(trigdata->tg_event))     /* internal error */
+   if (!TRIGGER_FIRED_FOR_ROW(trigdata->tg_event)) /* internal error */
        elog(ERROR, "%s: must be fired for row",
             trigdata->tg_trigger->tgname);
 
index c604357dbfbb215ced194ed801fbe90247dd62d5..7a7a154097600ada669bb7b7e0996decb2a10b83 100644 (file)
@@ -125,7 +125,7 @@ typedef struct
 #define OPR                        3
 #define OPEN                   4
 #define CLOSE                  5
-#define VALTRUE                    6       /* for stop words */
+#define VALTRUE                    6   /* for stop words */
 #define VALFALSE               7
 
 
index 033a477c61a1b39bdc99badb73afad69f9ad6cac..37ee3377ff3f765f55f549a085867b0e13288559 100644 (file)
@@ -302,7 +302,7 @@ ltree_picksplit(PG_FUNCTION_ARGS)
    for (j = FirstOffsetNumber; j <= maxoff; j = OffsetNumberNext(j))
    {
        array[j].index = j;
-       lu = GETENTRY(entryvec, j);     /* use as tmp val */
+       lu = GETENTRY(entryvec, j); /* use as tmp val */
        array[j].r = LTG_GETLNODE(lu);
    }
 
@@ -312,7 +312,7 @@ ltree_picksplit(PG_FUNCTION_ARGS)
    lu_l = lu_r = ru_l = ru_r = NULL;
    for (j = FirstOffsetNumber; j <= maxoff; j = OffsetNumberNext(j))
    {
-       lu = GETENTRY(entryvec, array[j].index);        /* use as tmp val */
+       lu = GETENTRY(entryvec, array[j].index);    /* use as tmp val */
        if (j <= (maxoff - FirstOffsetNumber + 1) / 2)
        {
            v->spl_left[v->spl_nleft] = array[j].index;
index 55ca68fab36667f3efdcf7bcb2d30f550fe7ea54..f49cf9e89238920f02b73c2af806e0f1cf6bf77f 100644 (file)
@@ -18,4 +18,4 @@
 /* in rawpage.c */
 extern Page get_page_from_raw(bytea *raw_page);
 
-#endif   /* _PAGEINSPECT_H_ */
+#endif                         /* _PAGEINSPECT_H_ */
index 8bebf2384dffdb33d1acc046c68eae682baea35b..b410aafa5a904ad61eeaf10b3978f3d10a4b0a33 100644 (file)
@@ -66,7 +66,7 @@ pg_buffercache_pages(PG_FUNCTION_ARGS)
    FuncCallContext *funcctx;
    Datum       result;
    MemoryContext oldcontext;
-   BufferCachePagesContext *fctx;      /* User function context. */
+   BufferCachePagesContext *fctx;  /* User function context. */
    TupleDesc   tupledesc;
    TupleDesc   expected_tupledesc;
    HeapTuple   tuple;
index c37eaa395dae51c6a7917ed92e6509571417cf8b..db402310895524400001a114fdecfb916ddc5a10 100644 (file)
@@ -44,8 +44,8 @@ int           maxwaittime = 0;    /* how long are we prepared to wait for? */
 int            keepfiles = 0;      /* number of WAL files to keep, 0 keep all */
 int            maxretries = 3;     /* number of retries on restore command */
 bool       debug = false;      /* are we debugging? */
-bool       need_cleanup = false;       /* do we need to remove files from
-                                        * archive? */
+bool       need_cleanup = false;   /* do we need to remove files from
+                                    * archive? */
 
 #ifndef WIN32
 static volatile sig_atomic_t signaled = false;
@@ -59,8 +59,8 @@ 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       restoreCommand[MAXPGPATH];  /* run this to restore */
-char       exclusiveCleanupFileName[MAXFNAMELEN];      /* the file we need to
-                                                        * get from archive */
+char       exclusiveCleanupFileName[MAXFNAMELEN];  /* the file we need to get
+                                                    * from archive */
 
 /*
  * Two types of failover are supported (smart and fast failover).
@@ -582,7 +582,7 @@ main(int argc, char **argv)
     * There's no way to trigger failover via signal on Windows.
     */
    (void) pqsignal(SIGUSR1, sighandler);
-   (void) pqsignal(SIGINT, sighandler);        /* deprecated, use SIGUSR1 */
+   (void) pqsignal(SIGINT, sighandler);    /* deprecated, use SIGUSR1 */
    (void) pqsignal(SIGQUIT, sigquit_handler);
 #endif
 
index 1febdca16fe5191484e90d6f08300382c45a98d2..d1ed74b45e37f63ae499e7a66cbff67c955c90a2 100644 (file)
@@ -107,7 +107,7 @@ static const uint32 PGSS_PG_MAJOR_VERSION = PG_VERSION_NUM / 100;
 #define ASSUMED_LENGTH_INIT        1024    /* initial assumed mean query length */
 #define USAGE_DECREASE_FACTOR  (0.99)  /* decreased every entry_dealloc */
 #define STICKY_DECREASE_FACTOR (0.50)  /* factor for sticky entries */
-#define USAGE_DEALLOC_PERCENT  5       /* free this % of entries at once */
+#define USAGE_DEALLOC_PERCENT  5   /* free this % of entries at once */
 
 #define JUMBLE_SIZE                1024    /* query serialization buffer size */
 
@@ -146,15 +146,15 @@ typedef struct Counters
    double      sum_var_time;   /* sum of variances in execution time in msec */
    int64       rows;           /* total # of retrieved or affected rows */
    int64       shared_blks_hit;    /* # of shared buffer hits */
-   int64       shared_blks_read;       /* # of shared disk blocks read */
+   int64       shared_blks_read;   /* # of shared disk blocks read */
    int64       shared_blks_dirtied;    /* # of shared disk blocks dirtied */
    int64       shared_blks_written;    /* # of shared disk blocks written */
    int64       local_blks_hit; /* # of local buffer hits */
    int64       local_blks_read;    /* # of local disk blocks read */
-   int64       local_blks_dirtied;     /* # of local disk blocks dirtied */
-   int64       local_blks_written;     /* # of local disk blocks written */
+   int64       local_blks_dirtied; /* # of local disk blocks dirtied */
+   int64       local_blks_written; /* # of local disk blocks written */
    int64       temp_blks_read; /* # of temp blocks read */
-   int64       temp_blks_written;      /* # of temp blocks written */
+   int64       temp_blks_written;  /* # of temp blocks written */
    double      blk_read_time;  /* time spent reading, in msec */
    double      blk_write_time; /* time spent writing, in msec */
    double      usage;          /* usage factor */
@@ -183,7 +183,7 @@ typedef struct pgssEntry
 typedef struct pgssSharedState
 {
    LWLock     *lock;           /* protects hashtable search/modification */
-   double      cur_median_usage;       /* current median usage in hashtable */
+   double      cur_median_usage;   /* current median usage in hashtable */
    Size        mean_query_len; /* current mean entry text length */
    slock_t     mutex;          /* protects following fields only: */
    Size        extent;         /* current extent of query file */
@@ -940,7 +940,7 @@ pgss_ExecutorEnd(QueryDesc *queryDesc)
                   queryId,
                   queryDesc->plannedstmt->stmt_location,
                   queryDesc->plannedstmt->stmt_len,
-                  queryDesc->totaltime->total * 1000.0,        /* convert to msec */
+                  queryDesc->totaltime->total * 1000.0,    /* convert to msec */
                   queryDesc->estate->es_processed,
                   &queryDesc->totaltime->bufusage,
                   NULL);
@@ -1337,7 +1337,7 @@ pg_stat_statements_reset(PG_FUNCTION_ARGS)
 #define PG_STAT_STATEMENTS_COLS_V1_1   18
 #define PG_STAT_STATEMENTS_COLS_V1_2   19
 #define PG_STAT_STATEMENTS_COLS_V1_3   23
-#define PG_STAT_STATEMENTS_COLS            23      /* maximum of above */
+#define PG_STAT_STATEMENTS_COLS            23  /* maximum of above */
 
 /*
  * Retrieve statement statistics.
@@ -2967,12 +2967,12 @@ generate_normalized_query(pgssJumbleState *jstate, const char *query,
    char       *norm_query;
    int         query_len = *query_len_p;
    int         i,
-               norm_query_buflen,      /* Space allowed for norm_query */
+               norm_query_buflen,  /* Space allowed for norm_query */
                len_to_wrt,     /* Length (in bytes) to write */
                quer_loc = 0,   /* Source query byte location */
                n_quer_loc = 0, /* Normalized query byte location */
                last_off = 0,   /* Offset from start for previous tok */
-               last_tok_len = 0;       /* Length (in bytes) of that tok */
+               last_tok_len = 0;   /* Length (in bytes) of that tok */
 
    /*
     * Get constants' lengths (core system only gives us locations).  Note
index 8cd88e763c10060b6fce76212edd2ae9715a12a6..45df91875ab1e87772443f7589a7b89dff3bae13 100644 (file)
@@ -132,4 +132,4 @@ extern TRGM *createTrgmNFA(text *text_re, Oid collation,
              TrgmPackedGraph **graph, MemoryContext rcontext);
 extern bool trigramsMatchGraph(TrgmPackedGraph *graph, bool *check);
 
-#endif   /* __TRGM_H__ */
+#endif                         /* __TRGM_H__ */
index 6ab2e49eb94d5daef8529eb1465e1d00a740011b..1d474e2aacd0bb32059a8f8b07ba1664354b73f4 100644 (file)
@@ -450,7 +450,7 @@ struct TrgmPackedGraph
     * by color trigram number.
     */
    int         colorTrigramsCount;
-   int        *colorTrigramGroups;     /* array of size colorTrigramsCount */
+   int        *colorTrigramGroups; /* array of size colorTrigramsCount */
 
    /*
     * The states of the simplified NFA.  State number 0 is always initial
@@ -2350,4 +2350,4 @@ printTrgmPackedGraph(TrgmPackedGraph *packedGraph, TRGM *trigrams)
    pfree(buf.data);
 }
 
-#endif   /* TRGM_REGEXP_DEBUG */
+#endif                         /* TRGM_REGEXP_DEBUG */
index 44a5731dde0ecf1e668a8bfca3b6ede22c6da11d..60bdbb0c9120de88048458104149d008dc95c29b 100644 (file)
@@ -734,7 +734,7 @@ px_crypt_des(const char *key, const char *setting)
        p = output + strlen(output);
    }
    else
-#endif   /* !DISABLE_XDES */
+#endif                         /* !DISABLE_XDES */
    {
        /*
         * "old"-style: setting - 2 bytes of salt key - only up to the first 8
index 41021a7ffdb87c50f995e15aa340c9a66c7dc63c..cd528bfd836f50707ac0899941dc39c1692c5bc5 100644 (file)
@@ -1975,7 +1975,7 @@ mp_int_string_len(mp_int z, mp_size radix)
    if (radix < MP_MIN_RADIX || radix > MP_MAX_RADIX)
        return MP_RANGE;
 
-   len = s_outlen(z, radix) + 1;       /* for terminator */
+   len = s_outlen(z, radix) + 1;   /* for terminator */
 
    /* Allow for sign marker on negatives */
    if (MP_SIGN(z) == MP_NEG)
@@ -2512,7 +2512,7 @@ s_usub(mp_digit *da, mp_digit *db, mp_digit *dc,
    /* Subtract corresponding digits and propagate borrow */
    for (pos = 0; pos < size_b; ++pos, ++da, ++db, ++dc)
    {
-       w = ((mp_word) MP_DIGIT_MAX + 1 +       /* MP_RADIX */
+       w = ((mp_word) MP_DIGIT_MAX + 1 +   /* MP_RADIX */
             (mp_word) *da) - w - (mp_word) *db;
 
        *dc = LOWER_HALF(w);
@@ -2522,7 +2522,7 @@ s_usub(mp_digit *da, mp_digit *db, mp_digit *dc,
    /* Finish the subtraction for remaining upper digits of da */
    for ( /* */ ; pos < size_a; ++pos, ++da, ++dc)
    {
-       w = ((mp_word) MP_DIGIT_MAX + 1 +       /* MP_RADIX */
+       w = ((mp_word) MP_DIGIT_MAX + 1 +   /* MP_RADIX */
             (mp_word) *da) - w;
 
        *dc = LOWER_HALF(w);
@@ -2594,10 +2594,10 @@ s_kmul(mp_digit *da, mp_digit *db, mp_digit *dc,
         * t1 and t2 are initially used as temporaries to compute the inner
         * product (a1 + a0)(b1 + b0) = a1b1 + a1b0 + a0b1 + a0b0
         */
-       carry = s_uadd(da, a_top, t1, bot_size, at_size);       /* t1 = a1 + a0 */
+       carry = s_uadd(da, a_top, t1, bot_size, at_size);   /* t1 = a1 + a0 */
        t1[bot_size] = carry;
 
-       carry = s_uadd(db, b_top, t2, bot_size, bt_size);       /* t2 = b1 + b0 */
+       carry = s_uadd(db, b_top, t2, bot_size, bt_size);   /* t2 = b1 + b0 */
        t2[bot_size] = carry;
 
        (void) s_kmul(t1, t2, t3, bot_size + 1, bot_size + 1);  /* t3 = t1 * t2 */
@@ -2609,7 +2609,7 @@ s_kmul(mp_digit *da, mp_digit *db, mp_digit *dc,
        ZERO(t1, buf_size);
        ZERO(t2, buf_size);
        (void) s_kmul(da, db, t1, bot_size, bot_size);  /* t1 = a0 * b0 */
-       (void) s_kmul(a_top, b_top, t2, at_size, bt_size);      /* t2 = a1 * b1 */
+       (void) s_kmul(a_top, b_top, t2, at_size, bt_size);  /* t2 = a1 * b1 */
 
        /* Subtract out t1 and t2 to get the inner product */
        s_usub(t3, t1, t3, buf_size + 2, buf_size);
@@ -2692,10 +2692,10 @@ s_ksqr(mp_digit *da, mp_digit *dc, mp_size size_a)
        t3 = t2 + buf_size;
        ZERO(t1, 4 * buf_size);
 
-       (void) s_ksqr(da, t1, bot_size);        /* t1 = a0 ^ 2 */
-       (void) s_ksqr(a_top, t2, at_size);      /* t2 = a1 ^ 2 */
+       (void) s_ksqr(da, t1, bot_size);    /* t1 = a0 ^ 2 */
+       (void) s_ksqr(a_top, t2, at_size);  /* t2 = a1 ^ 2 */
 
-       (void) s_kmul(da, a_top, t3, bot_size, at_size);        /* t3 = a0 * a1 */
+       (void) s_kmul(da, a_top, t3, bot_size, at_size);    /* t3 = a0 * a1 */
 
        /* Quick multiply t3 by 2, shifting left (can't overflow) */
        {
@@ -2782,7 +2782,7 @@ s_usqr(mp_digit *da, mp_digit *dc, mp_size size_a)
            w = UPPER_HALF(w);
            if (ov)
            {
-               w += MP_DIGIT_MAX;      /* MP_RADIX */
+               w += MP_DIGIT_MAX;  /* MP_RADIX */
                ++w;
            }
        }
index 8ba38d3acb9d7ff5f6e7d02c267bd02e6c71b0fe..2d7a5268e5ce05927b3207afe6aaec6963088428 100644 (file)
@@ -106,9 +106,9 @@ void        mp_int_free(mp_int z);
 
 mp_result  mp_int_copy(mp_int a, mp_int c);    /* c = a     */
 void       mp_int_swap(mp_int a, mp_int c);    /* swap a, c */
-void       mp_int_zero(mp_int z);      /* z = 0     */
-mp_result  mp_int_abs(mp_int a, mp_int c);     /* c = |a|   */
-mp_result  mp_int_neg(mp_int a, mp_int c);     /* c = -a    */
+void       mp_int_zero(mp_int z);  /* z = 0     */
+mp_result  mp_int_abs(mp_int a, mp_int c); /* c = |a|   */
+mp_result  mp_int_neg(mp_int a, mp_int c); /* c = -a    */
 mp_result  mp_int_add(mp_int a, mp_int b, mp_int c);   /* c = a + b */
 mp_result  mp_int_add_value(mp_int a, int value, mp_int c);
 mp_result  mp_int_sub(mp_int a, mp_int b, mp_int c);   /* c = a - b */
@@ -116,23 +116,23 @@ mp_result mp_int_sub_value(mp_int a, int value, mp_int c);
 mp_result  mp_int_mul(mp_int a, mp_int b, mp_int c);   /* c = a * b */
 mp_result  mp_int_mul_value(mp_int a, int value, mp_int c);
 mp_result  mp_int_mul_pow2(mp_int a, int p2, mp_int c);
-mp_result  mp_int_sqr(mp_int a, mp_int c);     /* c = a * a */
+mp_result  mp_int_sqr(mp_int a, mp_int c); /* c = a * a */
 
-mp_result mp_int_div(mp_int a, mp_int b,           /* q = a / b */
+mp_result mp_int_div(mp_int a, mp_int b,       /* q = a / b */
           mp_int q, mp_int r); /* r = a % b */
-mp_result mp_int_div_value(mp_int a, int value,            /* q = a / value */
-                mp_int q, int *r);     /* r = a % value */
+mp_result mp_int_div_value(mp_int a, int value,        /* q = a / value */
+                mp_int q, int *r); /* r = a % value */
 mp_result mp_int_div_pow2(mp_int a, int p2,        /* q = a / 2^p2  */
                mp_int q, mp_int r);    /* r = q % 2^p2  */
 mp_result  mp_int_mod(mp_int a, mp_int m, mp_int c);   /* c = a % m */
 
 #define   mp_int_mod_value(A, V, R) mp_int_div_value((A), (V), 0, (R))
-mp_result  mp_int_expt(mp_int a, int b, mp_int c);     /* c = a^b   */
+mp_result  mp_int_expt(mp_int a, int b, mp_int c); /* c = a^b   */
 mp_result  mp_int_expt_value(int a, int b, mp_int c);  /* c = a^b   */
 
 int            mp_int_compare(mp_int a, mp_int b); /* a <=> b     */
-int            mp_int_compare_unsigned(mp_int a, mp_int b);        /* |a| <=> |b| */
-int            mp_int_compare_zero(mp_int z);      /* a <=> 0     */
+int            mp_int_compare_unsigned(mp_int a, mp_int b);    /* |a| <=> |b| */
+int            mp_int_compare_zero(mp_int z);  /* a <=> 0     */
 int            mp_int_compare_value(mp_int z, int value);  /* a <=> v     */
 
 /* Returns true if v|a, false otherwise (including errors) */
@@ -144,15 +144,15 @@ int           mp_int_is_pow2(mp_int z);
 mp_result mp_int_exptmod(mp_int a, mp_int b, mp_int m,
               mp_int c);       /* c = a^b (mod m) */
 mp_result mp_int_exptmod_evalue(mp_int a, int value,
-                     mp_int m, mp_int c);      /* c = a^v (mod m) */
+                     mp_int m, mp_int c);  /* c = a^v (mod m) */
 mp_result mp_int_exptmod_bvalue(int value, mp_int b,
-                     mp_int m, mp_int c);      /* c = v^b (mod m) */
+                     mp_int m, mp_int c);  /* c = v^b (mod m) */
 mp_result mp_int_exptmod_known(mp_int a, mp_int b,
                     mp_int m, mp_int mu,
                     mp_int c); /* c = a^b (mod m) */
 mp_result  mp_int_redux_const(mp_int m, mp_int c);
 
-mp_result  mp_int_invmod(mp_int a, mp_int m, mp_int c);        /* c = 1/a (mod m) */
+mp_result  mp_int_invmod(mp_int a, mp_int m, mp_int c);    /* c = 1/a (mod m) */
 
 mp_result  mp_int_gcd(mp_int a, mp_int b, mp_int c);   /* c = gcd(a, b)   */
 
@@ -207,4 +207,4 @@ void        s_print(char *tag, mp_int z);
 void       s_print_buf(char *tag, mp_digit *buf, mp_size num);
 #endif
 
-#endif   /* end IMATH_H_ */
+#endif                         /* end IMATH_H_ */
index c2687cfdb2ef8579c5ccb44ff4ac29bdcb9beb67..16dfe725eae381bd50f03be86f8124463139f2a9 100644 (file)
 /*
  * System reseeds should be separated at least this much.
  */
-#define SYSTEM_RESEED_MIN          (20*60)     /* 20 min */
+#define SYSTEM_RESEED_MIN          (20*60) /* 20 min */
 /*
  * How often to roll dice.
  */
-#define SYSTEM_RESEED_CHECK_TIME   (10*60)     /* 10 min */
+#define SYSTEM_RESEED_CHECK_TIME   (10*60) /* 10 min */
 /*
  * The chance is x/256 that the reseed happens.
  */
index d413eb5276432518de3fd8c322e4382e546918b3..50a989f059d9ad46792a509af9c7fd05016da5e0 100644 (file)
@@ -121,4 +121,4 @@ int         pullf_create_mbuf_reader(PullFilter **pf_p, MBuf *mbuf);
        (dst) = __b; \
    } while (0)
 
-#endif   /* __PX_MBUF_H */
+#endif                         /* __PX_MBUF_H */
index 07d08c134d48f10879d3f15c24c7a23fb283ac03..3e6e8da5e7f9779fff891201057bdca0f2576e60 100644 (file)
@@ -76,4 +76,4 @@ do {              \
    md5_result((x), (y));   \
 } while (0)
 
-#endif   /* ! _NETINET6_MD5_H_ */
+#endif                         /* ! _NETINET6_MD5_H_ */
index 804a27018a2b1cc9122d7347d9df59c1e9b3ce62..1b6ea4c9eaf8d34e596b883fd2e08dd44a17ae39 100644 (file)
@@ -155,8 +155,8 @@ struct PGP_Context
     */
    int         mdc_checked;
    int         corrupt_prefix; /* prefix failed RFC 4880 "quick check" */
-   int         unsupported_compr;      /* has bzip2 compression */
-   int         unexpected_binary;      /* binary data seen in text_mode */
+   int         unsupported_compr;  /* has bzip2 compression */
+   int         unexpected_binary;  /* binary data seen in text_mode */
    int         in_mdc_pkt;
    int         use_mdcbuf_filter;
    PX_MD      *mdc_ctx;
index 24daee743c956fdc846257ae9ba59bc3dbbe6214..4ea72dcbc5e9518fcfa27f7c2bb589255725dcb7 100644 (file)
@@ -79,4 +79,4 @@ char     *px_crypt_des(const char *key, const char *setting);
 char *px_crypt_md5(const char *pw, const char *salt,
             char *dst, unsigned dstlen);
 
-#endif   /* _PX_CRYPT_H */
+#endif                         /* _PX_CRYPT_H */
index e8068317d0b89e0278af6772104d7d0e99e91397..cef9c4b45650a5831ad36cc8418587924615b380 100644 (file)
@@ -154,7 +154,7 @@ struct px_hmac
 struct px_cipher
 {
    unsigned    (*block_size) (PX_Cipher *c);
-   unsigned    (*key_size) (PX_Cipher *c);     /* max key len */
+   unsigned    (*key_size) (PX_Cipher *c); /* max key len */
    unsigned    (*iv_size) (PX_Cipher *c);
 
    int         (*init) (PX_Cipher *c, const uint8 *key, unsigned klen, const uint8 *iv);
@@ -239,4 +239,4 @@ void        px_debug(const char *fmt,...) pg_attribute_printf(1, 2);
                    (c)->decrypt(c, data, dlen, res, rlen)
 #define px_combo_free(c)       (c)->free(c)
 
-#endif   /* __PX_H */
+#endif                         /* __PX_H */
index 4adbcc1f916f5bbd4333178acf1ccd6afcb20261..4c074efbc04c9e77d7ab103250c6e723fc5ad73f 100644 (file)
@@ -97,7 +97,7 @@ static u4byte il_tab[4][256];
 #endif
 
 static u4byte tab_gen = 0;
-#endif   /* !PRE_CALC_TABLES */
+#endif                         /* !PRE_CALC_TABLES */
 
 #define ff_mult(a,b)   ((a) && (b) ? pow_tab[(log_tab[a] + log_tab[b]) % 255] : 0)
 
@@ -250,7 +250,7 @@ gen_tabs(void)
    }
 
    tab_gen = 1;
-#endif   /* !PRE_CALC_TABLES */
+#endif                         /* !PRE_CALC_TABLES */
 }
 
 
index 108ef68b7605db34dbb3b7cca7426374f822c4d8..bc9ddfaad35b1b7fe27ee2efb9a0d72055bb5c67 100644 (file)
@@ -56,4 +56,4 @@ void      aes_ecb_decrypt(rijndael_ctx *ctx, uint8 *data, unsigned len);
 void       aes_cbc_encrypt(rijndael_ctx *ctx, uint8 *iva, uint8 *data, unsigned len);
 void       aes_cbc_decrypt(rijndael_ctx *ctx, uint8 *iva, uint8 *data, unsigned len);
 
-#endif   /* _RIJNDAEL_H_ */
+#endif                         /* _RIJNDAEL_H_ */
index 2f61e454ba440e18a3fcdc95d4ee38632ec46d1f..4300694a348069d187df5cc56d6f5a5abf64e169 100644 (file)
@@ -72,4 +72,4 @@ typedef struct sha1_ctxt SHA1_CTX;
 
 #define SHA1_RESULTLEN (160/8)
 
-#endif   /* _NETINET6_SHA1_H_ */
+#endif                         /* _NETINET6_SHA1_H_ */
index 03b387f6b6bf3fc20bfc3700108dc1a26702c7bd..c3a95208c1249a1a1ea193fb1e9e0580a646e65a 100644 (file)
@@ -333,7 +333,7 @@ pgstatindex_impl(Relation rel, FunctionCallInfo fcinfo)
        values[j++] = psprintf("%d", indexStat.version);
        values[j++] = psprintf("%d", indexStat.level);
        values[j++] = psprintf(INT64_FORMAT,
-                              (1 +     /* include the metapage in index_size */
+                              (1 + /* include the metapage in index_size */
                                indexStat.leaf_pages +
                                indexStat.internal_pages +
                                indexStat.deleted_pages +
index e24db569ea8956b4a122beecc4909b7bf59b9fc1..ca496b9df770e125346848bf61ad4992b2b9184e 100644 (file)
@@ -258,7 +258,7 @@ is_valid_option(const char *keyword, Oid context)
 {
    PgFdwOption *opt;
 
-   Assert(postgres_fdw_options);       /* must be initialized already */
+   Assert(postgres_fdw_options);   /* must be initialized already */
 
    for (opt = postgres_fdw_options; opt->keyword; opt++)
    {
@@ -277,7 +277,7 @@ is_libpq_option(const char *keyword)
 {
    PgFdwOption *opt;
 
-   Assert(postgres_fdw_options);       /* must be initialized already */
+   Assert(postgres_fdw_options);   /* must be initialized already */
 
    for (opt = postgres_fdw_options; opt->keyword; opt++)
    {
index 080cb0a0742b364bbf36dc987cf328b1c3b05aca..3d180984617c88413138121df86b1a1ce2962ce9 100644 (file)
@@ -899,14 +899,14 @@ postgresGetForeignPaths(PlannerInfo *root,
     * to estimate cost and size of this path.
     */
    path = create_foreignscan_path(root, baserel,
-                                  NULL,        /* default pathtarget */
+                                  NULL,    /* default pathtarget */
                                   fpinfo->rows,
                                   fpinfo->startup_cost,
                                   fpinfo->total_cost,
                                   NIL, /* no pathkeys */
-                                  NULL,        /* no outer rel either */
-                                  NULL,        /* no extra plan */
-                                  NIL);        /* no fdw_private list */
+                                  NULL,    /* no outer rel either */
+                                  NULL,    /* no extra plan */
+                                  NIL);    /* no fdw_private list */
    add_path(baserel, (Path *) path);
 
    /* Add paths with pathkeys */
@@ -1075,7 +1075,7 @@ postgresGetForeignPaths(PlannerInfo *root,
                                       rows,
                                       startup_cost,
                                       total_cost,
-                                      NIL,     /* no pathkeys */
+                                      NIL, /* no pathkeys */
                                       param_info->ppi_req_outer,
                                       NULL,
                                       NIL);    /* no fdw_private list */
@@ -1591,7 +1591,7 @@ postgresPlanForeignModify(PlannerInfo *root,
            /* bit numbers are offset by FirstLowInvalidHeapAttributeNumber */
            AttrNumber  attno = col + FirstLowInvalidHeapAttributeNumber;
 
-           if (attno <= InvalidAttrNumber)     /* shouldn't happen */
+           if (attno <= InvalidAttrNumber) /* shouldn't happen */
                elog(ERROR, "system-column update is not supported");
            targetAttrs = lappend_int(targetAttrs, attno);
        }
@@ -2173,7 +2173,7 @@ postgresPlanDirectModify(PlannerInfo *root,
            AttrNumber  attno = col + FirstLowInvalidHeapAttributeNumber;
            TargetEntry *tle;
 
-           if (attno <= InvalidAttrNumber)     /* shouldn't happen */
+           if (attno <= InvalidAttrNumber) /* shouldn't happen */
                elog(ERROR, "system-column update is not supported");
 
            tle = get_tle_by_resno(subplan->targetlist, attno);
@@ -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);
 
@@ -4316,7 +4316,7 @@ static void
 add_paths_with_pathkeys_for_rel(PlannerInfo *root, RelOptInfo *rel,
                                Path *epq_path)
 {
-   List       *useful_pathkeys_list = NIL;     /* List of all pathkeys */
+   List       *useful_pathkeys_list = NIL; /* List of all pathkeys */
    ListCell   *lc;
 
    useful_pathkeys_list = get_useful_pathkeys_for_relation(root, rel);
@@ -4568,7 +4568,7 @@ postgresGetForeignJoinPaths(PlannerInfo *root,
                                       rows,
                                       startup_cost,
                                       total_cost,
-                                      NIL,     /* no pathkeys */
+                                      NIL, /* no pathkeys */
                                       NULL,    /* no required_outer */
                                       epq_path,
                                       NIL);    /* no fdw_private */
index 25c950dd768f0974c3b405933218f2b641f3188c..f396dae7fbca50b0892c770fbfc7435246016007 100644 (file)
@@ -182,4 +182,4 @@ extern bool is_builtin(Oid objectId);
 extern bool is_shippable(Oid objectId, Oid classId, PgFdwRelationInfo *fpinfo);
 extern const char *get_jointype_name(JoinType jointype);
 
-#endif   /* POSTGRES_FDW_H */
+#endif                         /* POSTGRES_FDW_H */
index 2f01c393ccb94697805e90c164c04e04fd4e917e..f55b9de1da7bd4f77a8c7b6f613da034534ec7a8 100644 (file)
@@ -68,10 +68,10 @@ static fmgr_hook_type next_fmgr_hook = NULL;
  * labels were set during the (sub-)transactions.
  */
 static char *client_label_peer = NULL; /* set by getpeercon(3) */
-static List *client_label_pending = NIL;       /* pending list being set by
-                                                * sepgsql_setcon() */
-static char *client_label_committed = NULL;        /* set by sepgsql_setcon(),
-                                                * and already committed */
+static List *client_label_pending = NIL;   /* pending list being set by
+                                            * sepgsql_setcon() */
+static char *client_label_committed = NULL; /* set by sepgsql_setcon(), and
+                                            * already committed */
 static char *client_label_func = NULL; /* set by trusted procedure */
 
 typedef struct
index fbe25e6602d1fddcd6a87e8ede1e86bdd046a323..d4bf0cd14afaa71a2cb9112401e1f469c79d4be6 100644 (file)
@@ -324,4 +324,4 @@ extern void sepgsql_proc_relabel(Oid functionId, const char *seclabel);
 extern void sepgsql_proc_setattr(Oid functionId);
 extern void sepgsql_proc_execute(Oid functionId);
 
-#endif   /* SEPGSQL_H */
+#endif                         /* SEPGSQL_H */
index 208ff6103def4ec2e849183d0f4ef1d0033d96dc..692d99ca5b35dc5557d26c9ed77b51ca4ea99296 100644 (file)
@@ -248,7 +248,7 @@ check_foreign_key(PG_FUNCTION_ARGS)
    Datum      *kvals;          /* key values */
    char       *relname;        /* referencing relation name */
    Relation    rel;            /* triggered relation */
-   HeapTuple   trigtuple = NULL;       /* tuple to being changed */
+   HeapTuple   trigtuple = NULL;   /* tuple to being changed */
    HeapTuple   newtuple = NULL;    /* tuple to return */
    TupleDesc   tupdesc;        /* tuple description */
    EPlan      *plan;           /* prepared plan(s) */
index c4b3e7d6fae1905b2ab7a085b87a502848a43d2a..f7905e20dbaa3a81b3904395fd6075f562d3b347 100644 (file)
@@ -85,7 +85,7 @@ timetravel(PG_FUNCTION_ARGS)
    Trigger    *trigger;        /* to get trigger name */
    int         argc;
    char      **args;           /* arguments */
-   int         attnum[MaxAttrNum];     /* fnumbers of start/stop columns */
+   int         attnum[MaxAttrNum]; /* fnumbers of start/stop columns */
    Datum       oldtimeon,
                oldtimeoff;
    Datum       newtimeon,
index 7434ca937310a28432dda0cff52085ccfdb28106..b5e1ad29e2ef2e342b9fce2b599eb66f12f636c8 100644 (file)
@@ -1187,8 +1187,8 @@ connectby(char *relname,
                                 branch_delim,
                                 start_with,
                                 start_with,    /* current_branch */
-                                0,     /* initial level is 0 */
-                                &serial,       /* initial serial is 1 */
+                                0, /* initial level is 0 */
+                                &serial,   /* initial serial is 1 */
                                 max_depth,
                                 show_branch,
                                 show_serial,
index 87fa1e5dcb1161b69b8dff7cbabbce51977b6329..e88a5720fa007e73e2ef560e7cf5540e201aff57 100644 (file)
@@ -36,4 +36,4 @@
 
 #include "fmgr.h"
 
-#endif   /* TABLEFUNC_H */
+#endif                         /* TABLEFUNC_H */
index 124110830fa3f01c018519a10db00b46c1d957f9..5106d424b40445de4d4e37b7ec9927f6f1f752c3 100644 (file)
@@ -132,7 +132,7 @@ triggered_change_notification(PG_FUNCTION_ARGS)
        Form_pg_index index;
 
        indexTuple = SearchSysCache1(INDEXRELID, ObjectIdGetDatum(indexoid));
-       if (!HeapTupleIsValid(indexTuple))      /* should not happen */
+       if (!HeapTupleIsValid(indexTuple))  /* should not happen */
            elog(ERROR, "cache lookup failed for index %u", indexoid);
        index = (Form_pg_index) GETSTRUCT(indexTuple);
        /* we're only interested if it is the primary key and valid */
@@ -175,5 +175,5 @@ triggered_change_notification(PG_FUNCTION_ARGS)
                (errcode(ERRCODE_E_R_I_E_TRIGGER_PROTOCOL_VIOLATED),
                 errmsg("triggered_change_notification: must be called on a table with a primary key")));
 
-   return PointerGetDatum(NULL);       /* after trigger; value doesn't matter */
+   return PointerGetDatum(NULL);   /* after trigger; value doesn't matter */
 }
index f34398f54a700860c6a2f912900608d5b5abdd7a..55bc60941588f80227e6249407a1379da184ada4 100644 (file)
@@ -110,7 +110,7 @@ do { \
    uu.clock_seq_hi_and_reserved |= 0x80; \
 } while(0)
 
-#endif   /* !HAVE_UUID_OSSP */
+#endif                         /* !HAVE_UUID_OSSP */
 
 PG_MODULE_MAGIC;
 
@@ -398,7 +398,7 @@ uuid_generate_internal(int v, unsigned char *ns, char *ptr, int len)
    return DirectFunctionCall1(uuid_in, CStringGetDatum(strbuf));
 }
 
-#endif   /* HAVE_UUID_OSSP */
+#endif                         /* HAVE_UUID_OSSP */
 
 
 Datum
index acf1c4a1c115c3a6e855a56e015ca94ee1b0ded9..a48818d944a2b851a4d1ace3e52f23d87cf2f6c7 100644 (file)
@@ -95,7 +95,7 @@ PG_FUNCTION_INFO_V1(xml_is_well_formed);
 Datum
 xml_is_well_formed(PG_FUNCTION_ARGS)
 {
-   text       *t = PG_GETARG_TEXT_PP(0);       /* document buffer */
+   text       *t = PG_GETARG_TEXT_PP(0);   /* document buffer */
    bool        result = false;
    int32       docsize = VARSIZE_ANY_EXHDR(t);
    xmlDocPtr   doctree;
@@ -249,7 +249,7 @@ Datum
 xpath_nodeset(PG_FUNCTION_ARGS)
 {
    text       *document = PG_GETARG_TEXT_PP(0);
-   text       *xpathsupp = PG_GETARG_TEXT_PP(1);       /* XPath expression */
+   text       *xpathsupp = PG_GETARG_TEXT_PP(1);   /* XPath expression */
    xmlChar    *toptag = pgxml_texttoxmlchar(PG_GETARG_TEXT_PP(2));
    xmlChar    *septag = pgxml_texttoxmlchar(PG_GETARG_TEXT_PP(3));
    xmlChar    *xpath;
@@ -282,7 +282,7 @@ Datum
 xpath_list(PG_FUNCTION_ARGS)
 {
    text       *document = PG_GETARG_TEXT_PP(0);
-   text       *xpathsupp = PG_GETARG_TEXT_PP(1);       /* XPath expression */
+   text       *xpathsupp = PG_GETARG_TEXT_PP(1);   /* XPath expression */
    xmlChar    *plainsep = pgxml_texttoxmlchar(PG_GETARG_TEXT_PP(2));
    xmlChar    *xpath;
    text       *xpres;
@@ -311,7 +311,7 @@ Datum
 xpath_string(PG_FUNCTION_ARGS)
 {
    text       *document = PG_GETARG_TEXT_PP(0);
-   text       *xpathsupp = PG_GETARG_TEXT_PP(1);       /* XPath expression */
+   text       *xpathsupp = PG_GETARG_TEXT_PP(1);   /* XPath expression */
    xmlChar    *xpath;
    int32       pathsize;
    text       *xpres;
@@ -352,7 +352,7 @@ Datum
 xpath_number(PG_FUNCTION_ARGS)
 {
    text       *document = PG_GETARG_TEXT_PP(0);
-   text       *xpathsupp = PG_GETARG_TEXT_PP(1);       /* XPath expression */
+   text       *xpathsupp = PG_GETARG_TEXT_PP(1);   /* XPath expression */
    xmlChar    *xpath;
    float4      fRes;
    xmlXPathObjectPtr res;
@@ -384,7 +384,7 @@ Datum
 xpath_bool(PG_FUNCTION_ARGS)
 {
    text       *document = PG_GETARG_TEXT_PP(0);
-   text       *xpathsupp = PG_GETARG_TEXT_PP(1);       /* XPath expression */
+   text       *xpathsupp = PG_GETARG_TEXT_PP(1);   /* XPath expression */
    xmlChar    *xpath;
    int         bRes;
    xmlXPathObjectPtr res;
index 391e6b593b033faf1423dcd45e49fb679b074b56..fb49b98f5a13b0ab2ecb4dc6d353550f0211b049 100644 (file)
@@ -29,7 +29,7 @@
 #include <libxslt/security.h>
 #include <libxslt/transform.h>
 #include <libxslt/xsltutils.h>
-#endif   /* USE_LIBXSLT */
+#endif                         /* USE_LIBXSLT */
 
 
 #ifdef USE_LIBXSLT
@@ -39,7 +39,7 @@ extern PgXmlErrorContext *pgxml_parser_init(PgXmlStrictness strictness);
 
 /* local defs */
 static const char **parse_params(text *paramstr);
-#endif   /* USE_LIBXSLT */
+#endif                         /* USE_LIBXSLT */
 
 
 PG_FUNCTION_INFO_V1(xslt_process);
@@ -189,7 +189,7 @@ xslt_process(PG_FUNCTION_ARGS)
            (errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
             errmsg("xslt_process() is not available without libxslt")));
    PG_RETURN_NULL();
-#endif   /* USE_LIBXSLT */
+#endif                         /* USE_LIBXSLT */
 }
 
 #ifdef USE_LIBXSLT
@@ -253,4 +253,4 @@ parse_params(text *paramstr)
    return params;
 }
 
-#endif   /* USE_LIBXSLT */
+#endif                         /* USE_LIBXSLT */
index 3609c8ae7ca98be41ef832afcd33aca5882d7f35..bd08f0e396e87dfd8f8df1c93c67b31f8292dbbd 100644 (file)
@@ -357,7 +357,7 @@ brin_doinsert(Relation idxrel, BlockNumber pagesPerRange,
                (errcode(ERRCODE_PROGRAM_LIMIT_EXCEEDED),
            errmsg("index row size %zu exceeds maximum %zu for index \"%s\"",
                 itemsz, BrinMaxItemSize, RelationGetRelationName(idxrel))));
-       return InvalidOffsetNumber;     /* keep compiler quiet */
+       return InvalidOffsetNumber; /* keep compiler quiet */
    }
 
    /* Make sure the revmap is long enough to contain the entry we need */
@@ -823,7 +823,7 @@ brin_getinsertbuffer(Relation irel, Buffer oldbuf, Size itemsz,
                    (errcode(ERRCODE_PROGRAM_LIMIT_EXCEEDED),
            errmsg("index row size %zu exceeds maximum %zu for index \"%s\"",
                   itemsz, freespace, RelationGetRelationName(irel))));
-           return InvalidBuffer;       /* keep compiler quiet */
+           return InvalidBuffer;   /* keep compiler quiet */
        }
 
        if (newblk != oldblk)
index e778cbcacdcdf0f13d183924cb5b1e2f745001f4..c87bc03a9eebe69b04cec77b8a06b8972784a35a 100644 (file)
@@ -48,7 +48,7 @@ struct BrinRevmap
 {
    Relation    rm_irel;
    BlockNumber rm_pagesPerRange;
-   BlockNumber rm_lastRevmapPage;      /* cached from the metapage */
+   BlockNumber rm_lastRevmapPage;  /* cached from the metapage */
    Buffer      rm_metaBuf;
    Buffer      rm_currBuf;
 };
index c0086ded62d95208ea943681ed5380dbadf1fec6..584a202ab51ec587b8869488265e3faea749d64b 100644 (file)
@@ -356,7 +356,7 @@ nocachegetattr(HeapTuple tuple,
    HeapTupleHeader tup = tuple->t_data;
    Form_pg_attribute *att = tupleDesc->attrs;
    char       *tp;             /* ptr to data part of tuple */
-   bits8      *bp = tup->t_bits;       /* ptr to null bitmap in tuple */
+   bits8      *bp = tup->t_bits;   /* ptr to null bitmap in tuple */
    bool        slow = false;   /* do we have to walk attrs? */
    int         off;            /* current offset within data */
 
@@ -762,7 +762,7 @@ heap_form_tuple(TupleDesc tupleDescriptor,
    HeapTupleHeaderSetNatts(td, numberOfAttributes);
    td->t_hoff = hoff;
 
-   if (tupleDescriptor->tdhasoid)      /* else leave infomask = 0 */
+   if (tupleDescriptor->tdhasoid)  /* else leave infomask = 0 */
        td->t_infomask = HEAP_HASOID;
 
    heap_fill_tuple(tupleDescriptor,
@@ -941,7 +941,7 @@ heap_deform_tuple(HeapTuple tuple, TupleDesc tupleDesc,
    int         attnum;
    char       *tp;             /* ptr to tuple data */
    long        off;            /* offset in tuple data */
-   bits8      *bp = tup->t_bits;       /* ptr to null bitmap in tuple */
+   bits8      *bp = tup->t_bits;   /* ptr to null bitmap in tuple */
    bool        slow = false;   /* can we use/set attcacheoff? */
 
    natts = HeapTupleHeaderGetNatts(tup);
@@ -1043,7 +1043,7 @@ slot_deform_tuple(TupleTableSlot *slot, int natts)
    int         attnum;
    char       *tp;             /* ptr to tuple data */
    long        off;            /* offset in tuple data */
-   bits8      *bp = tup->t_bits;       /* ptr to null bitmap in tuple */
+   bits8      *bp = tup->t_bits;   /* ptr to null bitmap in tuple */
    bool        slow;           /* can we use/set attcacheoff? */
 
    /*
@@ -1151,7 +1151,7 @@ slot_getattr(TupleTableSlot *slot, int attnum, bool *isnull)
    {
        if (tuple == NULL)      /* internal error */
            elog(ERROR, "cannot extract system attribute from virtual tuple");
-       if (tuple == &(slot->tts_minhdr))       /* internal error */
+       if (tuple == &(slot->tts_minhdr))   /* internal error */
            elog(ERROR, "cannot extract system attribute from minimal tuple");
        return heap_getsysattr(tuple, attnum, tupleDesc, isnull);
    }
@@ -1337,7 +1337,7 @@ slot_attisnull(TupleTableSlot *slot, int attnum)
    {
        if (tuple == NULL)      /* internal error */
            elog(ERROR, "cannot extract system attribute from virtual tuple");
-       if (tuple == &(slot->tts_minhdr))       /* internal error */
+       if (tuple == &(slot->tts_minhdr))   /* internal error */
            elog(ERROR, "cannot extract system attribute from minimal tuple");
        return heap_attisnull(tuple, attnum);
    }
@@ -1446,7 +1446,7 @@ heap_form_minimal_tuple(TupleDesc tupleDescriptor,
    HeapTupleHeaderSetNatts(tuple, numberOfAttributes);
    tuple->t_hoff = hoff + MINIMAL_TUPLE_OFFSET;
 
-   if (tupleDescriptor->tdhasoid)      /* else leave infomask = 0 */
+   if (tupleDescriptor->tdhasoid)  /* else leave infomask = 0 */
        tuple->t_infomask = HEAP_HASOID;
 
    heap_fill_tuple(tupleDescriptor,
index 851c3bf4debc775ab6f1db0e757950c50e35f7c2..c863e859fef16c3422352014338692b9caab16db 100644 (file)
@@ -103,7 +103,7 @@ printsimple(TupleTableSlot *slot, DestReceiver *self)
            case INT4OID:
                {
                    int32       num = DatumGetInt32(value);
-                   char        str[12];        /* sign, 10 digits and '\0' */
+                   char        str[12];    /* sign, 10 digits and '\0' */
 
                    pg_ltoa(num, str);
                    pq_sendcountedtext(&buf, str, strlen(str), false);
@@ -113,7 +113,7 @@ printsimple(TupleTableSlot *slot, DestReceiver *self)
            case INT8OID:
                {
                    int64       num = DatumGetInt64(value);
-                   char        str[23];        /* sign, 21 digits and '\0' */
+                   char        str[23];    /* sign, 21 digits and '\0' */
 
                    pg_lltoa(num, str);
                    pq_sendcountedtext(&buf, str, strlen(str), false);
index 392a49b522de3d986cfbd93f364570ef6f90d7f9..57e44375eabcf63409e2ed6752bc584a0ac7749d 100644 (file)
@@ -188,7 +188,7 @@ convert_tuples_by_position(TupleDesc indesc,
    n = indesc->natts + 1;      /* +1 for NULL */
    map->invalues = (Datum *) palloc(n * sizeof(Datum));
    map->inisnull = (bool *) palloc(n * sizeof(bool));
-   map->invalues[0] = (Datum) 0;       /* set up the NULL entry */
+   map->invalues[0] = (Datum) 0;   /* set up the NULL entry */
    map->inisnull[0] = true;
 
    return map;
@@ -267,7 +267,7 @@ convert_tuples_by_name(TupleDesc indesc,
    n = indesc->natts + 1;      /* +1 for NULL */
    map->invalues = (Datum *) palloc(n * sizeof(Datum));
    map->inisnull = (bool *) palloc(n * sizeof(bool));
-   map->invalues[0] = (Datum) 0;       /* set up the NULL entry */
+   map->invalues[0] = (Datum) 0;   /* set up the NULL entry */
    map->inisnull[0] = true;
 
    return map;
index f07c76b90b9a8c9be98b5e598f0aa1e0e4895c6c..4ff149e59afa8f49c79b8c9cb3127efeaa9e3f83 100644 (file)
@@ -116,7 +116,7 @@ ginInitBA(BuildAccumulator *accum)
                            cmpEntryAccumulator,
                            ginCombineData,
                            ginAllocEntryAccumulator,
-                           NULL,       /* no freefunc needed */
+                           NULL,   /* no freefunc needed */
                            (void *) accum);
 }
 
index 0d5bb70cc9c4bedac98c68b35e19c9253fc7d514..03a54346aabc95444e39977435cbd5a8ed7a948b 100644 (file)
@@ -913,8 +913,8 @@ ginInsertCleanup(GinState *ginstate, bool full_clean,
             * Remember next page - it will become the new list head
             */
            blkno = GinPageGetOpaque(page)->rightlink;
-           UnlockReleaseBuffer(buffer);        /* shiftList will do exclusive
-                                                * locking */
+           UnlockReleaseBuffer(buffer);    /* shiftList will do exclusive
+                                            * locking */
 
            /*
             * remove read pages from pending list, at this point all content
index c83375d6b43c1cbbe4333659c278051cb5718d6c..25758b9b5dd197050b8fc1ac88b6045d0ede2b64 100644 (file)
@@ -362,7 +362,7 @@ ginNewScanKey(IndexScanDesc scan)
            {
                if (nullFlags[j])
                {
-                   nullFlags[j] = true;        /* not any other nonzero value */
+                   nullFlags[j] = true;    /* not any other nonzero value */
                    hasNullQuery = true;
                }
            }
index 27e502a36064619e29f2ad3ce4f3f529bf6a7757..31425e9963e583c789d442897ceab03510bddba5 100644 (file)
@@ -650,7 +650,7 @@ ginbulkdelete(IndexVacuumInfo *info, IndexBulkDeleteResult *stats,
            vacuum_delay_point();
        }
 
-       if (blkno == InvalidBlockNumber)        /* rightmost page */
+       if (blkno == InvalidBlockNumber)    /* rightmost page */
            break;
 
        buffer = ReadBufferExtended(index, MAIN_FORKNUM, blkno,
index 6593771361c31fe4970eeafecec0e5069c422fb1..afef753ede531ec3a3fbb4d06118998eafa198fe 100644 (file)
@@ -1442,7 +1442,7 @@ initGISTstate(Relation index)
    giststate = (GISTSTATE *) palloc(sizeof(GISTSTATE));
 
    giststate->scanCxt = scanCxt;
-   giststate->tempCxt = scanCxt;       /* caller must change this if needed */
+   giststate->tempCxt = scanCxt;   /* caller must change this if needed */
    giststate->tupdesc = index->rd_att;
 
    for (i = 0; i < index->rd_att->natts; i++)
index f1f08bb3d8b325f99768d5ed3349d496ed8a86ad..c24643df0365d485adc7e2cd215877ac790d7beb 100644 (file)
@@ -814,7 +814,7 @@ gistbufferinginserttuples(GISTBuildState *buildstate, Buffer buffer, int level,
                                  downlinks, ndownlinks, downlinkoffnum,
                                  InvalidBlockNumber, InvalidOffsetNumber);
 
-       list_free_deep(splitinfo);      /* we don't need this anymore */
+       list_free_deep(splitinfo);  /* we don't need this anymore */
    }
    else
        UnlockReleaseBuffer(buffer);
index ca4c32b3fef3c14c6a9cb2f1a39a242c725ecb67..f558729fbf0867176302bfed63179b89d96e6632 100644 (file)
@@ -709,7 +709,7 @@ gistRelocateBuildBuffersOnSplit(GISTBuildBuffers *gfbb, GISTSTATE *giststate,
                     * page seen so far.  Skip the remaining columns and move
                     * on to the next page, if any.
                     */
-                   zero_penalty = false;       /* so outer loop won't exit */
+                   zero_penalty = false;   /* so outer loop won't exit */
                    break;
                }
            }
index 5a4dea89ac53c3bbfad1b16ec0b80c5b88fcc730..760ea0c997e4e73c134ad79b7fddfc14c8b6d52a 100644 (file)
@@ -147,7 +147,7 @@ gistindex_keytest(IndexScanDesc scan,
    {
        int         i;
 
-       if (GistPageIsLeaf(page))       /* shouldn't happen */
+       if (GistPageIsLeaf(page))   /* shouldn't happen */
            elog(ERROR, "invalid GiST tuple found on leaf page");
        for (i = 0; i < scan->numberOfOrderBys; i++)
            so->distances[i] = -get_float8_infinity();
index 289d766419aa080a5bfdb5c059bf3bac206f75ea..a127f3f8b1b71c7b48351c7304557068924e7353 100644 (file)
@@ -412,7 +412,7 @@ hash_any(register const unsigned char *k, register int keylen)
                a += k[0];
                /* case 0: nothing left to add */
        }
-#endif   /* WORDS_BIGENDIAN */
+#endif                         /* WORDS_BIGENDIAN */
    }
    else
    {
@@ -429,7 +429,7 @@ hash_any(register const unsigned char *k, register int keylen)
            a += (k[0] + ((uint32) k[1] << 8) + ((uint32) k[2] << 16) + ((uint32) k[3] << 24));
            b += (k[4] + ((uint32) k[5] << 8) + ((uint32) k[6] << 16) + ((uint32) k[7] << 24));
            c += (k[8] + ((uint32) k[9] << 8) + ((uint32) k[10] << 16) + ((uint32) k[11] << 24));
-#endif   /* WORDS_BIGENDIAN */
+#endif                         /* WORDS_BIGENDIAN */
            mix(a, b, c);
            k += 12;
            len -= 12;
@@ -492,7 +492,7 @@ hash_any(register const unsigned char *k, register int keylen)
                a += k[0];
                /* case 0: nothing left to add */
        }
-#endif   /* WORDS_BIGENDIAN */
+#endif                         /* WORDS_BIGENDIAN */
    }
 
    final(a, b, c);
index 2d9204903fac91346958e21758ea19ee013cddb1..3e461ad7a0078d07cbfc8536001a83c16863b626 100644 (file)
@@ -462,7 +462,7 @@ _hash_step(IndexScanDesc scan, Buffer *bufP, ScanDirection dir)
                        }
 
                        if (so->hashso_sk_hash == _hash_get_indextuple_hashkey(itup))
-                           break;      /* yes, so exit for-loop */
+                           break;  /* yes, so exit for-loop */
                    }
 
                    /* Before leaving current page, deal with any killed items */
@@ -519,7 +519,7 @@ _hash_step(IndexScanDesc scan, Buffer *bufP, ScanDirection dir)
                        }
 
                        if (so->hashso_sk_hash == _hash_get_indextuple_hashkey(itup))
-                           break;      /* yes, so exit for-loop */
+                           break;  /* yes, so exit for-loop */
                    }
 
                    /* Before leaving current page, deal with any killed items */
index c513c3b842ed6ddaff13118ef5015c2a2e866309..62e37b6de594e9865cc7b76086adde4732c6c4a2 100644 (file)
@@ -207,7 +207,7 @@ _hash_get_totalbuckets(uint32 splitpoint_phase)
    /* account for buckets within splitpoint_group */
    phases_within_splitpoint_group =
        (((splitpoint_phase - HASH_SPLITPOINT_GROUPS_WITH_ONE_PHASE) &
-         HASH_SPLITPOINT_PHASE_MASK) + 1);     /* from 0-based to 1-based */
+         HASH_SPLITPOINT_PHASE_MASK) + 1); /* from 0-based to 1-based */
    total_buckets +=
        (((1 << (splitpoint_group - 1)) >> HASH_SPLITPOINT_PHASE_BITS) *
         phases_within_splitpoint_group);
index e890e08c9ab4d835c50b4ee45660c2dbf99d98b3..5357a77dc2d98d2a939333b5b4bc19b85fe6c46a 100644 (file)
@@ -521,15 +521,15 @@ heapgettup(HeapScanDesc scan,
                }
            }
            else
-               page = scan->rs_startblock;     /* first page */
+               page = scan->rs_startblock; /* first page */
            heapgetpage(scan, page);
-           lineoff = FirstOffsetNumber;        /* first offnum */
+           lineoff = FirstOffsetNumber;    /* first offnum */
            scan->rs_inited = true;
        }
        else
        {
            /* continue from previously returned page/tuple */
-           page = scan->rs_cblock;     /* current page */
+           page = scan->rs_cblock; /* current page */
            lineoff =           /* next offnum */
                OffsetNumberNext(ItemPointerGetOffsetNumber(&(tuple->t_self)));
        }
@@ -577,7 +577,7 @@ heapgettup(HeapScanDesc scan,
        else
        {
            /* continue from previously returned page/tuple */
-           page = scan->rs_cblock;     /* current page */
+           page = scan->rs_cblock; /* current page */
        }
 
        LockBuffer(scan->rs_cbuf, BUFFER_LOCK_SHARE);
@@ -823,7 +823,7 @@ heapgettup_pagemode(HeapScanDesc scan,
                }
            }
            else
-               page = scan->rs_startblock;     /* first page */
+               page = scan->rs_startblock; /* first page */
            heapgetpage(scan, page);
            lineindex = 0;
            scan->rs_inited = true;
@@ -831,7 +831,7 @@ heapgettup_pagemode(HeapScanDesc scan,
        else
        {
            /* continue from previously returned page/tuple */
-           page = scan->rs_cblock;     /* current page */
+           page = scan->rs_cblock; /* current page */
            lineindex = scan->rs_cindex + 1;
        }
 
@@ -876,7 +876,7 @@ heapgettup_pagemode(HeapScanDesc scan,
        else
        {
            /* continue from previously returned page/tuple */
-           page = scan->rs_cblock;     /* current page */
+           page = scan->rs_cblock; /* current page */
        }
 
        dp = BufferGetPage(scan->rs_cbuf);
@@ -1088,7 +1088,7 @@ fastgetattr(HeapTuple tup, int attnum, TupleDesc tupleDesc,
             )
        );
 }
-#endif   /* defined(DISABLE_COMPLEX_MACRO) */
+#endif                         /* defined(DISABLE_COMPLEX_MACRO) */
 
 
 /* ----------------------------------------------------------------
@@ -1787,7 +1787,7 @@ heap_update_snapshot(HeapScanDesc scan, Snapshot snapshot)
 #define HEAPDEBUG_1
 #define HEAPDEBUG_2
 #define HEAPDEBUG_3
-#endif   /* !defined(HEAPDEBUGALL) */
+#endif                         /* !defined(HEAPDEBUGALL) */
 
 
 HeapTuple
@@ -2623,7 +2623,7 @@ heap_prepare_insert(Relation relation, HeapTuple tup, TransactionId xid,
        HeapTupleHeaderSetXminFrozen(tup->t_data);
 
    HeapTupleHeaderSetCmin(tup->t_data, cid);
-   HeapTupleHeaderSetXmax(tup->t_data, 0);     /* for cleanliness */
+   HeapTupleHeaderSetXmax(tup->t_data, 0); /* for cleanliness */
    tup->t_tableOid = RelationGetRelid(relation);
 
    /*
@@ -4214,7 +4214,7 @@ l2:
        HeapTupleClearHeapOnly(newtup);
    }
 
-   RelationPutHeapTuple(relation, newbuf, heaptup, false);     /* insert new tuple */
+   RelationPutHeapTuple(relation, newbuf, heaptup, false); /* insert new tuple */
 
 
    /* Clear obsolete visibility flags, possibly set by ourselves above... */
@@ -6361,7 +6361,7 @@ FreezeMultiXactId(MultiXactId multi, uint16 t_infomask,
            {
                Assert(!TransactionIdDidCommit(xid));
                *flags |= FRM_INVALIDATE_XMAX;
-               xid = InvalidTransactionId;     /* not strictly necessary */
+               xid = InvalidTransactionId; /* not strictly necessary */
            }
            else
            {
index 6529fe3d6b8fdb37d499add9236e4b7896e320f4..13e3bdca50d339913e04eaf510f12918d8eb32eb 100644 (file)
@@ -329,7 +329,7 @@ RelationGetBufferForTuple(Relation relation, Size len,
    if (otherBuffer != InvalidBuffer)
        otherBlock = BufferGetBlockNumber(otherBuffer);
    else
-       otherBlock = InvalidBlockNumber;        /* just to keep compiler quiet */
+       otherBlock = InvalidBlockNumber;    /* just to keep compiler quiet */
 
    /*
     * We first try to put the tuple on the same page we last inserted a tuple
index d69a266c36ff3fff252913fdd89dc9d58c4586d8..5b7c57d56858b5f6f96941e10a695d38aff69eec 100644 (file)
@@ -31,8 +31,7 @@
 typedef struct
 {
    TransactionId new_prune_xid;    /* new prune hint value for page */
-   TransactionId latestRemovedXid;     /* latest xid to be removed by this
-                                        * prune */
+   TransactionId latestRemovedXid; /* latest xid to be removed by this prune */
    int         nredirected;    /* numbers of entries in arrays below */
    int         ndead;
    int         nunused;
@@ -149,8 +148,8 @@ heap_page_prune_opt(Relation relation, Buffer buffer)
         */
        if (PageIsFull(page) || PageGetHeapFreeSpace(page) < minfree)
        {
-           TransactionId ignore = InvalidTransactionId;        /* return value not
-                                                                * needed */
+           TransactionId ignore = InvalidTransactionId;    /* return value not
+                                                            * needed */
 
            /* OK to prune */
            (void) heap_page_prune(relation, buffer, OldestXmin, true, &ignore);
index e702af901e2a68b23d92175574ee5a75cf7ea13d..bd560e47e195c1cec0d643f8981bfbee9025e996 100644 (file)
@@ -146,22 +146,22 @@ typedef struct RewriteStateData
    BlockNumber rs_blockno;     /* block where page will go */
    bool        rs_buffer_valid;    /* T if any tuples in buffer */
    bool        rs_use_wal;     /* must we WAL-log inserts? */
-   bool        rs_logical_rewrite;     /* do we need to do logical rewriting */
-   TransactionId rs_oldest_xmin;       /* oldest xmin used by caller to
-                                        * determine tuple visibility */
+   bool        rs_logical_rewrite; /* do we need to do logical rewriting */
+   TransactionId rs_oldest_xmin;   /* oldest xmin used by caller to determine
+                                    * tuple visibility */
    TransactionId rs_freeze_xid;    /* Xid that will be used as freeze cutoff
                                     * point */
-   TransactionId rs_logical_xmin;      /* Xid that will be used as cutoff
-                                        * point for logical rewrites */
+   TransactionId rs_logical_xmin;  /* Xid that will be used as cutoff point
+                                    * for logical rewrites */
    MultiXactId rs_cutoff_multi;    /* MultiXactId that will be used as cutoff
                                     * point for multixacts */
    MemoryContext rs_cxt;       /* for hash tables and entries and tuples in
                                 * them */
    XLogRecPtr  rs_begin_lsn;   /* XLogInsertLsn when starting the rewrite */
-   HTAB       *rs_unresolved_tups;     /* unmatched A tuples */
-   HTAB       *rs_old_new_tid_map;     /* unmatched B tuples */
+   HTAB       *rs_unresolved_tups; /* unmatched A tuples */
+   HTAB       *rs_old_new_tid_map; /* unmatched B tuples */
    HTAB       *rs_logical_mappings;    /* logical remapping files */
-   uint32      rs_num_rewrite_mappings;        /* # in memory mappings */
+   uint32      rs_num_rewrite_mappings;    /* # in memory mappings */
 }          RewriteStateData;
 
 /*
@@ -216,8 +216,8 @@ typedef struct RewriteMappingFile
  */
 typedef struct RewriteMappingDataEntry
 {
-   LogicalRewriteMappingData map;      /* map between old and new location of
-                                        * the tuple */
+   LogicalRewriteMappingData map;  /* map between old and new location of the
+                                    * tuple */
    dlist_node  node;
 } RewriteMappingDataEntry;
 
@@ -655,7 +655,7 @@ raw_heap_insert(RewriteState state, HeapTuple tup)
    else
        heaptup = tup;
 
-   len = MAXALIGN(heaptup->t_len);     /* be conservative */
+   len = MAXALIGN(heaptup->t_len); /* be conservative */
 
    /*
     * If we're gonna fail for oversize tuple, do it right away
index a2b3700750a08ac951776f8d95ed58deb0988b41..fa5e78a067cb8ba6337eeb32e253f8867ba9bc3d 100644 (file)
@@ -1523,7 +1523,7 @@ toast_save_datum(Relation rel, Datum value,
    {
        data_p = VARDATA_SHORT(dval);
        data_todo = VARSIZE_SHORT(dval) - VARHDRSZ_SHORT;
-       toast_pointer.va_rawsize = data_todo + VARHDRSZ;        /* as if not short */
+       toast_pointer.va_rawsize = data_todo + VARHDRSZ;    /* as if not short */
        toast_pointer.va_extsize = data_todo;
    }
    else if (VARATT_IS_COMPRESSED(dval))
index a91fda7bcdb9a72e6d055fad0c2086ec9f7d3f65..05d7da001aa4e522cb3cb4199320b0d421600349 100644 (file)
@@ -83,7 +83,7 @@ RelationGetIndexScan(Relation indexRelation, int nkeys, int norderbys)
 
    scan->heapRelation = NULL;  /* may be set later */
    scan->indexRelation = indexRelation;
-   scan->xs_snapshot = InvalidSnapshot;        /* caller must initialize this */
+   scan->xs_snapshot = InvalidSnapshot;    /* caller must initialize this */
    scan->numberOfKeys = nkeys;
    scan->numberOfOrderBys = norderbys;
 
index cc5ac8b8571fa95a698f37690b68d8a5f6155b69..cacd74a978d7e0c84c8c71407fbc83911e4e842b 100644 (file)
@@ -326,7 +326,7 @@ index_rescan(IndexScanDesc scan,
 
    scan->xs_continue_hot = false;
 
-   scan->kill_prior_tuple = false;     /* for safety */
+   scan->kill_prior_tuple = false; /* for safety */
 
    scan->indexRelation->rd_amroutine->amrescan(scan, keys, nkeys,
                                                orderbys, norderbys);
@@ -401,7 +401,7 @@ index_restrpos(IndexScanDesc scan)
 
    scan->xs_continue_hot = false;
 
-   scan->kill_prior_tuple = false;     /* for safety */
+   scan->kill_prior_tuple = false; /* for safety */
 
    scan->indexRelation->rd_amroutine->amrestrpos(scan);
 }
index 6dca8109fd11b81fee84027ade46e46b7f68238a..df8f44ae8085e90a9cb7979b0db9b9d9eae285cc 100644 (file)
@@ -36,7 +36,7 @@ typedef struct
    OffsetNumber newitemoff;    /* where the new item is to be inserted */
    int         leftspace;      /* space available for items on left page */
    int         rightspace;     /* space available for items on right page */
-   int         olddataitemstotal;      /* space taken by old items */
+   int         olddataitemstotal;  /* space taken by old items */
 
    bool        have_split;     /* found a valid split? */
 
index 5d7504040da3c487cf3b160a4ac6a98f543e9d8d..3dbafdd6fc4f7d6eef0912e33f102432514e82e2 100644 (file)
@@ -59,7 +59,7 @@ typedef struct
    IndexBulkDeleteCallback callback;
    void       *callback_state;
    BTCycleId   cycleid;
-   BlockNumber lastBlockVacuumed;      /* highest blkno actually vacuumed */
+   BlockNumber lastBlockVacuumed;  /* highest blkno actually vacuumed */
    BlockNumber lastBlockLocked;    /* highest blkno we've cleanup-locked */
    BlockNumber totFreePages;   /* true total # of free pages */
    MemoryContext pagedelcontext;
@@ -95,9 +95,8 @@ typedef struct BTParallelScanDescData
    BTPS_State  btps_pageStatus;    /* indicates whether next page is
                                     * available for scan. see above for
                                     * possible states of parallel scan. */
-   int         btps_arrayKeyCount;     /* count indicating number of array
-                                        * scan keys processed by parallel
-                                        * scan */
+   int         btps_arrayKeyCount; /* count indicating number of array scan
+                                    * keys processed by parallel scan */
    slock_t     btps_mutex;     /* protects above variables */
    ConditionVariable btps_cv;  /* used to synchronize parallel scan */
 }          BTParallelScanDescData;
@@ -187,7 +186,7 @@ btbuild(Relation heap, Relation index, IndexInfo *indexInfo)
 #ifdef BTREE_BUILD_STATS
    if (log_btree_build_stats)
        ResetUsage();
-#endif   /* BTREE_BUILD_STATS */
+#endif                         /* BTREE_BUILD_STATS */
 
    /*
     * We expect to be called exactly once for any index relation. If that's
@@ -234,7 +233,7 @@ btbuild(Relation heap, Relation index, IndexInfo *indexInfo)
        ShowUsage("BTREE BUILD STATS");
        ResetUsage();
    }
-#endif   /* BTREE_BUILD_STATS */
+#endif                         /* BTREE_BUILD_STATS */
 
    /*
     * Return statistics
index 2f32b2e78d26905fcacb96052776ae1d88bf369e..2de1625a12c97fffd9b4b455c0fc1c82714d026b 100644 (file)
@@ -466,7 +466,7 @@ _bt_compare(Relation rel,
        datum = index_getattr(itup, scankey->sk_attno, itupdesc, &isNull);
 
        /* see comments about NULLs handling in btbuild */
-       if (scankey->sk_flags & SK_ISNULL)      /* key is NULL */
+       if (scankey->sk_flags & SK_ISNULL)  /* key is NULL */
        {
            if (isNull)
                result = 0;     /* NULL "=" NULL */
index 3d041c47c096bc31b427a2de32c53bd8a063447a..168756cc78f02f688e1f3a5a77072b0c5fa48cd8 100644 (file)
@@ -111,7 +111,7 @@ typedef struct BTPageState
    OffsetNumber btps_lastoff;  /* last item offset loaded */
    uint32      btps_level;     /* tree level (0 = leaf) */
    Size        btps_full;      /* "full" if less than this much free space */
-   struct BTPageState *btps_next;      /* link to parent level, if any */
+   struct BTPageState *btps_next;  /* link to parent level, if any */
 } BTPageState;
 
 /*
@@ -122,8 +122,8 @@ typedef struct BTWriteState
    Relation    heap;
    Relation    index;
    bool        btws_use_wal;   /* dump pages to WAL? */
-   BlockNumber btws_pages_alloced;     /* # pages allocated */
-   BlockNumber btws_pages_written;     /* # pages written out */
+   BlockNumber btws_pages_alloced; /* # pages allocated */
+   BlockNumber btws_pages_written; /* # pages written out */
    Page        btws_zeropage;  /* workspace for filling zeroes */
 } BTWriteState;
 
@@ -208,7 +208,7 @@ _bt_leafbuild(BTSpool *btspool, BTSpool *btspool2)
        ShowUsage("BTREE BUILD (Spool) STATISTICS");
        ResetUsage();
    }
-#endif   /* BTREE_BUILD_STATS */
+#endif                         /* BTREE_BUILD_STATS */
 
    tuplesort_performsort(btspool->sortstate);
    if (btspool2)
@@ -566,7 +566,7 @@ _bt_buildadd(BTWriteState *wstate, BTPageState *state, IndexTuple itup)
 
            oopaque->btpo_next = nblkno;
            nopaque->btpo_prev = oblkno;
-           nopaque->btpo_next = P_NONE;        /* redundant */
+           nopaque->btpo_next = P_NONE;    /* redundant */
        }
 
        /*
index 5f07eb1499a7b08ff77ce9d0d58e8b6c9b70f5b7..2bf6de3332a285aba7b6b5c73a7ce19809dc0913 100644 (file)
@@ -26,7 +26,7 @@
 const struct config_enum_entry wal_level_options[] = {
    {"minimal", WAL_LEVEL_MINIMAL, false},
    {"replica", WAL_LEVEL_REPLICA, false},
-   {"archive", WAL_LEVEL_REPLICA, true},       /* deprecated */
+   {"archive", WAL_LEVEL_REPLICA, true},   /* deprecated */
    {"hot_standby", WAL_LEVEL_REPLICA, true},   /* deprecated */
    {"logical", WAL_LEVEL_LOGICAL, false},
    {NULL, 0, false}
index 57d2612c475b72a73b285f22b2d5a612530defe7..8c420633f423f2ab1c4d55b3d63a0d040274acf1 100644 (file)
@@ -1004,7 +1004,7 @@ doPickSplit(Relation index, SpGistState *state,
            insertedNew = true;
        }
        for (i = 0; i < nToInsert; i++)
-           leafPageSelect[i] = 0;      /* signifies current page */
+           leafPageSelect[i] = 0;  /* signifies current page */
    }
    else if (in.nTuples == 1 && totalLeafSizes > SPGIST_PAGE_CAPACITY)
    {
@@ -1076,12 +1076,12 @@ doPickSplit(Relation index, SpGistState *state,
            {
                if (leafSizes[i] <= curspace)
                {
-                   nodePageSelect[i] = 0;      /* signifies current page */
+                   nodePageSelect[i] = 0;  /* signifies current page */
                    curspace -= leafSizes[i];
                }
                else
                {
-                   nodePageSelect[i] = 1;      /* signifies new leaf page */
+                   nodePageSelect[i] = 1;  /* signifies new leaf page */
                    newspace -= leafSizes[i];
                }
            }
index 92810506463e9f2eb4c6b27da3a4f127ec33ea9e..e1f9d872781a8893c8f362d392b9c2d7d893bba9 100644 (file)
@@ -29,7 +29,7 @@ typedef void (*storeRes_func) (SpGistScanOpaque so, ItemPointer heapPtr,
 
 typedef struct ScanStackEntry
 {
-   Datum       reconstructedValue;     /* value reconstructed from parent */
+   Datum       reconstructedValue; /* value reconstructed from parent */
    void       *traversalValue; /* opclass-specific traverse value */
    int         level;          /* level of items on this page */
    ItemPointerData ptr;        /* block and offset to scan from */
index cce9b3f6189247681d1af57a2ccc7288fb24cd6e..508d3e083fd57545e14d6d83a388b8988d923841 100644 (file)
@@ -34,7 +34,7 @@ typedef struct spgVacPendingItem
 {
    ItemPointerData tid;        /* redirection target to visit */
    bool        done;           /* have we dealt with this? */
-   struct spgVacPendingItem *next;     /* list link */
+   struct spgVacPendingItem *next; /* list link */
 } spgVacPendingItem;
 
 /* Local state for vacuum operations */
@@ -48,7 +48,7 @@ typedef struct spgBulkDeleteState
 
    /* Additional working state */
    SpGistState spgstate;       /* for SPGiST operations that need one */
-   spgVacPendingItem *pendingList;     /* TIDs we need to (re)visit */
+   spgVacPendingItem *pendingList; /* TIDs we need to (re)visit */
    TransactionId myXmin;       /* for detecting newly-added redirects */
    BlockNumber lastFilledBlock;    /* last non-deletable block */
 } spgBulkDeleteState;
index bece57589e80ebceaacca0db0f8775a9ed3ba8f6..ed1b1d8ce451fd09ad28403a1c2cba6227a399e5 100644 (file)
@@ -149,7 +149,7 @@ void
 TransactionIdSetTreeStatus(TransactionId xid, int nsubxids,
                    TransactionId *subxids, XidStatus status, XLogRecPtr lsn)
 {
-   int         pageno = TransactionIdToPage(xid);      /* get page of parent */
+   int         pageno = TransactionIdToPage(xid);  /* get page of parent */
    int         i;
 
    Assert(status == TRANSACTION_STATUS_COMMITTED ||
index 92966d3b1051b624af1ea861dbe8030bb38161f9..aba45b0a85dd1a96fd062c66ab79e119bee56454 100644 (file)
@@ -76,7 +76,7 @@ typedef struct SlruFlushData
 {
    int         num_files;      /* # files actually open */
    int         fd[MAX_FLUSH_BUFFERS];  /* their FD's */
-   int         segno[MAX_FLUSH_BUFFERS];       /* their log seg#s */
+   int         segno[MAX_FLUSH_BUFFERS];   /* their log seg#s */
 } SlruFlushData;
 
 typedef struct SlruFlushData *SlruFlush;
@@ -150,10 +150,10 @@ SimpleLruShmemSize(int nslots, int nlsns)
    sz = MAXALIGN(sizeof(SlruSharedData));
    sz += MAXALIGN(nslots * sizeof(char *));    /* page_buffer[] */
    sz += MAXALIGN(nslots * sizeof(SlruPageStatus));    /* page_status[] */
-   sz += MAXALIGN(nslots * sizeof(bool));      /* page_dirty[] */
-   sz += MAXALIGN(nslots * sizeof(int));       /* page_number[] */
-   sz += MAXALIGN(nslots * sizeof(int));       /* page_lru_count[] */
-   sz += MAXALIGN(nslots * sizeof(LWLockPadded));      /* buffer_locks[] */
+   sz += MAXALIGN(nslots * sizeof(bool));  /* page_dirty[] */
+   sz += MAXALIGN(nslots * sizeof(int));   /* page_number[] */
+   sz += MAXALIGN(nslots * sizeof(int));   /* page_lru_count[] */
+   sz += MAXALIGN(nslots * sizeof(LWLockPadded));  /* buffer_locks[] */
 
    if (nlsns > 0)
        sz += MAXALIGN(nslots * nlsns * sizeof(XLogRecPtr));    /* group_lsn[] */
@@ -972,9 +972,9 @@ SlruSelectLRUPage(SlruCtl ctl, int pageno)
        int         bestvalidslot = 0;  /* keep compiler quiet */
        int         best_valid_delta = -1;
        int         best_valid_page_number = 0; /* keep compiler quiet */
-       int         bestinvalidslot = 0;        /* keep compiler quiet */
+       int         bestinvalidslot = 0;    /* keep compiler quiet */
        int         best_invalid_delta = -1;
-       int         best_invalid_page_number = 0;       /* keep compiler quiet */
+       int         best_invalid_page_number = 0;   /* keep compiler quiet */
 
        /* See if page already has a buffer assigned */
        for (slotno = 0; slotno < shared->num_slots; slotno++)
index 8cab8b9aa98b4e4169476788eef201667b0a2d57..188008b4ca3b9a874df3cd9ced03e4d8405bae8a 100644 (file)
@@ -261,7 +261,7 @@ findNewestTimeLine(TimeLineID startTLI)
    {
        if (existsTimeLineHistory(probeTLI))
        {
-           newestTLI = probeTLI;       /* probeTLI exists */
+           newestTLI = probeTLI;   /* probeTLI exists */
        }
        else
        {
index 957457c9790070a9f5a1bc7d746991e2d6465e68..9e6933e9e836cbfebe0902c6315077b3db269dce 100644 (file)
@@ -164,7 +164,7 @@ typedef struct GlobalTransactionData
     * track of the end LSN because that is the LSN we need to wait for prior
     * to commit.
     */
-   XLogRecPtr  prepare_start_lsn;      /* XLOG offset of prepare record start */
+   XLogRecPtr  prepare_start_lsn;  /* XLOG offset of prepare record start */
    XLogRecPtr  prepare_end_lsn;    /* XLOG offset of prepare record end */
    TransactionId xid;          /* The GXACT id */
 
@@ -898,7 +898,7 @@ TwoPhaseGetDummyProc(TransactionId xid)
 /*
  * Header for a 2PC state file
  */
-#define TWOPHASE_MAGIC 0x57F94533      /* format identifier */
+#define TWOPHASE_MAGIC 0x57F94533  /* format identifier */
 
 typedef struct TwoPhaseFileHeader
 {
@@ -1024,7 +1024,7 @@ StartPrepare(GlobalTransaction gxact)
    hdr.nabortrels = smgrGetPendingDeletes(false, &abortrels);
    hdr.ninvalmsgs = xactGetCommittedInvalidationMessages(&invalmsgs,
                                                          &hdr.initfileinval);
-   hdr.gidlen = strlen(gxact->gid) + 1;        /* Include '\0' */
+   hdr.gidlen = strlen(gxact->gid) + 1;    /* Include '\0' */
 
    save_state_data(&hdr, sizeof(TwoPhaseFileHeader));
    save_state_data(gxact->gid, hdr.gidlen);
index cdcc382f341d1969271a9548756dcba992aec3b8..1cd03482d9ce11c59ea388484f8fee46e786f4bb 100644 (file)
@@ -27,7 +27,7 @@ const TwoPhaseCallback twophase_recover_callbacks[TWOPHASE_RM_MAX_ID + 1] =
    lock_twophase_recover,      /* Lock */
    NULL,                       /* pgstat */
    multixact_twophase_recover, /* MultiXact */
-   predicatelock_twophase_recover      /* PredicateLock */
+   predicatelock_twophase_recover  /* PredicateLock */
 };
 
 const TwoPhaseCallback twophase_postcommit_callbacks[TWOPHASE_RM_MAX_ID + 1] =
@@ -35,7 +35,7 @@ const TwoPhaseCallback twophase_postcommit_callbacks[TWOPHASE_RM_MAX_ID + 1] =
    NULL,                       /* END ID */
    lock_twophase_postcommit,   /* Lock */
    pgstat_twophase_postcommit, /* pgstat */
-   multixact_twophase_postcommit,      /* MultiXact */
+   multixact_twophase_postcommit,  /* MultiXact */
    NULL                        /* PredicateLock */
 };
 
@@ -44,14 +44,14 @@ const TwoPhaseCallback twophase_postabort_callbacks[TWOPHASE_RM_MAX_ID + 1] =
    NULL,                       /* END ID */
    lock_twophase_postabort,    /* Lock */
    pgstat_twophase_postabort,  /* pgstat */
-   multixact_twophase_postabort,       /* MultiXact */
+   multixact_twophase_postabort,   /* MultiXact */
    NULL                        /* PredicateLock */
 };
 
 const TwoPhaseCallback twophase_standby_recover_callbacks[TWOPHASE_RM_MAX_ID + 1] =
 {
    NULL,                       /* END ID */
-   lock_twophase_standby_recover,      /* Lock */
+   lock_twophase_standby_recover,  /* Lock */
    NULL,                       /* pgstat */
    NULL,                       /* MultiXact */
    NULL                        /* PredicateLock */
index e09696c37f6a9cafe2b204f0b05c95059243a872..e14be6b314a81cc5c114db70b7924d927b69accb 100644 (file)
@@ -177,18 +177,18 @@ typedef struct TransactionStateData
    TBlockState blockState;     /* high-level state */
    int         nestingLevel;   /* transaction nesting depth */
    int         gucNestLevel;   /* GUC context nesting depth */
-   MemoryContext curTransactionContext;        /* my xact-lifetime context */
+   MemoryContext curTransactionContext;    /* my xact-lifetime context */
    ResourceOwner curTransactionOwner;  /* my query resources */
    TransactionId *childXids;   /* subcommitted child XIDs, in XID order */
    int         nChildXids;     /* # of subcommitted child XIDs */
    int         maxChildXids;   /* allocated size of childXids[] */
    Oid         prevUser;       /* previous CurrentUserId setting */
    int         prevSecContext; /* previous SecurityRestrictionContext */
-   bool        prevXactReadOnly;       /* entry-time xact r/o state */
-   bool        startedInRecovery;      /* did we start in recovery? */
+   bool        prevXactReadOnly;   /* entry-time xact r/o state */
+   bool        startedInRecovery;  /* did we start in recovery? */
    bool        didLogXid;      /* has xid been included in WAL record? */
-   int         parallelModeLevel;      /* Enter/ExitParallelMode counter */
-   struct TransactionStateData *parent;        /* back link to parent */
+   int         parallelModeLevel;  /* Enter/ExitParallelMode counter */
+   struct TransactionStateData *parent;    /* back link to parent */
 } TransactionStateData;
 
 typedef TransactionStateData *TransactionState;
@@ -2641,8 +2641,7 @@ CleanupTransaction(void)
     * do abort cleanup processing
     */
    AtCleanup_Portals();        /* now safe to release portal memory */
-   AtEOXact_Snapshot(false, true);     /* and release the transaction's
-                                        * snapshots */
+   AtEOXact_Snapshot(false, true); /* and release the transaction's snapshots */
 
    CurrentResourceOwner = NULL;    /* and resource owner */
    if (TopTransactionResourceOwner)
@@ -3769,7 +3768,7 @@ DefineSavepoint(char *name)
        case TBLOCK_SUBINPROGRESS:
            /* Normal subtransaction start */
            PushTransaction();
-           s = CurrentTransactionState;        /* changed by push */
+           s = CurrentTransactionState;    /* changed by push */
 
            /*
             * Savepoint names, like the TransactionState block itself, live
@@ -4080,7 +4079,7 @@ BeginInternalSubTransaction(char *name)
        case TBLOCK_SUBINPROGRESS:
            /* Normal subtransaction start */
            PushTransaction();
-           s = CurrentTransactionState;        /* changed by push */
+           s = CurrentTransactionState;    /* changed by push */
 
            /*
             * Savepoint names, like the TransactionState block itself, live
index e386df7315c4caa159a258c28fc7c39e24461876..106210a883903a9664ef8846bda4f3ad6782e862 100644 (file)
@@ -86,8 +86,8 @@ extern uint32 bootstrap_data_checksum_version;
 
 
 /* User-settable parameters */
-int            max_wal_size_mb = 1024;     /* 1 GB */
-int            min_wal_size_mb = 80;       /* 80 MB */
+int            max_wal_size_mb = 1024; /* 1 GB */
+int            min_wal_size_mb = 80;   /* 80 MB */
 int            wal_keep_segments = 0;
 int            XLOGbuffers = -1;
 int            XLogArchiveTimeout = 0;
@@ -582,8 +582,7 @@ typedef struct XLogCtlData
    XLogRecPtr  asyncXactLSN;   /* LSN of newest async commit/abort */
    XLogRecPtr  replicationSlotMinLSN;  /* oldest LSN needed by any slot */
 
-   XLogSegNo   lastRemovedSegNo;       /* latest removed/recycled XLOG
-                                        * segment */
+   XLogSegNo   lastRemovedSegNo;   /* latest removed/recycled XLOG segment */
 
    /* Fake LSN counter, for unlogged relations. Protected by ulsn_lck. */
    XLogRecPtr  unloggedLSN;
@@ -784,7 +783,7 @@ static int  readFile = -1;
 static XLogSegNo readSegNo = 0;
 static uint32 readOff = 0;
 static uint32 readLen = 0;
-static XLogSource readSource = 0;      /* XLOG_FROM_* code */
+static XLogSource readSource = 0;  /* XLOG_FROM_* code */
 
 /*
  * Keeps track of which source we're currently reading from. This is
@@ -812,14 +811,14 @@ typedef struct XLogPageReadPrivate
  * XLogReceiptSource tracks where we last successfully read some WAL.)
  */
 static TimestampTz XLogReceiptTime = 0;
-static XLogSource XLogReceiptSource = 0;       /* XLOG_FROM_* code */
+static XLogSource XLogReceiptSource = 0;   /* XLOG_FROM_* code */
 
 /* State information for XLOG reading */
 static XLogRecPtr ReadRecPtr;  /* start of last record read */
 static XLogRecPtr EndRecPtr;   /* end+1 of last record read */
 
-static XLogRecPtr minRecoveryPoint;        /* local copy of
-                                        * ControlFile->minRecoveryPoint */
+static XLogRecPtr minRecoveryPoint; /* local copy of
+                                    * ControlFile->minRecoveryPoint */
 static TimeLineID minRecoveryPointTLI;
 static bool updateMinRecoveryPoint = true;
 
@@ -2020,7 +2019,7 @@ XLogRecPtrToBytePos(XLogRecPtr ptr)
    {
        result = fullsegs * UsableBytesInSegment +
            (XLOG_BLCKSZ - SizeOfXLogLongPHD) + /* account for first page */
-           (fullpages - 1) * UsableBytesInPage;        /* full pages */
+           (fullpages - 1) * UsableBytesInPage;    /* full pages */
        if (offset > 0)
        {
            Assert(offset >= SizeOfXLogShortPHD);
@@ -2508,7 +2507,7 @@ XLogWrite(XLogwrtRqst WriteRqst, bool flexible)
                /* signal that we need to wakeup walsenders later */
                WalSndWakeupRequest();
 
-               LogwrtResult.Flush = LogwrtResult.Write;        /* end of page */
+               LogwrtResult.Flush = LogwrtResult.Write;    /* end of page */
 
                if (XLogArchivingActive())
                    XLogArchiveNotifySeg(openLogSegNo);
@@ -4377,7 +4376,7 @@ static void
 WriteControlFile(void)
 {
    int         fd;
-   char        buffer[PG_CONTROL_SIZE];        /* need not be aligned */
+   char        buffer[PG_CONTROL_SIZE];    /* need not be aligned */
 
    /*
     * Initialize version and compatibility-check fields
@@ -6531,7 +6530,7 @@ StartupXLOG(void)
                ereport(LOG,
                        (errmsg("using previous checkpoint record at %X/%X",
                   (uint32) (checkPointLoc >> 32), (uint32) checkPointLoc)));
-               InRecovery = true;      /* force recovery even if SHUTDOWNED */
+               InRecovery = true;  /* force recovery even if SHUTDOWNED */
            }
            else
                ereport(PANIC,
@@ -8835,7 +8834,7 @@ CreateCheckPoint(int flags)
    if (shutdown)
    {
        if (flags & CHECKPOINT_END_OF_RECOVERY)
-           LocalXLogInsertAllowed = -1;        /* return to "check" state */
+           LocalXLogInsertAllowed = -1;    /* return to "check" state */
        else
            LocalXLogInsertAllowed = 0; /* never again write WAL */
    }
@@ -9965,7 +9964,7 @@ xlog_outrec(StringInfo buf, XLogReaderState *record)
            appendStringInfoString(buf, " FPW");
    }
 }
-#endif   /* WAL_DEBUG */
+#endif                         /* WAL_DEBUG */
 
 /*
  * Returns a string describing an XLogRecord, consisting of its identity
index 6a02738479c886d466b4d6ee0522ec81b0ded101..c9cc6636d3fd039754d15727587483f0d6530597 100644 (file)
@@ -61,9 +61,9 @@ typedef struct
 } registered_buffer;
 
 static registered_buffer *registered_buffers;
-static int max_registered_buffers;     /* allocated size */
-static int max_registered_block_id = 0;        /* highest block_id + 1
-                                                * currently registered */
+static int max_registered_buffers; /* allocated size */
+static int max_registered_block_id = 0;    /* highest block_id + 1 currently
+                                            * registered */
 
 /*
  * A chain of XLogRecDatas to hold the "main data" of a WAL record, registered
@@ -438,7 +438,7 @@ XLogInsert(RmgrId rmid, uint8 info)
    if (IsBootstrapProcessingMode() && rmid != RM_XLOG_ID)
    {
        XLogResetInsertion();
-       EndPos = SizeOfXLogLongPHD;     /* start of 1st chkpt record */
+       EndPos = SizeOfXLogLongPHD; /* start of 1st chkpt record */
        return EndPos;
    }
 
index c3b1371764b634445c9b231035ea783edac6f453..d6b857f109350159585430ceabf418dd761870cd 100644 (file)
@@ -974,7 +974,7 @@ out:
    return found;
 }
 
-#endif   /* FRONTEND */
+#endif                         /* FRONTEND */
 
 
 /* ----------------------------------------
index d2708cb33e9b5c35351eafefef0b2f3ca6bc24a2..b9573973d2979a2dd4285b5f044cf44d14aa60a6 100644 (file)
@@ -46,7 +46,7 @@
 #include "utils/relmapper.h"
 #include "utils/tqual.h"
 
-uint32     bootstrap_data_checksum_version = 0;        /* No checksum */
+uint32     bootstrap_data_checksum_version = 0;    /* No checksum */
 
 
 #define ALLOC(t, c) \
@@ -163,7 +163,7 @@ static struct typmap *Ap = NULL;
 static Datum values[MAXATTR];  /* current row's attribute values */
 static bool Nulls[MAXATTR];
 
-static MemoryContext nogc = NULL;      /* special no-gc mem context */
+static MemoryContext nogc = NULL;  /* special no-gc mem context */
 
 /*
  * At bootstrap time, we first declare all the indices to be built, and
@@ -680,7 +680,7 @@ DefineAttr(char *name, char *type, int attnum, int nullness)
 
    namestrcpy(&attrtypes[attnum]->attname, name);
    elog(DEBUG4, "column %s %s", NameStr(attrtypes[attnum]->attname), type);
-   attrtypes[attnum]->attnum = attnum + 1;     /* fillatt */
+   attrtypes[attnum]->attnum = attnum + 1; /* fillatt */
 
    typeoid = gettype(type);
 
index 304e3c4bc3dfdd8657e5691c96215d1e4bcfba65..de0a1ba833f0d5933cc718638a49a046e96326d0 100644 (file)
@@ -157,7 +157,7 @@ dumpacl(Acl *acl)
             DatumGetCString(DirectFunctionCall1(aclitemout,
                                                 PointerGetDatum(aip + i))));
 }
-#endif   /* ACLDEBUG */
+#endif                         /* ACLDEBUG */
 
 
 /*
index cd82cb9f29a8e99e8d57620e154e686d6134579a..b12b36ed345a391c022b5e19d984c45760b82158 100644 (file)
@@ -97,12 +97,12 @@ typedef struct
 } ObjectAddressExtra;
 
 /* ObjectAddressExtra flag bits */
-#define DEPFLAG_ORIGINAL   0x0001      /* an original deletion target */
-#define DEPFLAG_NORMAL     0x0002      /* reached via normal dependency */
-#define DEPFLAG_AUTO       0x0004      /* reached via auto dependency */
-#define DEPFLAG_INTERNAL   0x0008      /* reached via internal dependency */
-#define DEPFLAG_EXTENSION  0x0010      /* reached via extension dependency */
-#define DEPFLAG_REVERSE        0x0020      /* reverse internal/extension link */
+#define DEPFLAG_ORIGINAL   0x0001  /* an original deletion target */
+#define DEPFLAG_NORMAL     0x0002  /* reached via normal dependency */
+#define DEPFLAG_AUTO       0x0004  /* reached via auto dependency */
+#define DEPFLAG_INTERNAL   0x0008  /* reached via internal dependency */
+#define DEPFLAG_EXTENSION  0x0010  /* reached via extension dependency */
+#define DEPFLAG_REVERSE        0x0020  /* reverse internal/extension link */
 
 
 /* expansible list of ObjectAddresses */
@@ -150,7 +150,7 @@ static const Oid object_classes[] = {
    OperatorClassRelationId,    /* OCLASS_OPCLASS */
    OperatorFamilyRelationId,   /* OCLASS_OPFAMILY */
    AccessMethodRelationId,     /* OCLASS_AM */
-   AccessMethodOperatorRelationId,     /* OCLASS_AMOP */
+   AccessMethodOperatorRelationId, /* OCLASS_AMOP */
    AccessMethodProcedureRelationId,    /* OCLASS_AMPROC */
    RewriteRelationId,          /* OCLASS_REWRITE */
    TriggerRelationId,          /* OCLASS_TRIGGER */
@@ -163,7 +163,7 @@ static const Oid object_classes[] = {
    AuthIdRelationId,           /* OCLASS_ROLE */
    DatabaseRelationId,         /* OCLASS_DATABASE */
    TableSpaceRelationId,       /* OCLASS_TBLSPACE */
-   ForeignDataWrapperRelationId,       /* OCLASS_FDW */
+   ForeignDataWrapperRelationId,   /* OCLASS_FDW */
    ForeignServerRelationId,    /* OCLASS_FOREIGN_SERVER */
    UserMappingRelationId,      /* OCLASS_USER_MAPPING */
    DefaultAclRelationId,       /* OCLASS_DEFACL */
@@ -399,7 +399,7 @@ performMultipleDeletions(const ObjectAddresses *objects,
        findDependentObjects(thisobj,
                             DEPFLAG_ORIGINAL,
                             flags,
-                            NULL,      /* empty stack */
+                            NULL,  /* empty stack */
                             targetObjects,
                             objects,
                             &depRel);
@@ -1405,7 +1405,7 @@ recordDependencyOnSingleRelExpr(const ObjectAddress *depender,
    rte.type = T_RangeTblEntry;
    rte.rtekind = RTE_RELATION;
    rte.relid = relId;
-   rte.relkind = RELKIND_RELATION;     /* no need for exactness here */
+   rte.relkind = RELKIND_RELATION; /* no need for exactness here */
 
    context.rtables = list_make1(list_make1(&rte));
 
@@ -1871,7 +1871,7 @@ find_expr_references_walker(Node *node,
                    TargetEntry *tle = (TargetEntry *) lfirst(lc);
 
                    if (tle->resjunk)
-                       continue;       /* ignore junk tlist items */
+                       continue;   /* ignore junk tlist items */
                    add_object_address(OCLASS_CLASS, rte->relid, tle->resno,
                                       context->addrs);
                }
index 4e5b79ef941f7262d428e4df8f63cab342514d55..8052dcc2881f598a1c4c6d0f7fafe3f4696c2b20 100644 (file)
@@ -950,25 +950,25 @@ AddNewRelationType(const char *typeName,
    return
        TypeCreate(new_row_type,    /* optional predetermined OID */
                   typeName,    /* type name */
-                  typeNamespace,       /* type namespace */
+                  typeNamespace,   /* type namespace */
                   new_rel_oid, /* relation oid */
                   new_rel_kind,    /* relation kind */
                   ownerid,     /* owner's ID */
                   -1,          /* internal size (varlena) */
                   TYPTYPE_COMPOSITE,   /* type-type (composite) */
-                  TYPCATEGORY_COMPOSITE,       /* type-category (ditto) */
+                  TYPCATEGORY_COMPOSITE,   /* type-category (ditto) */
                   false,       /* composite types are never preferred */
                   DEFAULT_TYPDELIM,    /* default array delimiter */
                   F_RECORD_IN, /* input procedure */
                   F_RECORD_OUT,    /* output procedure */
-                  F_RECORD_RECV,       /* receive procedure */
-                  F_RECORD_SEND,       /* send procedure */
+                  F_RECORD_RECV,   /* receive procedure */
+                  F_RECORD_SEND,   /* send procedure */
                   InvalidOid,  /* typmodin procedure - none */
                   InvalidOid,  /* typmodout procedure - none */
                   InvalidOid,  /* analyze procedure - default */
                   InvalidOid,  /* array element type - irrelevant */
                   false,       /* this is not an array type */
-                  new_array_type,      /* array type if any */
+                  new_array_type,  /* array type if any */
                   InvalidOid,  /* domain base type - irrelevant */
                   NULL,        /* default value - none */
                   NULL,        /* default binary representation */
@@ -1218,7 +1218,7 @@ heap_create_with_catalog(const char *relname,
 
        relarrayname = makeArrayTypeName(relname, relnamespace);
 
-       TypeCreate(new_array_oid,       /* force the type's OID to this */
+       TypeCreate(new_array_oid,   /* force the type's OID to this */
                   relarrayname,    /* Array type name */
                   relnamespace,    /* Same namespace as parent */
                   InvalidOid,  /* Not composite, no relationOid */
@@ -1560,7 +1560,7 @@ RemoveAttributeById(Oid relid, AttrNumber attnum)
    tuple = SearchSysCacheCopy2(ATTNUM,
                                ObjectIdGetDatum(relid),
                                Int16GetDatum(attnum));
-   if (!HeapTupleIsValid(tuple))       /* shouldn't happen */
+   if (!HeapTupleIsValid(tuple))   /* shouldn't happen */
        elog(ERROR, "cache lookup failed for attribute %d of relation %u",
             attnum, relid);
    attStruct = (Form_pg_attribute) GETSTRUCT(tuple);
@@ -1725,7 +1725,7 @@ RemoveAttrDefaultById(Oid attrdefId)
    tuple = SearchSysCacheCopy2(ATTNUM,
                                ObjectIdGetDatum(myrelid),
                                Int16GetDatum(myattnum));
-   if (!HeapTupleIsValid(tuple))       /* shouldn't happen */
+   if (!HeapTupleIsValid(tuple))   /* shouldn't happen */
        elog(ERROR, "cache lookup failed for attribute %d of relation %u",
             myattnum, myrelid);
 
@@ -2083,7 +2083,7 @@ StoreRelCheck(Relation rel, char *ccname, Node *expr,
     */
    constrOid =
        CreateConstraintEntry(ccname,   /* Constraint Name */
-                             RelationGetNamespace(rel),        /* namespace */
+                             RelationGetNamespace(rel),    /* namespace */
                              CONSTRAINT_CHECK, /* Constraint Type */
                              false,    /* Is Deferrable */
                              false,    /* Is Deferred */
@@ -2091,9 +2091,9 @@ StoreRelCheck(Relation rel, char *ccname, Node *expr,
                              RelationGetRelid(rel),    /* relation */
                              attNos,   /* attrs in the constraint */
                              keycount, /* # attrs in the constraint */
-                             InvalidOid,       /* not a domain constraint */
-                             InvalidOid,       /* no associated index */
-                             InvalidOid,       /* Foreign key fields */
+                             InvalidOid,   /* not a domain constraint */
+                             InvalidOid,   /* no associated index */
+                             InvalidOid,   /* Foreign key fields */
                              NULL,
                              NULL,
                              NULL,
@@ -2102,14 +2102,14 @@ StoreRelCheck(Relation rel, char *ccname, Node *expr,
                              ' ',
                              ' ',
                              ' ',
-                             NULL,     /* not an exclusion constraint */
-                             expr,     /* Tree form of check constraint */
+                             NULL, /* not an exclusion constraint */
+                             expr, /* Tree form of check constraint */
                              ccbin,    /* Binary form of check constraint */
                              ccsrc,    /* Source form of check constraint */
                              is_local, /* conislocal */
                              inhcount, /* coninhcount */
                              is_no_inherit,    /* connoinherit */
-                             is_internal);     /* internally constructed? */
+                             is_internal); /* internally constructed? */
 
    pfree(ccbin);
    pfree(ccsrc);
index 8a7744400050bb12d1e7fd918871c22ba8dba092..549a2d19c65e4a58b7702166e10ff8e42af89cee 100644 (file)
@@ -158,7 +158,7 @@ relationHasPrimaryKey(Relation rel)
        HeapTuple   indexTuple;
 
        indexTuple = SearchSysCache1(INDEXRELID, ObjectIdGetDatum(indexoid));
-       if (!HeapTupleIsValid(indexTuple))      /* should not happen */
+       if (!HeapTupleIsValid(indexTuple))  /* should not happen */
            elog(ERROR, "cache lookup failed for index %u", indexoid);
        result = ((Form_pg_index) GETSTRUCT(indexTuple))->indisprimary;
        ReleaseSysCache(indexTuple);
@@ -332,7 +332,7 @@ ConstructTupleDescriptor(Relation heapRelation,
                /*
                 * here we are indexing on a normal attribute (1...n)
                 */
-               if (atnum > natts)      /* safety check */
+               if (atnum > natts)  /* safety check */
                    elog(ERROR, "invalid column number %d", atnum);
                from = heapTupDesc->attrs[AttrNumberGetAttrOffset(atnum)];
            }
@@ -420,7 +420,7 @@ ConstructTupleDescriptor(Relation heapRelation,
        /*
         * Set the attribute name as specified by caller.
         */
-       if (colnames_item == NULL)      /* shouldn't happen */
+       if (colnames_item == NULL)  /* shouldn't happen */
            elog(ERROR, "too few entries in colnames list");
        namestrcpy(&to->attname, (const char *) lfirst(colnames_item));
        colnames_item = lnext(colnames_item);
@@ -954,7 +954,7 @@ index_create(Relation heapRelation,
            else
            {
                elog(ERROR, "constraint must be PRIMARY, UNIQUE or EXCLUDE");
-               constraintType = 0;     /* keep compiler quiet */
+               constraintType = 0; /* keep compiler quiet */
            }
 
            index_constraint_create(heapRelation,
@@ -964,9 +964,9 @@ index_create(Relation heapRelation,
                                    constraintType,
                                    deferrable,
                                    initdeferred,
-                                   false,      /* already marked primary */
-                                   false,      /* pg_index entry is OK */
-                                   false,      /* no old dependencies */
+                                   false,  /* already marked primary */
+                                   false,  /* pg_index entry is OK */
+                                   false,  /* no old dependencies */
                                    allow_system_table_mods,
                                    is_internal);
        }
@@ -1205,7 +1205,7 @@ index_constraint_create(Relation heapRelation,
                                   indexInfo->ii_KeyAttrNumbers,
                                   indexInfo->ii_NumIndexAttrs,
                                   InvalidOid,  /* no domain */
-                                  indexRelationId,     /* index OID */
+                                  indexRelationId, /* index OID */
                                   InvalidOid,  /* no foreign key */
                                   NULL,
                                   NULL,
@@ -1216,12 +1216,12 @@ index_constraint_create(Relation heapRelation,
                                   ' ',
                                   ' ',
                                   indexInfo->ii_ExclusionOps,
-                                  NULL,        /* no check constraint */
+                                  NULL,    /* no check constraint */
                                   NULL,
                                   NULL,
-                                  true,        /* islocal */
+                                  true,    /* islocal */
                                   0,   /* inhcount */
-                                  true,        /* noinherit */
+                                  true,    /* noinherit */
                                   is_internal);
 
    /*
@@ -2259,7 +2259,7 @@ IndexBuildHeapRangeScan(Relation heapRelation,
    if (IsBootstrapProcessingMode() || indexInfo->ii_Concurrent)
    {
        snapshot = RegisterSnapshot(GetTransactionSnapshot());
-       OldestXmin = InvalidTransactionId;      /* not used */
+       OldestXmin = InvalidTransactionId;  /* not used */
 
        /* "any visible" mode is not compatible with this */
        Assert(!anyvisible);
@@ -2272,8 +2272,8 @@ IndexBuildHeapRangeScan(Relation heapRelation,
    }
 
    scan = heap_beginscan_strat(heapRelation,   /* relation */
-                               snapshot,       /* snapshot */
-                               0,      /* number of keys */
+                               snapshot,   /* snapshot */
+                               0,  /* number of keys */
                                NULL,   /* scan key */
                                true,   /* buffer access strategy OK */
                                allow_sync);    /* syncscan OK? */
@@ -2524,7 +2524,7 @@ IndexBuildHeapRangeScan(Relation heapRelation,
                    break;
                default:
                    elog(ERROR, "unexpected HeapTupleSatisfiesVacuum result");
-                   indexIt = tupleIsAlive = false;     /* keep compiler quiet */
+                   indexIt = tupleIsAlive = false; /* keep compiler quiet */
                    break;
            }
 
@@ -2677,8 +2677,8 @@ IndexCheckExclusion(Relation heapRelation,
     */
    snapshot = RegisterSnapshot(GetLatestSnapshot());
    scan = heap_beginscan_strat(heapRelation,   /* relation */
-                               snapshot,       /* snapshot */
-                               0,      /* number of keys */
+                               snapshot,   /* snapshot */
+                               0,  /* number of keys */
                                NULL,   /* scan key */
                                true,   /* buffer access strategy OK */
                                true);  /* syncscan OK */
@@ -2997,8 +2997,8 @@ validate_index_heapscan(Relation heapRelation,
     * match the sorted TIDs.
     */
    scan = heap_beginscan_strat(heapRelation,   /* relation */
-                               snapshot,       /* snapshot */
-                               0,      /* number of keys */
+                               snapshot,   /* snapshot */
+                               0,  /* number of keys */
                                NULL,   /* scan key */
                                true,   /* buffer access strategy OK */
                                false); /* syncscan not OK */
index abc344ad6992613d0fa0c1cf9332100da94f0bc3..e5b6bafaff7e900543ff35c83b1facb805271a68 100644 (file)
@@ -42,7 +42,7 @@ CatalogOpenIndexes(Relation heapRel)
    ResultRelInfo *resultRelInfo;
 
    resultRelInfo = makeNode(ResultRelInfo);
-   resultRelInfo->ri_RangeTableIndex = 1;      /* dummy */
+   resultRelInfo->ri_RangeTableIndex = 1;  /* dummy */
    resultRelInfo->ri_RelationDesc = heapRel;
    resultRelInfo->ri_TrigDesc = NULL;  /* we don't fire triggers */
 
@@ -136,7 +136,7 @@ CatalogIndexInsert(CatalogIndexState indstate, HeapTuple heapTuple)
        index_insert(relationDescs[i],  /* index relation */
                     values,    /* array of index Datums */
                     isnull,    /* is-null flags */
-                    &(heapTuple->t_self),      /* tid of heap tuple */
+                    &(heapTuple->t_self),  /* tid of heap tuple */
                     heapRelation,
                     relationDescs[i]->rd_index->indisunique ?
                     UNIQUE_CHECK_YES : UNIQUE_CHECK_NO,
index 94755d687b74637ce8ea7b910b63dd4dc4cd82a4..29385019172a260ad8b4cc58d2c145a6630c4bdf 100644 (file)
@@ -157,7 +157,7 @@ static bool baseSearchPathValid = true;
 typedef struct
 {
    List       *searchPath;     /* the desired search path */
-   Oid         creationNamespace;      /* the desired creation namespace */
+   Oid         creationNamespace;  /* the desired creation namespace */
    int         nestLevel;      /* subtransaction nesting level */
 } OverrideStackEntry;
 
@@ -273,7 +273,7 @@ RangeVarGetRelidExtended(const RangeVar *relation, LOCKMODE lockmode,
        if (relation->relpersistence == RELPERSISTENCE_TEMP)
        {
            if (!OidIsValid(myTempNamespace))
-               relId = InvalidOid;     /* this probably can't happen? */
+               relId = InvalidOid; /* this probably can't happen? */
            else
            {
                if (relation->schemaname)
@@ -1665,7 +1665,7 @@ OpernameGetCandidates(List *names, char oprkind, bool missing_schema_ok)
                    /* We have a match with a previous result */
                    Assert(pathpos != prevResult->pathpos);
                    if (pathpos > prevResult->pathpos)
-                       continue;       /* keep previous result */
+                       continue;   /* keep previous result */
                    /* replace previous result */
                    prevResult->pathpos = pathpos;
                    prevResult->oid = HeapTupleGetOid(opertup);
@@ -3428,7 +3428,7 @@ PopOverrideSearchPath(void)
        entry = (OverrideStackEntry *) linitial(overrideStack);
        activeSearchPath = entry->searchPath;
        activeCreationNamespace = entry->creationNamespace;
-       activeTempCreationPending = false;      /* XXX is this OK? */
+       activeTempCreationPending = false;  /* XXX is this OK? */
    }
    else
    {
@@ -3876,7 +3876,7 @@ AtEOXact_Namespace(bool isCommit, bool parallel)
        {
            myTempNamespace = InvalidOid;
            myTempToastNamespace = InvalidOid;
-           baseSearchPathValid = false;        /* need to rebuild list */
+           baseSearchPathValid = false;    /* need to rebuild list */
        }
        myTempNamespaceSubID = InvalidSubTransactionId;
    }
@@ -3928,7 +3928,7 @@ AtEOSubXact_Namespace(bool isCommit, SubTransactionId mySubid,
            /* TEMP namespace creation failed, so reset state */
            myTempNamespace = InvalidOid;
            myTempToastNamespace = InvalidOid;
-           baseSearchPathValid = false;        /* need to rebuild list */
+           baseSearchPathValid = false;    /* need to rebuild list */
        }
    }
 
@@ -3953,7 +3953,7 @@ AtEOSubXact_Namespace(bool isCommit, SubTransactionId mySubid,
        entry = (OverrideStackEntry *) linitial(overrideStack);
        activeSearchPath = entry->searchPath;
        activeCreationNamespace = entry->creationNamespace;
-       activeTempCreationPending = false;      /* XXX is this OK? */
+       activeTempCreationPending = false;  /* XXX is this OK? */
    }
    else
    {
index 791322a80397310405b0d14bf62be7d370b6f85e..b882d5f0e1468f0a52db4d15c0946ff0caa84b7d 100644 (file)
@@ -97,19 +97,18 @@ typedef struct
    Oid         class_oid;      /* oid of catalog */
    Oid         oid_index_oid;  /* oid of index on system oid column */
    int         oid_catcache_id;    /* id of catcache on system oid column  */
-   int         name_catcache_id;       /* id of catcache on (name,namespace),
-                                        * or (name) if the object does not
-                                        * live in a namespace */
+   int         name_catcache_id;   /* id of catcache on (name,namespace), or
+                                    * (name) if the object does not live in a
+                                    * namespace */
    AttrNumber  attnum_name;    /* attnum of name field */
-   AttrNumber  attnum_namespace;       /* attnum of namespace field */
+   AttrNumber  attnum_namespace;   /* attnum of namespace field */
    AttrNumber  attnum_owner;   /* attnum of owner field */
    AttrNumber  attnum_acl;     /* attnum of acl field */
    AclObjectKind acl_kind;     /* ACL_KIND_* of this object type */
-   bool        is_nsp_name_unique;     /* can the nsp/name combination (or
-                                        * name alone, if there's no
-                                        * namespace) be considered a unique
-                                        * identifier for an object of this
-                                        * class? */
+   bool        is_nsp_name_unique; /* can the nsp/name combination (or name
+                                    * alone, if there's no namespace) be
+                                    * considered a unique identifier for an
+                                    * object of this class? */
 } ObjectPropertyType;
 
 static const ObjectPropertyType ObjectProperty[] =
index b9cca29ea3baa020e44f1f72efa2a198b3f6741c..e563b8548b666ba07525c4cb2e7457b73ceb04d0 100644 (file)
@@ -1553,7 +1553,7 @@ get_qual_for_range(PartitionKey key, PartitionBoundSpec *spec)
     */
    i = 0;
    partexprs_item = list_head(key->partexprs);
-   partexprs_item_saved = partexprs_item;      /* placate compiler */
+   partexprs_item_saved = partexprs_item;  /* placate compiler */
    forboth(cell1, spec->lowerdatums, cell2, spec->upperdatums)
    {
        EState     *estate;
index 65c2e88e9352276a0f8398f25dc24e16c5e138c8..aa45c141a45b129c130e6748e5ceef40525a1e1d 100644 (file)
@@ -83,9 +83,9 @@ AggregateCreate(const char *aggName,
    Oid         finalfn = InvalidOid;   /* can be omitted */
    Oid         combinefn = InvalidOid; /* can be omitted */
    Oid         serialfn = InvalidOid;  /* can be omitted */
-   Oid         deserialfn = InvalidOid;        /* can be omitted */
+   Oid         deserialfn = InvalidOid;    /* can be omitted */
    Oid         mtransfn = InvalidOid;  /* can be omitted */
-   Oid         minvtransfn = InvalidOid;       /* can be omitted */
+   Oid         minvtransfn = InvalidOid;   /* can be omitted */
    Oid         mfinalfn = InvalidOid;  /* can be omitted */
    Oid         sortop = InvalidOid;    /* can be omitted */
    Oid        *aggArgTypes = parameterTypes->values;
@@ -605,30 +605,30 @@ AggregateCreate(const char *aggName,
 
    myself = ProcedureCreate(aggName,
                             aggNamespace,
-                            false,     /* no replacement */
-                            false,     /* doesn't return a set */
+                            false, /* no replacement */
+                            false, /* doesn't return a set */
                             finaltype, /* returnType */
-                            GetUserId(),       /* proowner */
-                            INTERNALlanguageId,        /* languageObjectId */
-                            InvalidOid,        /* no validator */
+                            GetUserId(),   /* proowner */
+                            INTERNALlanguageId,    /* languageObjectId */
+                            InvalidOid,    /* no validator */
                             "aggregate_dummy", /* placeholder proc */
-                            NULL,      /* probin */
-                            true,      /* isAgg */
-                            false,     /* isWindowFunc */
-                            false,     /* security invoker (currently not
-                                        * definable for agg) */
-                            false,     /* isLeakProof */
-                            false,     /* isStrict (not needed for agg) */
-                            PROVOLATILE_IMMUTABLE,     /* volatility (not
-                                                        * needed for agg) */
+                            NULL,  /* probin */
+                            true,  /* isAgg */
+                            false, /* isWindowFunc */
+                            false, /* security invoker (currently not
+                                    * definable for agg) */
+                            false, /* isLeakProof */
+                            false, /* isStrict (not needed for agg) */
+                            PROVOLATILE_IMMUTABLE, /* volatility (not needed
+                                                    * for agg) */
                             proparallel,
                             parameterTypes,    /* paramTypes */
                             allParameterTypes, /* allParamTypes */
                             parameterModes,    /* parameterModes */
                             parameterNames,    /* parameterNames */
                             parameterDefaults, /* parameterDefaults */
-                            PointerGetDatum(NULL),     /* trftypes */
-                            PointerGetDatum(NULL),     /* proconfig */
+                            PointerGetDatum(NULL), /* trftypes */
+                            PointerGetDatum(NULL), /* proconfig */
                             1, /* procost */
                             0);    /* prorows */
    procOid = myself.objectId;
index e5ae3d92922dd2a0396f557f0e6cb9c168a1e8b5..60ccaa08b0cccf183fda890e1e818b9473088f3f 100644 (file)
@@ -576,7 +576,7 @@ RemoveConstraintById(Oid conId)
                     con->conrelid);
            classForm = (Form_pg_class) GETSTRUCT(relTup);
 
-           if (classForm->relchecks == 0)      /* should not happen */
+           if (classForm->relchecks == 0)  /* should not happen */
                elog(ERROR, "relation \"%s\" has relchecks = 0",
                     RelationGetRelationName(rel));
            classForm->relchecks--;
@@ -928,7 +928,7 @@ get_primary_key_attnos(Oid relid, bool deferrableOk, Oid *constraintOid)
        if (isNull)
            elog(ERROR, "null conkey for constraint %u",
                 HeapTupleGetOid(tuple));
-       arr = DatumGetArrayTypeP(adatum);       /* ensure not toasted */
+       arr = DatumGetArrayTypeP(adatum);   /* ensure not toasted */
        numkeys = ARR_DIMS(arr)[0];
        if (ARR_NDIM(arr) != 1 ||
            numkeys < 0 ||
index b5cbc04889abc495e78d899e63b4c5716319ae38..370683823fa96c6ff150cfc4ce8f78cdbc5f5e8e 100644 (file)
@@ -225,7 +225,7 @@ OperatorShellMake(const char *operatorName,
    for (i = 0; i < Natts_pg_operator; ++i)
    {
        nulls[i] = false;
-       values[i] = (Datum) NULL;       /* redundant, but safe */
+       values[i] = (Datum) NULL;   /* redundant, but safe */
    }
 
    /*
index 6b0e4f4729f33596a02cb7f7af871ca31ae94f12..6172973343a8acd03aa924d431d483f3820a207c 100644 (file)
@@ -79,7 +79,7 @@ TypeShellMake(const char *typeName, Oid typeNamespace, Oid ownerId)
    for (i = 0; i < Natts_pg_type; ++i)
    {
        nulls[i] = false;
-       values[i] = (Datum) NULL;       /* redundant, but safe */
+       values[i] = (Datum) NULL;   /* redundant, but safe */
    }
 
    /*
@@ -214,7 +214,7 @@ TypeCreate(Oid newTypeOid,
           bool isImplicitArray,
           Oid arrayType,
           Oid baseType,
-          const char *defaultTypeValue,        /* human readable rep */
+          const char *defaultTypeValue,    /* human readable rep */
           char *defaultTypeBin,    /* cooked rep */
           bool passedByValue,
           char alignment,
@@ -511,8 +511,8 @@ TypeCreate(Oid newTypeOid,
 void
 GenerateTypeDependencies(Oid typeNamespace,
                         Oid typeObjectId,
-                        Oid relationOid,       /* only for relation rowtypes */
-                        char relationKind,     /* ditto */
+                        Oid relationOid,   /* only for relation rowtypes */
+                        char relationKind, /* ditto */
                         Oid owner,
                         Oid inputProcedure,
                         Oid outputProcedure,
index f677916d0396f2f73ef77a63785e6f80e4172958..9a5fde00ca19aa96c87ba41f618bc2a62768e215 100644 (file)
@@ -58,7 +58,7 @@ typedef struct PendingRelDelete
    BackendId   backend;        /* InvalidBackendId if not a temp rel */
    bool        atCommit;       /* T=delete at commit; F=delete at abort */
    int         nestLevel;      /* xact nesting level of request */
-   struct PendingRelDelete *next;      /* linked-list link */
+   struct PendingRelDelete *next;  /* linked-list link */
 } PendingRelDelete;
 
 static PendingRelDelete *pendingDeletes = NULL; /* head of linked list */
index a84c61493f54b98506855623c63784e5f9e01292..b204b19c72c3e6548c5e7841018b7a1da0dcf226 100644 (file)
@@ -416,8 +416,8 @@ DefineAggregate(ParseState *pstate, List *name, List *args, bool oldstyle, List
    /*
     * Most of the argument-checking is done inside of AggregateCreate
     */
-   return AggregateCreate(aggName,     /* aggregate name */
-                          aggNamespace,        /* namespace */
+   return AggregateCreate(aggName, /* aggregate name */
+                          aggNamespace,    /* namespace */
                           aggKind,
                           numArgs,
                           numDirectArgs,
@@ -427,22 +427,22 @@ DefineAggregate(ParseState *pstate, List *name, List *args, bool oldstyle, List
                           PointerGetDatum(parameterNames),
                           parameterDefaults,
                           variadicArgType,
-                          transfuncName,       /* step function name */
-                          finalfuncName,       /* final function name */
-                          combinefuncName,     /* combine function name */
-                          serialfuncName,      /* serial function name */
+                          transfuncName,   /* step function name */
+                          finalfuncName,   /* final function name */
+                          combinefuncName, /* combine function name */
+                          serialfuncName,  /* serial function name */
                           deserialfuncName,    /* deserial function name */
-                          mtransfuncName,      /* fwd trans function name */
+                          mtransfuncName,  /* fwd trans function name */
                           minvtransfuncName,   /* inv trans function name */
-                          mfinalfuncName,      /* final function name */
+                          mfinalfuncName,  /* final function name */
                           finalfuncExtraArgs,
                           mfinalfuncExtraArgs,
                           sortoperatorName,    /* sort operator name */
                           transTypeId, /* transition data type */
                           transSpace,  /* transition space */
-                          mtransTypeId,        /* transition data type */
+                          mtransTypeId,    /* transition data type */
                           mtransSpace, /* transition space */
-                          initval,     /* initial condition */
+                          initval, /* initial condition */
                           minitval,    /* initial condition */
-                          proparallel);        /* parallel safe? */
+                          proparallel);    /* parallel safe? */
 }
index 4d3fe8c745ab36ff7236c43714c3e63e73e1ffd4..e5f0b75a86a8008283fa5254c0882f7584610db2 100644 (file)
@@ -408,7 +408,7 @@ ExecRenameStmt(RenameStmt *stmt)
        default:
            elog(ERROR, "unrecognized rename stmt type: %d",
                 (int) stmt->renameType);
-           return InvalidObjectAddress;        /* keep compiler happy */
+           return InvalidObjectAddress;    /* keep compiler happy */
    }
 }
 
@@ -525,7 +525,7 @@ ExecAlterObjectSchemaStmt(AlterObjectSchemaStmt *stmt,
        default:
            elog(ERROR, "unrecognized AlterObjectSchemaStmt type: %d",
                 (int) stmt->objectType);
-           return InvalidObjectAddress;        /* keep compiler happy */
+           return InvalidObjectAddress;    /* keep compiler happy */
    }
 
    if (oldSchemaAddr)
@@ -880,7 +880,7 @@ ExecAlterOwnerStmt(AlterOwnerStmt *stmt)
        default:
            elog(ERROR, "unrecognized AlterOwnerStmt type: %d",
                 (int) stmt->objectType);
-           return InvalidObjectAddress;        /* keep compiler happy */
+           return InvalidObjectAddress;    /* keep compiler happy */
    }
 }
 
index ecdd8950ee02a547bf02acc2a74b85e8c685f707..a19c6c25e6164f01d03de7fb10253972b1fabd38 100644 (file)
@@ -452,7 +452,7 @@ do_analyze_rel(Relation onerel, int options, VacuumParams *params,
                        /* Found an index expression */
                        Node       *indexkey;
 
-                       if (indexpr_item == NULL)       /* shouldn't happen */
+                       if (indexpr_item == NULL)   /* shouldn't happen */
                            elog(ERROR, "too few entries in indexprs list");
                        indexkey = (Node *) lfirst(indexpr_item);
                        indexpr_item = lnext(indexpr_item);
@@ -1545,7 +1545,7 @@ update_attstats(Oid relid, bool inh, int natts, VacAttrStats **vacattrstats)
        i = Anum_pg_statistic_stakind1 - 1;
        for (k = 0; k < STATISTIC_NUM_SLOTS; k++)
        {
-           values[i++] = Int16GetDatum(stats->stakind[k]);     /* stakindN */
+           values[i++] = Int16GetDatum(stats->stakind[k]); /* stakindN */
        }
        i = Anum_pg_statistic_staop1 - 1;
        for (k = 0; k < STATISTIC_NUM_SLOTS; k++)
@@ -1860,7 +1860,7 @@ compute_trivial_stats(VacAttrStatsP stats,
            stats->stawidth = total_width / (double) nonnull_cnt;
        else
            stats->stawidth = stats->attrtype->typlen;
-       stats->stadistinct = 0.0;       /* "unknown" */
+       stats->stadistinct = 0.0;   /* "unknown" */
    }
    else if (null_cnt > 0)
    {
@@ -1871,7 +1871,7 @@ compute_trivial_stats(VacAttrStatsP stats,
            stats->stawidth = 0;    /* "unknown" */
        else
            stats->stawidth = stats->attrtype->typlen;
-       stats->stadistinct = 0.0;       /* "unknown" */
+       stats->stadistinct = 0.0;   /* "unknown" */
    }
 }
 
@@ -2224,7 +2224,7 @@ compute_distinct_stats(VacAttrStatsP stats,
            stats->stawidth = 0;    /* "unknown" */
        else
            stats->stawidth = stats->attrtype->typlen;
-       stats->stadistinct = 0.0;       /* "unknown" */
+       stats->stadistinct = 0.0;   /* "unknown" */
    }
 
    /* We don't need to bother cleaning up any of our temporary palloc's */
@@ -2774,7 +2774,7 @@ compute_scalar_stats(VacAttrStatsP stats,
            stats->stawidth = 0;    /* "unknown" */
        else
            stats->stawidth = stats->attrtype->typlen;
-       stats->stadistinct = 0.0;       /* "unknown" */
+       stats->stadistinct = 0.0;   /* "unknown" */
    }
 
    /* We don't need to bother cleaning up any of our temporary palloc's */
index 87b215d8d3285c62af12cc327f27a13778f222f1..9befe0492ae9ec057df0dda615d7e78b737970dd 100644 (file)
@@ -245,7 +245,7 @@ typedef struct AsyncQueueControl
    QueuePosition head;         /* head points to the next free location */
    QueuePosition tail;         /* the global tail is equivalent to the pos of
                                 * the "slowest" backend */
-   TimestampTz lastQueueFillWarn;      /* time of last queue-full msg */
+   TimestampTz lastQueueFillWarn;  /* time of last queue-full msg */
    QueueBackendStatus backend[FLEXIBLE_ARRAY_MEMBER];
    /* backend[0] is not used; used entries are from [1] to [MaxBackends] */
 } AsyncQueueControl;
@@ -265,7 +265,7 @@ static SlruCtlData AsyncCtlData;
 
 #define AsyncCtl                   (&AsyncCtlData)
 #define QUEUE_PAGESIZE             BLCKSZ
-#define QUEUE_FULL_WARN_INTERVAL   5000        /* warn at most once every 5s */
+#define QUEUE_FULL_WARN_INTERVAL   5000    /* warn at most once every 5s */
 
 /*
  * slru.c currently assumes that all filenames are four characters of hex
@@ -291,7 +291,7 @@ static SlruCtlData AsyncCtlData;
  * (ie, have committed a LISTEN on).  It is a simple list of channel names,
  * allocated in TopMemoryContext.
  */
-static List *listenChannels = NIL;     /* list of C strings */
+static List *listenChannels = NIL; /* list of C strings */
 
 /*
  * State for pending LISTEN/UNLISTEN actions consists of an ordered list of
@@ -316,7 +316,7 @@ typedef struct
    char        channel[FLEXIBLE_ARRAY_MEMBER]; /* nul-terminated string */
 } ListenAction;
 
-static List *pendingActions = NIL;     /* list of ListenAction */
+static List *pendingActions = NIL; /* list of ListenAction */
 
 static List *upperPendingActions = NIL; /* list of upper-xact lists */
 
@@ -342,9 +342,9 @@ typedef struct Notification
    char       *payload;        /* payload string (can be empty) */
 } Notification;
 
-static List *pendingNotifies = NIL;        /* list of Notifications */
+static List *pendingNotifies = NIL; /* list of Notifications */
 
-static List *upperPendingNotifies = NIL;       /* list of upper-xact lists */
+static List *upperPendingNotifies = NIL;   /* list of upper-xact lists */
 
 /*
  * Inbound notifications are initially processed by HandleNotifyInterrupt(),
@@ -1184,7 +1184,7 @@ asyncQueueUnregister(void)
 {
    bool        advanceTail;
 
-   Assert(listenChannels == NIL);      /* else caller error */
+   Assert(listenChannels == NIL);  /* else caller error */
 
    if (!amRegisteredListener)  /* nothing to do */
        return;
@@ -1825,7 +1825,7 @@ asyncQueueReadAllNotifications(void)
                /* we only want to read as far as head */
                copysize = QUEUE_POS_OFFSET(head) - curoffset;
                if (copysize < 0)
-                   copysize = 0;       /* just for safety */
+                   copysize = 0;   /* just for safety */
            }
            else
            {
index ef1abf34abbe095368125345d5fc0ed188a8cec3..1cc53094268beb9b2fd65be9468900c4f3770538 100644 (file)
@@ -325,7 +325,7 @@ cluster_rel(Oid tableOid, Oid indexOid, bool recheck, bool verbose)
             * Check that the index is still the one with indisclustered set.
             */
            tuple = SearchSysCache1(INDEXRELID, ObjectIdGetDatum(indexOid));
-           if (!HeapTupleIsValid(tuple))       /* probably can't happen */
+           if (!HeapTupleIsValid(tuple))   /* probably can't happen */
            {
                relation_close(OldHeap, AccessExclusiveLock);
                return;
index 91b65b174d3c2c12dd444a3d32530eaee783d122..e805b7cfc4b835a98fa77403cce271cfa9bfd504 100644 (file)
@@ -417,7 +417,7 @@ get_icu_locale_comment(const char *localename)
 
    return result;
 }
-#endif   /* USE_ICU */
+#endif                         /* USE_ICU */
 
 
 Datum
@@ -552,7 +552,7 @@ pg_import_system_collations(PG_FUNCTION_ARGS)
    if (count == 0)
        ereport(WARNING,
                (errmsg("no usable system locales were found")));
-#endif   /* not HAVE_LOCALE_T && not WIN32 */
+#endif                         /* not HAVE_LOCALE_T && not WIN32 */
 
 #ifdef USE_ICU
    if (!is_encoding_supported_by_icu(GetDatabaseEncoding()))
index ff32d041897a5d515e4d7ec94c525fa879a862d4..ec6011cdb85316ea1c7c75b8c899106e3ade7d2a 100644 (file)
@@ -102,7 +102,7 @@ typedef struct CopyStateData
    bool        fe_eof;         /* true if detected end of copy data */
    EolType     eol_type;       /* EOL type of input */
    int         file_encoding;  /* file or remote side's character encoding */
-   bool        need_transcoding;       /* file encoding diff from server? */
+   bool        need_transcoding;   /* file encoding diff from server? */
    bool        encoding_embeds_ascii;  /* ASCII can be non-first byte? */
 
    /* parameters from the COPY command */
@@ -119,17 +119,17 @@ typedef struct CopyStateData
    bool        header_line;    /* CSV header line? */
    char       *null_print;     /* NULL marker string (server encoding!) */
    int         null_print_len; /* length of same */
-   char       *null_print_client;      /* same converted to file encoding */
+   char       *null_print_client;  /* same converted to file encoding */
    char       *delim;          /* column delimiter (must be 1 byte) */
    char       *quote;          /* CSV quote char (must be 1 byte) */
    char       *escape;         /* CSV escape char (must be 1 byte) */
    List       *force_quote;    /* list of column names */
    bool        force_quote_all;    /* FORCE_QUOTE *? */
-   bool       *force_quote_flags;      /* per-column CSV FQ flags */
+   bool       *force_quote_flags;  /* per-column CSV FQ flags */
    List       *force_notnull;  /* list of column names */
    bool       *force_notnull_flags;    /* per-column CSV FNN flags */
    List       *force_null;     /* list of column names */
-   bool       *force_null_flags;       /* per-column CSV FN flags */
+   bool       *force_null_flags;   /* per-column CSV FN flags */
    bool        convert_selectively;    /* do selective binary conversion? */
    List       *convert_select; /* list of column names (can be NIL) */
    bool       *convert_select_flags;   /* per-column CSV/TEXT CS flags */
@@ -162,7 +162,7 @@ typedef struct CopyStateData
    Oid        *typioparams;    /* array of element types for in_functions */
    int        *defmap;         /* array of default att numbers */
    ExprState **defexprs;       /* array of default att expressions */
-   bool        volatile_defexprs;      /* is any of defexprs volatile? */
+   bool        volatile_defexprs;  /* is any of defexprs volatile? */
    List       *range_table;
 
    PartitionDispatch *partition_dispatch_info;
@@ -195,7 +195,7 @@ typedef struct CopyStateData
     * can display it in error messages if appropriate.
     */
    StringInfoData line_buf;
-   bool        line_buf_converted;     /* converted to server encoding? */
+   bool        line_buf_converted; /* converted to server encoding? */
    bool        line_buf_valid; /* contains the row being processed? */
 
    /*
@@ -355,10 +355,10 @@ SendCopyBegin(CopyState cstate)
        int         i;
 
        pq_beginmessage(&buf, 'H');
-       pq_sendbyte(&buf, format);      /* overall format */
+       pq_sendbyte(&buf, format);  /* overall format */
        pq_sendint(&buf, natts, 2);
        for (i = 0; i < natts; i++)
-           pq_sendint(&buf, format, 2);        /* per-column formats */
+           pq_sendint(&buf, format, 2);    /* per-column formats */
        pq_endmessage(&buf);
        cstate->copy_dest = COPY_NEW_FE;
    }
@@ -388,10 +388,10 @@ ReceiveCopyBegin(CopyState cstate)
        int         i;
 
        pq_beginmessage(&buf, 'G');
-       pq_sendbyte(&buf, format);      /* overall format */
+       pq_sendbyte(&buf, format);  /* overall format */
        pq_sendint(&buf, natts, 2);
        for (i = 0; i < natts; i++)
-           pq_sendint(&buf, format, 2);        /* per-column formats */
+           pq_sendint(&buf, format, 2);    /* per-column formats */
        pq_endmessage(&buf);
        cstate->copy_dest = COPY_NEW_FE;
        cstate->fe_msgbuf = makeStringInfo();
@@ -609,20 +609,20 @@ CopyGetData(CopyState cstate, void *databuf, int minread, int maxread)
                    RESUME_CANCEL_INTERRUPTS();
                    switch (mtype)
                    {
-                       case 'd':       /* CopyData */
+                       case 'd':   /* CopyData */
                            break;
-                       case 'c':       /* CopyDone */
+                       case 'c':   /* CopyDone */
                            /* COPY IN correctly terminated by frontend */
                            cstate->fe_eof = true;
                            return bytesread;
-                       case 'f':       /* CopyFail */
+                       case 'f':   /* CopyFail */
                            ereport(ERROR,
                                    (errcode(ERRCODE_QUERY_CANCELED),
                                     errmsg("COPY from stdin failed: %s",
                                       pq_getmsgstring(cstate->fe_msgbuf))));
                            break;
-                       case 'H':       /* Flush */
-                       case 'S':       /* Sync */
+                       case 'H':   /* Flush */
+                       case 'S':   /* Sync */
 
                            /*
                             * Ignore Flush/Sync for the convenience of client
@@ -1697,7 +1697,7 @@ BeginCopy(ParseState *pstate,
    /* See Multibyte encoding comment above */
    cstate->encoding_embeds_ascii = PG_ENCODING_IS_CLIENT_ONLY(cstate->file_encoding);
 
-   cstate->copy_dest = COPY_FILE;      /* default */
+   cstate->copy_dest = COPY_FILE;  /* default */
 
    MemoryContextSwitchTo(oldcontext);
 
@@ -1951,7 +1951,7 @@ CopyTo(CopyState cstate)
        tupDesc = cstate->queryDesc->tupDesc;
    attr = tupDesc->attrs;
    num_phys_attrs = tupDesc->natts;
-   cstate->null_print_client = cstate->null_print;     /* default */
+   cstate->null_print_client = cstate->null_print; /* default */
 
    /* We use fe_msgbuf as a per-row buffer regardless of copy_dest */
    cstate->fe_msgbuf = makeStringInfo();
@@ -3707,8 +3707,8 @@ CopyReadLineText(CopyState cstate)
 
                if (c == '\n')
                {
-                   raw_buf_ptr++;      /* eat newline */
-                   cstate->eol_type = EOL_CRNL;        /* in case not set yet */
+                   raw_buf_ptr++;  /* eat newline */
+                   cstate->eol_type = EOL_CRNL;    /* in case not set yet */
                }
                else
                {
@@ -4458,7 +4458,7 @@ CopyAttributeOutText(CopyState cstate, char *string)
                            break;
                        /* All ASCII control chars are length 1 */
                        ptr++;
-                       continue;       /* fall to end of loop */
+                       continue;   /* fall to end of loop */
                }
                /* if we get here, we need to convert the control char */
                DUMPSOFAR();
@@ -4518,7 +4518,7 @@ CopyAttributeOutText(CopyState cstate, char *string)
                            break;
                        /* All ASCII control chars are length 1 */
                        ptr++;
-                       continue;       /* fall to end of loop */
+                       continue;   /* fall to end of loop */
                }
                /* if we get here, we need to convert the control char */
                DUMPSOFAR();
index 11038f6764c02656d193f6e14fc6a5232dd0c60e..96ab6f23cd1bde997df7886bd2a0a1473cd324e6 100644 (file)
@@ -322,7 +322,7 @@ createdb(ParseState *pstate, const CreatedbStmt *stmt)
     * won't change underneath us.
     */
    if (!dbtemplate)
-       dbtemplate = "template1";       /* Default template database name */
+       dbtemplate = "template1";   /* Default template database name */
 
    if (!get_db_info(dbtemplate, ShareLock,
                     &src_dboid, &src_owner, &src_encoding,
@@ -1284,7 +1284,7 @@ movedb(const char *dbname, const char *tblspcname)
        sysscan = systable_beginscan(pgdbrel, DatabaseNameIndexId, true,
                                     NULL, 1, &scankey);
        oldtuple = systable_getnext(sysscan);
-       if (!HeapTupleIsValid(oldtuple))        /* shouldn't happen... */
+       if (!HeapTupleIsValid(oldtuple))    /* shouldn't happen... */
            ereport(ERROR,
                    (errcode(ERRCODE_UNDEFINED_DATABASE),
                     errmsg("database \"%s\" does not exist", dbname)));
index 4cfab418a6f8cf91f55c2a9cfc6c92d5f02da285..48a63755599806e8d57c1d22e048c49dcb74099e 100644 (file)
@@ -57,8 +57,8 @@ typedef struct EventTriggerQueryState
    bool        in_sql_drop;
 
    /* table_rewrite */
-   Oid         table_rewrite_oid;      /* InvalidOid, or set for
-                                        * table_rewrite event */
+   Oid         table_rewrite_oid;  /* InvalidOid, or set for table_rewrite
+                                    * event */
    int         table_rewrite_reason;   /* AT_REWRITE reason */
 
    /* Support for command collection */
index 91f9cac7862f90574a238e6cd30c0fa0d850f5da..a40b5ec4de7d3c3237d481b6f0d462d214aa81fb 100644 (file)
@@ -96,7 +96,7 @@ typedef struct ExtensionVersionInfo
    /* working state for Dijkstra's algorithm: */
    bool        distance_known; /* is distance from start known yet? */
    int         distance;       /* current worst-case distance estimate */
-   struct ExtensionVersionInfo *previous;      /* current best predecessor */
+   struct ExtensionVersionInfo *previous;  /* current best predecessor */
 } ExtensionVersionInfo;
 
 /* Local functions */
@@ -2387,7 +2387,7 @@ pg_extension_config_dump(PG_FUNCTION_ARGS)
 
    extTup = systable_getnext(extScan);
 
-   if (!HeapTupleIsValid(extTup))      /* should not happen */
+   if (!HeapTupleIsValid(extTup))  /* should not happen */
        elog(ERROR, "could not find tuple for extension %u",
             CurrentExtensionObject);
 
@@ -2433,7 +2433,7 @@ pg_extension_config_dump(PG_FUNCTION_ARGS)
        {
            if (arrayData[i] == tableoid)
            {
-               arrayIndex = i + 1;     /* replace this element instead */
+               arrayIndex = i + 1; /* replace this element instead */
                break;
            }
        }
@@ -2535,7 +2535,7 @@ extension_config_remove(Oid extensionoid, Oid tableoid)
 
    extTup = systable_getnext(extScan);
 
-   if (!HeapTupleIsValid(extTup))      /* should not happen */
+   if (!HeapTupleIsValid(extTup))  /* should not happen */
        elog(ERROR, "could not find tuple for extension %u",
             extensionoid);
 
@@ -2736,7 +2736,7 @@ AlterExtensionNamespace(const char *extensionName, const char *newschema, Oid *o
 
    extTup = systable_getnext(extScan);
 
-   if (!HeapTupleIsValid(extTup))      /* should not happen */
+   if (!HeapTupleIsValid(extTup))  /* should not happen */
        elog(ERROR, "could not find tuple for extension %u",
             extensionOid);
 
@@ -2801,7 +2801,7 @@ AlterExtensionNamespace(const char *extensionName, const char *newschema, Oid *o
        dep.objectId = pg_depend->objid;
        dep.objectSubId = pg_depend->objsubid;
 
-       if (dep.objectSubId != 0)       /* should not happen */
+       if (dep.objectSubId != 0)   /* should not happen */
            elog(ERROR, "extension should not have a sub-object dependency");
 
        /* Relocate the object */
index 2e26090bf99211cadc02e2cab1a73934dd3bced4..1a165d5b0c23e89206b2d1d39e68e20e127547e2 100644 (file)
@@ -201,7 +201,7 @@ interpret_function_parameter_list(ParseState *pstate,
    ListCell   *x;
    int         i;
 
-   *variadicArgType = InvalidOid;      /* default result */
+   *variadicArgType = InvalidOid;  /* default result */
    *requiredResultType = InvalidOid;   /* default result */
 
    inTypes = (Oid *) palloc(parameterCount * sizeof(Oid));
@@ -562,7 +562,7 @@ interpret_func_parallel(DefElem *defel)
        ereport(ERROR,
                (errcode(ERRCODE_SYNTAX_ERROR),
                 errmsg("parameter \"parallel\" must be SAFE, RESTRICTED, or UNSAFE")));
-       return PROPARALLEL_UNSAFE;      /* keep compiler quiet */
+       return PROPARALLEL_UNSAFE;  /* keep compiler quiet */
    }
 }
 
@@ -1090,7 +1090,7 @@ CreateFunction(ParseState *pstate, CreateFunctionStmt *stmt)
                           languageValidator,
                           prosrc_str,  /* converted to text later */
                           probin_str,  /* converted to text later */
-                          false,       /* not an aggregate */
+                          false,   /* not an aggregate */
                           isWindowFunc,
                           security,
                           isLeakProof,
@@ -1146,7 +1146,7 @@ RemoveFunctionById(Oid funcOid)
        relation = heap_open(AggregateRelationId, RowExclusiveLock);
 
        tup = SearchSysCache1(AGGFNOID, ObjectIdGetDatum(funcOid));
-       if (!HeapTupleIsValid(tup))     /* should not happen */
+       if (!HeapTupleIsValid(tup)) /* should not happen */
            elog(ERROR, "cache lookup failed for pg_aggregate tuple for function %u", funcOid);
 
        CatalogTupleDelete(relation, &tup->t_self);
@@ -1326,7 +1326,7 @@ SetFunctionReturnType(Oid funcOid, Oid newRetType)
        elog(ERROR, "cache lookup failed for function %u", funcOid);
    procForm = (Form_pg_proc) GETSTRUCT(tup);
 
-   if (procForm->prorettype != OPAQUEOID)      /* caller messed up */
+   if (procForm->prorettype != OPAQUEOID)  /* caller messed up */
        elog(ERROR, "function %u doesn't return OPAQUE", funcOid);
 
    /* okay to overwrite copied tuple */
index c0902794e98f14b5e7800135c31b6f15fb62ceaa..e3f2dcfa8cc6cec407014086b4c7ed69f573e072 100644 (file)
@@ -645,7 +645,7 @@ DefineIndex(Oid relationId,
        else
        {
            elog(ERROR, "unknown constraint type");
-           constraint_type = NULL;     /* keep compiler quiet */
+           constraint_type = NULL; /* keep compiler quiet */
        }
 
        ereport(DEBUG1,
@@ -909,7 +909,7 @@ DefineIndex(Oid relationId,
                                                   newer_snapshots[k]))
                        break;
                }
-               if (k >= n_newer_snapshots)     /* not there anymore */
+               if (k >= n_newer_snapshots) /* not there anymore */
                    SetInvalidVirtualTransactionId(old_snapshots[j]);
            }
            pfree(newer_snapshots);
@@ -1704,9 +1704,9 @@ ChooseIndexColumnNames(List *indexElems)
 
        /* Get the preliminary name from the IndexElem */
        if (ielem->indexcolname)
-           origname = ielem->indexcolname;     /* caller-specified name */
+           origname = ielem->indexcolname; /* caller-specified name */
        else if (ielem->name)
-           origname = ielem->name;     /* simple column reference */
+           origname = ielem->name; /* simple column reference */
        else
            origname = "expr";  /* default name for expression */
 
index ab51d1a41781f609869c74ff7765304c3130bec4..512014438b0c1f0df704a4e941ff8f3993a655dc 100644 (file)
@@ -856,7 +856,7 @@ AlterOpFamilyAdd(AlterOpFamilyStmt *stmt, Oid amoid, Oid opfamilyoid,
                    ereport(ERROR,
                            (errcode(ERRCODE_SYNTAX_ERROR),
                             errmsg("operator argument types must be specified in ALTER OPERATOR FAMILY")));
-                   operOid = InvalidOid;       /* keep compiler quiet */
+                   operOid = InvalidOid;   /* keep compiler quiet */
                }
 
                if (item->order_family)
index 739d5875eb69bd03e38b0b8653e723697e30976f..c7e767661158334ef6037372570297bc0585dd0e 100644 (file)
@@ -70,16 +70,16 @@ DefineOperator(List *names, List *parameters)
    char       *oprName;
    Oid         oprNamespace;
    AclResult   aclresult;
-   bool        canMerge = false;       /* operator merges */
+   bool        canMerge = false;   /* operator merges */
    bool        canHash = false;    /* operator hashes */
-   List       *functionName = NIL;     /* function for operator */
-   TypeName   *typeName1 = NULL;       /* first type name */
-   TypeName   *typeName2 = NULL;       /* second type name */
+   List       *functionName = NIL; /* function for operator */
+   TypeName   *typeName1 = NULL;   /* first type name */
+   TypeName   *typeName2 = NULL;   /* second type name */
    Oid         typeId1 = InvalidOid;   /* types converted to OID */
    Oid         typeId2 = InvalidOid;
    Oid         rettype;
    List       *commutatorName = NIL;   /* optional commutator operator name */
-   List       *negatorName = NIL;      /* optional negator operator name */
+   List       *negatorName = NIL;  /* optional negator operator name */
    List       *restrictionName = NIL;  /* optional restrict. sel. procedure */
    List       *joinName = NIL; /* optional join sel. procedure */
    Oid         functionOid;    /* functions converted to OID */
@@ -243,9 +243,9 @@ DefineOperator(List *names, List *parameters)
                       oprNamespace,    /* namespace */
                       typeId1, /* left type id */
                       typeId2, /* right type id */
-                      functionOid,     /* function for operator */
+                      functionOid, /* function for operator */
                       commutatorName,  /* optional commutator operator name */
-                      negatorName,     /* optional negator operator name */
+                      negatorName, /* optional negator operator name */
                       restrictionOid,  /* optional restrict. sel. procedure */
                       joinOid, /* optional join sel. procedure name */
                       canMerge,    /* operator merges */
index 167910fcb5b140d4227c0a8a3d06b3d5b11ff60b..46369cf3dbee8a9a6395c5658a52cc02cccab970 100644 (file)
@@ -403,7 +403,7 @@ PersistHoldablePortal(Portal portal)
        /*
         * Now shut down the inner executor.
         */
-       portal->queryDesc = NULL;       /* prevent double shutdown */
+       portal->queryDesc = NULL;   /* prevent double shutdown */
        ExecutorFinish(queryDesc);
        ExecutorEnd(queryDesc);
        FreeQueryDesc(queryDesc);
index a4fbc05a12278cd443f92d74b3132cdaa31a70be..4d555f1f5c71e15476e2c728c59a92a8a349cedf 100644 (file)
@@ -161,18 +161,18 @@ CreateProceduralLanguage(CreatePLangStmt *stmt)
            {
                tmpAddr = ProcedureCreate(pltemplate->tmplinline,
                                          PG_CATALOG_NAMESPACE,
-                                         false,        /* replace */
-                                         false,        /* returnsSet */
+                                         false,    /* replace */
+                                         false,    /* returnsSet */
                                          VOIDOID,
                                          BOOTSTRAP_SUPERUSERID,
                                          ClanguageId,
                                          F_FMGR_C_VALIDATOR,
                                          pltemplate->tmplinline,
                                          pltemplate->tmpllibrary,
-                                         false,        /* isAgg */
-                                         false,        /* isWindowFunc */
-                                         false,        /* security_definer */
-                                         false,        /* isLeakProof */
+                                         false,    /* isAgg */
+                                         false,    /* isWindowFunc */
+                                         false,    /* security_definer */
+                                         false,    /* isLeakProof */
                                          true, /* isStrict */
                                          PROVOLATILE_VOLATILE,
                                          PROPARALLEL_UNSAFE,
@@ -204,18 +204,18 @@ CreateProceduralLanguage(CreatePLangStmt *stmt)
            {
                tmpAddr = ProcedureCreate(pltemplate->tmplvalidator,
                                          PG_CATALOG_NAMESPACE,
-                                         false,        /* replace */
-                                         false,        /* returnsSet */
+                                         false,    /* replace */
+                                         false,    /* returnsSet */
                                          VOIDOID,
                                          BOOTSTRAP_SUPERUSERID,
                                          ClanguageId,
                                          F_FMGR_C_VALIDATOR,
                                          pltemplate->tmplvalidator,
                                          pltemplate->tmpllibrary,
-                                         false,        /* isAgg */
-                                         false,        /* isWindowFunc */
-                                         false,        /* security_definer */
-                                         false,        /* isLeakProof */
+                                         false,    /* isAgg */
+                                         false,    /* isWindowFunc */
+                                         false,    /* security_definer */
+                                         false,    /* isLeakProof */
                                          true, /* isStrict */
                                          PROVOLATILE_VOLATILE,
                                          PROPARALLEL_UNSAFE,
@@ -533,7 +533,7 @@ DropProceduralLanguageById(Oid langOid)
    rel = heap_open(LanguageRelationId, RowExclusiveLock);
 
    langTup = SearchSysCache1(LANGOID, ObjectIdGetDatum(langOid));
-   if (!HeapTupleIsValid(langTup))     /* should not happen */
+   if (!HeapTupleIsValid(langTup)) /* should not happen */
        elog(ERROR, "cache lookup failed for language %u", langOid);
 
    CatalogTupleDelete(rel, &langTup->t_self);
index 031bbc874dea0af42cb17a7327614d755182baf4..58bda55837950fc452568556ecf6d6e16d430cdc 100644 (file)
@@ -611,7 +611,7 @@ nextval_internal(Oid relid, bool check_permissions)
     */
    PreventCommandIfParallelMode("nextval()");
 
-   if (elm->last != elm->cached)       /* some numbers were cached */
+   if (elm->last != elm->cached)   /* some numbers were cached */
    {
        Assert(elm->last_valid);
        Assert(elm->increment != 0);
@@ -1455,7 +1455,7 @@ init_params(ParseState *pstate, List *options, bool for_identity,
                seqform->seqmax = PG_INT64_MAX;
        }
        else
-           seqform->seqmax = -1;       /* descending seq */
+           seqform->seqmax = -1;   /* descending seq */
        seqdataform->log_cnt = 0;
    }
 
@@ -1532,9 +1532,9 @@ init_params(ParseState *pstate, List *options, bool for_identity,
    else if (isInit)
    {
        if (seqform->seqincrement > 0)
-           seqform->seqstart = seqform->seqmin;        /* ascending seq */
+           seqform->seqstart = seqform->seqmin;    /* ascending seq */
        else
-           seqform->seqstart = seqform->seqmax;        /* descending seq */
+           seqform->seqstart = seqform->seqmax;    /* descending seq */
    }
 
    /* crosscheck START */
index 758c876ef3f051f78887534b982c0ad6ba60a7ed..207241cb9237ee040ef63e55558ce7e06aca740c 100644 (file)
@@ -138,17 +138,17 @@ static List *on_commits = NIL;
  * a pass determined by subcommand type.
  */
 
-#define AT_PASS_UNSET          -1      /* UNSET will cause ERROR */
-#define AT_PASS_DROP           0       /* DROP (all flavors) */
-#define AT_PASS_ALTER_TYPE     1       /* ALTER COLUMN TYPE */
-#define AT_PASS_OLD_INDEX      2       /* re-add existing indexes */
-#define AT_PASS_OLD_CONSTR     3       /* re-add existing constraints */
-#define AT_PASS_COL_ATTRS      4       /* set other column attributes */
+#define AT_PASS_UNSET          -1  /* UNSET will cause ERROR */
+#define AT_PASS_DROP           0   /* DROP (all flavors) */
+#define AT_PASS_ALTER_TYPE     1   /* ALTER COLUMN TYPE */
+#define AT_PASS_OLD_INDEX      2   /* re-add existing indexes */
+#define AT_PASS_OLD_CONSTR     3   /* re-add existing constraints */
+#define AT_PASS_COL_ATTRS      4   /* set other column attributes */
 /* We could support a RENAME COLUMN pass here, but not currently used */
-#define AT_PASS_ADD_COL            5       /* ADD COLUMN */
-#define AT_PASS_ADD_INDEX      6       /* ADD indexes */
-#define AT_PASS_ADD_CONSTR     7       /* ADD constraints, defaults */
-#define AT_PASS_MISC           8       /* other stuff */
+#define AT_PASS_ADD_COL            5   /* ADD COLUMN */
+#define AT_PASS_ADD_INDEX      6   /* ADD indexes */
+#define AT_PASS_ADD_CONSTR     7   /* ADD constraints, defaults */
+#define AT_PASS_MISC           8   /* other stuff */
 #define AT_NUM_PASSES          9
 
 typedef struct AlteredTableInfo
@@ -166,13 +166,13 @@ typedef struct AlteredTableInfo
    int         rewrite;        /* Reason for forced rewrite, if any */
    Oid         newTableSpace;  /* new tablespace; 0 means no change */
    bool        chgPersistence; /* T if SET LOGGED/UNLOGGED is used */
-   char        newrelpersistence;      /* if above is true */
+   char        newrelpersistence;  /* if above is true */
    Expr       *partition_constraint;   /* for attach partition validation */
    /* Objects to rebuild after completing ALTER TYPE operations */
    List       *changedConstraintOids;  /* OIDs of constraints to rebuild */
    List       *changedConstraintDefs;  /* string definitions of same */
-   List       *changedIndexOids;       /* OIDs of indexes to rebuild */
-   List       *changedIndexDefs;       /* string definitions of same */
+   List       *changedIndexOids;   /* OIDs of indexes to rebuild */
+   List       *changedIndexDefs;   /* string definitions of same */
 } AlteredTableInfo;
 
 /* Struct describing one new constraint to check in Phase 3 scan */
@@ -701,13 +701,13 @@ DefineRelation(CreateStmt *stmt, char relkind, Oid ownerId,
 
            cooked = (CookedConstraint *) palloc(sizeof(CookedConstraint));
            cooked->contype = CONSTR_DEFAULT;
-           cooked->conoid = InvalidOid;        /* until created */
+           cooked->conoid = InvalidOid;    /* until created */
            cooked->name = NULL;
            cooked->attnum = attnum;
            cooked->expr = colDef->cooked_default;
            cooked->skip_validation = false;
            cooked->is_local = true;    /* not used for defaults */
-           cooked->inhcount = 0;       /* ditto */
+           cooked->inhcount = 0;   /* ditto */
            cooked->is_no_inherit = false;
            cookedDefaults = lappend(cookedDefaults, cooked);
            descriptor->attrs[attnum - 1]->atthasdef = true;
@@ -917,7 +917,7 @@ DropErrorMsgNonExistent(RangeVar *rel, char rightkind, bool missing_ok)
        }
    }
 
-   Assert(rentry->kind != '\0');       /* Should be impossible */
+   Assert(rentry->kind != '\0');   /* Should be impossible */
 }
 
 /*
@@ -1629,7 +1629,7 @@ MergeAttributes(List *schema, List *supers, char relpersistence,
    int         parentsWithOids = 0;
    bool        have_bogus_defaults = false;
    int         child_attno;
-   static Node bogus_marker = {0};     /* marks conflicting defaults */
+   static Node bogus_marker = {0}; /* marks conflicting defaults */
    List       *saved_schema = NIL;
 
    /*
@@ -1688,8 +1688,8 @@ MergeAttributes(List *schema, List *supers, char relpersistence,
        while (rest != NULL)
        {
            ColumnDef  *restdef = lfirst(rest);
-           ListCell   *next = lnext(rest);     /* need to save it in case we
-                                                * delete it */
+           ListCell   *next = lnext(rest); /* need to save it in case we
+                                            * delete it */
 
            if (strcmp(coldef->colname, restdef->colname) == 0)
            {
@@ -2012,7 +2012,7 @@ MergeAttributes(List *schema, List *supers, char relpersistence,
 
                    cooked = (CookedConstraint *) palloc(sizeof(CookedConstraint));
                    cooked->contype = CONSTR_CHECK;
-                   cooked->conoid = InvalidOid;        /* until created */
+                   cooked->conoid = InvalidOid;    /* until created */
                    cooked->name = pstrdup(name);
                    cooked->attnum = 0; /* not used for constraints */
                    cooked->expr = expr;
@@ -2650,7 +2650,7 @@ renameatt_internal(Oid myrelid,
 
    heap_close(attrelation, RowExclusiveLock);
 
-   relation_close(targetrelation, NoLock);     /* close rel but keep lock */
+   relation_close(targetrelation, NoLock); /* close rel but keep lock */
 
    return attnum;
 }
@@ -2701,10 +2701,10 @@ renameatt(RenameStmt *stmt)
 
    attnum =
        renameatt_internal(relid,
-                          stmt->subname,       /* old att name */
-                          stmt->newname,       /* new att name */
+                          stmt->subname,   /* old att name */
+                          stmt->newname,   /* new att name */
                           stmt->relation->inh, /* recursive? */
-                          false,       /* recursing? */
+                          false,   /* recursing? */
                           0,   /* expected inhcount */
                           stmt->behavior);
 
@@ -2856,8 +2856,8 @@ RenameConstraint(RenameStmt *stmt)
                                   stmt->subname,
                                   stmt->newname,
                                   (stmt->relation &&
-                                   stmt->relation->inh),       /* recursive? */
-                                  false,       /* recursing? */
+                                   stmt->relation->inh),   /* recursive? */
+                                  false,   /* recursing? */
                                   0 /* expected inhcount */ );
 
 }
@@ -2933,7 +2933,7 @@ RenameRelationInternal(Oid myrelid, const char *newrelname, bool is_internal)
    relrelation = heap_open(RelationRelationId, RowExclusiveLock);
 
    reltup = SearchSysCacheCopy1(RELOID, ObjectIdGetDatum(myrelid));
-   if (!HeapTupleIsValid(reltup))      /* shouldn't happen */
+   if (!HeapTupleIsValid(reltup))  /* shouldn't happen */
        elog(ERROR, "cache lookup failed for relation %u", myrelid);
    relform = (Form_pg_class) GETSTRUCT(reltup);
 
@@ -3175,7 +3175,7 @@ AlterTableGetLockLevel(List *cmds)
                 */
            case AT_AddColumn:  /* may rewrite heap, in some cases and visible
                                 * to SELECT */
-           case AT_SetTableSpace:      /* must rewrite heap */
+           case AT_SetTableSpace:  /* must rewrite heap */
            case AT_AlterColumnType:    /* must rewrite heap */
            case AT_AddOids:    /* must rewrite heap */
                cmd_lockmode = AccessExclusiveLock;
@@ -3196,7 +3196,7 @@ AlterTableGetLockLevel(List *cmds)
                 * Removing constraints can affect SELECTs that have been
                 * optimised assuming the constraint holds true.
                 */
-           case AT_DropConstraint:     /* as DROP INDEX */
+           case AT_DropConstraint: /* as DROP INDEX */
            case AT_DropNotNull:    /* may change some SQL plans */
                cmd_lockmode = AccessExclusiveLock;
                break;
@@ -3264,8 +3264,8 @@ AlterTableGetLockLevel(List *cmds)
                break;
 
            case AT_AddConstraint:
-           case AT_ProcessedConstraint:        /* becomes AT_AddConstraint */
-           case AT_AddConstraintRecurse:       /* becomes AT_AddConstraint */
+           case AT_ProcessedConstraint:    /* becomes AT_AddConstraint */
+           case AT_AddConstraintRecurse:   /* becomes AT_AddConstraint */
            case AT_ReAddConstraint:    /* becomes AT_AddConstraint */
                if (IsA(cmd->def, Constraint))
                {
@@ -3345,11 +3345,11 @@ AlterTableGetLockLevel(List *cmds)
                 * applies: we don't currently allow concurrent catalog
                 * updates.
                 */
-           case AT_SetStatistics:      /* Uses MVCC in getTableAttrs() */
+           case AT_SetStatistics:  /* Uses MVCC in getTableAttrs() */
            case AT_ClusterOn:  /* Uses MVCC in getIndexes() */
            case AT_DropCluster:    /* Uses MVCC in getIndexes() */
            case AT_SetOptions: /* Uses MVCC in getTableAttrs() */
-           case AT_ResetOptions:       /* Uses MVCC in getTableAttrs() */
+           case AT_ResetOptions:   /* Uses MVCC in getTableAttrs() */
                cmd_lockmode = ShareUpdateExclusiveLock;
                break;
 
@@ -3368,8 +3368,8 @@ AlterTableGetLockLevel(List *cmds)
                 * reasons these can all be used with ALTER TABLE, so we can't
                 * decide between them using the basic grammar.
                 */
-           case AT_SetRelOptions:      /* Uses MVCC in getIndexes() and
-                                        * getTables() */
+           case AT_SetRelOptions:  /* Uses MVCC in getIndexes() and
+                                    * getTables() */
            case AT_ResetRelOptions:    /* Uses MVCC in getIndexes() and
                                         * getTables() */
                cmd_lockmode = AlterTableGetRelOptionsLockLevel((List *) cmd->def);
@@ -3553,7 +3553,7 @@ ATPrepCmd(List **wqueue, Relation rel, AlterTableCmd *cmd,
                cmd->subtype = AT_AddConstraintRecurse;
            pass = AT_PASS_ADD_CONSTR;
            break;
-       case AT_AddIndexConstraint:     /* ADD CONSTRAINT USING INDEX */
+       case AT_AddIndexConstraint: /* ADD CONSTRAINT USING INDEX */
            ATSimplePermissions(rel, ATT_TABLE);
            /* This command never recurses */
            /* No command-specific prep needed */
@@ -3643,7 +3643,7 @@ ATPrepCmd(List **wqueue, Relation rel, AlterTableCmd *cmd,
            break;
        case AT_SetRelOptions:  /* SET (...) */
        case AT_ResetRelOptions:    /* RESET (...) */
-       case AT_ReplaceRelOptions:      /* reset them all, then set just these */
+       case AT_ReplaceRelOptions:  /* reset them all, then set just these */
            ATSimplePermissions(rel, ATT_TABLE | ATT_VIEW | ATT_MATVIEW | ATT_INDEX);
            /* This command never recurses */
            /* No command-specific prep needed */
@@ -3665,7 +3665,7 @@ ATPrepCmd(List **wqueue, Relation rel, AlterTableCmd *cmd,
            ATSimplePermissions(rel, ATT_TABLE);
            pass = AT_PASS_MISC;
            break;
-       case AT_ValidateConstraint:     /* VALIDATE CONSTRAINT */
+       case AT_ValidateConstraint: /* VALIDATE CONSTRAINT */
            ATSimplePermissions(rel, ATT_TABLE | ATT_FOREIGN_TABLE);
            /* Recursion occurs during execution phase */
            /* No command-specific prep needed except saving recurse flag */
@@ -3719,7 +3719,7 @@ ATPrepCmd(List **wqueue, Relation rel, AlterTableCmd *cmd,
        default:                /* oops */
            elog(ERROR, "unrecognized alter table type: %d",
                 (int) cmd->subtype);
-           pass = AT_PASS_UNSET;       /* keep compiler quiet */
+           pass = AT_PASS_UNSET;   /* keep compiler quiet */
            break;
    }
    Assert(pass > AT_PASS_UNSET);
@@ -3856,7 +3856,7 @@ ATExecCmd(List **wqueue, AlteredTableInfo *tab, Relation rel,
                                       cmd->behavior, false, false,
                                       cmd->missing_ok, lockmode);
            break;
-       case AT_DropColumnRecurse:      /* DROP COLUMN with recursion */
+       case AT_DropColumnRecurse:  /* DROP COLUMN with recursion */
            address = ATExecDropColumn(wqueue, rel, cmd->name,
                                       cmd->behavior, true, false,
                                       cmd->missing_ok, lockmode);
@@ -3887,19 +3887,19 @@ ATExecCmd(List **wqueue, AlteredTableInfo *tab, Relation rel,
        case AT_ReAddComment:   /* Re-add existing comment */
            address = CommentObject((CommentStmt *) cmd->def);
            break;
-       case AT_AddIndexConstraint:     /* ADD CONSTRAINT USING INDEX */
+       case AT_AddIndexConstraint: /* ADD CONSTRAINT USING INDEX */
            address = ATExecAddIndexConstraint(tab, rel, (IndexStmt *) cmd->def,
                                               lockmode);
            break;
        case AT_AlterConstraint:    /* ALTER CONSTRAINT */
            address = ATExecAlterConstraint(rel, cmd, false, false, lockmode);
            break;
-       case AT_ValidateConstraint:     /* VALIDATE CONSTRAINT */
+       case AT_ValidateConstraint: /* VALIDATE CONSTRAINT */
            address = ATExecValidateConstraint(rel, cmd->name, false, false,
                                               lockmode);
            break;
-       case AT_ValidateConstraintRecurse:      /* VALIDATE CONSTRAINT with
-                                                * recursion */
+       case AT_ValidateConstraintRecurse:  /* VALIDATE CONSTRAINT with
+                                            * recursion */
            address = ATExecValidateConstraint(rel, cmd->name, true, false,
                                               lockmode);
            break;
@@ -3916,7 +3916,7 @@ ATExecCmd(List **wqueue, AlteredTableInfo *tab, Relation rel,
        case AT_AlterColumnType:    /* ALTER COLUMN TYPE */
            address = ATExecAlterColumnType(tab, rel, cmd, lockmode);
            break;
-       case AT_AlterColumnGenericOptions:      /* ALTER COLUMN OPTIONS */
+       case AT_AlterColumnGenericOptions:  /* ALTER COLUMN OPTIONS */
            address =
                ATExecAlterColumnGenericOptions(rel, cmd->name,
                                                (List *) cmd->def, lockmode);
@@ -3966,18 +3966,18 @@ ATExecCmd(List **wqueue, AlteredTableInfo *tab, Relation rel,
            break;
        case AT_SetRelOptions:  /* SET (...) */
        case AT_ResetRelOptions:    /* RESET (...) */
-       case AT_ReplaceRelOptions:      /* replace entire option list */
+       case AT_ReplaceRelOptions:  /* replace entire option list */
            ATExecSetRelOptions(rel, (List *) cmd->def, cmd->subtype, lockmode);
            break;
        case AT_EnableTrig:     /* ENABLE TRIGGER name */
            ATExecEnableDisableTrigger(rel, cmd->name,
                                   TRIGGER_FIRES_ON_ORIGIN, false, lockmode);
            break;
-       case AT_EnableAlwaysTrig:       /* ENABLE ALWAYS TRIGGER name */
+       case AT_EnableAlwaysTrig:   /* ENABLE ALWAYS TRIGGER name */
            ATExecEnableDisableTrigger(rel, cmd->name,
                                       TRIGGER_FIRES_ALWAYS, false, lockmode);
            break;
-       case AT_EnableReplicaTrig:      /* ENABLE REPLICA TRIGGER name */
+       case AT_EnableReplicaTrig:  /* ENABLE REPLICA TRIGGER name */
            ATExecEnableDisableTrigger(rel, cmd->name,
                                  TRIGGER_FIRES_ON_REPLICA, false, lockmode);
            break;
@@ -4006,11 +4006,11 @@ ATExecCmd(List **wqueue, AlteredTableInfo *tab, Relation rel,
            ATExecEnableDisableRule(rel, cmd->name,
                                    RULE_FIRES_ON_ORIGIN, lockmode);
            break;
-       case AT_EnableAlwaysRule:       /* ENABLE ALWAYS RULE name */
+       case AT_EnableAlwaysRule:   /* ENABLE ALWAYS RULE name */
            ATExecEnableDisableRule(rel, cmd->name,
                                    RULE_FIRES_ALWAYS, lockmode);
            break;
-       case AT_EnableReplicaRule:      /* ENABLE REPLICA RULE name */
+       case AT_EnableReplicaRule:  /* ENABLE REPLICA RULE name */
            ATExecEnableDisableRule(rel, cmd->name,
                                    RULE_FIRES_ON_REPLICA, lockmode);
            break;
@@ -4330,7 +4330,7 @@ ATRewriteTable(AlteredTableInfo *tab, Oid OIDNewHeap, LOCKMODE lockmode)
     */
    oldrel = heap_open(tab->relid, NoLock);
    oldTupDesc = tab->oldDesc;
-   newTupDesc = RelationGetDescr(oldrel);      /* includes all mods */
+   newTupDesc = RelationGetDescr(oldrel);  /* includes all mods */
 
    if (OidIsValid(OIDNewHeap))
        newrel = heap_open(OIDNewHeap, lockmode);
@@ -6540,12 +6540,12 @@ ATExecDropColumn(List **wqueue, Relation rel, const char *colName,
            CheckTableNotInUse(childrel, "ALTER TABLE");
 
            tuple = SearchSysCacheCopyAttName(childrelid, colName);
-           if (!HeapTupleIsValid(tuple))       /* shouldn't happen */
+           if (!HeapTupleIsValid(tuple))   /* shouldn't happen */
                elog(ERROR, "cache lookup failed for attribute \"%s\" of relation %u",
                     colName, childrelid);
            childatt = (Form_pg_attribute) GETSTRUCT(tuple);
 
-           if (childatt->attinhcount <= 0)     /* shouldn't happen */
+           if (childatt->attinhcount <= 0) /* shouldn't happen */
                elog(ERROR, "relation %u has non-inherited attribute \"%s\"",
                     childrelid, colName);
 
@@ -6767,8 +6767,8 @@ ATExecAddIndexConstraint(AlteredTableInfo *tab, Relation rel,
                                      stmt->deferrable,
                                      stmt->initdeferred,
                                      stmt->primary,
-                                     true,     /* update pg_index */
-                                     true,     /* remove old dependencies */
+                                     true, /* update pg_index */
+                                     true, /* remove old dependencies */
                                      allowSystemTableMods,
                                      false);   /* is_internal */
 
@@ -6889,8 +6889,8 @@ ATAddCheckConstraint(List **wqueue, AlteredTableInfo *tab, Relation rel,
    newcons = AddRelationNewConstraints(rel, NIL,
                                        list_make1(copyObject(constr)),
                                        recursing | is_readd,   /* allow_merge */
-                                       !recursing,     /* is_local */
-                                       is_readd);      /* is_internal */
+                                       !recursing, /* is_local */
+                                       is_readd);  /* is_internal */
 
    /* we don't expect more than one constraint here */
    Assert(list_length(newcons) <= 1);
@@ -7337,8 +7337,7 @@ ATAddForeignKeyConstraint(AlteredTableInfo *tab, Relation rel,
                                      RelationGetRelid(rel),
                                      fkattnum,
                                      numfks,
-                                     InvalidOid,       /* not a domain
-                                                        * constraint */
+                                     InvalidOid,   /* not a domain constraint */
                                      indexOid,
                                      RelationGetRelid(pkrel),
                                      pkattnum,
@@ -7349,13 +7348,13 @@ ATAddForeignKeyConstraint(AlteredTableInfo *tab, Relation rel,
                                      fkconstraint->fk_upd_action,
                                      fkconstraint->fk_del_action,
                                      fkconstraint->fk_matchtype,
-                                     NULL,     /* no exclusion constraint */
-                                     NULL,     /* no check constraint */
+                                     NULL, /* no exclusion constraint */
+                                     NULL, /* no check constraint */
                                      NULL,
                                      NULL,
-                                     true,     /* islocal */
-                                     0,        /* inhcount */
-                                     true,     /* isnoinherit */
+                                     true, /* islocal */
+                                     0,    /* inhcount */
+                                     true, /* isnoinherit */
                                      false);   /* is_internal */
    ObjectAddressSet(address, ConstraintRelationId, constrOid);
 
@@ -8607,7 +8606,7 @@ ATExecDropConstraint(Relation rel, const char *constrName,
 
        con = (Form_pg_constraint) GETSTRUCT(copy_tuple);
 
-       if (con->coninhcount <= 0)      /* shouldn't happen */
+       if (con->coninhcount <= 0)  /* shouldn't happen */
            elog(ERROR, "relation %u has non-inherited constraint \"%s\"",
                 childrelid, constrName);
 
@@ -8965,7 +8964,7 @@ ATExecAlterColumnType(AlteredTableInfo *tab, Relation rel,
 
    /* Look up the target column */
    heapTup = SearchSysCacheCopyAttName(RelationGetRelid(rel), colName);
-   if (!HeapTupleIsValid(heapTup))     /* shouldn't happen */
+   if (!HeapTupleIsValid(heapTup)) /* shouldn't happen */
        ereport(ERROR,
                (errcode(ERRCODE_UNDEFINED_COLUMN),
                 errmsg("column \"%s\" of relation \"%s\" does not exist",
@@ -9005,7 +9004,7 @@ ATExecAlterColumnType(AlteredTableInfo *tab, Relation rel,
        defaultexpr = build_column_default(rel, attnum);
        Assert(defaultexpr);
        defaultexpr = strip_implicit_coercions(defaultexpr);
-       defaultexpr = coerce_to_target_type(NULL,       /* no UNKNOWN params */
+       defaultexpr = coerce_to_target_type(NULL,   /* no UNKNOWN params */
                                          defaultexpr, exprType(defaultexpr),
                                            targettype, targettypmod,
                                            COERCION_ASSIGNMENT,
@@ -9500,7 +9499,7 @@ ATPostAlterTypeCleanup(List **wqueue, AlteredTableInfo *tab, LOCKMODE lockmode)
        bool        conislocal;
 
        tup = SearchSysCache1(CONSTROID, ObjectIdGetDatum(oldId));
-       if (!HeapTupleIsValid(tup))     /* should not happen */
+       if (!HeapTupleIsValid(tup)) /* should not happen */
            elog(ERROR, "cache lookup failed for constraint %u", oldId);
        con = (Form_pg_constraint) GETSTRUCT(tup);
        relid = con->conrelid;
@@ -11647,7 +11646,7 @@ RemoveInheritance(Relation child_rel, Relation parent_rel)
            HeapTuple   copyTuple = heap_copytuple(constraintTuple);
            Form_pg_constraint copy_con = (Form_pg_constraint) GETSTRUCT(copyTuple);
 
-           if (copy_con->coninhcount <= 0)     /* shouldn't happen */
+           if (copy_con->coninhcount <= 0) /* shouldn't happen */
                elog(ERROR, "relation %u has non-inherited constraint \"%s\"",
                     RelationGetRelid(child_rel), NameStr(copy_con->conname));
 
@@ -12836,7 +12835,7 @@ PreCommit_on_commit_actions(void)
    if (oids_to_truncate != NIL)
    {
        heap_truncate(oids_to_truncate);
-       CommandCounterIncrement();      /* XXX needed? */
+       CommandCounterIncrement();  /* XXX needed? */
    }
 }
 
@@ -12979,7 +12978,7 @@ RangeVarCallbackOwnsRelation(const RangeVar *relation,
        return;
 
    tuple = SearchSysCache1(RELOID, ObjectIdGetDatum(relId));
-   if (!HeapTupleIsValid(tuple))       /* should not happen */
+   if (!HeapTupleIsValid(tuple))   /* should not happen */
        elog(ERROR, "cache lookup failed for relation %u", relId);
 
    if (!pg_class_ownercheck(relId, GetUserId()))
index f9c26201d982d758b548f8ff7e15930e230d93bc..03bf06012ad4ef8f98dc78744ee09bd674f4ce0a 100644 (file)
@@ -388,7 +388,7 @@ CreateTableSpace(CreateTableSpaceStmt *stmt)
            (errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
             errmsg("tablespaces are not supported on this platform")));
    return InvalidOid;          /* keep compiler quiet */
-#endif   /* HAVE_SYMLINK */
+#endif                         /* HAVE_SYMLINK */
 }
 
 /*
@@ -549,7 +549,7 @@ DropTableSpace(DropTableSpaceStmt *stmt)
    ereport(ERROR,
            (errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
             errmsg("tablespaces are not supported on this platform")));
-#endif   /* HAVE_SYMLINK */
+#endif                         /* HAVE_SYMLINK */
 }
 
 
index d7ed71f7675c3b9a1202784a3dc5da8a7b9bccfd..191f27651c1e4f03246ac3314fa1de16bd3a6802 100644 (file)
@@ -593,11 +593,11 @@ CreateTrigger(CreateTrigStmt *stmt, const char *queryString,
                                              stmt->initdeferred,
                                              true,
                                              RelationGetRelid(rel),
-                                             NULL,     /* no conkey */
+                                             NULL, /* no conkey */
                                              0,
-                                             InvalidOid,       /* no domain */
-                                             InvalidOid,       /* no index */
-                                             InvalidOid,       /* no foreign key */
+                                             InvalidOid,   /* no domain */
+                                             InvalidOid,   /* no index */
+                                             InvalidOid,   /* no foreign key */
                                              NULL,
                                              NULL,
                                              NULL,
@@ -606,14 +606,14 @@ CreateTrigger(CreateTrigStmt *stmt, const char *queryString,
                                              ' ',
                                              ' ',
                                              ' ',
-                                             NULL,     /* no exclusion */
-                                             NULL,     /* no check constraint */
+                                             NULL, /* no exclusion */
+                                             NULL, /* no check constraint */
                                              NULL,
                                              NULL,
-                                             true,     /* islocal */
-                                             0,        /* inhcount */
-                                             true,     /* isnoinherit */
-                                             isInternal);      /* is_internal */
+                                             true, /* islocal */
+                                             0,    /* inhcount */
+                                             true, /* isnoinherit */
+                                             isInternal);  /* is_internal */
    }
 
    /*
@@ -2026,7 +2026,7 @@ equalTriggerDescs(TriggerDesc *trigdesc1, TriggerDesc *trigdesc2)
        return false;
    return true;
 }
-#endif   /* NOT_USED */
+#endif                         /* NOT_USED */
 
 /*
  * Call a trigger function.
@@ -3255,8 +3255,7 @@ typedef SetConstraintStateData *SetConstraintState;
  */
 typedef uint32 TriggerFlags;
 
-#define AFTER_TRIGGER_OFFSET           0x0FFFFFFF      /* must be low-order
-                                                        * bits */
+#define AFTER_TRIGGER_OFFSET           0x0FFFFFFF  /* must be low-order bits */
 #define AFTER_TRIGGER_DONE             0x10000000
 #define AFTER_TRIGGER_IN_PROGRESS      0x20000000
 /* bits describing the size and tuple sources of this event */
@@ -3317,7 +3316,7 @@ typedef struct AfterTriggerEventDataZeroCtids
  */
 typedef struct AfterTriggerEventChunk
 {
-   struct AfterTriggerEventChunk *next;        /* list link */
+   struct AfterTriggerEventChunk *next;    /* list link */
    char       *freeptr;        /* start of free space in chunk */
    char       *endfree;        /* end of free space in chunk */
    char       *endptr;         /* end of chunk */
@@ -3409,7 +3408,7 @@ typedef struct AfterTriggersData
 {
    CommandId   firing_counter; /* next firing ID to assign */
    SetConstraintState state;   /* the active S C state */
-   AfterTriggerEventList events;       /* deferred-event list */
+   AfterTriggerEventList events;   /* deferred-event list */
    int         query_depth;    /* current query list index */
    AfterTriggerEventList *query_stack; /* events pending from each query */
    Tuplestorestate **fdw_tuplestores;  /* foreign tuples for one row from
@@ -3422,7 +3421,7 @@ typedef struct AfterTriggersData
    /* these fields are just for resetting at subtrans abort: */
 
    SetConstraintState *state_stack;    /* stacked S C states */
-   AfterTriggerEventList *events_stack;        /* stacked list pointers */
+   AfterTriggerEventList *events_stack;    /* stacked list pointers */
    int        *depth_stack;    /* stacked query_depths */
    CommandId  *firing_stack;   /* stacked firing_counters */
    int         maxtransdepth;  /* allocated len of above arrays */
@@ -4058,7 +4057,7 @@ afterTriggerInvokeEvents(AfterTriggerEventList *events,
                        slot1 = MakeSingleTupleTableSlot(rel->rd_att);
                        slot2 = MakeSingleTupleTableSlot(rel->rd_att);
                    }
-                   if (trigdesc == NULL)       /* should not happen */
+                   if (trigdesc == NULL)   /* should not happen */
                        elog(ERROR, "relation %u has no triggers",
                             evtshared->ats_relid);
                }
@@ -4132,7 +4131,7 @@ AfterTriggerBeginXact(void)
    /*
     * Initialize after-trigger state structure to empty
     */
-   afterTriggers.firing_counter = (CommandId) 1;       /* mustn't be 0 */
+   afterTriggers.firing_counter = (CommandId) 1;   /* mustn't be 0 */
    afterTriggers.query_depth = -1;
 
    /*
index dfb95a1ed35b5c55bec0d898bfc8125e675544a6..cb212fdf68d301b2f819bb68a839d34e38946b41 100644 (file)
@@ -1561,7 +1561,7 @@ serialize_deflist(List *deflist)
 List *
 deserialize_deflist(Datum txt)
 {
-   text       *in = DatumGetTextPP(txt);       /* in case it's toasted */
+   text       *in = DatumGetTextPP(txt);   /* in case it's toasted */
    List       *result = NIL;
    int         len = VARSIZE_ANY_EXHDR(in);
    char       *ptr,
@@ -1582,7 +1582,7 @@ deserialize_deflist(Datum txt)
    } ds_state;
    ds_state    state = CS_WAITKEY;
 
-   workspace = (char *) palloc(len + 1);       /* certainly enough room */
+   workspace = (char *) palloc(len + 1);   /* certainly enough room */
    ptr = VARDATA_ANY(in);
    endptr = ptr + len;
    for (; ptr < endptr; ptr++)
index e7ecc4ed7e53ef26c97850f988698ab81651b718..4e083eb3456b3de54b9a8f452680f0cfb25140a9 100644 (file)
@@ -606,11 +606,11 @@ DefineType(ParseState *pstate, List *names, List *parameters)
    address =
        TypeCreate(InvalidOid,  /* no predetermined type OID */
                   typeName,    /* type name */
-                  typeNamespace,       /* namespace */
+                  typeNamespace,   /* namespace */
                   InvalidOid,  /* relation oid (n/a here) */
                   0,           /* relation kind (ditto) */
                   GetUserId(), /* owner's ID */
-                  internalLength,      /* internal size */
+                  internalLength,  /* internal size */
                   TYPTYPE_BASE,    /* type-type (base type) */
                   category,    /* type-category */
                   preferred,   /* is it a preferred type? */
@@ -653,7 +653,7 @@ DefineType(ParseState *pstate, List *names, List *parameters)
               GetUserId(),     /* owner's ID */
               -1,              /* internal size (always varlena) */
               TYPTYPE_BASE,    /* type-type (base type) */
-              TYPCATEGORY_ARRAY,       /* type-category (array) */
+              TYPCATEGORY_ARRAY,   /* type-category (array) */
               false,           /* array types are never preferred */
               delimiter,       /* array element delimiter */
               F_ARRAY_IN,      /* input procedure */
@@ -662,7 +662,7 @@ DefineType(ParseState *pstate, List *names, List *parameters)
               F_ARRAY_SEND,    /* send procedure */
               typmodinOid,     /* typmodin procedure */
               typmodoutOid,    /* typmodout procedure */
-              F_ARRAY_TYPANALYZE,      /* analyze procedure */
+              F_ARRAY_TYPANALYZE,  /* analyze procedure */
               typoid,          /* element type ID */
               true,            /* yes this is an array type */
               InvalidOid,      /* no further array type */
@@ -1033,19 +1033,19 @@ DefineDomain(CreateDomainStmt *stmt)
    address =
        TypeCreate(InvalidOid,  /* no predetermined type OID */
                   domainName,  /* type name */
-                  domainNamespace,     /* namespace */
+                  domainNamespace, /* namespace */
                   InvalidOid,  /* relation oid (n/a here) */
                   0,           /* relation kind (ditto) */
                   GetUserId(), /* owner's ID */
-                  internalLength,      /* internal size */
-                  TYPTYPE_DOMAIN,      /* type-type (domain type) */
+                  internalLength,  /* internal size */
+                  TYPTYPE_DOMAIN,  /* type-type (domain type) */
                   category,    /* type-category */
                   false,       /* domain types are never preferred */
                   delimiter,   /* array element delimiter */
-                  inputProcedure,      /* input procedure */
-                  outputProcedure,     /* output procedure */
+                  inputProcedure,  /* input procedure */
+                  outputProcedure, /* output procedure */
                   receiveProcedure,    /* receive procedure */
-                  sendProcedure,       /* send procedure */
+                  sendProcedure,   /* send procedure */
                   InvalidOid,  /* typmodin procedure - none */
                   InvalidOid,  /* typmodout procedure - none */
                   analyzeProcedure,    /* analyze procedure */
@@ -1054,7 +1054,7 @@ DefineDomain(CreateDomainStmt *stmt)
                   InvalidOid,  /* no arrays for domains (yet) */
                   basetypeoid, /* base type ID */
                   defaultValue,    /* default type value (text) */
-                  defaultValueBin,     /* default type value (binary) */
+                  defaultValueBin, /* default type value (binary) */
                   byValue,     /* passed by value */
                   alignment,   /* required alignment */
                   storage,     /* TOAST strategy */
@@ -1145,7 +1145,7 @@ DefineEnum(CreateEnumStmt *stmt)
    enumTypeAddr =
        TypeCreate(InvalidOid,  /* no predetermined type OID */
                   enumName,    /* type name */
-                  enumNamespace,       /* namespace */
+                  enumNamespace,   /* namespace */
                   InvalidOid,  /* relation oid (n/a here) */
                   0,           /* relation kind (ditto) */
                   GetUserId(), /* owner's ID */
@@ -1191,7 +1191,7 @@ DefineEnum(CreateEnumStmt *stmt)
               GetUserId(),     /* owner's ID */
               -1,              /* internal size (always varlena) */
               TYPTYPE_BASE,    /* type-type (base type) */
-              TYPCATEGORY_ARRAY,       /* type-category (array) */
+              TYPCATEGORY_ARRAY,   /* type-category (array) */
               false,           /* array types are never preferred */
               DEFAULT_TYPDELIM,    /* array element delimiter */
               F_ARRAY_IN,      /* input procedure */
@@ -1200,7 +1200,7 @@ DefineEnum(CreateEnumStmt *stmt)
               F_ARRAY_SEND,    /* send procedure */
               InvalidOid,      /* typmodin procedure - none */
               InvalidOid,      /* typmodout procedure - none */
-              F_ARRAY_TYPANALYZE,      /* analyze procedure */
+              F_ARRAY_TYPANALYZE,  /* analyze procedure */
               enumTypeAddr.objectId,   /* element type ID */
               true,            /* yes this is an array type */
               InvalidOid,      /* no further array type */
@@ -1473,12 +1473,12 @@ DefineRange(CreateRangeStmt *stmt)
    address =
        TypeCreate(InvalidOid,  /* no predetermined type OID */
                   typeName,    /* type name */
-                  typeNamespace,       /* namespace */
+                  typeNamespace,   /* namespace */
                   InvalidOid,  /* relation oid (n/a here) */
                   0,           /* relation kind (ditto) */
                   GetUserId(), /* owner's ID */
                   -1,          /* internal size (always varlena) */
-                  TYPTYPE_RANGE,       /* type-type (range type) */
+                  TYPTYPE_RANGE,   /* type-type (range type) */
                   TYPCATEGORY_RANGE,   /* type-category (range type) */
                   false,       /* range types are never preferred */
                   DEFAULT_TYPDELIM,    /* array element delimiter */
@@ -1491,7 +1491,7 @@ DefineRange(CreateRangeStmt *stmt)
                   F_RANGE_TYPANALYZE,  /* analyze procedure */
                   InvalidOid,  /* element type ID - none */
                   false,       /* this is not an array type */
-                  rangeArrayOid,       /* array type we are about to create */
+                  rangeArrayOid,   /* array type we are about to create */
                   InvalidOid,  /* base type ID (only for domains) */
                   NULL,        /* never a default type value */
                   NULL,        /* no binary form available either */
@@ -1521,7 +1521,7 @@ DefineRange(CreateRangeStmt *stmt)
               GetUserId(),     /* owner's ID */
               -1,              /* internal size (always varlena) */
               TYPTYPE_BASE,    /* type-type (base type) */
-              TYPCATEGORY_ARRAY,       /* type-category (array) */
+              TYPCATEGORY_ARRAY,   /* type-category (array) */
               false,           /* array types are never preferred */
               DEFAULT_TYPDELIM,    /* array element delimiter */
               F_ARRAY_IN,      /* input procedure */
@@ -1530,7 +1530,7 @@ DefineRange(CreateRangeStmt *stmt)
               F_ARRAY_SEND,    /* send procedure */
               InvalidOid,      /* typmodin procedure - none */
               InvalidOid,      /* typmodout procedure - none */
-              F_ARRAY_TYPANALYZE,      /* analyze procedure */
+              F_ARRAY_TYPANALYZE,  /* analyze procedure */
               typoid,          /* element type ID */
               true,            /* yes this is an array type */
               InvalidOid,      /* no further array type */
@@ -1591,14 +1591,14 @@ makeRangeConstructors(const char *name, Oid namespace,
                                                   pronargs[i]);
 
        myself = ProcedureCreate(name,  /* name: same as range type */
-                                namespace,     /* namespace */
+                                namespace, /* namespace */
                                 false, /* replace */
                                 false, /* returns set */
-                                rangeOid,      /* return type */
+                                rangeOid,  /* return type */
                                 BOOTSTRAP_SUPERUSERID, /* proowner */
                                 INTERNALlanguageId,    /* language */
-                                F_FMGR_INTERNAL_VALIDATOR,     /* language validator */
-                                prosrc[i],     /* prosrc */
+                                F_FMGR_INTERNAL_VALIDATOR, /* language validator */
+                                prosrc[i], /* prosrc */
                                 NULL,  /* probin */
                                 false, /* isAgg */
                                 false, /* isWindowFunc */
@@ -1606,8 +1606,8 @@ makeRangeConstructors(const char *name, Oid namespace,
                                 false, /* leakproof */
                                 false, /* isStrict */
                                 PROVOLATILE_IMMUTABLE, /* volatility */
-                                PROPARALLEL_SAFE,      /* parallel safety */
-                                constructorArgTypesVector,     /* parameterTypes */
+                                PROPARALLEL_SAFE,  /* parallel safety */
+                                constructorArgTypesVector, /* parameterTypes */
                                 PointerGetDatum(NULL), /* allParameterTypes */
                                 PointerGetDatum(NULL), /* parameterModes */
                                 PointerGetDatum(NULL), /* parameterNames */
@@ -2131,7 +2131,7 @@ AlterDomainDefault(List *names, Node *defaultRaw)
    ParseState *pstate;
    Relation    rel;
    char       *defaultValue;
-   Node       *defaultExpr = NULL;     /* NULL if no default specified */
+   Node       *defaultExpr = NULL; /* NULL if no default specified */
    Datum       new_record[Natts_pg_type];
    bool        new_record_nulls[Natts_pg_type];
    bool        new_record_repl[Natts_pg_type];
@@ -2226,7 +2226,7 @@ AlterDomainDefault(List *names, Node *defaultRaw)
    /* Rebuild dependencies */
    GenerateTypeDependencies(typTup->typnamespace,
                             domainoid,
-                            InvalidOid,        /* typrelid is n/a */
+                            InvalidOid,    /* typrelid is n/a */
                             0, /* relation kind is n/a */
                             typTup->typowner,
                             typTup->typinput,
@@ -2237,11 +2237,11 @@ AlterDomainDefault(List *names, Node *defaultRaw)
                             typTup->typmodout,
                             typTup->typanalyze,
                             InvalidOid,
-                            false,     /* a domain isn't an implicit array */
+                            false, /* a domain isn't an implicit array */
                             typTup->typbasetype,
                             typTup->typcollation,
                             defaultExpr,
-                            true);     /* Rebuild is true */
+                            true); /* Rebuild is true */
 
    InvokeObjectPostAlterHook(TypeRelationId, domainoid, 0);
 
@@ -3065,12 +3065,12 @@ domainAddConstraint(Oid domainOid, Oid domainNamespace, Oid baseTypeOid,
                              false,    /* Is Deferrable */
                              false,    /* Is Deferred */
                              !constr->skip_validation, /* Is Validated */
-                             InvalidOid,       /* not a relation constraint */
+                             InvalidOid,   /* not a relation constraint */
                              NULL,
                              0,
-                             domainOid,        /* domain constraint */
-                             InvalidOid,       /* no associated index */
-                             InvalidOid,       /* Foreign key fields */
+                             domainOid,    /* domain constraint */
+                             InvalidOid,   /* no associated index */
+                             InvalidOid,   /* Foreign key fields */
                              NULL,
                              NULL,
                              NULL,
@@ -3079,11 +3079,11 @@ domainAddConstraint(Oid domainOid, Oid domainNamespace, Oid baseTypeOid,
                              ' ',
                              ' ',
                              ' ',
-                             NULL,     /* not an exclusion constraint */
-                             expr,     /* Tree form of check constraint */
+                             NULL, /* not an exclusion constraint */
+                             expr, /* Tree form of check constraint */
                              ccbin,    /* Binary form of check constraint */
                              ccsrc,    /* Source form of check constraint */
-                             true,     /* is local */
+                             true, /* is local */
                              0,    /* inhcount */
                              false,    /* connoinherit */
                              false);   /* is_internal */
index 10d6ba9e04cb111ec784218885a37a691a88f96b..24608c27c3320419a652ba37d8065c1357ce4150 100644 (file)
@@ -82,18 +82,17 @@ CreateRole(ParseState *pstate, CreateRoleStmt *stmt)
    char       *password = NULL;    /* user password */
    bool        issuper = false;    /* Make the user a superuser? */
    bool        inherit = true; /* Auto inherit privileges? */
-   bool        createrole = false;     /* Can this user create roles? */
-   bool        createdb = false;       /* Can the user create databases? */
-   bool        canlogin = false;       /* Can this user login? */
+   bool        createrole = false; /* Can this user create roles? */
+   bool        createdb = false;   /* Can the user create databases? */
+   bool        canlogin = false;   /* Can this user login? */
    bool        isreplication = false;  /* Is this a replication role? */
-   bool        bypassrls = false;      /* Is this a row security enabled
-                                        * role? */
+   bool        bypassrls = false;  /* Is this a row security enabled role? */
    int         connlimit = -1; /* maximum connections allowed */
    List       *addroleto = NIL;    /* roles to make this a member of */
-   List       *rolemembers = NIL;      /* roles to be members of this role */
-   List       *adminmembers = NIL;     /* roles to be admins of this role */
-   char       *validUntil = NULL;      /* time the login is valid until */
-   Datum       validUntil_datum;       /* same, as timestamptz Datum */
+   List       *rolemembers = NIL;  /* roles to be members of this role */
+   List       *adminmembers = NIL; /* roles to be admins of this role */
+   char       *validUntil = NULL;  /* time the login is valid until */
+   Datum       validUntil_datum;   /* same, as timestamptz Datum */
    bool        validUntil_null;
    DefElem    *dpassword = NULL;
    DefElem    *dissuper = NULL;
@@ -497,11 +496,11 @@ AlterRole(AlterRoleStmt *stmt)
    int         createrole = -1;    /* Can this user create roles? */
    int         createdb = -1;  /* Can the user create databases? */
    int         canlogin = -1;  /* Can this user login? */
-   int         isreplication = -1;     /* Is this a replication role? */
+   int         isreplication = -1; /* Is this a replication role? */
    int         connlimit = -1; /* maximum connections allowed */
-   List       *rolemembers = NIL;      /* roles to be added/removed */
-   char       *validUntil = NULL;      /* time the login is valid until */
-   Datum       validUntil_datum;       /* same, as timestamptz Datum */
+   List       *rolemembers = NIL;  /* roles to be added/removed */
+   char       *validUntil = NULL;  /* time the login is valid until */
+   Datum       validUntil_datum;   /* same, as timestamptz Datum */
    bool        validUntil_null;
    int         bypassrls = -1;
    DefElem    *dpassword = NULL;
index 153a36086113dc8f4d2897152b9253f42703fbbb..7978c062d75f6f6697a03c996f358a062df16695 100644 (file)
@@ -81,8 +81,8 @@
  * that the potential for improvement was great enough to merit the cost of
  * supporting them.
  */
-#define VACUUM_TRUNCATE_LOCK_CHECK_INTERVAL        20      /* ms */
-#define VACUUM_TRUNCATE_LOCK_WAIT_INTERVAL     50      /* ms */
+#define VACUUM_TRUNCATE_LOCK_CHECK_INTERVAL        20  /* ms */
+#define VACUUM_TRUNCATE_LOCK_WAIT_INTERVAL     50  /* ms */
 #define VACUUM_TRUNCATE_LOCK_TIMEOUT           5000    /* ms */
 
 /*
@@ -112,7 +112,7 @@ typedef struct LVRelStats
    BlockNumber old_rel_pages;  /* previous value of pg_class.relpages */
    BlockNumber rel_pages;      /* total number of pages */
    BlockNumber scanned_pages;  /* number of pages we examined */
-   BlockNumber pinskipped_pages;       /* # of pages we skipped due to a pin */
+   BlockNumber pinskipped_pages;   /* # of pages we skipped due to a pin */
    BlockNumber frozenskipped_pages;    /* # of frozen pages we skipped */
    BlockNumber tupcount_pages; /* pages whose tuples we counted */
    double      scanned_tuples; /* counts only tuples on tupcount_pages */
index a5d6574eaf37a5c370209821e95998c662c5a868..e83e4f455f2b250ae0f995b5774d16b4f2068ce2 100644 (file)
@@ -546,7 +546,7 @@ DefineView(ViewStmt *stmt, const char *queryString,
     * long as the CREATE command is consistent with that --- no explicit
     * schema name.
     */
-   view = copyObject(stmt->view);      /* don't corrupt original command */
+   view = copyObject(stmt->view);  /* don't corrupt original command */
    if (view->relpersistence == RELPERSISTENCE_PERMANENT
        && isQueryUsingTempRelation(viewParse))
    {
index fe12326336c4076081846d6612342a0765ce8f38..61c90a16009acb46f2c78de0cd72de13d8344098 100644 (file)
@@ -344,7 +344,7 @@ ExecBuildProjectionInfo(List *targetList,
            attnum = variable->varattno;
 
            if (inputDesc == NULL)
-               isSafeVar = true;       /* can't check, just assume OK */
+               isSafeVar = true;   /* can't check, just assume OK */
            else if (attnum <= inputDesc->natts)
            {
                Form_pg_attribute attr = inputDesc->attrs[attnum - 1];
@@ -1362,7 +1362,7 @@ ExecInitExprRec(Expr *node, PlanState *parent, ExprState *state,
 
                    /* If WHEN result isn't true, jump to next CASE arm */
                    scratch.opcode = EEOP_JUMP_IF_NOT_TRUE;
-                   scratch.d.jump.jumpdone = -1;       /* computed later */
+                   scratch.d.jump.jumpdone = -1;   /* computed later */
                    ExprEvalPushStep(state, &scratch);
                    whenstep = state->steps_len - 1;
 
@@ -1374,7 +1374,7 @@ ExecInitExprRec(Expr *node, PlanState *parent, ExprState *state,
 
                    /* Emit JUMP step to jump to end of CASE's code */
                    scratch.opcode = EEOP_JUMP;
-                   scratch.d.jump.jumpdone = -1;       /* computed later */
+                   scratch.d.jump.jumpdone = -1;   /* computed later */
                    ExprEvalPushStep(state, &scratch);
 
                    /*
@@ -1720,7 +1720,7 @@ ExecInitExprRec(Expr *node, PlanState *parent, ExprState *state,
 
                    /* if it's not null, skip to end of COALESCE expr */
                    scratch.opcode = EEOP_JUMP_IF_NOT_NULL;
-                   scratch.d.jump.jumpdone = -1;       /* adjust later */
+                   scratch.d.jump.jumpdone = -1;   /* adjust later */
                    ExprEvalPushStep(state, &scratch);
 
                    adjust_jumps = lappend_int(adjust_jumps,
index fed0052fc6db59d3e7d7c235f38ce8c063a144ee..146d1a0becefe5287a9b83bd9b533a578c9f01e5 100644 (file)
@@ -83,7 +83,7 @@
  */
 #ifdef HAVE_COMPUTED_GOTO
 #define EEO_USE_COMPUTED_GOTO
-#endif   /* HAVE_COMPUTED_GOTO */
+#endif                         /* HAVE_COMPUTED_GOTO */
 
 /*
  * Macros for opcode dispatch.
@@ -112,7 +112,7 @@ static const void **dispatch_table = NULL;
 #define EEO_DISPATCH()     goto starteval
 #define EEO_OPCODE(opcode) (opcode)
 
-#endif   /* EEO_USE_COMPUTED_GOTO */
+#endif                         /* EEO_USE_COMPUTED_GOTO */
 
 #define EEO_NEXT() \
    do { \
@@ -256,7 +256,7 @@ ExecReadyInterpretedExpr(ExprState *state)
 
        state->flags |= EEO_FLAG_DIRECT_THREADED;
    }
-#endif   /* EEO_USE_COMPUTED_GOTO */
+#endif                         /* EEO_USE_COMPUTED_GOTO */
 
    state->evalfunc = ExecInterpExpr;
 }
@@ -373,7 +373,7 @@ ExecInterpExpr(ExprState *state, ExprContext *econtext, bool *isnull)
        return PointerGetDatum(dispatch_table);
 #else
    Assert(state != NULL);
-#endif   /* EEO_USE_COMPUTED_GOTO */
+#endif                         /* EEO_USE_COMPUTED_GOTO */
 
    /* setup state */
    op = state->steps;
@@ -1559,7 +1559,7 @@ CheckVarSlotCompatibility(TupleTableSlot *slot, int attnum, Oid vartype)
        TupleDesc   slot_tupdesc = slot->tts_tupleDescriptor;
        Form_pg_attribute attr;
 
-       if (attnum > slot_tupdesc->natts)       /* should never happen */
+       if (attnum > slot_tupdesc->natts)   /* should never happen */
            elog(ERROR, "attribute number %d exceeds number of columns %d",
                 attnum, slot_tupdesc->natts);
 
@@ -2475,7 +2475,7 @@ ExecEvalFieldSelect(ExprState *state, ExprEvalStep *op, ExprContext *econtext)
    if (fieldnum <= 0)          /* should never happen */
        elog(ERROR, "unsupported reference to system column %d in FieldSelect",
             fieldnum);
-   if (fieldnum > tupDesc->natts)      /* should never happen */
+   if (fieldnum > tupDesc->natts)  /* should never happen */
        elog(ERROR, "attribute number %d exceeds number of columns %d",
             fieldnum, tupDesc->natts);
    attr = tupDesc->attrs[fieldnum - 1];
index 108060ac0f17c810a7c33113ccd7a35626fdde4f..4d818309962aeae16dd9c2b79a1a69d6d3d6d953 100644 (file)
@@ -387,7 +387,7 @@ ExecInsertIndexTuples(TupleTableSlot *slot,
            index_insert(indexRelation, /* index relation */
                         values,    /* array of index Datums */
                         isnull,    /* null flags */
-                        tupleid,       /* tid of heap tuple */
+                        tupleid,   /* tid of heap tuple */
                         heapRelation,  /* heap relation */
                         checkUnique,   /* type of uniqueness check to do */
                         indexInfo);    /* index AM may need this */
index 9dbe17565b43eb05af30e66e66a0eb9becd99b32..2e3717d4dd7b27951fb35fb012f85c37ce0f1a07 100644 (file)
@@ -2570,7 +2570,7 @@ EvalPlanQualFetch(EState *estate, Relation relation, int lockmode,
                        break;
                    case LockWaitSkip:
                        if (!ConditionalXactLockTableWait(SnapshotDirty.xmax))
-                           return NULL;        /* skip instead of waiting */
+                           return NULL;    /* skip instead of waiting */
                        break;
                    case LockWaitError:
                        if (!ConditionalXactLockTableWait(SnapshotDirty.xmax))
index c4a955332f7c3d2b267287847b4b36fac7fa0add..9abf0aa15d2e289946321c9bcbc0a2137f239deb 100644 (file)
@@ -244,8 +244,8 @@ ExecDropSingleTupleTableSlot(TupleTableSlot *slot)
  * --------------------------------
  */
 void
-ExecSetSlotDescriptor(TupleTableSlot *slot,        /* slot to change */
-                     TupleDesc tupdesc)        /* new tuple descriptor */
+ExecSetSlotDescriptor(TupleTableSlot *slot, /* slot to change */
+                     TupleDesc tupdesc)    /* new tuple descriptor */
 {
    /* For safety, make sure slot is empty before changing it */
    ExecClearTuple(slot);
index cb2596cb317e293cb525c7a4f0d5fb7c0f87b2e1..25772fc603122917e4322db3c40c365aeafc028d 100644 (file)
@@ -102,7 +102,7 @@ CreateExecutorState(void)
     * Initialize all fields of the Executor State structure
     */
    estate->es_direction = ForwardScanDirection;
-   estate->es_snapshot = InvalidSnapshot;      /* caller must initialize this */
+   estate->es_snapshot = InvalidSnapshot;  /* caller must initialize this */
    estate->es_crosscheck_snapshot = InvalidSnapshot;   /* no crosscheck */
    estate->es_range_table = NIL;
    estate->es_plannedstmt = NULL;
index f15ff64a3b48f8a2947c61e5f25abffa24fd7caf..7199ff6fd72883ed8fe56df1a594092651eed327 100644 (file)
@@ -93,7 +93,7 @@ typedef struct
    char       *fname;          /* function name (for error msgs) */
    char       *src;            /* function body text (for error msgs) */
 
-   SQLFunctionParseInfoPtr pinfo;      /* data for parser callback hooks */
+   SQLFunctionParseInfoPtr pinfo;  /* data for parser callback hooks */
 
    Oid         rettype;        /* actual return type */
    int16       typlen;         /* length of the return type */
@@ -245,13 +245,13 @@ prepare_sql_fn_parse_info(HeapTuple procedureTuple,
                                      Anum_pg_proc_proargnames,
                                      &isNull);
        if (isNull)
-           proargnames = PointerGetDatum(NULL);        /* just to be sure */
+           proargnames = PointerGetDatum(NULL);    /* just to be sure */
 
        proargmodes = SysCacheGetAttr(PROCNAMEARGSNSP, procedureTuple,
                                      Anum_pg_proc_proargmodes,
                                      &isNull);
        if (isNull)
-           proargmodes = PointerGetDatum(NULL);        /* just to be sure */
+           proargmodes = PointerGetDatum(NULL);    /* just to be sure */
 
        n_arg_names = get_func_input_arg_names(proargnames, proargmodes,
                                               &pinfo->argnames);
@@ -648,7 +648,7 @@ init_sql_fcache(FmgrInfo *finfo, Oid collation, bool lazyEvalOK)
    if (IsPolymorphicType(rettype))
    {
        rettype = get_fn_expr_rettype(finfo);
-       if (rettype == InvalidOid)      /* this probably should not happen */
+       if (rettype == InvalidOid)  /* this probably should not happen */
            ereport(ERROR,
                    (errcode(ERRCODE_DATATYPE_MISMATCH),
                     errmsg("could not determine actual result type for function declared to return type %s",
@@ -1544,7 +1544,7 @@ check_sql_fn_retval(Oid func_id, Oid rettype, List *queryTreeList,
    AssertArg(!IsPolymorphicType(rettype));
 
    if (modifyTargetList)
-       *modifyTargetList = false;      /* initialize for no change */
+       *modifyTargetList = false;  /* initialize for no change */
    if (junkFilter)
        *junkFilter = NULL;     /* initialize in case of VOID result */
 
@@ -1770,7 +1770,7 @@ check_sql_fn_retval(Oid func_id, Oid rettype, List *queryTreeList,
                                                   InvalidOid,
                                                   sizeof(int32),
                                                   (Datum) 0,
-                                                  true,        /* isnull */
+                                                  true,    /* isnull */
                                                   true /* byval */ );
                    newtlist = lappend(newtlist,
                                       makeTargetEntry(null_expr,
index 96cdfb7ad2a444e7b11124f7b11a3452fae31c97..b0f9520e530c4e76f039bdb5174442090b674e69 100644 (file)
@@ -511,9 +511,9 @@ typedef struct AggStatePerHashData
    FmgrInfo   *eqfunctions;    /* per-grouping-field equality fns */
    int         numCols;        /* number of hash key columns */
    int         numhashGrpCols; /* number of columns in hash table */
-   int         largestGrpColIdx;       /* largest col required for hashing */
-   AttrNumber *hashGrpColIdxInput;     /* hash col indices in input slot */
-   AttrNumber *hashGrpColIdxHash;      /* indices in hashtbl tuples */
+   int         largestGrpColIdx;   /* largest col required for hashing */
+   AttrNumber *hashGrpColIdxInput; /* hash col indices in input slot */
+   AttrNumber *hashGrpColIdxHash;  /* indices in hashtbl tuples */
    Agg        *aggnode;        /* original Agg node, for numGroups etc. */
 }          AggStatePerHashData;
 
@@ -2373,8 +2373,7 @@ agg_retrieve_direct(AggState *aggstate)
                               firstSlot,
                               InvalidBuffer,
                               true);
-               aggstate->grp_firstTuple = NULL;        /* don't keep two
-                                                        * pointers */
+               aggstate->grp_firstTuple = NULL;    /* don't keep two pointers */
 
                /* set up for first advance_aggregates call */
                tmpcontext->ecxt_outertuple = firstSlot;
index 77f65db0ca0bf2cb151466e6d730a1cb4ff5c546..7e0ba030b7fc019e8804c4a8dd4f1a20edbbf74d 100644 (file)
@@ -129,7 +129,7 @@ BitmapHeapNext(BitmapHeapScanState *node)
                node->prefetch_pages = 0;
                node->prefetch_target = -1;
            }
-#endif   /* USE_PREFETCH */
+#endif                         /* USE_PREFETCH */
        }
        else
        {
@@ -182,7 +182,7 @@ BitmapHeapNext(BitmapHeapScanState *node)
                node->shared_prefetch_iterator =
                    tbm_attach_shared_iterate(dsa, pstate->prefetch_iterator);
            }
-#endif   /* USE_PREFETCH */
+#endif                         /* USE_PREFETCH */
        }
        node->initialized = true;
    }
@@ -265,7 +265,7 @@ BitmapHeapNext(BitmapHeapScanState *node)
                    pstate->prefetch_target++;
                SpinLockRelease(&pstate->mutex);
            }
-#endif   /* USE_PREFETCH */
+#endif                         /* USE_PREFETCH */
        }
 
        /*
@@ -514,7 +514,7 @@ BitmapAdjustPrefetchIterator(BitmapHeapScanState *node,
                tbm_shared_iterate(prefetch_iterator);
        }
    }
-#endif   /* USE_PREFETCH */
+#endif                         /* USE_PREFETCH */
 }
 
 /*
@@ -558,7 +558,7 @@ BitmapAdjustPrefetchTarget(BitmapHeapScanState *node)
            pstate->prefetch_target++;
        SpinLockRelease(&pstate->mutex);
    }
-#endif   /* USE_PREFETCH */
+#endif                         /* USE_PREFETCH */
 }
 
 /*
@@ -634,7 +634,7 @@ BitmapPrefetch(BitmapHeapScanState *node, HeapScanDesc scan)
            }
        }
    }
-#endif   /* USE_PREFETCH */
+#endif                         /* USE_PREFETCH */
 }
 
 /*
index ce2f3210a4a01d00d30b48b8430be5dac625346b..c9f8b7c7fbaa29ed088aaf61c9bed82ac208a68f 100644 (file)
@@ -73,7 +73,7 @@ MultiExecBitmapIndexScan(BitmapIndexScanState *node)
    if (node->biss_result)
    {
        tbm = node->biss_result;
-       node->biss_result = NULL;       /* reset for next time */
+       node->biss_result = NULL;   /* reset for next time */
    }
    else
    {
index c0f261407bfb1072914ad18cbe563e130894e34f..4f0ddc6dffda46ecb19ad6f56a1986725efa441b 100644 (file)
@@ -150,7 +150,7 @@ MultiExecBitmapOr(BitmapOrState *node)
                elog(ERROR, "unrecognized result from subplan");
 
            if (result == NULL)
-               result = subresult;     /* first subplan */
+               result = subresult; /* first subplan */
            else
            {
                tbm_union(result, subresult);
index c1db2e263bf4ddc61d7c8ada7241ff78efe7bc94..f83cd584d7de2a66a1cc942eba087036a9354a6a 100644 (file)
@@ -258,7 +258,7 @@ gather_getnext(GatherState *gatherstate)
 
            if (HeapTupleIsValid(tup))
            {
-               ExecStoreTuple(tup,     /* tuple to store */
+               ExecStoreTuple(tup, /* tuple to store */
                               fslot,   /* slot in which to store the tuple */
                               InvalidBuffer,   /* buffer associated with this
                                                 * tuple */
index e066574836b687e8fdc2ae7a4d94a462e06c9286..b1965f5e1c46069208377c27a4534c82abdaeffd 100644 (file)
@@ -597,7 +597,7 @@ gather_merge_readnext(GatherMergeState *gm_state, int reader, bool nowait)
    ExecStoreTuple(tup,         /* tuple to store */
                   gm_state->gm_slots[reader],  /* slot in which to store the
                                                 * tuple */
-                  InvalidBuffer,       /* buffer associated with this tuple */
+                  InvalidBuffer,   /* buffer associated with this tuple */
                   true);       /* pfree this pointer if not from heap */
 
    return true;
index d9789d071956a426646a2a7d817104aa7c8c741e..6c84ad9989ab498b9325f03704514a335927bcd1 100644 (file)
@@ -1176,7 +1176,7 @@ ExecScanHashTableForUnmatched(HashJoinState *hjstate, ExprContext *econtext)
                /* insert hashtable's tuple into exec slot */
                inntuple = ExecStoreMinimalTuple(HJTUPLE_MINTUPLE(hashTuple),
                                                 hjstate->hj_HashTupleSlot,
-                                                false);        /* do not pfree */
+                                                false);    /* do not pfree */
                econtext->ecxt_innertuple = inntuple;
 
                /*
index 907090395cc2d33b6469c4a7b770ce7d450dda98..8d2325398b8870a579d17570f9413aaec54748d1 100644 (file)
@@ -618,7 +618,7 @@ ExecHashJoinOuterGetTuple(PlanState *outerNode,
            econtext->ecxt_outertuple = slot;
            if (ExecHashGetHashValue(hashtable, econtext,
                                     hjstate->hj_OuterHashKeys,
-                                    true,      /* outer tuple */
+                                    true,  /* outer tuple */
                                     HJ_FILL_OUTER(hjstate),
                                     hashvalue))
            {
index 0fb3fb5e7ece008bda33b305d556fb1d048b7b98..7e123758b4f20ee788bb24473f6b91604e6a5173 100644 (file)
@@ -138,7 +138,7 @@ IndexNext(IndexScanState *node)
         */
        ExecStoreTuple(tuple,   /* tuple to store */
                       slot,    /* slot to store in */
-                      scandesc->xs_cbuf,       /* buffer containing tuple */
+                      scandesc->xs_cbuf,   /* buffer containing tuple */
                       false);  /* don't pfree */
 
        /*
@@ -284,7 +284,7 @@ next_indextuple:
         */
        ExecStoreTuple(tuple,   /* tuple to store */
                       slot,    /* slot to store in */
-                      scandesc->xs_cbuf,       /* buffer containing tuple */
+                      scandesc->xs_cbuf,   /* buffer containing tuple */
                       false);  /* don't pfree */
 
        /*
@@ -1296,7 +1296,7 @@ ExecIndexBuildScanKeys(PlanState *planstate, Relation index,
                                   flags,
                                   varattno,    /* attribute number to scan */
                                   op_strategy, /* op's strategy */
-                                  op_righttype,        /* strategy subtype */
+                                  op_righttype,    /* strategy subtype */
                                   ((OpExpr *) clause)->inputcollid,    /* collation */
                                   opfuncid,    /* reg proc to use */
                                   scanvalue);  /* constant */
@@ -1421,12 +1421,12 @@ ExecIndexBuildScanKeys(PlanState *planstate, Relation index,
                 */
                ScanKeyEntryInitialize(this_sub_key,
                                       flags,
-                                      varattno,        /* attribute number */
-                                      op_strategy,     /* op's strategy */
+                                      varattno,    /* attribute number */
+                                      op_strategy, /* op's strategy */
                                       op_righttype,    /* strategy subtype */
                                       inputcollation,  /* collation */
-                                      opfuncid,        /* reg proc to use */
-                                      scanvalue);      /* constant */
+                                      opfuncid,    /* reg proc to use */
+                                      scanvalue);  /* constant */
                n_sub_key++;
            }
 
@@ -1558,7 +1558,7 @@ ExecIndexBuildScanKeys(PlanState *planstate, Relation index,
                                   flags,
                                   varattno,    /* attribute number to scan */
                                   op_strategy, /* op's strategy */
-                                  op_righttype,        /* strategy subtype */
+                                  op_righttype,    /* strategy subtype */
                                   saop->inputcollid,   /* collation */
                                   opfuncid,    /* reg proc to use */
                                   scanvalue);  /* constant */
@@ -1608,7 +1608,7 @@ ExecIndexBuildScanKeys(PlanState *planstate, Relation index,
            ScanKeyEntryInitialize(this_scan_key,
                                   flags,
                                   varattno,    /* attribute number to scan */
-                                  InvalidStrategy,     /* no strategy */
+                                  InvalidStrategy, /* no strategy */
                                   InvalidOid,  /* no strategy subtype */
                                   InvalidOid,  /* no collation */
                                   InvalidOid,  /* no reg proc for this */
index 5630eae53d8396ae61bc2aeaeb7243d69d220f0d..f519794cf3a358a0ad0c125a6228e2f88d1b83bb 100644 (file)
@@ -172,7 +172,7 @@ lnext:
                break;
            default:
                elog(ERROR, "unsupported rowmark type");
-               lockmode = LockTupleNoKeyExclusive;     /* keep compiler quiet */
+               lockmode = LockTupleNoKeyExclusive; /* keep compiler quiet */
                break;
        }
 
index 336270f02acddd19c78169d22732f2131d8b514c..94a5e98e3e0766869ffd667e10413e773c034781 100644 (file)
@@ -225,7 +225,7 @@ MJExamineQuals(List *mergeclauses,
                                   &op_strategy,
                                   &op_lefttype,
                                   &op_righttype);
-       if (op_strategy != BTEqualStrategyNumber)       /* should not happen */
+       if (op_strategy != BTEqualStrategyNumber)   /* should not happen */
            elog(ERROR, "cannot merge using non-equality operator %u",
                 qual->opno);
 
@@ -849,7 +849,7 @@ ExecMergeJoin(MergeJoinState *node)
                     */
                    TupleTableSlot *result;
 
-                   node->mj_MatchedInner = true;       /* do it only once */
+                   node->mj_MatchedInner = true;   /* do it only once */
 
                    result = MJFillInner(node);
                    if (result)
@@ -951,7 +951,7 @@ ExecMergeJoin(MergeJoinState *node)
                     */
                    TupleTableSlot *result;
 
-                   node->mj_MatchedOuter = true;       /* do it only once */
+                   node->mj_MatchedOuter = true;   /* do it only once */
 
                    result = MJFillOuter(node);
                    if (result)
@@ -1212,7 +1212,7 @@ ExecMergeJoin(MergeJoinState *node)
                     */
                    TupleTableSlot *result;
 
-                   node->mj_MatchedOuter = true;       /* do it only once */
+                   node->mj_MatchedOuter = true;   /* do it only once */
 
                    result = MJFillOuter(node);
                    if (result)
@@ -1274,7 +1274,7 @@ ExecMergeJoin(MergeJoinState *node)
                     */
                    TupleTableSlot *result;
 
-                   node->mj_MatchedInner = true;       /* do it only once */
+                   node->mj_MatchedInner = true;   /* do it only once */
 
                    result = MJFillInner(node);
                    if (result)
@@ -1344,7 +1344,7 @@ ExecMergeJoin(MergeJoinState *node)
                     */
                    TupleTableSlot *result;
 
-                   node->mj_MatchedInner = true;       /* do it only once */
+                   node->mj_MatchedInner = true;   /* do it only once */
 
                    result = MJFillInner(node);
                    if (result)
@@ -1390,7 +1390,7 @@ ExecMergeJoin(MergeJoinState *node)
                     */
                    TupleTableSlot *result;
 
-                   node->mj_MatchedOuter = true;       /* do it only once */
+                   node->mj_MatchedOuter = true;   /* do it only once */
 
                    result = MJFillOuter(node);
                    if (result)
index ff5ad98a91c295e9465c35c6558a058f645b0cb1..11594b58b57e32d2dfd00a0fb6ed5493d57e8b9d 100644 (file)
@@ -1561,8 +1561,7 @@ ExecModifyTable(ModifyTableState *node)
                        elog(ERROR, "ctid is NULL");
 
                    tupleid = (ItemPointer) DatumGetPointer(datum);
-                   tuple_ctid = *tupleid;      /* be sure we don't free
-                                                * ctid!! */
+                   tuple_ctid = *tupleid;  /* be sure we don't free ctid!! */
                    tupleid = &tuple_ctid;
                }
 
@@ -1775,7 +1774,7 @@ ExecInitModifyTable(ModifyTable *node, EState *estate, int eflags)
 
        root_rti = linitial_int(node->partitioned_rels);
        root_oid = getrelid(root_rti, estate->es_range_table);
-       rel = heap_open(root_oid, NoLock);      /* locked by InitPlan */
+       rel = heap_open(root_oid, NoLock);  /* locked by InitPlan */
    }
    else
        rel = mtstate->resultRelInfo->ri_RelationDesc;
index 0247bd23479bf6c56e7121137e2657f392fb98c5..428fd98665eb35c03d0b364e9643d1a4c26ce4b5 100644 (file)
@@ -415,7 +415,7 @@ tablesample_getnext(SampleScanState *scanstate)
    else
    {
        /* continue from previously returned page/tuple */
-       blockno = scan->rs_cblock;      /* current page */
+       blockno = scan->rs_cblock;  /* current page */
    }
 
    /*
index c0e37dcd834c8459aa30a3377995f56b00f1f458..822c6bf20aced5dca9499608243dafb6ec876114 100644 (file)
@@ -90,8 +90,8 @@ SeqNext(SeqScanState *node)
    if (tuple)
        ExecStoreTuple(tuple,   /* tuple to store */
                       slot,    /* slot to store in */
-                      scandesc->rs_cbuf,       /* buffer associated with this
-                                                * tuple */
+                      scandesc->rs_cbuf,   /* buffer associated with this
+                                            * tuple */
                       false);  /* don't pfree this pointer */
    else
        ExecClearTuple(slot);
index 0fb5615da3fe9c627926ec908d7fcfd39d5e97e6..9c7812e519a3a012773398da520d06dfe6d0087c 100644 (file)
@@ -263,7 +263,7 @@ setop_retrieve_direct(SetOpState *setopstate)
                       resultTupleSlot,
                       InvalidBuffer,
                       true);
-       setopstate->grp_firstTuple = NULL;      /* don't keep two pointers */
+       setopstate->grp_firstTuple = NULL;  /* don't keep two pointers */
 
        /* Initialize working state for a new input tuple group */
        initialize_counts(pergroup);
index 4860ec0f4dac077fea06abff3fbbd127d40db639..64be613693ca90f14ab92fb81b9e6af0d1afe7e0 100644 (file)
@@ -382,10 +382,10 @@ TidNext(TidScanState *node)
             * pointers onto disk pages and were not created with palloc() and
             * so should not be pfree()'d.
             */
-           ExecStoreTuple(tuple,       /* tuple to store */
+           ExecStoreTuple(tuple,   /* tuple to store */
                           slot,    /* slot to store in */
-                          buffer,      /* buffer associated with tuple  */
-                          false);      /* don't pfree */
+                          buffer,  /* buffer associated with tuple  */
+                          false);  /* don't pfree */
 
            /*
             * At this point we have an extra pin on the buffer, because
@@ -551,7 +551,7 @@ ExecInitTidScan(TidScan *node, EState *estate, int eflags)
    currentRelation = ExecOpenScanRelation(estate, node->scan.scanrelid, eflags);
 
    tidstate->ss.ss_currentRelation = currentRelation;
-   tidstate->ss.ss_currentScanDesc = NULL;     /* no heap scan here */
+   tidstate->ss.ss_currentScanDesc = NULL; /* no heap scan here */
 
    /*
     * get the scan type from the relation descriptor.
index 433d97c8b4edc755595d3615384e78f9e1d60cdb..1f2cbdde361925be07c4ee2da4f922860c2bbb18 100644 (file)
@@ -1895,7 +1895,7 @@ ExecInitWindowAgg(WindowAgg *node, EState *estate, int eflags)
        AclResult   aclresult;
        int         i;
 
-       if (wfunc->winref != node->winref)      /* planner screwed up? */
+       if (wfunc->winref != node->winref)  /* planner screwed up? */
            elog(ERROR, "WindowFunc with winref %u assigned to WindowAgg with winref %u",
                 wfunc->winref, node->winref);
 
@@ -2209,7 +2209,7 @@ initialize_peragg(WindowAggState *winstate, WindowFunc *wfunc,
    /* build expression trees using actual argument & result types */
    build_aggregate_transfn_expr(inputTypes,
                                 numArguments,
-                                0,     /* no ordered-set window functions yet */
+                                0, /* no ordered-set window functions yet */
                                 false, /* no variadic window functions yet */
                                 aggtranstype,
                                 wfunc->inputcollid,
index 97c39258741f65cea88891f7b239070bcde6b854..9db41813d5daba31dff334a56071df964cbdf7c7 100644 (file)
@@ -43,7 +43,7 @@ int           SPI_result;
 
 static _SPI_connection *_SPI_stack = NULL;
 static _SPI_connection *_SPI_current = NULL;
-static int _SPI_stack_depth = 0;       /* allocated size of _SPI_stack */
+static int _SPI_stack_depth = 0;   /* allocated size of _SPI_stack */
 static int _SPI_connected = -1;    /* current stack index */
 
 static Portal SPI_cursor_open_internal(const char *name, SPIPlanPtr plan,
@@ -119,7 +119,7 @@ SPI_connect(void)
    _SPI_current->lastoid = InvalidOid;
    _SPI_current->tuptable = NULL;
    slist_init(&_SPI_current->tuptables);
-   _SPI_current->procCxt = NULL;       /* in case we fail to create 'em */
+   _SPI_current->procCxt = NULL;   /* in case we fail to create 'em */
    _SPI_current->execCxt = NULL;
    _SPI_current->connectSubid = GetCurrentSubTransactionId();
    _SPI_current->queryEnv = NULL;
@@ -149,7 +149,7 @@ SPI_finish(void)
 {
    int         res;
 
-   res = _SPI_begin_call(false);       /* live in procedure memory */
+   res = _SPI_begin_call(false);   /* live in procedure memory */
    if (res < 0)
        return res;
 
@@ -594,7 +594,7 @@ SPI_saveplan(SPIPlanPtr plan)
        return NULL;
    }
 
-   SPI_result = _SPI_begin_call(false);        /* don't change context */
+   SPI_result = _SPI_begin_call(false);    /* don't change context */
    if (SPI_result < 0)
        return NULL;
 
@@ -1813,7 +1813,7 @@ _SPI_prepare_plan(const char *src, SPIPlanPtr plan)
                           plan->parserSetup,
                           plan->parserSetupArg,
                           plan->cursor_options,
-                          false);      /* not fixed result */
+                          false);  /* not fixed result */
 
        plancache_list = lappend(plancache_list, plansource);
    }
@@ -2668,7 +2668,7 @@ SPI_register_relation(EphemeralNamedRelation enr)
    if (enr == NULL || enr->md.name == NULL)
        return SPI_ERROR_ARGUMENT;
 
-   res = _SPI_begin_call(false);       /* keep current memory context */
+   res = _SPI_begin_call(false);   /* keep current memory context */
    if (res < 0)
        return res;
 
@@ -2702,7 +2702,7 @@ SPI_unregister_relation(const char *name)
    if (name == NULL)
        return SPI_ERROR_ARGUMENT;
 
-   res = _SPI_begin_call(false);       /* keep current memory context */
+   res = _SPI_begin_call(false);   /* keep current memory context */
    if (res < 0)
        return res;
 
index 8d7e711b3bcdee66df149c3d4a21c671190f9559..c086b5b682ce09483d88d2af605e9772646fac2e 100644 (file)
@@ -95,7 +95,7 @@ typedef struct ArrayRemapInfo
    int16       typlen;         /* array element type's storage properties */
    bool        typbyval;
    char        typalign;
-   TupleRemapInfo *element_remap;      /* array element type's remap info */
+   TupleRemapInfo *element_remap;  /* array element type's remap info */
 } ArrayRemapInfo;
 
 typedef struct RangeRemapInfo
@@ -113,7 +113,7 @@ typedef struct RecordRemapInfo
    int32       localtypmod;
    /* If no fields of the record require remapping, these are NULL: */
    TupleDesc   tupledesc;      /* copy of record's tupdesc */
-   TupleRemapInfo **field_remap;       /* each field's remap info */
+   TupleRemapInfo **field_remap;   /* each field's remap info */
 } RecordRemapInfo;
 
 struct TupleRemapInfo
index a108cd150bcced2179f8316a36de12c7b5a7cdb5..af8d656d3e4689f47d9e56468945f6693aae0143 100644 (file)
@@ -108,4 +108,4 @@ slist_check(slist_head *head)
        ;
 }
 
-#endif   /* ILIST_DEBUG */
+#endif                         /* ILIST_DEBUG */
index 28893d351903c3b3ab995043ebf7ece0555fa9fa..b348bce3e2e0895149a391a5e5320c94b7504e84 100644 (file)
@@ -103,7 +103,7 @@ static struct pam_conv pam_passw_conv = {
 static char *pam_passwd = NULL; /* Workaround for Solaris 2.6 brokenness */
 static Port *pam_port_cludge;  /* Workaround for passing "Port *port" into
                                 * pam_passwd_conv_proc */
-#endif   /* USE_PAM */
+#endif                         /* USE_PAM */
 
 
 /*----------------------------------------------------------------
@@ -114,7 +114,7 @@ static Port *pam_port_cludge;   /* Workaround for passing "Port *port" into
 #include <bsd_auth.h>
 
 static int CheckBSDAuth(Port *port, char *user);
-#endif   /* USE_BSD_AUTH */
+#endif                         /* USE_BSD_AUTH */
 
 
 /*----------------------------------------------------------------
@@ -141,7 +141,7 @@ ULONG       (*__ldap_start_tls_sA) (
 #endif
 
 static int CheckLDAPAuth(Port *port);
-#endif   /* USE_LDAP */
+#endif                         /* USE_LDAP */
 
 /*----------------------------------------------------------------
  * Cert authentication
@@ -172,7 +172,7 @@ bool        pg_krb_caseins_users;
 #endif
 
 static int pg_GSS_recvauth(Port *port);
-#endif   /* ENABLE_GSS */
+#endif                         /* ENABLE_GSS */
 
 
 /*----------------------------------------------------------------
@@ -558,7 +558,7 @@ ClientAuthentication(Port *port)
            status = CheckPAMAuth(port, port->user_name, "");
 #else
            Assert(false);
-#endif   /* USE_PAM */
+#endif                         /* USE_PAM */
            break;
 
        case uaBSD:
@@ -566,7 +566,7 @@ ClientAuthentication(Port *port)
            status = CheckBSDAuth(port, port->user_name);
 #else
            Assert(false);
-#endif   /* USE_BSD_AUTH */
+#endif                         /* USE_BSD_AUTH */
            break;
 
        case uaLDAP:
@@ -671,7 +671,7 @@ recv_password_packet(Port *port)
    }
 
    initStringInfo(&buf);
-   if (pq_getmessage(&buf, 1000))      /* receive password */
+   if (pq_getmessage(&buf, 1000))  /* receive password */
    {
        /* EOF - pq_getmessage already logged a suitable message */
        pfree(buf.data);
@@ -1287,7 +1287,7 @@ pg_GSS_recvauth(Port *port)
 
    return ret;
 }
-#endif   /* ENABLE_GSS */
+#endif                         /* ENABLE_GSS */
 
 
 /*----------------------------------------------------------------
@@ -1696,7 +1696,7 @@ pg_SSPI_make_upn(char *accountname,
    pfree(upname);
    return STATUS_OK;
 }
-#endif   /* ENABLE_SSPI */
+#endif                         /* ENABLE_SSPI */
 
 
 
@@ -1715,7 +1715,7 @@ static bool
 interpret_ident_response(const char *ident_response,
                         char *ident_user)
 {
-   const char *cursor = ident_response;        /* Cursor into *ident_response */
+   const char *cursor = ident_response;    /* Cursor into *ident_response */
 
    /*
     * Ident's response, in the telnet tradition, should end in crlf (\r\n).
@@ -1769,7 +1769,7 @@ interpret_ident_response(const char *ident_response,
                    {
                        int         i;  /* Index into *ident_user */
 
-                       cursor++;       /* Go over colon */
+                       cursor++;   /* Go over colon */
                        while (pg_isblank(*cursor))
                            cursor++;   /* skip blanks */
                        /* Rest of line is user name.  Copy it over. */
@@ -1805,7 +1805,7 @@ ident_inet(hbaPort *port)
    const SockAddr remote_addr = port->raddr;
    const SockAddr local_addr = port->laddr;
    char        ident_user[IDENT_USERNAME_MAX + 1];
-   pgsocket    sock_fd = PGINVALID_SOCKET;     /* for talking to Ident server */
+   pgsocket    sock_fd = PGINVALID_SOCKET; /* for talking to Ident server */
    int         rc;             /* Return code from a locally called function */
    bool        ident_return;
    char        remote_addr_s[NI_MAXHOST];
@@ -2010,7 +2010,7 @@ auth_peer(hbaPort *port)
 
    return check_usermap(port->hba->usermap, port->user_name, ident_user, false);
 }
-#endif   /* HAVE_UNIX_SOCKETS */
+#endif                         /* HAVE_UNIX_SOCKETS */
 
 
 /*----------------------------------------------------------------
@@ -2161,8 +2161,8 @@ CheckPAMAuth(Port *port, char *user, char *password)
     * later used inside the PAM conversation to pass the password to the
     * authentication module.
     */
-   pam_passw_conv.appdata_ptr = (char *) password;     /* from password above,
-                                                        * not allocated */
+   pam_passw_conv.appdata_ptr = (char *) password; /* from password above,
+                                                    * not allocated */
 
    /* Optionally, one can set the service name in pg_hba.conf */
    if (port->hba->pamservice && port->hba->pamservice[0] != '\0')
@@ -2249,7 +2249,7 @@ CheckPAMAuth(Port *port, char *user, char *password)
 
    return (retval == PAM_SUCCESS ? STATUS_OK : STATUS_ERROR);
 }
-#endif   /* USE_PAM */
+#endif                         /* USE_PAM */
 
 
 /*----------------------------------------------------------------
@@ -2282,7 +2282,7 @@ CheckBSDAuth(Port *port, char *user)
 
    return STATUS_OK;
 }
-#endif   /* USE_BSD_AUTH */
+#endif                         /* USE_BSD_AUTH */
 
 
 /*----------------------------------------------------------------
@@ -2581,7 +2581,7 @@ CheckLDAPAuth(Port *port)
 
    return STATUS_OK;
 }
-#endif   /* USE_LDAP */
+#endif                         /* USE_LDAP */
 
 
 /*----------------------------------------------------------------
@@ -3071,8 +3071,8 @@ PerformRadiusTransaction(char *server, char *secret, char *portstr, char *identi
        memcpy(cryptvector + 4, packet->vector, RADIUS_VECTOR_LENGTH);  /* request
                                                                         * authenticator, from
                                                                         * original packet */
-       if (packetlength > RADIUS_HEADER_LENGTH)        /* there may be no
-                                                        * attributes at all */
+       if (packetlength > RADIUS_HEADER_LENGTH)    /* there may be no
+                                                    * attributes at all */
            memcpy(cryptvector + RADIUS_HEADER_LENGTH, receive_buffer + RADIUS_HEADER_LENGTH, packetlength - RADIUS_HEADER_LENGTH);
        memcpy(cryptvector + packetlength, secret, strlen(secret));
 
index 9033dd4da822692d02a7a1b4d7019ab8794e4c61..3a0bb4ca0a4e4d4429690864460dc5088e3a4a94 100644 (file)
@@ -796,7 +796,7 @@ lo_get_fragment_internal(Oid loOid, int64 offset, int32 nbytes)
    if (loSize > offset)
    {
        if (nbytes >= 0 && nbytes <= loSize - offset)
-           result_length = nbytes;     /* request is wholly inside LO */
+           result_length = nbytes; /* request is wholly inside LO */
        else
            result_length = loSize - offset;    /* adjust to end of LO */
    }
index 453243414092baa111cb74685b7a67d2ef559027..a1d77969cc2950922fe26d19850271db9d14120c 100644 (file)
@@ -664,7 +664,7 @@ ipv6eq(struct sockaddr_in6 *a, struct sockaddr_in6 *b)
 
    return true;
 }
-#endif   /* HAVE_IPV6 */
+#endif                         /* HAVE_IPV6 */
 
 /*
  * Check whether host name matches pattern.
@@ -1022,7 +1022,7 @@ parse_hba_line(TokenizedLine *tok_line, int elevel)
            *err_msg = "hostssl record cannot match because SSL is not supported by this build";
 #endif
        }
-       else if (token->string[4] == 'n')       /* "hostnossl" */
+       else if (token->string[4] == 'n')   /* "hostnossl" */
        {
            parsedline->conntype = ctHostNoSSL;
        }
@@ -1726,7 +1726,7 @@ parse_hba_auth_opt(char *name, char *val, HbaLine *hbaline,
        hbaline->ldapbasedn = pstrdup(urldata->lud_dn);
 
        if (urldata->lud_attrs)
-           hbaline->ldapsearchattribute = pstrdup(urldata->lud_attrs[0]);      /* only use first one */
+           hbaline->ldapsearchattribute = pstrdup(urldata->lud_attrs[0]);  /* only use first one */
        hbaline->ldapscope = urldata->lud_scope;
        if (urldata->lud_filter)
        {
@@ -1743,7 +1743,7 @@ parse_hba_auth_opt(char *name, char *val, HbaLine *hbaline,
                (errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
                 errmsg("LDAP URLs not supported on this platform")));
        *err_msg = "LDAP URLs not supported on this platform";
-#endif   /* not OpenLDAP */
+#endif                         /* not OpenLDAP */
    }
    else if (strcmp(name, "ldaptls") == 0)
    {
index b5f324341040b2e8eadffff04c320672ac718654..53bf6bcd80ffbc15c890a6076e626913e7abdbcb 100644 (file)
@@ -99,7 +99,7 @@ range_sockaddr_AF_INET6(const struct sockaddr_in6 *addr,
 
    return 1;
 }
-#endif   /* HAVE_IPV6 */
+#endif                         /* HAVE_IPV6 */
 
 /*
  * pg_sockaddr_cidr_mask - make a network mask of the appropriate family
@@ -471,7 +471,7 @@ pg_foreach_ifaddr(PgIfAddrCallback callback, void *cb_data)
 #define _SIZEOF_ADDR_IFREQ(ifr) \
    sizeof (struct ifreq)
 #endif
-#endif   /* !_SIZEOF_ADDR_IFREQ */
+#endif                         /* !_SIZEOF_ADDR_IFREQ */
 
 /*
  * Enumerate the system's network interface addresses and call the callback
@@ -589,6 +589,6 @@ pg_foreach_ifaddr(PgIfAddrCallback callback, void *cb_data)
 
    return 0;
 }
-#endif   /* !defined(SIOCGIFCONF) */
+#endif                         /* !defined(SIOCGIFCONF) */
 
-#endif   /* !HAVE_GETIFADDRS */
+#endif                         /* !HAVE_GETIFADDRS */
index 1dffa98c44e513a37797856d6a22527ef6741503..98e408100d7f814ce11b4eeeec881067ad49e451 100644 (file)
@@ -149,7 +149,7 @@ static int  internal_flush(void);
 #ifdef HAVE_UNIX_SOCKETS
 static int Lock_AF_UNIX(char *unixSocketDir, char *unixSocketPath);
 static int Setup_AF_UNIX(char *sock_path);
-#endif   /* HAVE_UNIX_SOCKETS */
+#endif                         /* HAVE_UNIX_SOCKETS */
 
 static PQcommMethods PqCommSocketMethods = {
    socket_comm_reset,
@@ -253,7 +253,7 @@ socket_close(int code, Datum arg)
 
        if (MyProcPort->gss->cred != GSS_C_NO_CREDENTIAL)
            gss_release_cred(&min_s, &MyProcPort->gss->cred);
-#endif   /* ENABLE_GSS */
+#endif                         /* ENABLE_GSS */
 
        /*
         * GSS and SSPI share the port->gss struct.  Since nowhere else does a
@@ -261,7 +261,7 @@ socket_close(int code, Datum arg)
         * BackendInitialize().
         */
        free(MyProcPort->gss);
-#endif   /* ENABLE_GSS || ENABLE_SSPI */
+#endif                         /* ENABLE_GSS || ENABLE_SSPI */
 
        /*
         * Cleanly shut down SSL layer.  Nowhere else does a postmaster child
@@ -362,7 +362,7 @@ StreamServerPort(int family, char *hostName, unsigned short portNumber,
        service = unixSocketPath;
    }
    else
-#endif   /* HAVE_UNIX_SOCKETS */
+#endif                         /* HAVE_UNIX_SOCKETS */
    {
        snprintf(portNumberStr, sizeof(portNumberStr), "%d", portNumber);
        service = portNumberStr;
@@ -680,7 +680,7 @@ Setup_AF_UNIX(char *sock_path)
    }
    return STATUS_OK;
 }
-#endif   /* HAVE_UNIX_SOCKETS */
+#endif                         /* HAVE_UNIX_SOCKETS */
 
 
 /*
@@ -858,8 +858,8 @@ TouchSocketFiles(void)
 #else                          /* !HAVE_UTIME */
 #ifdef HAVE_UTIMES
        utimes(sock_path, NULL);
-#endif   /* HAVE_UTIMES */
-#endif   /* HAVE_UTIME */
+#endif                         /* HAVE_UTIMES */
+#endif                         /* HAVE_UTIME */
    }
 }
 
@@ -1704,11 +1704,11 @@ pq_getkeepalivesidle(Port *port)
            elog(LOG, "getsockopt(TCP_KEEPALIVE) failed: %m");
            port->default_keepalives_idle = -1; /* don't know */
        }
-#endif   /* TCP_KEEPIDLE */
+#endif                         /* TCP_KEEPIDLE */
 #else                          /* WIN32 */
        /* We can't get the defaults on Windows, so return "don't know" */
        port->default_keepalives_idle = -1;
-#endif   /* WIN32 */
+#endif                         /* WIN32 */
    }
 
    return port->default_keepalives_idle;
@@ -1733,7 +1733,7 @@ pq_setkeepalivesidle(int idle, Port *port)
        if (pq_getkeepalivesidle(port) < 0)
        {
            if (idle == 0)
-               return STATUS_OK;       /* default is set but unknown */
+               return STATUS_OK;   /* default is set but unknown */
            else
                return STATUS_ERROR;
        }
@@ -1792,12 +1792,12 @@ pq_getkeepalivesinterval(Port *port)
                       &size) < 0)
        {
            elog(LOG, "getsockopt(TCP_KEEPINTVL) failed: %m");
-           port->default_keepalives_interval = -1;     /* don't know */
+           port->default_keepalives_interval = -1; /* don't know */
        }
 #else
        /* We can't get the defaults on Windows, so return "don't know" */
        port->default_keepalives_interval = -1;
-#endif   /* WIN32 */
+#endif                         /* WIN32 */
    }
 
    return port->default_keepalives_interval;
@@ -1822,7 +1822,7 @@ pq_setkeepalivesinterval(int interval, Port *port)
        if (pq_getkeepalivesinterval(port) < 0)
        {
            if (interval == 0)
-               return STATUS_OK;       /* default is set but unknown */
+               return STATUS_OK;   /* default is set but unknown */
            else
                return STATUS_ERROR;
        }
@@ -1872,7 +1872,7 @@ pq_getkeepalivescount(Port *port)
                       &size) < 0)
        {
            elog(LOG, "getsockopt(TCP_KEEPCNT) failed: %m");
-           port->default_keepalives_count = -1;        /* don't know */
+           port->default_keepalives_count = -1;    /* don't know */
        }
    }
 
@@ -1897,7 +1897,7 @@ pq_setkeepalivescount(int count, Port *port)
        if (pq_getkeepalivescount(port) < 0)
        {
            if (count == 0)
-               return STATUS_OK;       /* default is set but unknown */
+               return STATUS_OK;   /* default is set but unknown */
            else
                return STATUS_ERROR;
        }
index 8846865ba3612f4608a06f9d455b57c4b2acb888..7c7cddbdb15cf677c51a7ba4fa7ed3dc2246878c 100644 (file)
@@ -217,7 +217,7 @@ main(int argc, char *argv[])
 #endif
 
    if (argc > 1 && strcmp(argv[1], "--boot") == 0)
-       AuxiliaryProcessMain(argc, argv);       /* does not return */
+       AuxiliaryProcessMain(argc, argv);   /* does not return */
    else if (argc > 1 && strcmp(argv[1], "--describe-config") == 0)
        GucInfoMain();          /* does not return */
    else if (argc > 1 && strcmp(argv[1], "--single") == 0)
@@ -225,7 +225,7 @@ main(int argc, char *argv[])
                     NULL,      /* no dbname */
                     strdup(get_user_name_or_exit(progname)));  /* does not return */
    else
-       PostmasterMain(argc, argv);     /* does not return */
+       PostmasterMain(argc, argv); /* does not return */
    abort();                    /* should not get here */
 }
 
@@ -283,10 +283,10 @@ startup_hacks(const char *progname)
        {
            _set_FMA3_enable(0);
        }
-#endif   /* defined(_M_AMD64) && _MSC_VER == 1800 */
+#endif                         /* defined(_M_AMD64) && _MSC_VER == 1800 */
 
    }
-#endif   /* WIN32 */
+#endif                         /* WIN32 */
 
    /*
     * Initialize dummy_spinlock, in case we are on a platform where we have
@@ -419,5 +419,5 @@ check_root(const char *progname)
                  "more information on how to properly start the server.\n");
        exit(1);
    }
-#endif   /* WIN32 */
+#endif                         /* WIN32 */
 }
index ed51e1f6e09bb0ceed5df7e726be36ce81d3aa09..91d64b7331e9c10291b386521929b4a3c0fcbad6 100644 (file)
@@ -2311,7 +2311,7 @@ _equalParamRef(const ParamRef *a, const ParamRef *b)
 static bool
 _equalAConst(const A_Const *a, const A_Const *b)
 {
-   if (!equal(&a->val, &b->val))       /* hack for in-line Value field */
+   if (!equal(&a->val, &b->val))   /* hack for in-line Value field */
        return false;
    COMPARE_LOCATION_FIELD(location);
 
index f09aa248d834f43c8fff7596137489448fb11f1a..acaf4b53153c18ff038504b1752f851f7f9e3f37 100644 (file)
@@ -52,7 +52,7 @@ check_list_invariants(const List *list)
 }
 #else
 #define check_list_invariants(l)
-#endif   /* USE_ASSERT_CHECKING */
+#endif                         /* USE_ASSERT_CHECKING */
 
 /*
  * Return a freshly allocated List. Since empty non-NIL lists are
index f5fde1533f2679218c8b6b126f554804f6d7732d..0755039da9fb97c5150c090cb288c5bc8b8e7995 100644 (file)
@@ -522,8 +522,8 @@ makeFuncExpr(Oid funcid, Oid rettype, List *args,
    funcexpr = makeNode(FuncExpr);
    funcexpr->funcid = funcid;
    funcexpr->funcresulttype = rettype;
-   funcexpr->funcretset = false;       /* only allowed case here */
-   funcexpr->funcvariadic = false;     /* only allowed case here */
+   funcexpr->funcretset = false;   /* only allowed case here */
+   funcexpr->funcvariadic = false; /* only allowed case here */
    funcexpr->funcformat = fformat;
    funcexpr->funccollid = funccollid;
    funcexpr->inputcollid = inputcollid;
index 2cceb99fd98381cce0672ab3d54f5dfa569329af..c87fb300d6da9f83d30486205520f66563b95157 100644 (file)
@@ -1007,10 +1007,10 @@ exprSetCollation(Node *expr, Oid collation)
            ((NullIfExpr *) expr)->opcollid = collation;
            break;
        case T_ScalarArrayOpExpr:
-           Assert(!OidIsValid(collation));     /* result is always boolean */
+           Assert(!OidIsValid(collation)); /* result is always boolean */
            break;
        case T_BoolExpr:
-           Assert(!OidIsValid(collation));     /* result is always boolean */
+           Assert(!OidIsValid(collation)); /* result is always boolean */
            break;
        case T_SubLink:
 #ifdef USE_ASSERT_CHECKING
@@ -1036,13 +1036,13 @@ exprSetCollation(Node *expr, Oid collation)
                    Assert(!OidIsValid(collation));
                }
            }
-#endif   /* USE_ASSERT_CHECKING */
+#endif                         /* USE_ASSERT_CHECKING */
            break;
        case T_FieldSelect:
            ((FieldSelect *) expr)->resultcollid = collation;
            break;
        case T_FieldStore:
-           Assert(!OidIsValid(collation));     /* result is always composite */
+           Assert(!OidIsValid(collation)); /* result is always composite */
            break;
        case T_RelabelType:
            ((RelabelType *) expr)->resultcollid = collation;
@@ -1054,7 +1054,7 @@ exprSetCollation(Node *expr, Oid collation)
            ((ArrayCoerceExpr *) expr)->resultcollid = collation;
            break;
        case T_ConvertRowtypeExpr:
-           Assert(!OidIsValid(collation));     /* result is always composite */
+           Assert(!OidIsValid(collation)); /* result is always composite */
            break;
        case T_CaseExpr:
            ((CaseExpr *) expr)->casecollid = collation;
@@ -1063,10 +1063,10 @@ exprSetCollation(Node *expr, Oid collation)
            ((ArrayExpr *) expr)->array_collid = collation;
            break;
        case T_RowExpr:
-           Assert(!OidIsValid(collation));     /* result is always composite */
+           Assert(!OidIsValid(collation)); /* result is always composite */
            break;
        case T_RowCompareExpr:
-           Assert(!OidIsValid(collation));     /* result is always boolean */
+           Assert(!OidIsValid(collation)); /* result is always boolean */
            break;
        case T_CoalesceExpr:
            ((CoalesceExpr *) expr)->coalescecollid = collation;
@@ -1075,7 +1075,7 @@ exprSetCollation(Node *expr, Oid collation)
            ((MinMaxExpr *) expr)->minmaxcollid = collation;
            break;
        case T_SQLValueFunction:
-           Assert(!OidIsValid(collation));     /* no collatable results */
+           Assert(!OidIsValid(collation)); /* no collatable results */
            break;
        case T_XmlExpr:
            Assert((((XmlExpr *) expr)->op == IS_XMLSERIALIZE) ?
@@ -1083,10 +1083,10 @@ exprSetCollation(Node *expr, Oid collation)
                   (collation == InvalidOid));
            break;
        case T_NullTest:
-           Assert(!OidIsValid(collation));     /* result is always boolean */
+           Assert(!OidIsValid(collation)); /* result is always boolean */
            break;
        case T_BooleanTest:
-           Assert(!OidIsValid(collation));     /* result is always boolean */
+           Assert(!OidIsValid(collation)); /* result is always boolean */
            break;
        case T_CoerceToDomain:
            ((CoerceToDomain *) expr)->resultcollid = collation;
@@ -1098,11 +1098,11 @@ exprSetCollation(Node *expr, Oid collation)
            ((SetToDefault *) expr)->collation = collation;
            break;
        case T_CurrentOfExpr:
-           Assert(!OidIsValid(collation));     /* result is always boolean */
+           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));
index 0fb08b94db64594e0c0238a4cb67c3579372c9bc..ac0cb3bc22e3dd7a8b8242560f167f42561c9cf1 100644 (file)
@@ -120,7 +120,7 @@ EstimateParamListSpace(ParamListInfo paramLI)
        }
 
        sz = add_size(sz, sizeof(Oid)); /* space for type OID */
-       sz = add_size(sz, sizeof(uint16));      /* space for pflags */
+       sz = add_size(sz, sizeof(uint16));  /* space for pflags */
 
        /* space for datum/isnull */
        if (OidIsValid(typeOid))
index 84147f975417c221a9fee7500a5f902676b689d4..2988e8bd16d15829216acdfa7226d0c671e04798 100644 (file)
@@ -446,8 +446,7 @@ _readRangeVar(void)
 {
    READ_LOCALS(RangeVar);
 
-   local_node->catalogname = NULL;     /* not currently saved in output
-                                        * format */
+   local_node->catalogname = NULL; /* not currently saved in output format */
 
    READ_STRING_FIELD(schemaname);
    READ_STRING_FIELD(relname);
@@ -539,7 +538,7 @@ _readConst(void)
 
    token = pg_strtok(&length); /* skip :constvalue */
    if (local_node->constisnull)
-       token = pg_strtok(&length);     /* skip "<>" */
+       token = pg_strtok(&length); /* skip "<>" */
    else
        local_node->constvalue = readDatum(local_node->constbyval);
 
index bbd39a2ed933e54c2d14d809aae2805a7409cbf3..06f20a21480b04c7c82477659b7af40bd79d35b4 100644 (file)
@@ -216,7 +216,7 @@ typedef struct PTIterationArray
  */
 struct TBMSharedIterator
 {
-   TBMSharedIteratorState *state;      /* shared state */
+   TBMSharedIteratorState *state;  /* shared state */
    PTEntryArray *ptbase;       /* pagetable element array */
    PTIterationArray *ptpages;  /* sorted exact page index list */
    PTIterationArray *ptchunks; /* sorted lossy page index list */
@@ -297,8 +297,8 @@ tbm_create(long maxbytes, dsa_area *dsa)
     */
    nbuckets = maxbytes /
        (sizeof(PagetableEntry) + sizeof(Pointer) + sizeof(Pointer));
-   nbuckets = Min(nbuckets, INT_MAX - 1);      /* safety limit */
-   nbuckets = Max(nbuckets, 16);       /* sanity limit */
+   nbuckets = Min(nbuckets, INT_MAX - 1);  /* safety limit */
+   nbuckets = Max(nbuckets, 16);   /* sanity limit */
    tbm->maxentries = (int) nbuckets;
    tbm->lossify_start = 0;
    tbm->dsa = dsa;
index c72081e81af314fcb660f3ad0b0aebb63c36a5dd..d05327d8abde9a2523497158564bea4da94e245c 100644 (file)
@@ -121,4 +121,4 @@ cx(PlannerInfo *root, Gene *tour1, Gene *tour2, Gene *offspring,
    return num_diffs;
 }
 
-#endif   /* defined(CX) */
+#endif                         /* defined(CX) */
index 173be44409342efd39aed1d793dd955647a0f24f..fbabe2e25a34cba1ccfdea61d1eff226f5e9b179 100644 (file)
@@ -468,4 +468,4 @@ edge_failure(PlannerInfo *root, Gene *gene, int index, Edge *edge_table, int num
    return 0;                   /* to keep the compiler quiet */
 }
 
-#endif   /* defined(ERX) */
+#endif                         /* defined(ERX) */
index 503a19f6d683cae98e45a98946f35c17c1c46bba..937cb5fe0fe4c6b56ea0bdbe12ccacae9b6e9f6f 100644 (file)
@@ -129,4 +129,4 @@ print_edge_table(FILE *fp, Edge *edge_table, int num_gene)
    fflush(fp);
 }
 
-#endif   /* GEQO_DEBUG */
+#endif                         /* GEQO_DEBUG */
index c6af00a2a76e5c0b373607078600a0f466c3d071..2af0295d6945bf540f183fd623847c96816183ca 100644 (file)
@@ -63,4 +63,4 @@ geqo_mutation(PlannerInfo *root, Gene *tour, int num_gene)
    }
 }
 
-#endif   /* defined(CX) */
+#endif                         /* defined(CX) */
index 891cfa2403d7b2d928dd4e81e3cf45a255e526bf..53dacb811f6a8a7b65676baf0b3d45b8e30c26aa 100644 (file)
@@ -92,4 +92,4 @@ ox1(PlannerInfo *root, Gene *tour1, Gene *tour2, Gene *offspring, int num_gene,
 
 }
 
-#endif   /* defined(OX1) */
+#endif                         /* defined(OX1) */
index b43455d3eb60be35b754835ac9e5a9e073278f7d..8d5baa9826f45e4523c1c2beda2379b501359cf1 100644 (file)
@@ -109,4 +109,4 @@ ox2(PlannerInfo *root, Gene *tour1, Gene *tour2, Gene *offspring, int num_gene,
 
 }
 
-#endif   /* defined(OX2) */
+#endif                         /* defined(OX2) */
index e9485cc8b5c6e61110c7adb614a418f52a63a502..ddbc78172c0dc79c86e64f68323cce1e83f1c226 100644 (file)
@@ -221,4 +221,4 @@ pmx(PlannerInfo *root, Gene *tour1, Gene *tour2, Gene *offspring, int num_gene)
    pfree(check_list);
 }
 
-#endif   /* defined(PMX) */
+#endif                         /* defined(PMX) */
index 0f7a26c9a14f6b60ed9bd6acf90b30b98bfb6a0a..596a2cda20d14bbf4bc31890b2d420d7f72c15be 100644 (file)
@@ -54,7 +54,7 @@ alloc_pool(PlannerInfo *root, int pool_size, int string_length)
    new_pool->data = (Chromosome *) palloc(pool_size * sizeof(Chromosome));
 
    /* all gene */
-   chromo = (Chromosome *) new_pool->data;     /* vector of all chromos */
+   chromo = (Chromosome *) new_pool->data; /* vector of all chromos */
    for (i = 0; i < pool_size; i++)
        chromo[i].string = palloc((string_length + 1) * sizeof(Gene));
 
index f7f615462c6f093e4c8c1c866b8dd6136f87b4a6..2e7748c5aabe1266a3ad45dab1df274181db8372 100644 (file)
@@ -107,4 +107,4 @@ px(PlannerInfo *root, Gene *tour1, Gene *tour2, Gene *offspring, int num_gene,
 
 }
 
-#endif   /* defined(PX) */
+#endif                         /* defined(PX) */
index a61547c16d874224d5760bbb2fb28dfb374f763a..eb6ab428088d970e3ef336c97a0974f161b7d4dd 100644 (file)
@@ -89,4 +89,4 @@ free_city_table(PlannerInfo *root, City *city_table)
    pfree(city_table);
 }
 
-#endif   /* CX || PX || OX1 || OX2 */
+#endif                         /* CX || PX || OX1 || OX2 */
index 78ca55bbd6dc1049f624bb0c401fee823dab1168..23b524fce520591e07912bb31b7fdb05bbb98d85 100644 (file)
+++ b/