Phase 2 of pgindent updates.
authorTom Lane
Wed, 21 Jun 2017 19:18:54 +0000 (15:18 -0400)
committerTom Lane
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/[email protected]
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  and
 #include 
 #include 
 
-#endif   /* DMETAPHONE_MAIN */
+#endif                         /* DMETAPHONE_MAIN */
 
 #include 
 #include 
@@ -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 
 #include 
 #include 
-#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 
 
 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)
@@ -159,7 +159,7 @@ make_one_rel(PlannerInfo *root, List *joinlist)
        if (brel == NULL)
            continue;
 
-       Assert(brel->relid == rti);     /* sanity check on array */
+       Assert(brel->relid == rti); /* sanity check on array */
 
        /* ignore RTEs that are "other rels" */
        if (brel->reloptkind != RELOPT_BASEREL)
@@ -258,7 +258,7 @@ set_base_rel_sizes(PlannerInfo *root)
        if (rel == NULL)
            continue;
 
-       Assert(rel->relid == rti);      /* sanity check on array */
+       Assert(rel->relid == rti);  /* sanity check on array */
 
        /* ignore RTEs that are "other rels" */
        if (rel->reloptkind != RELOPT_BASEREL)
@@ -300,7 +300,7 @@ set_base_rel_pathlists(PlannerInfo *root)
        if (rel == NULL)
            continue;
 
-       Assert(rel->relid == rti);      /* sanity check on array */
+       Assert(rel->relid == rti);  /* sanity check on array */
 
        /* ignore RTEs that are "other rels" */
        if (rel->reloptkind != RELOPT_BASEREL)
@@ -3442,4 +3442,4 @@ debug_print_rel(PlannerInfo *root, RelOptInfo *rel)
    fflush(stdout);
 }
 
-#endif   /* OPTIMIZER_DEBUG */
+#endif                         /* OPTIMIZER_DEBUG */
index 758ddea4a57690dc8664106bf4d541efe857fb4c..8d09f0b32b51f7159e2557100dc1cca93acafa73 100644 (file)
@@ -31,7 +31,7 @@
  */
 typedef struct RangeQueryClause
 {
-   struct RangeQueryClause *next;      /* next in linked list */
+   struct RangeQueryClause *next;  /* next in linked list */
    Node       *var;            /* The common variable of the clauses */
    bool        have_lobound;   /* found a low-bound clause yet? */
    bool        have_hibound;   /* found a high-bound clause yet? */
@@ -848,7 +848,7 @@ clause_selectivity(PlannerInfo *root,
 
 #ifdef SELECTIVITY_DEBUG
    elog(DEBUG4, "clause_selectivity: s1 %f", s1);
-#endif   /* SELECTIVITY_DEBUG */
+#endif                         /* SELECTIVITY_DEBUG */
 
    return s1;
 }
index 6ed3c634b89c732e7a015dbb1e63a3cc178459c8..c5c4580bc079f9800b340c5bd16bf498747af0ad 100644 (file)
@@ -2963,7 +2963,7 @@ initial_cost_hashjoin(PlannerInfo *root, JoinCostWorkspace *workspace,
     */
    ExecChooseHashTableSize(inner_path_rows,
                            inner_path->pathtarget->width,
-                           true,       /* useskew */
+                           true,   /* useskew */
                            &numbuckets,
                            &numbatches,
                            &num_skew_mcvs);
@@ -4047,7 +4047,7 @@ get_parameterized_baserel_size(PlannerInfo *root, RelOptInfo *rel,
    nrows = rel->tuples *
        clauselist_selectivity(root,
                               allclauses,
-                              rel->relid,      /* do not use 0! */
+                              rel->relid,  /* do not use 0! */
                               JOIN_INNER,
                               NULL);
    nrows = clamp_row_est(nrows);
index 67bd760fb47f2fe564ff59336086d73bcb6e781e..b65bf818b59d12dc6289aec27d8b8c414ca4e2ca 100644 (file)
@@ -244,7 +244,7 @@ process_equivalence(PlannerInfo *root, RestrictInfo *restrictinfo,
        {
            EquivalenceMember *cur_em = (EquivalenceMember *) lfirst(lc2);
 
-           Assert(!cur_em->em_is_child);       /* no children yet */
+           Assert(!cur_em->em_is_child);   /* no children yet */
 
            /*
             * If below an outer join, don't match constants: they're not as
@@ -1704,7 +1704,7 @@ reconsider_outer_join_clause(PlannerInfo *root, RestrictInfo *rinfo,
        {
            EquivalenceMember *cur_em = (EquivalenceMember *) lfirst(lc2);
 
-           Assert(!cur_em->em_is_child);       /* no children yet */
+           Assert(!cur_em->em_is_child);   /* no children yet */
            if (equal(outervar, cur_em->em_expr))
            {
                match = true;
@@ -1834,7 +1834,7 @@ reconsider_full_join_clause(PlannerInfo *root, RestrictInfo *rinfo)
        foreach(lc2, cur_ec->ec_members)
        {
            coal_em = (EquivalenceMember *) lfirst(lc2);
-           Assert(!coal_em->em_is_child);      /* no children yet */
+           Assert(!coal_em->em_is_child);  /* no children yet */
            if (IsA(coal_em->em_expr, CoalesceExpr))
            {
                CoalesceExpr *cexpr = (CoalesceExpr *) coal_em->em_expr;
@@ -1997,7 +1997,7 @@ match_eclasses_to_foreign_key_col(PlannerInfo *root,
    Index       var2varno = fkinfo->ref_relid;
    AttrNumber  var2attno = fkinfo->confkey[colno];
    Oid         eqop = fkinfo->conpfeqop[colno];
-   List       *opfamilies = NIL;       /* compute only if needed */
+   List       *opfamilies = NIL;   /* compute only if needed */
    ListCell   *lc1;
 
    foreach(lc1, root->eq_classes)
index 07ab33902b11f52f5b56ab98320e43019fff2860..97611211f0bc3a6494dc735e092e505b7fa5ebff 100644 (file)
@@ -1170,7 +1170,7 @@ build_paths_for_OR(PlannerInfo *root, RelOptInfo *rel,
                   List *clauses, List *other_clauses)
 {
    List       *result = NIL;
-   List       *all_clauses = NIL;      /* not computed till needed */
+   List       *all_clauses = NIL;  /* not computed till needed */
    ListCell   *lc;
 
    foreach(lc, rel->indexlist)
@@ -1383,7 +1383,7 @@ choose_bitmap_and(PlannerInfo *root, RelOptInfo *rel, List *paths)
 
    Assert(npaths > 0);         /* else caller error */
    if (npaths == 1)
-       return (Path *) linitial(paths);        /* easy case */
+       return (Path *) linitial(paths);    /* easy case */
 
    /*
     * In theory we should consider every nonempty subset of the given paths.
@@ -1650,7 +1650,7 @@ bitmap_and_cost_est(PlannerInfo *root, RelOptInfo *rel, List *paths)
    apath.path.pathtype = T_BitmapAnd;
    apath.path.parent = rel;
    apath.path.pathtarget = rel->reltarget;
-   apath.path.param_info = NULL;       /* not used in bitmap trees */
+   apath.path.param_info = NULL;   /* not used in bitmap trees */
    apath.path.pathkeys = NIL;
    apath.bitmapquals = paths;
    cost_bitmap_and_node(&apath, root);
@@ -1982,7 +1982,7 @@ get_loop_count(PlannerInfo *root, Index cur_relid, Relids outer_relids)
        outer_rel = root->simple_rel_array[outer_relid];
        if (outer_rel == NULL)
            continue;
-       Assert(outer_rel->relid == outer_relid);        /* sanity check on array */
+       Assert(outer_rel->relid == outer_relid);    /* sanity check on array */
 
        /* Other relation could be proven empty, if so ignore */
        if (IS_DUMMY_REL(outer_rel))
@@ -2632,7 +2632,7 @@ match_pathkeys_to_index(IndexOptInfo *index, List *pathkeys,
            return;
    }
 
-   *orderby_clauses_p = orderby_clauses;       /* success! */
+   *orderby_clauses_p = orderby_clauses;   /* success! */
    *clause_columns_p = clause_columns;
 }
 
@@ -3062,7 +3062,7 @@ relation_has_unique_index_for(PlannerInfo *root, RelOptInfo *rel,
 
                if (match_index_to_operand(rexpr, c, ind))
                {
-                   matched = true;     /* column is unique */
+                   matched = true; /* column is unique */
                    break;
                }
            }
@@ -3983,7 +3983,7 @@ adjust_rowcompare_for_index(RowCompareExpr *clause,
            if (!var_on_left)
            {
                expr_op = get_commutator(expr_op);
-               if (!OidIsValid(expr_op))       /* should not happen */
+               if (!OidIsValid(expr_op))   /* should not happen */
                    elog(ERROR, "could not find commutator of member %d(%u,%u) of opfamily %u",
                         op_strategy, lefttype, righttype, opfam);
            }
index c130d2f17f2ece03afeb8bb9e54fefc4f36d9ac5..23aa735296e88f34d61cf874ef517dbd66bf1d76 100644 (file)
@@ -1104,7 +1104,7 @@ generate_mergejoin_paths(PlannerInfo *root,
    }
    num_sortkeys = list_length(innersortkeys);
    if (num_sortkeys > 1 && !useallclauses)
-       trialsortkeys = list_copy(innersortkeys);       /* need modifiable copy */
+       trialsortkeys = list_copy(innersortkeys);   /* need modifiable copy */
    else
        trialsortkeys = innersortkeys;  /* won't really truncate */
 
@@ -1732,7 +1732,7 @@ hash_inner_and_outer(PlannerInfo *root,
 
                    if (outerpath == cheapest_startup_outer &&
                        innerpath == cheapest_total_inner)
-                       continue;       /* already tried it */
+                       continue;   /* already tried it */
 
                    try_hashjoin_path(root,
                                      joinrel,
index 2c269062ecd0e8cea3d96fa0d516770a2736b19d..6933e73018433e4c15088f03bcc0689948e20cfd 100644 (file)
@@ -196,7 +196,7 @@ make_pathkey_from_sortinfo(PlannerInfo *root,
                                      opcintype,
                                      opcintype,
                                      BTEqualStrategyNumber);
-   if (!OidIsValid(equality_op))       /* shouldn't happen */
+   if (!OidIsValid(equality_op))   /* shouldn't happen */
        elog(ERROR, "could not find equality operator for opfamily %u",
             opfamily);
    opfamilies = get_mergejoin_opfamilies(equality_op);
index 19aa4575a93a880d840abafd2db5067a4bf0ae64..b510faa3e11e839df8cd38aa2b8dd0df72ef6658 100644 (file)
@@ -63,9 +63,9 @@
  * ressortgroupref labels.  This is passed down by parent nodes such as Sort
  * and Group, which need these values to be available in their inputs.
  */
-#define CP_EXACT_TLIST     0x0001      /* Plan must return specified tlist */
-#define CP_SMALL_TLIST     0x0002      /* Prefer narrower tlists */
-#define CP_LABEL_TLIST     0x0004      /* tlist must contain sortgrouprefs */
+#define CP_EXACT_TLIST     0x0001  /* Plan must return specified tlist */
+#define CP_SMALL_TLIST     0x0002  /* Prefer narrower tlists */
+#define CP_LABEL_TLIST     0x0004  /* tlist must contain sortgrouprefs */
 
 
 static Plan *create_plan_recurse(PlannerInfo *root, Path *best_path,
@@ -1418,7 +1418,7 @@ create_unique_plan(PlannerInfo *root, UniquePath *best_path, int flags)
             * for the IN clause operators' RHS datatype.
             */
            eqop = get_equality_op_for_ordering_op(sortop, NULL);
-           if (!OidIsValid(eqop))      /* shouldn't happen */
+           if (!OidIsValid(eqop))  /* shouldn't happen */
                elog(ERROR, "could not find equality operator for ordering operator %u",
                     sortop);
 
@@ -2908,7 +2908,7 @@ create_bitmap_subplan(PlannerInfo *root, Path *bitmapqual,
            plan->total_cost = opath->path.total_cost;
            plan->plan_rows =
                clamp_row_est(opath->bitmapselectivity * opath->path.parent->tuples);
-           plan->plan_width = 0;       /* meaningless */
+           plan->plan_width = 0;   /* meaningless */
            plan->parallel_aware = false;
            plan->parallel_safe = opath->path.parallel_safe;
        }
@@ -3394,7 +3394,7 @@ create_worktablescan_plan(PlannerInfo *root, Path *best_path,
        if (!cteroot)           /* shouldn't happen */
            elog(ERROR, "bad levelsup for CTE \"%s\"", rte->ctename);
    }
-   if (cteroot->wt_param_id < 0)       /* shouldn't happen */
+   if (cteroot->wt_param_id < 0)   /* shouldn't happen */
        elog(ERROR, "could not find param ID for CTE \"%s\"", rte->ctename);
 
    /* Sort clauses into best execution order */
@@ -5726,7 +5726,7 @@ prepare_sort_from_pathkeys(Plan *lefttree, List *pathkeys,
                                  NULL,
                                  true);
            tlist = lappend(tlist, tle);
-           lefttree->targetlist = tlist;       /* just in case NIL before */
+           lefttree->targetlist = tlist;   /* just in case NIL before */
        }
 
        /*
@@ -6426,7 +6426,7 @@ make_modifytable(PlannerInfo *root,
    node->partitioned_rels = partitioned_rels;
    node->resultRelations = resultRelations;
    node->resultRelIndex = -1;  /* will be set correctly in setrefs.c */
-   node->rootResultRelIndex = -1;      /* will be set correctly in setrefs.c */
+   node->rootResultRelIndex = -1;  /* will be set correctly in setrefs.c */
    node->plans = subplans;
    if (!onconflict)
    {
index ebd442ad4db8301b9b8e1f1ace34041f3d990c34..63cb055ef00dcd69bd67f7f750330e63308f1db2 100644 (file)
@@ -287,7 +287,7 @@ find_lateral_references(PlannerInfo *root)
        if (brel == NULL)
            continue;
 
-       Assert(brel->relid == rti);     /* sanity check on array */
+       Assert(brel->relid == rti); /* sanity check on array */
 
        /*
         * This bit is less obvious than it might look.  We ignore appendrel
@@ -436,7 +436,7 @@ create_lateral_join_info(PlannerInfo *root)
        if (brel == NULL)
            continue;
 
-       Assert(brel->relid == rti);     /* sanity check on array */
+       Assert(brel->relid == rti); /* sanity check on array */
 
        /* ignore RTEs that are "other rels" */
        if (brel->reloptkind != RELOPT_BASEREL)
@@ -945,7 +945,7 @@ deconstruct_recurse(PlannerInfo *root, Node *jtnode, bool below_outer_join,
                /* JOIN_RIGHT was eliminated during reduce_outer_joins() */
                elog(ERROR, "unrecognized join type: %d",
                     (int) j->jointype);
-               nonnullable_rels = NULL;        /* keep compiler quiet */
+               nonnullable_rels = NULL;    /* keep compiler quiet */
                nullable_rels = NULL;
                leftjoinlist = rightjoinlist = NIL;
                break;
@@ -1214,7 +1214,7 @@ make_outerjoininfo(PlannerInfo *root,
    {
        sjinfo->min_lefthand = bms_copy(left_rels);
        sjinfo->min_righthand = bms_copy(right_rels);
-       sjinfo->lhs_strict = false;     /* don't care about this */
+       sjinfo->lhs_strict = false; /* don't care about this */
        return sjinfo;
    }
 
@@ -2047,7 +2047,7 @@ distribute_qual_to_rels(PlannerInfo *root, Node *clause,
 static bool
 check_outerjoin_delay(PlannerInfo *root,
                      Relids *relids_p, /* in/out parameter */
-                     Relids *nullable_relids_p,        /* output parameter */
+                     Relids *nullable_relids_p,    /* output parameter */
                      bool is_pushed_down)
 {
    Relids      relids;
@@ -2304,8 +2304,8 @@ process_implied_equality(PlannerInfo *root,
     * original (this is necessary in case there are subselects in there...)
     */
    clause = make_opclause(opno,
-                          BOOLOID,     /* opresulttype */
-                          false,       /* opretset */
+                          BOOLOID, /* opresulttype */
+                          false,   /* opretset */
                           copyObject(item1),
                           copyObject(item2),
                           InvalidOid,
@@ -2367,8 +2367,8 @@ build_implied_join_equality(Oid opno,
     * original (this is necessary in case there are subselects in there...)
     */
    clause = make_opclause(opno,
-                          BOOLOID,     /* opresulttype */
-                          false,       /* opretset */
+                          BOOLOID, /* opresulttype */
+                          false,   /* opretset */
                           copyObject(item1),
                           copyObject(item2),
                           InvalidOid,
@@ -2378,12 +2378,12 @@ build_implied_join_equality(Oid opno,
     * Build the RestrictInfo node itself.
     */
    restrictinfo = make_restrictinfo(clause,
-                                    true,      /* is_pushed_down */
-                                    false,     /* outerjoin_delayed */
-                                    false,     /* pseudoconstant */
+                                    true,  /* is_pushed_down */
+                                    false, /* outerjoin_delayed */
+                                    false, /* pseudoconstant */
                                     security_level,    /* security_level */
                                     qualscope, /* required_relids */
-                                    NULL,      /* outer_relids */
+                                    NULL,  /* outer_relids */
                                     nullable_relids);  /* nullable_relids */
 
    /* Set mergejoinability/hashjoinability flags */
index 55657360fc380a6a8b76e44912f66504c38c706b..6d5969cd44cc5d9b2fc8cabe078f1680041eb3b1 100644 (file)
@@ -89,8 +89,8 @@ preprocess_minmax_aggregates(PlannerInfo *root, List *tlist)
    if (!parse->hasAggs)
        return;
 
-   Assert(!parse->setOperations);      /* shouldn't get here if a setop */
-   Assert(parse->rowMarks == NIL);     /* nor if FOR UPDATE */
+   Assert(!parse->setOperations);  /* shouldn't get here if a setop */
+   Assert(parse->rowMarks == NIL); /* nor if FOR UPDATE */
 
    /*
     * Reject unoptimizable cases.
index 74de3b818f7ec0bbd28c3da2198f51f7aaec80fb..f4e0a6ea3dfbf4b615693d63d002f6a8730989c8 100644 (file)
@@ -246,7 +246,7 @@ query_planner(PlannerInfo *root, List *tlist,
        if (brel == NULL)
            continue;
 
-       Assert(brel->relid == rti);     /* sanity check on array */
+       Assert(brel->relid == rti); /* sanity check on array */
 
        if (IS_SIMPLE_REL(brel))
            total_pages += (double) brel->pages;
index 40cb79d4cd23ef90d0aa31dabf4ab52899932efb..4b32f59128b7b76bad866a12b72fa22b1a615fec 100644 (file)
@@ -2412,7 +2412,7 @@ preprocess_rowmarks(PlannerInfo *root)
        newrc->markType = select_rowmark_type(rte, LCS_NONE);
        newrc->allMarkTypes = (1 << newrc->markType);
        newrc->strength = LCS_NONE;
-       newrc->waitPolicy = LockWaitBlock;      /* doesn't matter */
+       newrc->waitPolicy = LockWaitBlock;  /* doesn't matter */
        newrc->isParent = false;
 
        prowmarks = lappend(prowmarks, newrc);
@@ -2469,7 +2469,7 @@ select_rowmark_type(RangeTblEntry *rte, LockClauseStrength strength)
                break;
        }
        elog(ERROR, "unrecognized LockClauseStrength %d", (int) strength);
-       return ROW_MARK_EXCLUSIVE;      /* keep compiler quiet */
+       return ROW_MARK_EXCLUSIVE;  /* keep compiler quiet */
    }
 }
 
@@ -2519,7 +2519,7 @@ preprocess_limit(PlannerInfo *root, double tuple_fraction,
            {
                *count_est = DatumGetInt64(((Const *) est)->constvalue);
                if (*count_est <= 0)
-                   *count_est = 1;     /* force to at least 1 */
+                   *count_est = 1; /* force to at least 1 */
            }
        }
        else
@@ -2653,7 +2653,7 @@ preprocess_limit(PlannerInfo *root, double tuple_fraction,
                /* both fractional, so add them together */
                tuple_fraction += limit_fraction;
                if (tuple_fraction >= 1.0)
-                   tuple_fraction = 0.0;       /* assume fetch all */
+                   tuple_fraction = 0.0;   /* assume fetch all */
            }
        }
    }
@@ -3514,7 +3514,7 @@ create_grouping_paths(PlannerInfo *root,
    RelOptInfo *grouped_rel;
    PathTarget *partial_grouping_target = NULL;
    AggClauseCosts agg_partial_costs;   /* parallel only */
-   AggClauseCosts agg_final_costs;     /* parallel only */
+   AggClauseCosts agg_final_costs; /* parallel only */
    Size        hashaggtablesize;
    double      dNumGroups;
    double      dNumPartialGroups = 0;
@@ -5626,7 +5626,7 @@ make_sort_input_target(PlannerInfo *root,
    /* Shouldn't get here unless query has ORDER BY */
    Assert(parse->sortClause);
 
-   *have_postponed_srfs = false;       /* default result */
+   *have_postponed_srfs = false;   /* default result */
 
    /* Inspect tlist and collect per-column information */
    ncols = list_length(final_target->exprs);
index 5cac171cb6e411cb5ab4deac14bcfefcb4ad29f7..01b06848af6bd590aab7a2a3fde92b198ffaa816 100644 (file)
@@ -297,7 +297,7 @@ add_rtes_to_flat_rtable(PlannerInfo *root, bool recursing)
 
            if (rel != NULL)
            {
-               Assert(rel->relid == rti);      /* sanity check on array */
+               Assert(rel->relid == rti);  /* sanity check on array */
 
                /*
                 * The subquery might never have been planned at all, if it
@@ -1908,7 +1908,7 @@ set_dummy_tlist_references(Plan *plan, int rtoffset)
        }
        else
        {
-           newvar->varnoold = 0;       /* wasn't ever a plain Var */
+           newvar->varnoold = 0;   /* wasn't ever a plain Var */
            newvar->varoattno = 0;
        }
 
@@ -2137,7 +2137,7 @@ search_indexed_tlist_for_sortgroupref(Expr *node,
            Var        *newvar;
 
            newvar = makeVarFromTargetEntry(newvarno, tle);
-           newvar->varnoold = 0;       /* wasn't ever a plain Var */
+           newvar->varnoold = 0;   /* wasn't ever a plain Var */
            newvar->varoattno = 0;
            return newvar;
        }
index cfdd770f6a4a3e5b6c64aaab31ebd7a58d06aed7..08033183e7cfd62501acf6b108d61d3a35530761 100644 (file)
@@ -44,7 +44,7 @@ typedef struct pullup_replace_vars_context
    RangeTblEntry *target_rte;  /* RTE of subquery */
    Relids      relids;         /* relids within subquery, as numbered after
                                 * pullup (set only if target_rte->lateral) */
-   bool       *outer_hasSubLinks;      /* -> outer query's hasSubLinks */
+   bool       *outer_hasSubLinks;  /* -> outer query's hasSubLinks */
    int         varno;          /* varno of subquery */
    bool        need_phvs;      /* do we need PlaceHolderVars? */
    bool        wrap_non_vars;  /* do we need 'em on *all* non-Vars? */
@@ -772,7 +772,7 @@ pull_up_subqueries_recurse(PlannerInfo *root, Node *jtnode,
        if (deletion_ok && !have_undeleted_child)
        {
            /* OK to delete this FromExpr entirely */
-           root->hasDeletedRTEs = true;        /* probably is set already */
+           root->hasDeletedRTEs = true;    /* probably is set already */
            return NULL;
        }
    }
@@ -2088,7 +2088,7 @@ pullup_replace_vars_callback(Var *var,
                  &colnames, &fields);
        /* Adjust the generated per-field Vars, but don't insert PHVs */
        rcon->need_phvs = false;
-       context->sublevels_up = 0;      /* to match the expandRTE output */
+       context->sublevels_up = 0;  /* to match the expandRTE output */
        fields = (List *) replace_rte_variables_mutator((Node *) fields,
                                                        context);
        rcon->need_phvs = save_need_phvs;
@@ -2784,7 +2784,7 @@ reduce_outer_joins_pass2(Node *jtnode,
 
            if (right_state->contains_outer)
            {
-               if (jointype != JOIN_FULL)      /* ie, INNER/LEFT/SEMI/ANTI */
+               if (jointype != JOIN_FULL)  /* ie, INNER/LEFT/SEMI/ANTI */
                {
                    /* pass appropriate constraints, per comment above */
                    pass_nonnullable_rels = local_nonnullable_rels;
index de47153bacef43eec0736043e6beb6fa6159823c..afc733f1835763f5ac2812371bf516d38077cb7c 100644 (file)
@@ -301,7 +301,7 @@ expand_targetlist(List *tlist, int command_type,
                                                      attcollation,
                                                      att_tup->attlen,
                                                      (Datum) 0,
-                                                     true,     /* isnull */
+                                                     true, /* isnull */
                                                      att_tup->attbyval);
                        new_expr = coerce_to_domain(new_expr,
                                                    InvalidOid, -1,
@@ -319,7 +319,7 @@ expand_targetlist(List *tlist, int command_type,
                                                      InvalidOid,
                                                      sizeof(int32),
                                                      (Datum) 0,
-                                                     true,     /* isnull */
+                                                     true, /* isnull */
                                                      true /* byval */ );
                    }
                    break;
@@ -341,7 +341,7 @@ expand_targetlist(List *tlist, int command_type,
                                                      InvalidOid,
                                                      sizeof(int32),
                                                      (Datum) 0,
-                                                     true,     /* isnull */
+                                                     true, /* isnull */
                                                      true /* byval */ );
                    }
                    break;
index a1dafc8e0f83f033297cccbab654d5ec8fc28dca..b9e5dc25ebe2bb553c8d9073a6f09ce79bb68992 100644 (file)
@@ -1399,7 +1399,7 @@ contain_context_dependent_node(Node *clause)
    return contain_context_dependent_node_walker(clause, &flags);
 }
 
-#define CCDN_IN_CASEEXPR   0x0001      /* CaseTestExpr okay here? */
+#define CCDN_IN_CASEEXPR   0x0001  /* CaseTestExpr okay here? */
 
 static bool
 contain_context_dependent_node_walker(Node *node, int *flags)
@@ -2434,7 +2434,7 @@ estimate_expression_value(PlannerInfo *root, Node *node)
 {
    eval_const_expressions_context context;
 
-   context.boundParams = root->glob->boundParams;      /* bound Params */
+   context.boundParams = root->glob->boundParams;  /* bound Params */
    /* we do not need to mark the plan as depending on inlined functions */
    context.root = NULL;
    context.active_fns = NIL;   /* nothing being recursively simplified */
@@ -2712,8 +2712,8 @@ eval_const_expressions_mutator(Node *node,
                     * Need to get OID of underlying function.  Okay to
                     * scribble on input to this extent.
                     */
-                   set_opfuncid((OpExpr *) expr);      /* rely on struct
-                                                        * equivalence */
+                   set_opfuncid((OpExpr *) expr);  /* rely on struct
+                                                    * equivalence */
 
                    /*
                     * Code for op/func reduction is pretty bulky, so split it
@@ -3114,7 +3114,7 @@ eval_const_expressions_mutator(Node *node,
                if (newarg && IsA(newarg, Const))
                {
                    context->case_val = newarg;
-                   newarg = NULL;      /* not needed anymore, see above */
+                   newarg = NULL;  /* not needed anymore, see above */
                }
                else
                    context->case_val = NULL;
@@ -3463,7 +3463,7 @@ eval_const_expressions_mutator(Node *node,
                        default:
                            elog(ERROR, "unrecognized nulltesttype: %d",
                                 (int) ntest->nulltesttype);
-                           result = false;     /* keep compiler quiet */
+                           result = false; /* keep compiler quiet */
                            break;
                    }
 
@@ -3517,7 +3517,7 @@ eval_const_expressions_mutator(Node *node,
                        default:
                            elog(ERROR, "unrecognized booltesttype: %d",
                                 (int) btest->booltesttype);
-                           result = false;     /* keep compiler quiet */
+                           result = false; /* keep compiler quiet */
                            break;
                    }
 
@@ -4263,7 +4263,7 @@ evaluate_function(Oid funcid, Oid result_type, int32 result_typmod,
    newexpr->funcretset = false;
    newexpr->funcvariadic = funcvariadic;
    newexpr->funcformat = COERCE_EXPLICIT_CALL; /* doesn't matter */
-   newexpr->funccollid = result_collid;        /* doesn't matter */
+   newexpr->funccollid = result_collid;    /* doesn't matter */
    newexpr->inputcollid = input_collid;
    newexpr->args = args;
    newexpr->location = -1;
index b6867e3001e1cdf3442be56ec4f22cf6b58549a2..dd7cfc94b8b6f8f4fedcca281721e9422807fa43 100644 (file)
@@ -84,7 +84,7 @@ extract_restriction_or_clauses(PlannerInfo *root)
        if (rel == NULL)
            continue;
 
-       Assert(rel->relid == rti);      /* sanity check on array */
+       Assert(rel->relid == rti);  /* sanity check on array */
 
        /* ignore RTEs that are "other rels" */
        if (rel->reloptkind != RELOPT_BASEREL)
index ec4a093d9fb375c5ff6d5b944b5e4f783d851dfd..63afc04b625a3eafbabc2edbc027042fec505a8f 100644 (file)
@@ -411,7 +411,7 @@ set_cheapest(RelOptInfo *parent_rel)
 void
 add_path(RelOptInfo *parent_rel, Path *new_path)
 {
-   bool        accept_new = true;      /* unless we find a superior old path */
+   bool        accept_new = true;  /* unless we find a superior old path */
    ListCell   *insert_after = NULL;    /* where to insert new item */
    List       *new_path_pathkeys;
    ListCell   *p1;
@@ -484,7 +484,7 @@ add_path(RelOptInfo *parent_rel, Path *new_path)
                                 outercmp == BMS_SUBSET1) &&
                                new_path->rows <= old_path->rows &&
                                new_path->parallel_safe >= old_path->parallel_safe)
-                               remove_old = true;      /* new dominates old */
+                               remove_old = true;  /* new dominates old */
                        }
                        else if (keyscmp == PATHKEYS_BETTER2)
                        {
@@ -492,7 +492,7 @@ add_path(RelOptInfo *parent_rel, Path *new_path)
                                 outercmp == BMS_SUBSET2) &&
                                new_path->rows >= old_path->rows &&
                                new_path->parallel_safe <= old_path->parallel_safe)
-                               accept_new = false;     /* old dominates new */
+                               accept_new = false; /* old dominates new */
                        }
                        else    /* keyscmp == PATHKEYS_EQUAL */
                        {
@@ -534,11 +534,11 @@ add_path(RelOptInfo *parent_rel, Path *new_path)
                            else if (outercmp == BMS_SUBSET1 &&
                                     new_path->rows <= old_path->rows &&
                                     new_path->parallel_safe >= old_path->parallel_safe)
-                               remove_old = true;      /* new dominates old */
+                               remove_old = true;  /* new dominates old */
                            else if (outercmp == BMS_SUBSET2 &&
                                     new_path->rows >= old_path->rows &&
                                     new_path->parallel_safe <= old_path->parallel_safe)
-                               accept_new = false;     /* old dominates new */
+                               accept_new = false; /* old dominates new */
                            /* else different parameterizations, keep both */
                        }
                        break;
@@ -551,7 +551,7 @@ add_path(RelOptInfo *parent_rel, Path *new_path)
                                 outercmp == BMS_SUBSET1) &&
                                new_path->rows <= old_path->rows &&
                                new_path->parallel_safe >= old_path->parallel_safe)
-                               remove_old = true;      /* new dominates old */
+                               remove_old = true;  /* new dominates old */
                        }
                        break;
                    case COSTS_BETTER2:
@@ -563,7 +563,7 @@ add_path(RelOptInfo *parent_rel, Path *new_path)
                                 outercmp == BMS_SUBSET2) &&
                                new_path->rows >= old_path->rows &&
                                new_path->parallel_safe <= old_path->parallel_safe)
-                               accept_new = false;     /* old dominates new */
+                               accept_new = false; /* old dominates new */
                        }
                        break;
                    case COSTS_DIFFERENT:
@@ -751,7 +751,7 @@ add_path_precheck(RelOptInfo *parent_rel,
 void
 add_partial_path(RelOptInfo *parent_rel, Path *new_path)
 {
-   bool        accept_new = true;      /* unless we find a superior old path */
+   bool        accept_new = true;  /* unless we find a superior old path */
    ListCell   *insert_after = NULL;    /* where to insert new item */
    ListCell   *p1;
    ListCell   *p1_prev;
@@ -1081,7 +1081,7 @@ create_bitmap_heap_path(PlannerInfo *root,
    pathnode->path.parallel_aware = parallel_degree > 0 ? true : false;
    pathnode->path.parallel_safe = rel->consider_parallel;
    pathnode->path.parallel_workers = parallel_degree;
-   pathnode->path.pathkeys = NIL;      /* always unordered */
+   pathnode->path.pathkeys = NIL;  /* always unordered */
 
    pathnode->bitmapqual = bitmapqual;
 
@@ -1118,7 +1118,7 @@ create_bitmap_and_path(PlannerInfo *root,
    pathnode->path.parallel_safe = rel->consider_parallel;
    pathnode->path.parallel_workers = 0;
 
-   pathnode->path.pathkeys = NIL;      /* always unordered */
+   pathnode->path.pathkeys = NIL;  /* always unordered */
 
    pathnode->bitmapquals = bitmapquals;
 
@@ -1154,7 +1154,7 @@ create_bitmap_or_path(PlannerInfo *root,
    pathnode->path.parallel_safe = rel->consider_parallel;
    pathnode->path.parallel_workers = 0;
 
-   pathnode->path.pathkeys = NIL;      /* always unordered */
+   pathnode->path.pathkeys = NIL;  /* always unordered */
 
    pathnode->bitmapquals = bitmapquals;
 
@@ -1182,7 +1182,7 @@ create_tidscan_path(PlannerInfo *root, RelOptInfo *rel, List *tidquals,
    pathnode->path.parallel_aware = false;
    pathnode->path.parallel_safe = rel->consider_parallel;
    pathnode->path.parallel_workers = 0;
-   pathnode->path.pathkeys = NIL;      /* always unordered */
+   pathnode->path.pathkeys = NIL;  /* always unordered */
 
    pathnode->tidquals = tidquals;
 
@@ -1214,8 +1214,7 @@ create_append_path(RelOptInfo *rel, List *subpaths, Relids required_outer,
    pathnode->path.parallel_aware = false;
    pathnode->path.parallel_safe = rel->consider_parallel;
    pathnode->path.parallel_workers = parallel_workers;
-   pathnode->path.pathkeys = NIL;      /* result is always considered
-                                        * unsorted */
+   pathnode->path.pathkeys = NIL;  /* result is always considered unsorted */
    pathnode->partitioned_rels = list_copy(partitioned_rels);
    pathnode->subpaths = subpaths;
 
@@ -1311,7 +1310,7 @@ create_merge_append_path(PlannerInfo *root,
        else
        {
            /* We'll need to insert a Sort node, so include cost for that */
-           Path        sort_path;      /* dummy for result of cost_sort */
+           Path        sort_path;  /* dummy for result of cost_sort */
 
            cost_sort(&sort_path,
                      root,
@@ -1743,7 +1742,7 @@ create_gather_path(PlannerInfo *root, RelOptInfo *rel, Path *subpath,
    pathnode->path.parallel_aware = false;
    pathnode->path.parallel_safe = false;
    pathnode->path.parallel_workers = 0;
-   pathnode->path.pathkeys = NIL;      /* Gather has unordered result */
+   pathnode->path.pathkeys = NIL;  /* Gather has unordered result */
 
    pathnode->subpath = subpath;
    pathnode->num_workers = subpath->parallel_workers;
@@ -2818,8 +2817,8 @@ create_groupingsets_path(PlannerInfo *root,
        }
        else
        {
-           Path        sort_path;      /* dummy for result of cost_sort */
-           Path        agg_path;       /* dummy for result of cost_agg */
+           Path        sort_path;  /* dummy for result of cost_sort */
+           Path        agg_path;   /* dummy for result of cost_agg */
 
            if (rollup->is_hashed || is_first_sort)
            {
index 698a387ac28de7e872411397aaefb9e5a4c47899..970542dde5bda2e3c873a452aecfd7f981d1e8e3 100644 (file)
@@ -101,7 +101,7 @@ find_placeholder_info(PlannerInfo *root, PlaceHolderVar *phv,
    rels_used = pull_varnos((Node *) phv->phexpr);
    phinfo->ph_lateral = bms_difference(rels_used, phv->phrels);
    if (bms_is_empty(phinfo->ph_lateral))
-       phinfo->ph_lateral = NULL;      /* make it exactly NULL if empty */
+       phinfo->ph_lateral = NULL;  /* make it exactly NULL if empty */
    phinfo->ph_eval_at = bms_int_members(rels_used, phv->phrels);
    /* If no contained vars, force evaluation at syntactic location */
    if (bms_is_empty(phinfo->ph_eval_at))
index 939045dc4198caaf3780bccf7110d966c92a3c2b..9dc35c1aefbf6f666db9b69592633f161358e396 100644 (file)
@@ -354,8 +354,8 @@ get_relation_info(PlannerInfo *root, Oid relationObjectId, bool inhparent,
            /* Build targetlist using the completed indexprs data */
            info->indextlist = build_index_tlist(root, info, relation);
 
-           info->indrestrictinfo = NIL;        /* set later, in indxpath.c */
-           info->predOK = false;       /* set later, in indxpath.c */
+           info->indrestrictinfo = NIL;    /* set later, in indxpath.c */
+           info->predOK = false;   /* set later, in indxpath.c */
            info->unique = index->indisunique;
            info->immediate = index->indimmediate;
            info->hypothetical = false;
@@ -827,7 +827,7 @@ infer_collation_opclass_match(InferenceElem *elem, Relation idxRel,
                              List *idxExprs)
 {
    AttrNumber  natt;
-   Oid         inferopfamily = InvalidOid;     /* OID of opclass opfamily */
+   Oid         inferopfamily = InvalidOid; /* OID of opclass opfamily */
    Oid         inferopcinputtype = InvalidOid; /* OID of opclass input type */
    int         nplain = 0;     /* # plain attrs observed */
 
index 72d70d52d19f8ab18887fe902423343e6964645d..536d24b698ca611faa1340b3709648e4c142329e 100644 (file)
@@ -382,7 +382,7 @@ predicate_implied_by_recurse(Node *clause, Node *predicate,
                        iterate_end(pred_info);
                        if (!presult)
                        {
-                           result = false;     /* doesn't imply any of B's */
+                           result = false; /* doesn't imply any of B's */
                            break;
                        }
                    }
@@ -650,7 +650,7 @@ predicate_refuted_by_recurse(Node *clause, Node *predicate,
                        iterate_end(pred_info);
                        if (!presult)
                        {
-                           result = false;     /* citem refutes nothing */
+                           result = false; /* citem refutes nothing */
                            break;
                        }
                    }
@@ -1360,12 +1360,12 @@ static const bool BT_implies_table[6][6] = {
  *         The predicate operator:
  *  LT    LE    EQ    GE    GT    NE
  */
-   {TRUE, TRUE, none, none, none, TRUE},       /* LT */
-   {none, TRUE, none, none, none, none},       /* LE */
-   {none, TRUE, TRUE, TRUE, none, none},       /* EQ */
-   {none, none, none, TRUE, none, none},       /* GE */
-   {none, none, none, TRUE, TRUE, TRUE},       /* GT */
-   {none, none, none, none, none, TRUE}        /* NE */
+   {TRUE, TRUE, none, none, none, TRUE},   /* LT */
+   {none, TRUE, none, none, none, none},   /* LE */
+   {none, TRUE, TRUE, TRUE, none, none},   /* EQ */
+   {none, none, none, TRUE, none, none},   /* GE */
+   {none, none, none, TRUE, TRUE, TRUE},   /* GT */
+   {none, none, none, none, none, TRUE}    /* NE */
 };
 
 static const bool BT_refutes_table[6][6] = {
@@ -1373,12 +1373,12 @@ static const bool BT_refutes_table[6][6] = {
  *         The predicate operator:
  *  LT    LE    EQ    GE    GT    NE
  */
-   {none, none, TRUE, TRUE, TRUE, none},       /* LT */
-   {none, none, none, none, TRUE, none},       /* LE */
-   {TRUE, none, none, none, TRUE, TRUE},       /* EQ */
-   {TRUE, none, none, none, none, none},       /* GE */
-   {TRUE, TRUE, TRUE, none, none, none},       /* GT */
-   {none, none, TRUE, none, none, none}        /* NE */
+   {none, none, TRUE, TRUE, TRUE, none},   /* LT */
+   {none, none, none, none, TRUE, none},   /* LE */
+   {TRUE, none, none, none, TRUE, TRUE},   /* EQ */
+   {TRUE, none, none, none, none, none},   /* GE */
+   {TRUE, TRUE, TRUE, none, none, none},   /* GT */
+   {none, none, TRUE, none, none, none}    /* NE */
 };
 
 static const StrategyNumber BT_implic_table[6][6] = {
@@ -1386,12 +1386,12 @@ static const StrategyNumber BT_implic_table[6][6] = {
  *         The predicate operator:
  *  LT    LE    EQ    GE    GT    NE
  */
-   {BTGE, BTGE, none, none, none, BTGE},       /* LT */
-   {BTGT, BTGE, none, none, none, BTGT},       /* LE */
-   {BTGT, BTGE, BTEQ, BTLE, BTLT, BTNE},       /* EQ */
-   {none, none, none, BTLE, BTLT, BTLT},       /* GE */
-   {none, none, none, BTLE, BTLE, BTLE},       /* GT */
-   {none, none, none, none, none, BTEQ}        /* NE */
+   {BTGE, BTGE, none, none, none, BTGE},   /* LT */
+   {BTGT, BTGE, none, none, none, BTGT},   /* LE */
+   {BTGT, BTGE, BTEQ, BTLE, BTLT, BTNE},   /* EQ */
+   {none, none, none, BTLE, BTLT, BTLT},   /* GE */
+   {none, none, none, BTLE, BTLE, BTLE},   /* GT */
+   {none, none, none, none, none, BTEQ}    /* NE */
 };
 
 static const StrategyNumber BT_refute_table[6][6] = {
@@ -1399,12 +1399,12 @@ static const StrategyNumber BT_refute_table[6][6] = {
  *         The predicate operator:
  *  LT    LE    EQ    GE    GT    NE
  */
-   {none, none, BTGE, BTGE, BTGE, none},       /* LT */
-   {none, none, BTGT, BTGT, BTGE, none},       /* LE */
-   {BTLE, BTLT, BTNE, BTGT, BTGE, BTEQ},       /* EQ */
-   {BTLE, BTLT, BTLT, none, none, none},       /* GE */
-   {BTLE, BTLE, BTLE, none, none, none},       /* GT */
-   {none, none, BTEQ, none, none, none}        /* NE */
+   {none, none, BTGE, BTGE, BTGE, none},   /* LT */
+   {none, none, BTGT, BTGT, BTGE, none},   /* LE */
+   {BTLE, BTLT, BTNE, BTGT, BTGE, BTEQ},   /* EQ */
+   {BTLE, BTLT, BTLT, none, none, none},   /* GE */
+   {BTLE, BTLE, BTLE, none, none, none},   /* GT */
+   {none, none, BTEQ, none, none, none}    /* NE */
 };
 
 
index 76a3868fa079305a4ec7407536d762895449c889..22f5ddac58ba191dc6aa9a5a02c8c952eabe17c8 100644 (file)
@@ -108,8 +108,8 @@ build_simple_rel(PlannerInfo *root, int relid, RelOptInfo *parent)
    rel->rows = 0;
    /* cheap startup cost is interesting iff not all tuples to be retrieved */
    rel->consider_startup = (root->tuple_fraction > 0);
-   rel->consider_param_startup = false;        /* might get changed later */
-   rel->consider_parallel = false;     /* might get changed later */
+   rel->consider_param_startup = false;    /* might get changed later */
+   rel->consider_parallel = false; /* might get changed later */
    rel->reltarget = create_empty_pathtarget();
    rel->pathlist = NIL;
    rel->ppilist = NIL;
@@ -132,7 +132,7 @@ build_simple_rel(PlannerInfo *root, int relid, RelOptInfo *parent)
    rel->allvisfrac = 0;
    rel->subroot = NULL;
    rel->subplan_params = NIL;
-   rel->rel_parallel_workers = -1;     /* set up in get_relation_info */
+   rel->rel_parallel_workers = -1; /* set up in get_relation_info */
    rel->serverid = InvalidOid;
    rel->userid = rte->checkAsUser;
    rel->useridiscurrent = false;
@@ -944,7 +944,7 @@ fetch_upper_rel(PlannerInfo *root, UpperRelationKind kind, Relids relids)
    /* cheap startup cost is interesting iff not all tuples to be retrieved */
    upperrel->consider_startup = (root->tuple_fraction > 0);
    upperrel->consider_param_startup = false;
-   upperrel->consider_parallel = false;        /* might get changed later */
+   upperrel->consider_parallel = false;    /* might get changed later */
    upperrel->reltarget = create_empty_pathtarget();
    upperrel->pathlist = NIL;
    upperrel->cheapest_startup_path = NULL;
index e946290af54c0476b1cd93e57071499d424a643b..ebae0cd8ce0345a7e4a38e5db287229bd5fb303e 100644 (file)
@@ -114,7 +114,7 @@ make_restrictinfo_internal(Expr *clause,
    restrictinfo->is_pushed_down = is_pushed_down;
    restrictinfo->outerjoin_delayed = outerjoin_delayed;
    restrictinfo->pseudoconstant = pseudoconstant;
-   restrictinfo->can_join = false;     /* may get set below */
+   restrictinfo->can_join = false; /* may get set below */
    restrictinfo->security_level = security_level;
    restrictinfo->outer_relids = outer_relids;
    restrictinfo->nullable_relids = nullable_relids;
@@ -127,7 +127,7 @@ make_restrictinfo_internal(Expr *clause,
    if (security_level > 0)
        restrictinfo->leakproof = !contain_leaked_vars((Node *) clause);
    else
-       restrictinfo->leakproof = false;        /* really, "don't know" */
+       restrictinfo->leakproof = false;    /* really, "don't know" */
 
    /*
     * If it's a binary opclause, set up left/right relids info. In any case
index 09523853d0c3f0a70f333d98fb950c8c57701ca4..934589138040498824054b2b772517a59dec65c2 100644 (file)
 /* Workspace for split_pathtarget_walker */
 typedef struct
 {
-   List       *input_target_exprs;     /* exprs available from input */
+   List       *input_target_exprs; /* exprs available from input */
    List       *level_srfs;     /* list of lists of SRF exprs */
-   List       *level_input_vars;       /* vars needed by SRFs of each level */
-   List       *level_input_srfs;       /* SRFs needed by SRFs of each level */
-   List       *current_input_vars;     /* vars needed in current subexpr */
-   List       *current_input_srfs;     /* SRFs needed in current subexpr */
+   List       *level_input_vars;   /* vars needed by SRFs of each level */
+   List       *level_input_srfs;   /* SRFs needed by SRFs of each level */
+   List       *current_input_vars; /* vars needed in current subexpr */
+   List       *current_input_srfs; /* SRFs needed in current subexpr */
    int         current_depth;  /* max SRF depth in current subexpr */
 } split_pathtarget_context;
 
@@ -145,7 +145,7 @@ add_to_flat_tlist(List *tlist, List *exprs)
        {
            TargetEntry *tle;
 
-           tle = makeTargetEntry(copyObject(expr),     /* copy needed?? */
+           tle = makeTargetEntry(copyObject(expr), /* copy needed?? */
                                  next_resno++,
                                  NULL,
                                  false);
index cf326ae0039993d882352a0401a03dca98b23269..45fa22f9189a83c8a0f6384338b4ce76152657cd 100644 (file)
@@ -62,8 +62,8 @@ typedef struct
 {
    PlannerInfo *root;
    int         sublevels_up;
-   bool        possible_sublink;       /* could aliases include a SubLink? */
-   bool        inserted_sublink;       /* have we inserted a SubLink? */
+   bool        possible_sublink;   /* could aliases include a SubLink? */
+   bool        inserted_sublink;   /* have we inserted a SubLink? */
 } flatten_join_alias_vars_context;
 
 static bool pull_varnos_walker(Node *node,
index 86482eba26ee894cda3edb665190470b240456e8..3e2f64866d5222044d4709795918e01d088c7c5d 100644 (file)
@@ -268,7 +268,7 @@ transformStmt(ParseState *pstate, Node *parseTree)
        default:
            break;
    }
-#endif   /* RAW_EXPRESSION_COVERAGE_TEST */
+#endif                         /* RAW_EXPRESSION_COVERAGE_TEST */
 
    switch (nodeTag(parseTree))
    {
@@ -2103,7 +2103,7 @@ transformSetOperationTree(ParseState *pstate, SelectStmt *stmt,
                grpcl->tleSortGroupRef = 0;
                grpcl->eqop = eqop;
                grpcl->sortop = sortop;
-               grpcl->nulls_first = false;     /* OK with or without sortop */
+               grpcl->nulls_first = false; /* OK with or without sortop */
                grpcl->hashable = hashable;
 
                op->groupClauses = lappend(op->groupClauses, grpcl);
@@ -2124,7 +2124,7 @@ transformSetOperationTree(ParseState *pstate, SelectStmt *stmt,
                rescolnode->collation = rescolcoll;
                rescolnode->location = bestlocation;
                restle = makeTargetEntry((Expr *) rescolnode,
-                                        0,     /* no need to set resno */
+                                        0, /* no need to set resno */
                                         NULL,
                                         false);
                *targetlist = lappend(*targetlist, restle);
@@ -2605,7 +2605,7 @@ LCS_asString(LockClauseStrength strength)
 void
 CheckSelectLocking(Query *qry, LockClauseStrength strength)
 {
-   Assert(strength != LCS_NONE);       /* else caller error */
+   Assert(strength != LCS_NONE);   /* else caller error */
 
    if (qry->setOperations)
        ereport(ERROR,
@@ -2844,7 +2844,7 @@ applyLockingClause(Query *qry, Index rtindex,
 {
    RowMarkClause *rc;
 
-   Assert(strength != LCS_NONE);       /* else caller error */
+   Assert(strength != LCS_NONE);   /* else caller error */
 
    /* If it's an explicit clause, make sure hasForUpdate gets set */
    if (!pushedDown)
@@ -2907,4 +2907,4 @@ test_raw_expression_coverage(Node *node, void *context)
                                      context);
 }
 
-#endif   /* RAW_EXPRESSION_COVERAGE_TEST */
+#endif                         /* RAW_EXPRESSION_COVERAGE_TEST */
index 6218ee94fa4ac60f3a955d329338294e27f5f2fa..9f721f80a85d31013c18c2ecf965d1cc43c593d9 100644 (file)
@@ -1310,7 +1310,7 @@ check_ungrouped_columns_walker(Node *node,
                    gvar->varno == var->varno &&
                    gvar->varattno == var->varattno &&
                    gvar->varlevelsup == 0)
-                   return false;       /* acceptable, we're okay */
+                   return false;   /* acceptable, we're okay */
            }
        }
 
index 3d5b20836f68daa10fb754db225ad43f97f82970..ad76108ba6df56a0bec34d1e18a9f3c5acb3c3ad 100644 (file)
@@ -1323,7 +1323,7 @@ transformFromClauseItem(ParseState *pstate, Node *n,
            ListCell   *lx,
                       *rx;
 
-           Assert(j->usingClause == NIL);      /* shouldn't have USING() too */
+           Assert(j->usingClause == NIL);  /* shouldn't have USING() too */
 
            foreach(lx, l_colnames)
            {
@@ -3389,7 +3389,7 @@ addTargetToGroupList(ParseState *pstate, TargetEntry *tle,
        grpcl->tleSortGroupRef = assignSortGroupRef(tle, targetlist);
        grpcl->eqop = eqop;
        grpcl->sortop = sortop;
-       grpcl->nulls_first = false;     /* OK with or without sortop */
+       grpcl->nulls_first = false; /* OK with or without sortop */
        grpcl->hashable = hashable;
 
        grouplist = lappend(grouplist, grpcl);
index 2c3f3cd9ce7ca5a3d678b5571ee126ffef812458..aa6a16185f26f343c089548489b99d8759031130 100644 (file)
@@ -549,7 +549,7 @@ can_coerce_type(int nargs, Oid *input_typeids, Oid *target_typeids,
        /* accept if target is polymorphic, for now */
        if (IsPolymorphicType(targetTypeId))
        {
-           have_generics = true;       /* do more checking later */
+           have_generics = true;   /* do more checking later */
            continue;
        }
 
@@ -1443,7 +1443,7 @@ check_generic_type_consistency(Oid *actual_arg_types,
        {
            if (actual_type == UNKNOWNOID)
                continue;
-           actual_type = getBaseType(actual_type);     /* flatten domains */
+           actual_type = getBaseType(actual_type); /* flatten domains */
            if (OidIsValid(array_typeid) && actual_type != array_typeid)
                return false;
            array_typeid = actual_type;
@@ -1452,7 +1452,7 @@ check_generic_type_consistency(Oid *actual_arg_types,
        {
            if (actual_type == UNKNOWNOID)
                continue;
-           actual_type = getBaseType(actual_type);     /* flatten domains */
+           actual_type = getBaseType(actual_type); /* flatten domains */
            if (OidIsValid(range_typeid) && actual_type != range_typeid)
                return false;
            range_typeid = actual_type;
@@ -1662,7 +1662,7 @@ enforce_generic_type_consistency(Oid *actual_arg_types,
            }
            if (allow_poly && decl_type == actual_type)
                continue;       /* no new information here */
-           actual_type = getBaseType(actual_type);     /* flatten domains */
+           actual_type = getBaseType(actual_type); /* flatten domains */
            if (OidIsValid(array_typeid) && actual_type != array_typeid)
                ereport(ERROR,
                        (errcode(ERRCODE_DATATYPE_MISMATCH),
@@ -1682,7 +1682,7 @@ enforce_generic_type_consistency(Oid *actual_arg_types,
            }
            if (allow_poly && decl_type == actual_type)
                continue;       /* no new information here */
-           actual_type = getBaseType(actual_type);     /* flatten domains */
+           actual_type = getBaseType(actual_type); /* flatten domains */
            if (OidIsValid(range_typeid) && actual_type != range_typeid)
                ereport(ERROR,
                        (errcode(ERRCODE_DATATYPE_MISMATCH),
index aa443f23ad54da517723d4622265fab46d8fa2ad..d99e4cc0f47702243b971fd45c998fb33e65161d 100644 (file)
@@ -332,7 +332,7 @@ assign_collations_walker(Node *node, assign_collations_context *context)
                    /* Node's result type isn't collatable. */
                    collation = InvalidOid;
                    strength = COLLATE_NONE;
-                   location = -1;      /* won't be used */
+                   location = -1;  /* won't be used */
                }
            }
            break;
@@ -428,7 +428,7 @@ assign_collations_walker(Node *node, assign_collations_context *context)
                    /* Node's result type isn't collatable. */
                    collation = InvalidOid;
                    strength = COLLATE_NONE;
-                   location = -1;      /* won't be used */
+                   location = -1;  /* won't be used */
                }
 
                /*
@@ -711,7 +711,7 @@ assign_collations_walker(Node *node, assign_collations_context *context)
                    /* Node's result type isn't collatable. */
                    collation = InvalidOid;
                    strength = COLLATE_NONE;
-                   location = -1;      /* won't be used */
+                   location = -1;  /* won't be used */
                }
 
                /*
index dfbcaa2cdccd8f275c6cc1388f7be8c353d456a2..dbe4cc23934f9d932dfbc8cbf69bf3bd6ec55113 100644 (file)
@@ -331,7 +331,7 @@ analyzeCTE(ParseState *pstate, CommonTableExpr *cte)
            lctypmod = lnext(lctypmod);
            lccoll = lnext(lccoll);
        }
-       if (lctyp != NULL || lctypmod != NULL || lccoll != NULL)        /* shouldn't happen */
+       if (lctyp != NULL || lctypmod != NULL || lccoll != NULL)    /* shouldn't happen */
            elog(ERROR, "wrong number of output columns in WITH");
    }
 }
@@ -637,7 +637,7 @@ checkWellFormedRecursion(CteState *cstate)
        CommonTableExpr *cte = cstate->items[i].cte;
        SelectStmt *stmt = (SelectStmt *) cte->ctequery;
 
-       Assert(!IsA(stmt, Query));      /* not analyzed yet */
+       Assert(!IsA(stmt, Query));  /* not analyzed yet */
 
        /* Ignore items that weren't found to be recursive */
        if (!cte->cterecursive)
index e46aa60097f4e811d7a74bd1d6366d22faf10fff..3a9cdb42089e20111dff435138ca30457e457563 100644 (file)
@@ -48,20 +48,20 @@ bool        Transform_null_equals = false;
  * Node-type groups for operator precedence warnings
  * We use zero for everything not otherwise classified
  */
-#define PREC_GROUP_POSTFIX_IS  1       /* postfix IS tests (NullTest, etc) */
-#define PREC_GROUP_INFIX_IS        2       /* infix IS (IS DISTINCT FROM, etc) */
-#define PREC_GROUP_LESS            3       /* < > */
-#define PREC_GROUP_EQUAL       4       /* = */
-#define PREC_GROUP_LESS_EQUAL  5       /* <= >= <> */
-#define PREC_GROUP_LIKE            6       /* LIKE ILIKE SIMILAR */
-#define PREC_GROUP_BETWEEN     7       /* BETWEEN */
-#define PREC_GROUP_IN          8       /* IN */
-#define PREC_GROUP_NOT_LIKE        9       /* NOT LIKE/ILIKE/SIMILAR */
-#define PREC_GROUP_NOT_BETWEEN 10      /* NOT BETWEEN */
-#define PREC_GROUP_NOT_IN      11      /* NOT IN */
-#define PREC_GROUP_POSTFIX_OP  12      /* generic postfix operators */
-#define PREC_GROUP_INFIX_OP        13      /* generic infix operators */
-#define PREC_GROUP_PREFIX_OP   14      /* generic prefix operators */
+#define PREC_GROUP_POSTFIX_IS  1   /* postfix IS tests (NullTest, etc) */
+#define PREC_GROUP_INFIX_IS        2   /* infix IS (IS DISTINCT FROM, etc) */
+#define PREC_GROUP_LESS            3   /* < > */
+#define PREC_GROUP_EQUAL       4   /* = */
+#define PREC_GROUP_LESS_EQUAL  5   /* <= >= <> */
+#define PREC_GROUP_LIKE            6   /* LIKE ILIKE SIMILAR */
+#define PREC_GROUP_BETWEEN     7   /* BETWEEN */
+#define PREC_GROUP_IN          8   /* IN */
+#define PREC_GROUP_NOT_LIKE        9   /* NOT LIKE/ILIKE/SIMILAR */
+#define PREC_GROUP_NOT_BETWEEN 10  /* NOT BETWEEN */
+#define PREC_GROUP_NOT_IN      11  /* NOT IN */
+#define PREC_GROUP_POSTFIX_OP  12  /* generic postfix operators */
+#define PREC_GROUP_INFIX_OP        13  /* generic infix operators */
+#define PREC_GROUP_PREFIX_OP   14  /* generic prefix operators */
 
 /*
  * Map precedence groupings to old precedence ordering
@@ -741,7 +741,7 @@ transformColumnRef(ParseState *pstate, ColumnRef *cref)
                break;
            }
        default:
-           crerr = CRERR_TOO_MANY;     /* too many dotted names */
+           crerr = CRERR_TOO_MANY; /* too many dotted names */
            break;
    }
 
@@ -2574,7 +2574,7 @@ transformCurrentOfExpr(ParseState *pstate, CurrentOfExpr *cexpr)
     * If so, replace the raw name reference with a parameter reference. (This
     * is a hack for the convenience of plpgsql.)
     */
-   if (cexpr->cursor_name != NULL)     /* in case already transformed */
+   if (cexpr->cursor_name != NULL) /* in case already transformed */
    {
        ColumnRef  *cref = makeNode(ColumnRef);
        Node       *node = NULL;
index eb1706a4a69ad4a040e7fbabf9215bd802b9a770..38a73ba122cdd08af079fe5bee2ea36997635bba 100644 (file)
@@ -317,7 +317,7 @@ ParseFuncOrColumn(ParseState *pstate, List *funcname, List *fargs,
        int         catDirectArgs;
 
        tup = SearchSysCache1(AGGFNOID, ObjectIdGetDatum(funcid));
-       if (!HeapTupleIsValid(tup))     /* should not happen */
+       if (!HeapTupleIsValid(tup)) /* should not happen */
            elog(ERROR, "cache lookup failed for aggregate %u", funcid);
        classForm = (Form_pg_aggregate) GETSTRUCT(tup);
        aggkind = classForm->aggkind;
@@ -658,7 +658,7 @@ ParseFuncOrColumn(ParseState *pstate, List *funcname, List *fargs,
        aggref->aggfnoid = funcid;
        aggref->aggtype = rettype;
        /* aggcollid and inputcollid will be set by parse_collate.c */
-       aggref->aggtranstype = InvalidOid;      /* will be set by planner */
+       aggref->aggtranstype = InvalidOid;  /* will be set by planner */
        /* aggargtypes will be set by transformAggregateCall */
        /* aggdirectargs and args will be set by transformAggregateCall */
        /* aggorder and aggdistinct will be set by transformAggregateCall */
@@ -667,7 +667,7 @@ ParseFuncOrColumn(ParseState *pstate, List *funcname, List *fargs,
        aggref->aggvariadic = func_variadic;
        aggref->aggkind = aggkind;
        /* agglevelsup will be set by transformAggregateCall */
-       aggref->aggsplit = AGGSPLIT_SIMPLE;     /* planner might change this */
+       aggref->aggsplit = AGGSPLIT_SIMPLE; /* planner might change this */
        aggref->location = location;
 
        /*
@@ -713,7 +713,7 @@ ParseFuncOrColumn(ParseState *pstate, List *funcname, List *fargs,
        WindowFunc *wfunc = makeNode(WindowFunc);
 
        Assert(over);           /* lack of this was checked above */
-       Assert(!agg_within_group);      /* also checked above */
+       Assert(!agg_within_group);  /* also checked above */
 
        wfunc->winfnoid = funcid;
        wfunc->wintype = rettype;
@@ -811,7 +811,7 @@ int
 func_match_argtypes(int nargs,
                    Oid *input_typeids,
                    FuncCandidateList raw_candidates,
-                   FuncCandidateList *candidates)      /* return value */
+                   FuncCandidateList *candidates)  /* return value */
 {
    FuncCandidateList current_candidate;
    FuncCandidateList next_candidate;
@@ -1077,7 +1077,7 @@ func_select_candidate(int nargs,
 
        if (input_base_typeids[i] != UNKNOWNOID)
            continue;
-       resolved_unknowns = true;       /* assume we can do it */
+       resolved_unknowns = true;   /* assume we can do it */
        slot_category[i] = TYPCATEGORY_INVALID;
        slot_has_preferred_type[i] = false;
        have_conflict = false;
@@ -1205,7 +1205,7 @@ func_select_candidate(int nargs,
        {
            if (input_base_typeids[i] == UNKNOWNOID)
                continue;
-           if (known_type == UNKNOWNOID)       /* first known arg? */
+           if (known_type == UNKNOWNOID)   /* first known arg? */
                known_type = input_base_typeids[i];
            else if (known_type != input_base_typeids[i])
            {
@@ -1292,8 +1292,8 @@ func_get_detail(List *funcname,
                bool *retset,   /* return value */
                int *nvargs,    /* return value */
                Oid *vatype,    /* return value */
-               Oid **true_typeids,     /* return value */
-               List **argdefaults)     /* optional return value */
+               Oid **true_typeids, /* return value */
+               List **argdefaults) /* optional return value */
 {
    FuncCandidateList raw_candidates;
    FuncCandidateList best_candidate;
index fb3d117a7d4140571d003c8207ee05d33aec287f..f3edc6396a66867a5192eceffe7174f728735a44 100644 (file)
@@ -367,7 +367,7 @@ transformArraySubscripts(ParseState *pstate,
                                             sizeof(int32),
                                             Int32GetDatum(1),
                                             false,
-                                            true);     /* pass by value */
+                                            true); /* pass by value */
            }
            else
            {
@@ -511,7 +511,7 @@ make_const(ParseState *pstate, Value *value, int location)
 
                    typeid = INT8OID;
                    typelen = sizeof(int64);
-                   typebyval = FLOAT8PASSBYVAL;        /* int8 and float8 alike */
+                   typebyval = FLOAT8PASSBYVAL;    /* int8 and float8 alike */
                }
            }
            else
index 4b1db76e19fd2bfe1cfb05597931232873719db3..529d2bf3af7081f5f99d13e098ec8852a7180edf 100644 (file)
@@ -319,7 +319,7 @@ static FuncDetailCode
 oper_select_candidate(int nargs,
                      Oid *input_typeids,
                      FuncCandidateList candidates,
-                     Oid *operOid)     /* output argument */
+                     Oid *operOid) /* output argument */
 {
    int         ncandidates;
 
index e412d0f9d30b8779594b9543bf194bee3472148d..84a1d79c6e5969663fe799ff23b75f1c06444d37 100644 (file)
@@ -1249,7 +1249,7 @@ addRangeTableEntry(ParseState *pstate,
    rte->inFromCl = inFromCl;
 
    rte->requiredPerms = ACL_SELECT;
-   rte->checkAsUser = InvalidOid;      /* not set-uid by default, either */
+   rte->checkAsUser = InvalidOid;  /* not set-uid by default, either */
    rte->selectedCols = NULL;
    rte->insertedCols = NULL;
    rte->updatedCols = NULL;
@@ -1304,7 +1304,7 @@ addRangeTableEntryForRelation(ParseState *pstate,
    rte->inFromCl = inFromCl;
 
    rte->requiredPerms = ACL_SELECT;
-   rte->checkAsUser = InvalidOid;      /* not set-uid by default, either */
+   rte->checkAsUser = InvalidOid;  /* not set-uid by default, either */
    rte->selectedCols = NULL;
    rte->insertedCols = NULL;
    rte->updatedCols = NULL;
@@ -1471,7 +1471,7 @@ addRangeTableEntryForFunction(ParseState *pstate,
        rtfunc->funccoltypes = NIL;
        rtfunc->funccoltypmods = NIL;
        rtfunc->funccolcollations = NIL;
-       rtfunc->funcparams = NULL;      /* not set until planning */
+       rtfunc->funcparams = NULL;  /* not set until planning */
 
        /*
         * Now determine if the function returns a simple or composite type.
@@ -2615,7 +2615,7 @@ expandRelAttrs(ParseState *pstate, RangeTblEntry *rte,
        markVarForSelectPriv(pstate, varnode, rte);
    }
 
-   Assert(name == NULL && var == NULL);        /* lists not the same length? */
+   Assert(name == NULL && var == NULL);    /* lists not the same length? */
 
    return te_list;
 }
@@ -2684,7 +2684,7 @@ get_rte_attribute_type(RangeTblEntry *rte, AttrNumber attnum,
                tp = SearchSysCache2(ATTNUM,
                                     ObjectIdGetDatum(rte->relid),
                                     Int16GetDatum(attnum));
-               if (!HeapTupleIsValid(tp))      /* shouldn't happen */
+               if (!HeapTupleIsValid(tp))  /* shouldn't happen */
                    elog(ERROR, "cache lookup failed for attribute %d of relation %u",
                         attnum, rte->relid);
                att_tup = (Form_pg_attribute) GETSTRUCT(tp);
@@ -2868,7 +2868,7 @@ get_rte_attribute_is_dropped(RangeTblEntry *rte, AttrNumber attnum)
                tp = SearchSysCache2(ATTNUM,
                                     ObjectIdGetDatum(rte->relid),
                                     Int16GetDatum(attnum));
-               if (!HeapTupleIsValid(tp))      /* shouldn't happen */
+               if (!HeapTupleIsValid(tp))  /* shouldn't happen */
                    elog(ERROR, "cache lookup failed for attribute %d of relation %u",
                         attnum, rte->relid);
                att_tup = (Form_pg_attribute) GETSTRUCT(tp);
index 6bc9c531c736bdaf11f1da0e49fb45e26793fc8f..30e7caeb625cad2c108a22366651d30853e1c2f0 100644 (file)
@@ -91,7 +91,7 @@ typedef struct
                                 * the table */
    IndexStmt  *pkey;           /* PRIMARY KEY index, if any */
    bool        ispartitioned;  /* true if table is partitioned */
-   PartitionBoundSpec *partbound;      /* transformed FOR VALUES */
+   PartitionBoundSpec *partbound;  /* transformed FOR VALUES */
 } CreateStmtContext;
 
 /* State shared by transformCreateSchemaStmt and its subroutines */
@@ -1213,7 +1213,7 @@ transformOfType(CreateStmtContext *cxt, TypeName *ofTypename)
    tuple = typenameType(NULL, ofTypename, NULL);
    check_of_type(tuple);
    ofTypeId = HeapTupleGetOid(tuple);
-   ofTypename->typeOid = ofTypeId;     /* cached for later */
+   ofTypename->typeOid = ofTypeId; /* cached for later */
 
    tupdesc = lookup_rowtype_tupdesc(ofTypeId, -1);
    for (i = 0; i < tupdesc->natts; i++)
@@ -2403,7 +2403,7 @@ transformRuleStmt(RuleStmt *stmt, const char *queryString,
    assign_expr_collations(pstate, *whereClause);
 
    /* this is probably dead code without add_missing_from: */
-   if (list_length(pstate->p_rtable) != 2)     /* naughty, naughty... */
+   if (list_length(pstate->p_rtable) != 2) /* naughty, naughty... */
        ereport(ERROR,
                (errcode(ERRCODE_INVALID_OBJECT_DEFINITION),
                 errmsg("rule WHERE condition cannot contain references to other relations")));
@@ -2420,7 +2420,7 @@ transformRuleStmt(RuleStmt *stmt, const char *queryString,
 
        nothing_qry->commandType = CMD_NOTHING;
        nothing_qry->rtable = pstate->p_rtable;
-       nothing_qry->jointree = makeFromExpr(NIL, NULL);        /* no join wanted */
+       nothing_qry->jointree = makeFromExpr(NIL, NULL);    /* no join wanted */
 
        *actions = list_make1(nothing_qry);
    }
index 231d847de7940e191748b1aa2290df35c37997ae..c0c2b3127032dfd7ab89fc22c4670914b9952b4c 100644 (file)
@@ -82,7 +82,7 @@ pg_atomic_clear_flag_impl(volatile pg_atomic_flag *ptr)
    S_UNLOCK((slock_t *) &ptr->sema);
 }
 
-#endif   /* PG_HAVE_ATOMIC_FLAG_SIMULATION */
+#endif                         /* PG_HAVE_ATOMIC_FLAG_SIMULATION */
 
 #ifdef PG_HAVE_ATOMIC_U32_SIMULATION
 void
@@ -156,7 +156,7 @@ pg_atomic_fetch_add_u32_impl(volatile pg_atomic_uint32 *ptr, int32 add_)
    return oldval;
 }
 
-#endif   /* PG_HAVE_ATOMIC_U32_SIMULATION */
+#endif                         /* PG_HAVE_ATOMIC_U32_SIMULATION */
 
 
 #ifdef PG_HAVE_ATOMIC_U64_SIMULATION
@@ -219,4 +219,4 @@ pg_atomic_fetch_add_u64_impl(volatile pg_atomic_uint64 *ptr, int64 add_)
    return oldval;
 }
 
-#endif   /* PG_HAVE_ATOMIC_U64_SIMULATION */
+#endif                         /* PG_HAVE_ATOMIC_U64_SIMULATION */
index 321597dae2296e7b2756e9a0ba91b571c9121bb2..4b1bad6e45edbfb27e243366121eda6f63301744 100644 (file)
@@ -16,7 +16,7 @@
 #define PORT_PROTOS_H
 
 #include 
-#include "utils/dynamic_loader.h"      /* pgrminclude ignore */
+#include "utils/dynamic_loader.h"  /* pgrminclude ignore */
 
 /*
  * In some older systems, the RTLD_NOW flag isn't defined and the mode
@@ -36,4 +36,4 @@
 #define  pg_dlclose(h) dlclose(h)
 #define  pg_dlerror()  dlerror()
 
-#endif   /* PORT_PROTOS_H */
+#endif                         /* PORT_PROTOS_H */
index bb3d7a322a1ac7a8d4618baee9f59a81f3aac5fe..5d819cfd7bb6962c035152547b298314d963a88c 100644 (file)
@@ -13,7 +13,7 @@
 #define PORT_PROTOS_H
 
 #include 
-#include "utils/dynamic_loader.h"      /* pgrminclude ignore */
+#include "utils/dynamic_loader.h"  /* pgrminclude ignore */
 
 /*
  * In some older systems, the RTLD_NOW flag isn't defined and the mode
@@ -33,4 +33,4 @@
 #define pg_dlclose     dlclose
 #define pg_dlerror     dlerror
 
-#endif   /* PORT_PROTOS_H */
+#endif                         /* PORT_PROTOS_H */
index 7b6b48d14ac2391464904574387c10b12d9ccab1..f8fdeaf12222a2d974caad97e5108e05ef130cc3 100644 (file)
@@ -135,4 +135,4 @@ pg_dlerror(void)
    return (char *) errorString;
 }
 
-#endif   /* HAVE_DLOPEN */
+#endif                         /* HAVE_DLOPEN */
index e61b1c241a1cd3c579ed0eb2f35d9dd2fb73c559..23547b06bb58ffa43a94d5fd0259ac1e9c26eed3 100644 (file)
@@ -32,7 +32,7 @@
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)dl.c   5.4 (Berkeley) 2/23/91";
-#endif   /* LIBC_SCCS and not lint */
+#endif                         /* LIBC_SCCS and not lint */
 
 #include "postgres.h"
 
@@ -89,7 +89,7 @@ BSD44_derived_dlsym(void *handle, const char *name)
        snprintf(buf, sizeof(buf), "_%s", name);
        name = buf;
    }
-#endif   /* !__ELF__ */
+#endif                         /* !__ELF__ */
    if ((vp = dlsym(handle, (char *) name)) == NULL)
        snprintf(error_message, sizeof(error_message),
                 "dlsym (%s) failed", name);
index 6116d3f83f5bfd1a637367b4fb01cfa0d4c70fe7..6faf07f9624304f0cfec268768fc60c08b37277f 100644 (file)
@@ -17,7 +17,7 @@
 #include 
 #include 
 
-#include "utils/dynamic_loader.h"      /* pgrminclude ignore */
+#include "utils/dynamic_loader.h"  /* pgrminclude ignore */
 
 /*
  * Dynamic Loader on NetBSD 1.0.
@@ -55,4 +55,4 @@ void     *BSD44_derived_dlopen(const char *filename, int num);
 void      *BSD44_derived_dlsym(void *handle, const char *name);
 void       BSD44_derived_dlclose(void *handle);
 
-#endif   /* PORT_PROTOS_H */
+#endif                         /* PORT_PROTOS_H */
index 368bf0006f3ab3e31fb83ec93c940aa3db7eb789..38e19f74840d90ddbbe5931c35c469fc8c42b845 100644 (file)
@@ -130,4 +130,4 @@ pg_dlerror(void)
 #endif
 }
 
-#endif   /* !HAVE_DLOPEN */
+#endif                         /* !HAVE_DLOPEN */
index 9d804ad9555dd081ece0622732573a0e2822c603..d2c25df0337f482311fcd65bafe86c92bd2a4786 100644 (file)
@@ -14,7 +14,7 @@
 #ifndef PORT_PROTOS_H
 #define PORT_PROTOS_H
 
-#include "utils/dynamic_loader.h"      /* pgrminclude ignore */
+#include "utils/dynamic_loader.h"  /* pgrminclude ignore */
 #ifdef HAVE_DLOPEN
 #include 
 #endif
@@ -39,6 +39,6 @@
 #define pg_dlsym       dlsym
 #define pg_dlclose     dlclose
 #define pg_dlerror     dlerror
-#endif   /* HAVE_DLOPEN */
+#endif                         /* HAVE_DLOPEN */
 
-#endif   /* PORT_PROTOS_H */
+#endif                         /* PORT_PROTOS_H */
index 01a96013cb1478e57020e3d3b5f6d554ce543cd6..475d746514e1ad43a71e6ffb637011583bd2c361 100644 (file)
@@ -32,7 +32,7 @@
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)dl.c   5.4 (Berkeley) 2/23/91";
-#endif   /* LIBC_SCCS and not lint */
+#endif                         /* LIBC_SCCS and not lint */
 
 #include "postgres.h"
 
@@ -89,7 +89,7 @@ BSD44_derived_dlsym(void *handle, const char *name)
        snprintf(buf, sizeof(buf), "_%s", name);
        name = buf;
    }
-#endif   /* !__ELF__ */
+#endif                         /* !__ELF__ */
    if ((vp = dlsym(handle, (char *) name)) == NULL)
        snprintf(error_message, sizeof(error_message),
                 "dlsym (%s) failed", name);
index 0bd406850daf59f69b29d79ff2898976ff54ffb1..2ca332256be80db0646f7200e01e5e6bb2f85a17 100644 (file)
@@ -18,7 +18,7 @@
 #include 
 #include 
 
-#include "utils/dynamic_loader.h"      /* pgrminclude ignore */
+#include "utils/dynamic_loader.h"  /* pgrminclude ignore */
 
 /*
  * Dynamic Loader on NetBSD 1.0.
@@ -56,4 +56,4 @@ void     *BSD44_derived_dlopen(const char *filename, int num);
 void      *BSD44_derived_dlsym(void *handle, const char *name);
 void       BSD44_derived_dlclose(void *handle);
 
-#endif   /* PORT_PROTOS_H */
+#endif                         /* PORT_PROTOS_H */
index fcd336acbefbc9f287eb2092237ef788e71cf49f..7b481b90d10219779b309e721fef926ec462db02 100644 (file)
@@ -32,7 +32,7 @@
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)dl.c   5.4 (Berkeley) 2/23/91";
-#endif   /* LIBC_SCCS and not lint */
+#endif                         /* LIBC_SCCS and not lint */
 
 #include "postgres.h"
 
@@ -89,7 +89,7 @@ BSD44_derived_dlsym(void *handle, const char *name)
        snprintf(buf, sizeof(buf), "_%s", name);
        name = buf;
    }
-#endif   /* !__ELF__ */
+#endif                         /* !__ELF__ */
    if ((vp = dlsym(handle, (char *) name)) == NULL)
        snprintf(error_message, sizeof(error_message),
                 "dlsym (%s) failed", name);
index 25d5439633a04c92304d3548cd731ec63d39a065..1130f39b4109dcb7ff5df5132300c80c6c0f3061 100644 (file)
@@ -17,7 +17,7 @@
 #include 
 #include 
 
-#include "utils/dynamic_loader.h"      /* pgrminclude ignore */
+#include "utils/dynamic_loader.h"  /* pgrminclude ignore */
 
 /*
  * Dynamic Loader on NetBSD 1.0.
@@ -55,4 +55,4 @@ void     *BSD44_derived_dlopen(const char *filename, int num);
 void      *BSD44_derived_dlsym(void *handle, const char *name);
 void       BSD44_derived_dlclose(void *handle);
 
-#endif   /* PORT_PROTOS_H */
+#endif                         /* PORT_PROTOS_H */
index f50ba524dc791b7398fceb45a54982ee00c57ccd..e7638ff0fca4f0cfa1909dfb8183fbdc024cf4d8 100644 (file)
@@ -15,7 +15,7 @@
 #define PORT_PROTOS_H
 
 #include 
-#include "utils/dynamic_loader.h"      /* pgrminclude ignore */
+#include "utils/dynamic_loader.h"  /* pgrminclude ignore */
 
 /*
  * In some older systems, the RTLD_NOW flag isn't defined and the mode
@@ -35,4 +35,4 @@
 #define pg_dlclose     dlclose
 #define pg_dlerror     dlerror
 
-#endif   /* PORT_PROTOS_H */
+#endif                         /* PORT_PROTOS_H */
index f689dc8ff99f9691644b86142434f369dcfa55e1..ddbf86652010f3aceb52ee303bb808926477ea74 100644 (file)
@@ -4,7 +4,7 @@
 #ifndef PORT_PROTOS_H
 #define PORT_PROTOS_H
 
-#include "utils/dynamic_loader.h"      /* pgrminclude ignore */
+#include "utils/dynamic_loader.h"  /* pgrminclude ignore */
 
 #define pg_dlopen(f)   dlopen((f), 1)
 #define pg_dlsym       dlsym
@@ -16,4 +16,4 @@ int           dlclose(void *handle);
 void      *dlsym(void *handle, const char *symbol);
 void      *dlopen(const char *path, int mode);
 
-#endif   /* PORT_PROTOS_H */
+#endif                         /* PORT_PROTOS_H */
index f251ac6788dd5374245c2c295f566108cefe8d1e..5719caf9b56838b5975dd35b71f9deb01766d8c3 100644 (file)
@@ -130,7 +130,7 @@ PosixSemaphoreCreate(sem_t *sem)
    if (sem_init(sem, 1, 1) < 0)
        elog(FATAL, "sem_init failed: %m");
 }
-#endif   /* USE_NAMED_POSIX_SEMAPHORES */
+#endif                         /* USE_NAMED_POSIX_SEMAPHORES */
 
 
 /*
index 4fbcc5e2b49bbea78d768413cf57e1e115da5fc0..a68b1f4aea8a7606f8b257a67b207533eda716a8 100644 (file)
@@ -64,10 +64,10 @@ typedef int IpcSemaphoreId;     /* semaphore ID returned by semget(2) */
 static PGSemaphore sharedSemas; /* array of PGSemaphoreData in shared memory */
 static int numSharedSemas;     /* number of PGSemaphoreDatas used so far */
 static int maxSharedSemas;     /* allocated size of PGSemaphoreData array */
-static IpcSemaphoreId *mySemaSets;     /* IDs of sema sets acquired so far */
+static IpcSemaphoreId *mySemaSets; /* IDs of sema sets acquired so far */
 static int numSemaSets;        /* number of sema sets acquired so far */
 static int maxSemaSets;        /* allocated size of mySemaSets array */
-static IpcSemaphoreKey nextSemaKey;        /* next key to try using */
+static IpcSemaphoreKey nextSemaKey; /* next key to try using */
 static int nextSemaNumber;     /* next free sem num in last sema set */
 
 
@@ -333,7 +333,7 @@ PGReserveSemaphores(int maxSemas, int port)
        elog(PANIC, "out of memory");
    numSemaSets = 0;
    nextSemaKey = port * 1000;
-   nextSemaNumber = SEMAS_PER_SET;     /* force sema set alloc on 1st call */
+   nextSemaNumber = SEMAS_PER_SET; /* force sema set alloc on 1st call */
 
    on_shmem_exit(ReleaseSemaphores, 0);
 }
index 124b2148de9a01ba72fe26b16daa4ce45e1928c4..042635afbd825106d70a97ed298575180c205801 100644 (file)
@@ -440,10 +440,10 @@ GetHugePageSize(Size *hugepagesize, int *mmap_flags)
            FreeFile(fp);
        }
    }
-#endif   /* __linux__ */
+#endif                         /* __linux__ */
 }
 
-#endif   /* MAP_HUGETLB */
+#endif                         /* MAP_HUGETLB */
 
 /*
  * Creates an anonymous mmap()ed shared memory segment.
@@ -533,7 +533,7 @@ AnonymousShmemDetach(int status, Datum arg)
    }
 }
 
-#endif   /* USE_ANONYMOUS_SHMEM */
+#endif                         /* USE_ANONYMOUS_SHMEM */
 
 /*
  * PGSharedMemoryCreate
@@ -771,7 +771,7 @@ PGSharedMemoryNoReAttach(void)
    UsedShmemSegID = 0;
 }
 
-#endif   /* EXEC_BACKEND */
+#endif                         /* EXEC_BACKEND */
 
 /*
  * PGSharedMemoryDetach
index 31489fcdb0427cccab6d3e08134cc3ac3ae3b0d8..01f51f3158431b95193f8f5bce62b368f9c53894 100644 (file)
@@ -49,7 +49,7 @@ GetSharedMemName(void)
        elog(FATAL, "could not get size for full pathname of datadir %s: error code %lu",
             DataDir, GetLastError());
 
-   retptr = malloc(bufsize + 18);      /* 18 for Global\PostgreSQL: */
+   retptr = malloc(bufsize + 18);  /* 18 for Global\PostgreSQL: */
    if (retptr == NULL)
        elog(FATAL, "could not allocate memory for shared memory name");
 
@@ -163,9 +163,9 @@ PGSharedMemoryCreate(Size size, bool makePrivate, int port,
 
        hmap = CreateFileMapping(INVALID_HANDLE_VALUE,  /* Use the pagefile */
                                 NULL,  /* Default security attrs */
-                                PAGE_READWRITE,        /* Memory is Read/Write */
-                                size_high,     /* Size Upper 32 Bits   */
-                                size_low,      /* Size Lower 32 bits */
+                                PAGE_READWRITE,    /* Memory is Read/Write */
+                                size_high, /* Size Upper 32 Bits   */
+                                size_low,  /* Size Lower 32 bits */
                                 szShareMem);
 
        if (!hmap)
index 5baa6db321a6709f8bfbe318581e52c01d476ac7..e62c6ad2ede3c7fade59cfe662938dd179a5b8d6 100644 (file)
@@ -129,8 +129,8 @@ int         Log_autovacuum_min_duration = -1;
 #define STATS_READ_DELAY 1000
 
 /* the minimum allowed time between two awakenings of the launcher */
-#define MIN_AUTOVAC_SLEEPTIME 100.0        /* milliseconds */
-#define MAX_AUTOVAC_SLEEPTIME 300      /* seconds */
+#define MIN_AUTOVAC_SLEEPTIME 100.0 /* milliseconds */
+#define MAX_AUTOVAC_SLEEPTIME 300  /* seconds */
 
 /* Flags to tell if we are in an autovacuum process */
 static bool am_autovacuum_launcher = false;
@@ -516,7 +516,7 @@ AutoVacLauncherMain(int argc, char *argv[])
 
        /* Forget any pending QueryCancel or timeout request */
        disable_all_timeouts(false);
-       QueryCancelPending = false;     /* second to avoid race condition */
+       QueryCancelPending = false; /* second to avoid race condition */
 
        /* Report the error to the server log */
        EmitErrorReport();
index 09b7fb4092043d4bddc289fe0e4dbf5180e0d625..227e66b4ba81a4921b37fae8a664fa251a4be995 100644 (file)
@@ -636,7 +636,7 @@ SanityCheckBackgroundWorker(BackgroundWorker *worker, int elevel)
 static void
 bgworker_quickdie(SIGNAL_ARGS)
 {
-   sigaddset(&BlockSig, SIGQUIT);      /* prevent nested calls */
+   sigaddset(&BlockSig, SIGQUIT);  /* prevent nested calls */
    PG_SETMASK(&BlockSig);
 
    /*
@@ -986,7 +986,7 @@ RegisterDynamicBackgroundWorker(BackgroundWorker *worker,
        if (!slot->in_use)
        {
            memcpy(&slot->worker, worker, sizeof(BackgroundWorker));
-           slot->pid = InvalidPid;     /* indicates not started yet */
+           slot->pid = InvalidPid; /* indicates not started yet */
            slot->generation++;
            slot->terminate = false;
            generation = slot->generation;
index 2674bb49ba8350e2619b3ba8b4a15724fb1e29c2..9ad74ee977f18a0c8c5a4c7dd5bf6414d24b38ae 100644 (file)
@@ -122,8 +122,8 @@ BackgroundWriterMain(void)
     */
    pqsignal(SIGHUP, BgSigHupHandler);  /* set flag to read config file */
    pqsignal(SIGINT, SIG_IGN);
-   pqsignal(SIGTERM, ReqShutdownHandler);      /* shutdown */
-   pqsignal(SIGQUIT, bg_quickdie);     /* hard crash time */
+   pqsignal(SIGTERM, ReqShutdownHandler);  /* shutdown */
+   pqsignal(SIGQUIT, bg_quickdie); /* hard crash time */
    pqsignal(SIGALRM, SIG_IGN);
    pqsignal(SIGPIPE, SIG_IGN);
    pqsignal(SIGUSR1, bgwriter_sigusr1_handler);
index a55071900d8467f1323c7e38318c94dd2fe06053..f37f5d5c44f4747a7b724f8ac03db41c912e8b6a 100644 (file)
@@ -116,7 +116,7 @@ typedef struct
 
 typedef struct
 {
-   pid_t       checkpointer_pid;       /* PID (0 if not started) */
+   pid_t       checkpointer_pid;   /* PID (0 if not started) */
 
    slock_t     ckpt_lck;       /* protects all the ckpt_* fields */
 
@@ -126,8 +126,8 @@ typedef struct
 
    int         ckpt_flags;     /* checkpoint flags, as defined in xlog.h */
 
-   uint32      num_backend_writes;     /* counts user backend buffer writes */
-   uint32      num_backend_fsync;      /* counts user backend fsync calls */
+   uint32      num_backend_writes; /* counts user backend buffer writes */
+   uint32      num_backend_fsync;  /* counts user backend fsync calls */
 
    int         num_requests;   /* current # of requests */
    int         max_requests;   /* allocated array size */
@@ -205,15 +205,14 @@ CheckpointerMain(void)
     * want to wait for the backends to exit, whereupon the postmaster will
     * tell us it's okay to shut down (via SIGUSR2).
     */
-   pqsignal(SIGHUP, ChkptSigHupHandler);       /* set flag to read config
-                                                * file */
-   pqsignal(SIGINT, ReqCheckpointHandler);     /* request checkpoint */
+   pqsignal(SIGHUP, ChkptSigHupHandler);   /* set flag to read config file */
+   pqsignal(SIGINT, ReqCheckpointHandler); /* request checkpoint */
    pqsignal(SIGTERM, SIG_IGN); /* ignore SIGTERM */
    pqsignal(SIGQUIT, chkpt_quickdie);  /* hard crash time */
    pqsignal(SIGALRM, SIG_IGN);
    pqsignal(SIGPIPE, SIG_IGN);
    pqsignal(SIGUSR1, chkpt_sigusr1_handler);
-   pqsignal(SIGUSR2, ReqShutdownHandler);      /* request shutdown */
+   pqsignal(SIGUSR2, ReqShutdownHandler);  /* request shutdown */
 
    /*
     * Reset some signals that are accepted by postmaster but not here
index 0bb15d84873a25344201a1b2737ecf2097f6da8f..65145b1205e32aeeb83a4e1459e6d2ba2ca467a3 100644 (file)
@@ -118,4 +118,4 @@ fork_process(void)
    return result;
 }
 
-#endif   /* ! WIN32 */
+#endif                         /* ! WIN32 */
index 2dce39fdefd0e50a29877ba5403bc100524ed7bb..00afce410454da9eea605999b8a2e681b54ba62c 100644 (file)
  * Timer definitions.
  * ----------
  */
-#define PGARCH_AUTOWAKE_INTERVAL 60        /* How often to force a poll of the
-                                        * archive status directory; in
-                                        * seconds. */
-#define PGARCH_RESTART_INTERVAL 10     /* How often to attempt to restart a
-                                        * failed archiver; in seconds. */
+#define PGARCH_AUTOWAKE_INTERVAL 60 /* How often to force a poll of the
+                                    * archive status directory; in seconds. */
+#define PGARCH_RESTART_INTERVAL 10 /* How often to attempt to restart a
+                                    * failed archiver; in seconds. */
 
 #define NUM_ARCHIVE_RETRIES 3
 
@@ -203,7 +202,7 @@ pgarch_forkexec(void)
 
    return postmaster_forkexec(ac, av);
 }
-#endif   /* EXEC_BACKEND */
+#endif                         /* EXEC_BACKEND */
 
 
 /*
index 5cf958224631744e20aec8eccf6f08d8e4cf6b5a..68c1ee24634633b568b2650c4b65c5ac95644f02 100644 (file)
  * Timer definitions.
  * ----------
  */
-#define PGSTAT_STAT_INTERVAL   500     /* Minimum time between stats file
-                                        * updates; in milliseconds. */
+#define PGSTAT_STAT_INTERVAL   500 /* Minimum time between stats file
+                                    * updates; in milliseconds. */
 
-#define PGSTAT_RETRY_DELAY     10      /* How long to wait between checks for
-                                        * a new file; in milliseconds. */
+#define PGSTAT_RETRY_DELAY     10  /* How long to wait between checks for a
+                                    * new file; in milliseconds. */
 
 #define PGSTAT_MAX_WAIT_TIME   10000   /* Maximum time to wait for a stats
                                         * file update; in milliseconds. */
 
-#define PGSTAT_INQ_INTERVAL        640     /* How often to ping the collector for
-                                        * a new file; in milliseconds. */
+#define PGSTAT_INQ_INTERVAL        640 /* How often to ping the collector for a
+                                    * new file; in milliseconds. */
 
-#define PGSTAT_RESTART_INTERVAL 60     /* How often to attempt to restart a
-                                        * failed statistics collector; in
-                                        * seconds. */
+#define PGSTAT_RESTART_INTERVAL 60 /* How often to attempt to restart a
+                                    * failed statistics collector; in
+                                    * seconds. */
 
 #define PGSTAT_POLL_LOOP_COUNT (PGSTAT_MAX_WAIT_TIME / PGSTAT_RETRY_DELAY)
 #define PGSTAT_INQ_LOOP_COUNT  (PGSTAT_INQ_INTERVAL / PGSTAT_RETRY_DELAY)
@@ -213,7 +213,7 @@ typedef struct PgStat_SubXactStatus
 {
    int         nest_level;     /* subtransaction nest level */
    struct PgStat_SubXactStatus *prev;  /* higher-level subxact if any */
-   PgStat_TableXactStatus *first;      /* head of list for this subxact */
+   PgStat_TableXactStatus *first;  /* head of list for this subxact */
 } PgStat_SubXactStatus;
 
 static PgStat_SubXactStatus *pgStatXactStack = NULL;
@@ -226,9 +226,9 @@ PgStat_Counter pgStatBlockWriteTime = 0;
 /* Record that's written to 2PC state file when pgstat state is persisted */
 typedef struct TwoPhasePgStatRecord
 {
-   PgStat_Counter tuples_inserted;     /* tuples inserted in xact */
-   PgStat_Counter tuples_updated;      /* tuples updated in xact */
-   PgStat_Counter tuples_deleted;      /* tuples deleted in xact */
+   PgStat_Counter tuples_inserted; /* tuples inserted in xact */
+   PgStat_Counter tuples_updated;  /* tuples updated in xact */
+   PgStat_Counter tuples_deleted;  /* tuples deleted in xact */
    PgStat_Counter inserted_pre_trunc;  /* tuples inserted prior to truncate */
    PgStat_Counter updated_pre_trunc;   /* tuples updated prior to truncate */
    PgStat_Counter deleted_pre_trunc;   /* tuples deleted prior to truncate */
@@ -710,7 +710,7 @@ pgstat_forkexec(void)
 
    return postmaster_forkexec(ac, av);
 }
-#endif   /* EXEC_BACKEND */
+#endif                         /* EXEC_BACKEND */
 
 
 /*
@@ -1290,7 +1290,7 @@ pgstat_drop_relation(Oid relid)
    msg.m_databaseid = MyDatabaseId;
    pgstat_send(&msg, len);
 }
-#endif   /* NOT_USED */
+#endif                         /* NOT_USED */
 
 
 /* ----------
index a5d3575b20975b0d3462b7109f77e3ae689643a9..3c5eee0fbc7992fded96ac712558de869347c03f 100644 (file)
@@ -344,10 +344,10 @@ static time_t AbortStartTime = 0;
 /* Length of said timeout */
 #define SIGKILL_CHILDREN_AFTER_SECS        5
 
-static bool ReachedNormalRunning = false;      /* T if we've reached PM_RUN */
+static bool ReachedNormalRunning = false;  /* T if we've reached PM_RUN */
 
-bool       ClientAuthInProgress = false;       /* T during new-client
-                                                * authentication */
+bool       ClientAuthInProgress = false;   /* T during new-client
+                                            * authentication */
 
 bool       redirection_done = false;   /* stderr redirected for syslogger? */
 
@@ -455,7 +455,7 @@ typedef struct
    HANDLE      procHandle;
    DWORD       procId;
 } win32_deadchild_waitinfo;
-#endif   /* WIN32 */
+#endif                         /* WIN32 */
 
 static pid_t backend_forkexec(Port *port);
 static pid_t internal_forkexec(int argc, char *argv[], Port *port);
@@ -537,7 +537,7 @@ static bool save_backend_variables(BackendParameters *param, Port *port,
 
 static void ShmemBackendArrayAdd(Backend *bn);
 static void ShmemBackendArrayRemove(Backend *bn);
-#endif   /* EXEC_BACKEND */
+#endif                         /* EXEC_BACKEND */
 
 #define StartupDataBase()      StartChildProcess(StartupProcess)
 #define StartBackgroundWriter() StartChildProcess(BgWriterProcess)
@@ -631,20 +631,18 @@ PostmasterMain(int argc, char *argv[])
    pqinitmask();
    PG_SETMASK(&BlockSig);
 
-   pqsignal_no_restart(SIGHUP, SIGHUP_handler);        /* reread config file
-                                                        * and have children do
-                                                        * same */
+   pqsignal_no_restart(SIGHUP, SIGHUP_handler);    /* reread config file and
+                                                    * have children do same */
    pqsignal_no_restart(SIGINT, pmdie); /* send SIGTERM and shut down */
-   pqsignal_no_restart(SIGQUIT, pmdie);        /* send SIGQUIT and die */
-   pqsignal_no_restart(SIGTERM, pmdie);        /* wait for children and shut
-                                                * down */
+   pqsignal_no_restart(SIGQUIT, pmdie);    /* send SIGQUIT and die */
+   pqsignal_no_restart(SIGTERM, pmdie);    /* wait for children and shut down */
    pqsignal(SIGALRM, SIG_IGN); /* ignored */
    pqsignal(SIGPIPE, SIG_IGN); /* ignored */
-   pqsignal_no_restart(SIGUSR1, sigusr1_handler);      /* message from child
-                                                        * process */
-   pqsignal_no_restart(SIGUSR2, dummy_handler);        /* unused, reserve for
-                                                        * children */
-   pqsignal_no_restart(SIGCHLD, reaper);       /* handle child termination */
+   pqsignal_no_restart(SIGUSR1, sigusr1_handler);  /* message from child
+                                                    * process */
+   pqsignal_no_restart(SIGUSR2, dummy_handler);    /* unused, reserve for
+                                                    * children */
+   pqsignal_no_restart(SIGCHLD, reaper);   /* handle child termination */
    pqsignal(SIGTTIN, SIG_IGN); /* ignored */
    pqsignal(SIGTTOU, SIG_IGN); /* ignored */
    /* ignore SIGXFSZ, so that ulimit violations work like disk full */
@@ -3148,7 +3146,7 @@ CleanupBackgroundWorker(int pid,
        rw->rw_backend = NULL;
        rw->rw_pid = 0;
        rw->rw_child_slot = 0;
-       ReportBackgroundWorkerExit(&iter);      /* report child death */
+       ReportBackgroundWorkerExit(&iter);  /* report child death */
 
        LogChildExit(EXIT_STATUS_0(exitstatus) ? DEBUG1 : LOG,
                     namebuf, pid, exitstatus);
@@ -4003,7 +4001,7 @@ BackendStartup(Port *port)
        /* And run the backend */
        BackendRun(port);
    }
-#endif   /* EXEC_BACKEND */
+#endif                         /* EXEC_BACKEND */
 
    if (pid < 0)
    {
@@ -4030,7 +4028,7 @@ BackendStartup(Port *port)
     * of backends.
     */
    bn->pid = pid;
-   bn->bkend_type = BACKEND_TYPE_NORMAL;       /* Can change later to WALSND */
+   bn->bkend_type = BACKEND_TYPE_NORMAL;   /* Can change later to WALSND */
    dlist_push_head(&BackendList, &bn->elem);
 
 #ifdef EXEC_BACKEND
@@ -4120,7 +4118,7 @@ BackendInitialize(Port *port)
     * Must do this now because authentication uses libpq to send messages.
     */
    pq_init();                  /* initialize libpq to talk to client */
-   whereToSendOutput = DestRemote;     /* now safe to ereport to client */
+   whereToSendOutput = DestRemote; /* now safe to ereport to client */
 
    /*
     * We arrange for a simple exit(1) if we receive SIGTERM or SIGQUIT or
@@ -4668,7 +4666,7 @@ internal_forkexec(int argc, char *argv[], Port *port)
 
    return pi.dwProcessId;
 }
-#endif   /* WIN32 */
+#endif                         /* WIN32 */
 
 
 /*
@@ -4842,7 +4840,7 @@ SubPostmasterMain(int argc, char *argv[])
        /* Attach process to shared data structures */
        CreateSharedMemoryAndSemaphores(false, 0);
 
-       AuxiliaryProcessMain(argc - 2, argv + 2);       /* does not return */
+       AuxiliaryProcessMain(argc - 2, argv + 2);   /* does not return */
    }
    if (strcmp(argv[1], "--forkavlauncher") == 0)
    {
@@ -4855,7 +4853,7 @@ SubPostmasterMain(int argc, char *argv[])
        /* Attach process to shared data structures */
        CreateSharedMemoryAndSemaphores(false, 0);
 
-       AutoVacLauncherMain(argc - 2, argv + 2);        /* does not return */
+       AutoVacLauncherMain(argc - 2, argv + 2);    /* does not return */
    }
    if (strcmp(argv[1], "--forkavworker") == 0)
    {
@@ -4896,24 +4894,24 @@ SubPostmasterMain(int argc, char *argv[])
    {
        /* Do not want to attach to shared memory */
 
-       PgArchiverMain(argc, argv);     /* does not return */
+       PgArchiverMain(argc, argv); /* does not return */
    }
    if (strcmp(argv[1], "--forkcol") == 0)
    {
        /* Do not want to attach to shared memory */
 
-       PgstatCollectorMain(argc, argv);        /* does not return */
+       PgstatCollectorMain(argc, argv);    /* does not return */
    }
    if (strcmp(argv[1], "--forklog") == 0)
    {
        /* Do not want to attach to shared memory */
 
-       SysLoggerMain(argc, argv);      /* does not return */
+       SysLoggerMain(argc, argv);  /* does not return */
    }
 
    abort();                    /* shouldn't get here */
 }
-#endif   /* EXEC_BACKEND */
+#endif                         /* EXEC_BACKEND */
 
 
 /*
@@ -5272,7 +5270,7 @@ StartChildProcess(AuxProcType type)
        AuxiliaryProcessMain(ac, av);
        ExitPostmaster(0);
    }
-#endif   /* EXEC_BACKEND */
+#endif                         /* EXEC_BACKEND */
 
    if (pid < 0)
    {
@@ -6228,7 +6226,7 @@ ShmemBackendArrayRemove(Backend *bn)
    /* Mark the slot as empty */
    ShmemBackendArray[i].pid = 0;
 }
-#endif   /* EXEC_BACKEND */
+#endif                         /* EXEC_BACKEND */
 
 
 #ifdef WIN32
@@ -6304,7 +6302,7 @@ pgwin32_deadchild_callback(PVOID lpParameter, BOOLEAN TimerOrWaitFired)
    /* Queue SIGCHLD signal */
    pg_queue_signal(SIGCHLD);
 }
-#endif   /* WIN32 */
+#endif                         /* WIN32 */
 
 /*
  * Initialize one and only handle for monitoring postmaster death.
@@ -6355,5 +6353,5 @@ InitPostmasterDeathWatchHandle(void)
        ereport(FATAL,
                (errmsg_internal("could not duplicate postmaster handle: error code %lu",
                                 GetLastError())));
-#endif   /* WIN32 */
+#endif                         /* WIN32 */
 }
index b62325247500b227fbfa3cca75da8bb7b987ff7f..4693a1bb86f526aeefc5c0b4f5097e6e8947f26f 100644 (file)
@@ -183,7 +183,7 @@ StartupProcessMain(void)
     */
    pqsignal(SIGHUP, StartupProcSigHupHandler); /* reload config file */
    pqsignal(SIGINT, SIG_IGN);  /* ignore query cancel */
-   pqsignal(SIGTERM, StartupProcShutdownHandler);      /* request shutdown */
+   pqsignal(SIGTERM, StartupProcShutdownHandler);  /* request shutdown */
    pqsignal(SIGQUIT, startupproc_quickdie);    /* hard crash time */
    InitializeTimeouts();       /* establishes SIGALRM handler */
    pqsignal(SIGPIPE, SIG_IGN);
index 9828999eb848add56dbe013ea6dfac2b139a770f..7e4d7a9041b0ab227e85a5edd74bb4a9ec5a21ed 100644 (file)
@@ -169,7 +169,7 @@ SysLoggerMain(int argc, char *argv[])
 
 #ifdef EXEC_BACKEND
    syslogger_parseArgs(argc, argv);
-#endif   /* EXEC_BACKEND */
+#endif                         /* EXEC_BACKEND */
 
    am_syslogger = true;
 
@@ -268,7 +268,7 @@ SysLoggerMain(int argc, char *argv[])
    threadHandle = (HANDLE) _beginthreadex(NULL, 0, pipeThread, NULL, 0, NULL);
    if (threadHandle == 0)
        elog(FATAL, "could not create syslogger data transfer thread: %m");
-#endif   /* WIN32 */
+#endif                         /* WIN32 */
 
    /*
     * Remember active logfile's name.  We recompute this from the reference
@@ -490,7 +490,7 @@ SysLoggerMain(int argc, char *argv[])
                         WAIT_EVENT_SYSLOGGER_MAIN);
 
        EnterCriticalSection(&sysloggerSection);
-#endif   /* WIN32 */
+#endif                         /* WIN32 */
 
        if (pipe_eof_seen)
        {
@@ -716,7 +716,7 @@ syslogger_forkexec(void)
                 (long) _get_osfhandle(_fileno(syslogFile)));
    else
        strcpy(filenobuf, "0");
-#endif   /* WIN32 */
+#endif                         /* WIN32 */
    av[ac++] = filenobuf;
 
    av[ac] = NULL;
@@ -756,9 +756,9 @@ syslogger_parseArgs(int argc, char *argv[])
            setvbuf(syslogFile, NULL, PG_IOLBF, 0);
        }
    }
-#endif   /* WIN32 */
+#endif                         /* WIN32 */
 }
-#endif   /* EXEC_BACKEND */
+#endif                         /* EXEC_BACKEND */
 
 
 /* --------------------------------
@@ -1084,7 +1084,7 @@ pipeThread(void *arg)
    _endthread();
    return 0;
 }
-#endif   /* WIN32 */
+#endif                         /* WIN32 */
 
 /*
  * Open the csv log file - we do this opportunistically, because
@@ -1103,7 +1103,7 @@ open_csvlogfile(void)
 
    csvlogFile = logfile_open(filename, "a", false);
 
-   if (last_csv_file_name != NULL)     /* probably shouldn't happen */
+   if (last_csv_file_name != NULL) /* probably shouldn't happen */
        pfree(last_csv_file_name);
 
    last_csv_file_name = filename;
index a575d8f953bbe4547d6fbbab9916ace74ceb4dfc..7b89e02428bf3b8d1d38b0100c3256823148aed0 100644 (file)
@@ -109,8 +109,8 @@ WalWriterMain(void)
     * reasonable to treat like SIGTERM.
     */
    pqsignal(SIGHUP, WalSigHupHandler); /* set flag to read config file */
-   pqsignal(SIGINT, WalShutdownHandler);       /* request shutdown */
-   pqsignal(SIGTERM, WalShutdownHandler);      /* request shutdown */
+   pqsignal(SIGINT, WalShutdownHandler);   /* request shutdown */
+   pqsignal(SIGTERM, WalShutdownHandler);  /* request shutdown */
    pqsignal(SIGQUIT, wal_quickdie);    /* hard crash time */
    pqsignal(SIGALRM, SIG_IGN);
    pqsignal(SIGPIPE, SIG_IGN);
@@ -286,7 +286,7 @@ WalWriterMain(void)
         * sleep time so as to reduce the server's idle power consumption.
         */
        if (left_till_hibernate > 0)
-           cur_timeout = WalWriterDelay;       /* in ms */
+           cur_timeout = WalWriterDelay;   /* in ms */
        else
            cur_timeout = WalWriterDelay * HIBERNATE_FACTOR;
 
index 823bec018fd170af01b88dc82fd69cf7ef19cd6f..f5a4151757ddc31f3a838a2bdd5f9bc95c7c8ea2 100644 (file)
@@ -145,7 +145,7 @@ pg_reg_getcolor(struct colormap *cm, chr c)
            low = middle + 1;
        else
        {
-           rownum = cmr->rownum;       /* found a match */
+           rownum = cmr->rownum;   /* found a match */
            break;
        }
    }
@@ -1040,8 +1040,7 @@ static void
 colorcomplement(struct nfa *nfa,
                struct colormap *cm,
                int type,
-               struct state *of,       /* complements of this guy's PLAIN
-                                        * outarcs */
+               struct state *of,   /* complements of this guy's PLAIN outarcs */
                struct state *from,
                struct state *to)
 {
@@ -1138,4 +1137,4 @@ dumpchr(chr c,
        fprintf(f, "\\u%04lx", (long) c);
 }
 
-#endif   /* REG_DEBUG */
+#endif                         /* REG_DEBUG */
index b2506ca814fa860847b0708f3da664ca89021e09..2c6551ca746625b8b574defb471d3664feb39cb1 100644 (file)
@@ -586,10 +586,10 @@ next(struct vars *v)
                    FAILW(REG_BADRPT);
                switch (*v->now++)
                {
-                   case CHR(':'):      /* non-capturing paren */
+                   case CHR(':'):  /* non-capturing paren */
                        RETV('(', 0);
                        break;
-                   case CHR('#'):      /* comment */
+                   case CHR('#'):  /* comment */
                        while (!ATEOS() && *v->now != CHR(')'))
                            v->now++;
                        if (!ATEOS())
@@ -597,11 +597,11 @@ next(struct vars *v)
                        assert(v->nexttype == v->lasttype);
                        return next(v);
                        break;
-                   case CHR('='):      /* positive lookahead */
+                   case CHR('='):  /* positive lookahead */
                        NOTE(REG_ULOOKAROUND);
                        RETV(LACON, LATYPE_AHEAD_POS);
                        break;
-                   case CHR('!'):      /* negative lookahead */
+                   case CHR('!'):  /* negative lookahead */
                        NOTE(REG_ULOOKAROUND);
                        RETV(LACON, LATYPE_AHEAD_NEG);
                        break;
@@ -610,11 +610,11 @@ next(struct vars *v)
                            FAILW(REG_BADRPT);
                        switch (*v->now++)
                        {
-                           case CHR('='):      /* positive lookbehind */
+                           case CHR('='):  /* positive lookbehind */
                                NOTE(REG_ULOOKAROUND);
                                RETV(LACON, LATYPE_BEHIND_POS);
                                break;
-                           case CHR('!'):      /* negative lookbehind */
+                           case CHR('!'):  /* negative lookbehind */
                                NOTE(REG_ULOOKAROUND);
                                RETV(LACON, LATYPE_BEHIND_NEG);
                                break;
@@ -836,7 +836,7 @@ lexescape(struct vars *v)
            break;
        case CHR('x'):
            NOTE(REG_UUNPORT);
-           c = lexdigits(v, 16, 1, 255);       /* REs >255 long outside spec */
+           c = lexdigits(v, 16, 1, 255);   /* REs >255 long outside spec */
            if (ISERR() || !CHR_IS_IN_RANGE(c))
                FAILW(REG_EESCAPE);
            RETV(PLAIN, c);
@@ -863,7 +863,7 @@ lexescape(struct vars *v)
        case CHR('9'):
            save = v->now;
            v->now--;           /* put first digit back */
-           c = lexdigits(v, 10, 1, 255);       /* REs >255 long outside spec */
+           c = lexdigits(v, 10, 1, 255);   /* REs >255 long outside spec */
            if (ISERR())
                FAILW(REG_EESCAPE);
            /* ugly heuristic (first test is "exactly 1 digit?") */
index acae90abce2b46ea3642e7287aea5e6f17367995..047abc3e1e74c7f598d269e14fd0a0b3885df1f6 100644 (file)
@@ -754,7 +754,7 @@ cmp(const chr *x, const chr *y, /* strings to compare */
  * stop at embedded NULs!
  */
 static int                     /* 0 for equal, nonzero for unequal */
-casecmp(const chr *x, const chr *y,        /* strings to compare */
+casecmp(const chr *x, const chr *y, /* strings to compare */
        size_t len)             /* exact length of comparison */
 {
    for (; len > 0; len--, x++, y++)
index 2179a38a22813beb358c60fad812e91919a92a5d..92c9c4d795d1a4d32a4677c4e00e25123506b072 100644 (file)
@@ -67,7 +67,7 @@ newnfa(struct vars *v,
    nfa->eos[0] = nfa->eos[1] = COLORLESS;
    nfa->parent = parent;       /* Precedes newfstate so parent is valid. */
    nfa->post = newfstate(nfa, '@');    /* number 0 */
-   nfa->pre = newfstate(nfa, '>');     /* number 1 */
+   nfa->pre = newfstate(nfa, '>'); /* number 1 */
 
    nfa->init = newstate(nfa);  /* may become invalid later */
    nfa->final = newstate(nfa);
@@ -1253,7 +1253,7 @@ deltraverse(struct nfa *nfa,
    }
 
    assert(s->no != FREESTATE); /* we're still here */
-   assert(s == leftend || s->nins != 0);       /* and still reachable */
+   assert(s == leftend || s->nins != 0);   /* and still reachable */
    assert(s->nouts == 0);      /* but have no outarcs */
 
    s->tmp = NULL;              /* we're done here */
@@ -1751,7 +1751,7 @@ push(struct nfa *nfa,
        if (NISERR())
            return 0;
        copyouts(nfa, to, s);   /* duplicate outarcs */
-       cparc(nfa, con, from, s);       /* move constraint arc */
+       cparc(nfa, con, from, s);   /* move constraint arc */
        freearc(nfa, con);
        if (NISERR())
            return 0;
@@ -1833,7 +1833,7 @@ combine(struct arc *con,
        case CA('$', '$'):
        case CA(AHEAD, AHEAD):
        case CA(BEHIND, BEHIND):
-           if (con->co == a->co)       /* true duplication */
+           if (con->co == a->co)   /* true duplication */
                return SATISFIED;
            return INCOMPATIBLE;
            break;
@@ -2763,8 +2763,8 @@ cleanup(struct nfa *nfa)
 static void
 markreachable(struct nfa *nfa,
              struct state *s,
-             struct state *okay,       /* consider only states with this mark */
-             struct state *mark)       /* the value to mark with */
+             struct state *okay,   /* consider only states with this mark */
+             struct state *mark)   /* the value to mark with */
 {
    struct arc *a;
 
@@ -3114,7 +3114,7 @@ dumparc(struct arc *a,
    if (aa == NULL)
        fprintf(f, "?!?");      /* missing from in-chain */
 }
-#endif   /* REG_DEBUG */
+#endif                         /* REG_DEBUG */
 
 /*
  * dumpcnfa - dump a compacted NFA in human-readable form
@@ -3178,4 +3178,4 @@ dumpcstate(int st,
    fflush(f);
 }
 
-#endif   /* REG_DEBUG */
+#endif                         /* REG_DEBUG */
index 4bdcb4fd6ae52b74e498c0b87a5b95d13d74c486..6982879688b638a0eda047ed8bcfa99899900707 100644 (file)
@@ -277,7 +277,7 @@ pg_set_regex_collation(Oid collation)
                pg_regex_strategy = PG_REGEX_LOCALE_WIDE;
        }
        else
-#endif   /* USE_WIDE_UPPER_LOWER */
+#endif                         /* USE_WIDE_UPPER_LOWER */
        {
            if (pg_regex_locale)
                pg_regex_strategy = PG_REGEX_LOCALE_1BYTE_L;
index 777373e691a6f57ceb238f8ac7c11b5312a81309..51385509bbaeae5c22a239ddde73c7c8b842f981 100644 (file)
@@ -257,7 +257,7 @@ struct vars
 /* parsing macros; most know that `v' is the struct vars pointer */
 #define NEXT() (next(v))       /* advance by one token */
 #define SEE(t) (v->nexttype == (t))    /* is next token this? */
-#define EAT(t) (SEE(t) && next(v))     /* if next is this, swallow it */
+#define EAT(t) (SEE(t) && next(v)) /* if next is this, swallow it */
 #define VISERR(vv) ((vv)->err != 0)    /* have we seen an error yet? */
 #define ISERR() VISERR(v)
 #define VERR(vv,e) ((vv)->nexttype = EOS, \
@@ -942,7 +942,7 @@ parseqatom(struct vars *v,
                assert((size_t) subno < v->nsubs);
            }
            else
-               atomtype = PLAIN;       /* something that's not '(' */
+               atomtype = PLAIN;   /* something that's not '(' */
            NEXT();
            /* need new endpoints because tree will contain pointers */
            s = newstate(v->nfa);
@@ -1124,7 +1124,7 @@ parseqatom(struct vars *v,
    /* if it's a backref, now is the time to replicate the subNFA */
    if (atomtype == BACKREF)
    {
-       assert(atom->begin->nouts == 1);        /* just the EMPTY */
+       assert(atom->begin->nouts == 1);    /* just the EMPTY */
        delsub(v->nfa, atom->begin, atom->end);
        assert(v->subs[subno] != NULL);
 
@@ -1145,7 +1145,7 @@ parseqatom(struct vars *v,
    if (atomtype == BACKREF)
    {
        /* special case:  backrefs have internal quantifiers */
-       EMPTYARC(s, atom->begin);       /* empty prefix */
+       EMPTYARC(s, atom->begin);   /* empty prefix */
        /* just stuff everything into atom */
        repeat(v, atom->begin, atom->end, m, n);
        atom->min = (short) m;
@@ -1157,7 +1157,7 @@ parseqatom(struct vars *v,
    else if (m == 1 && n == 1)
    {
        /* no/vacuous quantifier:  done */
-       EMPTYARC(s, atom->begin);       /* empty prefix */
+       EMPTYARC(s, atom->begin);   /* empty prefix */
        /* rest of branch can be strung starting from atom->end */
        s2 = atom->end;
    }
@@ -1175,7 +1175,7 @@ parseqatom(struct vars *v,
        assert(m >= 1 && m != DUPINF && n >= 1);
        repeat(v, s, atom->begin, m - 1, (n == DUPINF) ? n : n - 1);
        f = COMBINE(qprefer, atom->flags);
-       t = subre(v, '.', f, s, atom->end);     /* prefix and atom */
+       t = subre(v, '.', f, s, atom->end); /* prefix and atom */
        NOERR();
        t->left = subre(v, '=', PREF(f), s, atom->begin);
        NOERR();
@@ -1618,7 +1618,7 @@ wordchrs(struct vars *v)
  */
 static void
 processlacon(struct vars *v,
-            struct state *begin,       /* start of parsed LACON sub-re */
+            struct state *begin,   /* start of parsed LACON sub-re */
             struct state *end, /* end of parsed LACON sub-re */
             int latype,
             struct state *lp,  /* left state to hang it on */
@@ -2180,7 +2180,7 @@ stid(struct subre *t,
        sprintf(buf, "%p", t);
    return buf;
 }
-#endif   /* REG_DEBUG */
+#endif                         /* REG_DEBUG */
 
 
 #include "regc_lex.c"
index 366b79f492fe907dbee331bce52cc55a481de083..5695e158a50b8a77b96f9ae8801fd034005c7a0b 100644 (file)
@@ -303,7 +303,7 @@ static int
 matchuntil(struct vars *v,
           struct dfa *d,
           chr *probe,          /* we want to know if a match ends here */
-          struct sset **lastcss,       /* state storage across calls */
+          struct sset **lastcss,   /* state storage across calls */
           chr **lastcp)        /* state storage across calls */
 {
    chr        *cp = *lastcp;
@@ -672,15 +672,15 @@ miss(struct vars *v,
                for (ca = cnfa->states[i]; ca->co != COLORLESS; ca++)
                {
                    if (ca->co < cnfa->ncolors)
-                       continue;       /* not a LACON arc */
+                       continue;   /* not a LACON arc */
                    if (ISBSET(d->work, ca->to))
-                       continue;       /* arc would be a no-op anyway */
-                   sawlacons = 1;      /* this LACON affects our result */
+                       continue;   /* arc would be a no-op anyway */
+                   sawlacons = 1;  /* this LACON affects our result */
                    if (!lacon(v, cnfa, cp, ca->co))
                    {
                        if (ISERR())
                            return NULL;
-                       continue;       /* LACON arc cannot be traversed */
+                       continue;   /* LACON arc cannot be traversed */
                    }
                    if (ISERR())
                        return NULL;
@@ -821,7 +821,7 @@ getvacant(struct vars *v,
        FDEBUG(("zapping c%d's %ld outarc\n", (int) (p - d->ssets), (long) co));
        p->outs[co] = NULL;
        ap = p->inchain[co];
-       p->inchain[co].ss = NULL;       /* paranoia */
+       p->inchain[co].ss = NULL;   /* paranoia */
    }
    ss->ins.ss = NULL;
 
index 2d38fbc646bcbc471d0e12a61f7497c0f452e2c0..4a27c2552cbb0ba87f3085aa3d3de58cb484e774 100644 (file)
@@ -64,7 +64,7 @@ pg_regerror(int errcode,      /* error code, or REG_ATOI or REG_ITOA */
 {
    const struct rerr *r;
    const char *msg;
-   char        convbuf[sizeof(unk) + 50];      /* 50 = plenty for int */
+   char        convbuf[sizeof(unk) + 50];  /* 50 = plenty for int */
    size_t      len;
    int         icode;
 
@@ -78,7 +78,7 @@ pg_regerror(int errcode,      /* error code, or REG_ATOI or REG_ITOA */
            msg = convbuf;
            break;
        case REG_ITOA:          /* convert number to name */
-           icode = atoi(errbuf);       /* not our problem if this fails */
+           icode = atoi(errbuf);   /* not our problem if this fails */
            for (r = rerrs; r->code >= 0; r++)
                if (r->code == icode)
                    break;
index 471ddb2aad7fda650c096293f88df3c650ab3360..f7eaa76b02c2b17950f83ceaefc544613676c558 100644 (file)
@@ -403,7 +403,7 @@ find(struct vars *v,
            v->details->rm_extend.rm_so = OFF(cold);
        else
            v->details->rm_extend.rm_so = OFF(v->stop);
-       v->details->rm_extend.rm_eo = OFF(v->stop);     /* unknown */
+       v->details->rm_extend.rm_eo = OFF(v->stop); /* unknown */
    }
    if (close == NULL)          /* not found */
        return REG_NOMATCH;
@@ -449,7 +449,7 @@ find(struct vars *v,
            v->details->rm_extend.rm_so = OFF(cold);
        else
            v->details->rm_extend.rm_so = OFF(v->stop);
-       v->details->rm_extend.rm_eo = OFF(v->stop);     /* unknown */
+       v->details->rm_extend.rm_eo = OFF(v->stop); /* unknown */
    }
    if (v->nmatch == 1)         /* no need for submatches */
        return REG_OKAY;
@@ -494,7 +494,7 @@ cfind(struct vars *v,
            v->details->rm_extend.rm_so = OFF(cold);
        else
            v->details->rm_extend.rm_so = OFF(v->stop);
-       v->details->rm_extend.rm_eo = OFF(v->stop);     /* unknown */
+       v->details->rm_extend.rm_eo = OFF(v->stop); /* unknown */
    }
    return ret;
 }
@@ -718,7 +718,7 @@ cdissect(struct vars *v,
            break;
        case '.':               /* concatenation */
            assert(t->left != NULL && t->right != NULL);
-           if (t->left->flags & SHORTER)       /* reverse scan */
+           if (t->left->flags & SHORTER)   /* reverse scan */
                er = crevcondissect(v, t, begin, end);
            else
                er = ccondissect(v, t, begin, end);
@@ -729,7 +729,7 @@ cdissect(struct vars *v,
            break;
        case '*':               /* iteration */
            assert(t->left != NULL);
-           if (t->left->flags & SHORTER)       /* reverse scan */
+           if (t->left->flags & SHORTER)   /* reverse scan */
                er = creviterdissect(v, t, begin, end);
            else
                er = citerdissect(v, t, begin, end);
index 53417f0e7ddf666061dfc851baaa603c79216f40..febf2adaec8b9e39782c336677629484671288c1 100644 (file)
@@ -235,7 +235,7 @@ pg_reg_getnumcharacters(const regex_t *regex, int co)
 
    if (co <= 0 || co > cm->max)    /* we reject 0 which is WHITE */
        return -1;
-   if (cm->cd[co].flags & PSEUDO)      /* also pseudocolors (BOS etc) */
+   if (cm->cd[co].flags & PSEUDO)  /* also pseudocolors (BOS etc) */
        return -1;
 
    /*
index f3671cf41ff9b12a4111bad36500a49cf3c332ff..25ce7a7bd274b2bc10af4e0a5c0224692c7e3d62 100644 (file)
@@ -16,7 +16,7 @@
 #include 
 #include 
 
-#include "access/xlog_internal.h"      /* for pg_start/stop_backup */
+#include "access/xlog_internal.h"  /* for pg_start/stop_backup */
 #include "catalog/catalog.h"
 #include "catalog/pg_type.h"
 #include "lib/stringinfo.h"
@@ -273,8 +273,8 @@ perform_base_backup(basebackup_options *opt, DIR *tblspcdir)
 
            /* Send CopyOutResponse message */
            pq_beginmessage(&buf, 'H');
-           pq_sendbyte(&buf, 0);       /* overall format */
-           pq_sendint(&buf, 0, 2);     /* natts */
+           pq_sendbyte(&buf, 0);   /* overall format */
+           pq_sendint(&buf, 0, 2); /* natts */
            pq_endmessage(&buf);
 
            if (ti->path == NULL)
@@ -318,7 +318,7 @@ perform_base_backup(basebackup_options *opt, DIR *tblspcdir)
                Assert(lnext(lc) == NULL);
            }
            else
-               pq_putemptymessage('c');        /* CopyDone */
+               pq_putemptymessage('c');    /* CopyDone */
        }
    }
    PG_END_ENSURE_ERROR_CLEANUP(base_backup_cleanup, (Datum) 0);
@@ -814,7 +814,7 @@ SendXlogRecPtrResult(XLogRecPtr ptr, TimeLineID tli)
    pq_sendstring(&buf, "recptr");
    pq_sendint(&buf, 0, 4);     /* table oid */
    pq_sendint(&buf, 0, 2);     /* attnum */
-   pq_sendint(&buf, TEXTOID, 4);       /* type oid */
+   pq_sendint(&buf, TEXTOID, 4);   /* type oid */
    pq_sendint(&buf, -1, 2);
    pq_sendint(&buf, 0, 4);
    pq_sendint(&buf, 0, 2);
@@ -827,7 +827,7 @@ SendXlogRecPtrResult(XLogRecPtr ptr, TimeLineID tli)
     * int8 may seem like a surprising data type for this, but in theory int4
     * would not be wide enough for this, as TimeLineID is unsigned.
     */
-   pq_sendint(&buf, INT8OID, 4);       /* type oid */
+   pq_sendint(&buf, INT8OID, 4);   /* type oid */
    pq_sendint(&buf, -1, 2);
    pq_sendint(&buf, 0, 4);
    pq_sendint(&buf, 0, 2);
@@ -1115,7 +1115,7 @@ sendDir(char *path, int basepathlen, bool sizeonly, List *tablespaces,
                    (errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
                  errmsg("tablespaces are not supported on this platform")));
            continue;
-#endif   /* HAVE_READLINK */
+#endif                         /* HAVE_READLINK */
        }
        else if (S_ISDIR(statbuf.st_mode))
        {
index 33cb01b8d0e901b96846f7ddbf27019f42ae7183..f4d123ec05e61dd5f5b36cf71e132e6fa74a054d 100644 (file)
@@ -451,7 +451,7 @@ DecodingContextFindStartpoint(LogicalDecodingContext *ctx)
        if (err)
            elog(ERROR, "%s", err);
        if (!record)
-           elog(ERROR, "no record found");     /* shouldn't happen */
+           elog(ERROR, "no record found"); /* shouldn't happen */
 
        startptr = InvalidXLogRecPtr;
 
@@ -661,7 +661,7 @@ commit_cb_wrapper(ReorderBuffer *cache, ReorderBufferTXN *txn,
    /* Push callback + info on the error context stack */
    state.ctx = ctx;
    state.callback_name = "commit";
-   state.report_location = txn->final_lsn;     /* beginning of commit record */
+   state.report_location = txn->final_lsn; /* beginning of commit record */
    errcallback.callback = output_plugin_error_callback;
    errcallback.arg = (void *) &state;
    errcallback.previous = error_context_stack;
index 09206f29a0ac1a8cea632db3ea5648126b29c78d..f73b1a6d6c87307e706a1690027e4d787b386e5e 100644 (file)
@@ -147,7 +147,7 @@ typedef struct ReplicationStateCtl
 } ReplicationStateCtl;
 
 /* external variables */
-RepOriginId replorigin_session_origin = InvalidRepOriginId;        /* assumed identity */
+RepOriginId replorigin_session_origin = InvalidRepOriginId; /* assumed identity */
 XLogRecPtr replorigin_session_origin_lsn = InvalidXLogRecPtr;
 TimestampTz replorigin_session_origin_timestamp = 0;
 
index ff348ff2a8c9e22b5b981d4fa8d4e99bc64bfa70..e3230e1fa2a0cfc6318d4e043ccea818bfc16be9 100644 (file)
@@ -194,9 +194,9 @@ logicalrep_write_update(StringInfo out, Relation rel, HeapTuple oldtuple,
    if (oldtuple != NULL)
    {
        if (rel->rd_rel->relreplident == REPLICA_IDENTITY_FULL)
-           pq_sendbyte(out, 'O');      /* old tuple follows */
+           pq_sendbyte(out, 'O');  /* old tuple follows */
        else
-           pq_sendbyte(out, 'K');      /* old key follows */
+           pq_sendbyte(out, 'K');  /* old key follows */
        logicalrep_write_tuple(out, rel, oldtuple);
    }
 
@@ -424,12 +424,12 @@ logicalrep_write_tuple(StringInfo out, Relation rel, HeapTuple tuple)
 
        if (isnull[i])
        {
-           pq_sendbyte(out, 'n');      /* null column */
+           pq_sendbyte(out, 'n');  /* null column */
            continue;
        }
        else if (att->attlen == -1 && VARATT_IS_EXTERNAL_ONDISK(values[i]))
        {
-           pq_sendbyte(out, 'u');      /* unchanged toast column */
+           pq_sendbyte(out, 'u');  /* unchanged toast column */
            continue;
        }
 
index 0182fb7fa7283104f1aa060ca370c3912ea56fed..4905207893a1925897cb1b9ad3faf2878f1b8503 100644 (file)
@@ -62,7 +62,7 @@
 #include "replication/logical.h"
 #include "replication/reorderbuffer.h"
 #include "replication/slot.h"
-#include "replication/snapbuild.h"     /* just for SnapBuildSnapDecRefcount */
+#include "replication/snapbuild.h" /* just for SnapBuildSnapDecRefcount */
 #include "storage/bufmgr.h"
 #include "storage/fd.h"
 #include "storage/sinval.h"
@@ -124,8 +124,8 @@ typedef struct ReorderBufferToastEnt
    Size        num_chunks;     /* number of chunks we've already seen */
    Size        size;           /* combined size of chunks seen */
    dlist_head  chunks;         /* linked list of chunks */
-   struct varlena *reconstructed;      /* reconstructed varlena now pointed
-                                        * to in main tup */
+   struct varlena *reconstructed;  /* reconstructed varlena now pointed to in
+                                    * main tup */
 } ReorderBufferToastEnt;
 
 /* Disk serialization support datastructures */
@@ -157,7 +157,7 @@ static const Size max_changes_in_memory = 4096;
  * major bottleneck, especially when spilling to disk while decoding batch
  * workloads.
  */
-static const Size max_cached_tuplebufs = 4096 * 2;     /* ~8MB */
+static const Size max_cached_tuplebufs = 4096 * 2; /* ~8MB */
 
 /* ---------------------------------------
  * primary reorderbuffer support routines
index e06aa0992a6487ed971b98dfdee3f534e507072f..fc9dc525b3e9483e816f4d34aad33d305c26328a 100644 (file)
@@ -210,7 +210,7 @@ struct SnapBuild
        TransactionId was_xmax;
 
        size_t      was_xcnt;   /* number of used xip entries */
-       size_t      was_xcnt_space;     /* allocated size of xip */
+       size_t      was_xcnt_space; /* allocated size of xip */
        TransactionId *was_xip; /* running xacts array, xidComparator-sorted */
    }           was_running;
 
@@ -336,7 +336,7 @@ AllocateSnapshotBuilder(ReorderBuffer *reorder,
    /* Other struct members initialized by zeroing via palloc0 above */
 
    builder->committed.xcnt = 0;
-   builder->committed.xcnt_space = 128;        /* arbitrary number */
+   builder->committed.xcnt_space = 128;    /* arbitrary number */
    builder->committed.xip =
        palloc0(builder->committed.xcnt_space * sizeof(TransactionId));
    builder->committed.includes_all_transactions = true;
@@ -1248,8 +1248,8 @@ SnapBuildFindSnapshot(SnapBuild *builder, XLogRecPtr lsn, xl_running_xacts *runn
            builder->start_decoding_at = lsn + 1;
 
        /* As no transactions were running xmin/xmax can be trivially set. */
-       builder->xmin = running->nextXid;       /* < are finished */
-       builder->xmax = running->nextXid;       /* >= are running */
+       builder->xmin = running->nextXid;   /* < are finished */
+       builder->xmax = running->nextXid;   /* >= are running */
 
        /* so we can safely use the faster comparisons */
        Assert(TransactionIdIsNormal(builder->xmin));
@@ -1295,8 +1295,8 @@ SnapBuildFindSnapshot(SnapBuild *builder, XLogRecPtr lsn, xl_running_xacts *runn
         * currently running transactions have finished. We'll update both
         * while waiting for the pending transactions to finish.
         */
-       builder->xmin = running->nextXid;       /* < are finished */
-       builder->xmax = running->nextXid;       /* >= are running */
+       builder->xmin = running->nextXid;   /* < are finished */
+       builder->xmax = running->nextXid;   /* >= are running */
 
        /* so we can safely use the faster comparisons */
        Assert(TransactionIdIsNormal(builder->xmin));
index 3ff08bfb2bff3fcd1ef9ef0d054457f571648d0a..d5577e38d25c4726c512d92c95a3bd75e43a96c2 100644 (file)
@@ -812,7 +812,7 @@ LogicalRepSyncTableStart(XLogRecPtr *origin_startpos)
     * NAMEDATALEN on the remote that matters, but this scheme will also work
     * reasonably if that is different.)
     */
-   StaticAssertStmt(NAMEDATALEN >= 32, "NAMEDATALEN too small");       /* for sanity */
+   StaticAssertStmt(NAMEDATALEN >= 32, "NAMEDATALEN too small");   /* for sanity */
    slotname = psprintf("%.*s_%u_sync_%u",
                        NAMEDATALEN - 28,
                        MySubscription->slotname,
index 21a4fea821dcd07bea913614b7f4b0f0791a3dc2..2288675ff2bb75cecb49e56b8c3b91aad53b0752 100644 (file)
@@ -1290,9 +1290,9 @@ send_feedback(XLogRecPtr recvpos, bool force, bool requestReply)
        resetStringInfo(reply_message);
 
    pq_sendbyte(reply_message, 'r');
-   pq_sendint64(reply_message, recvpos);       /* write */
-   pq_sendint64(reply_message, flushpos);      /* flush */
-   pq_sendint64(reply_message, writepos);      /* apply */
+   pq_sendint64(reply_message, recvpos);   /* write */
+   pq_sendint64(reply_message, flushpos);  /* flush */
+   pq_sendint64(reply_message, writepos);  /* apply */
    pq_sendint64(reply_message, now);   /* sendTime */
    pq_sendbyte(reply_message, requestReply);   /* replyRequested */
 
index c0f7fbb2b29f4e678384da2a6a908d76df5ff037..4bc2816241163b684d0cc9990ea87a7ac1013a32 100644 (file)
@@ -86,7 +86,7 @@ typedef struct ReplicationSlotOnDisk
 #define ReplicationSlotOnDiskV2Size \
    sizeof(ReplicationSlotOnDisk) - ReplicationSlotOnDiskConstantSize
 
-#define SLOT_MAGIC     0x1051CA1       /* format identifier */
+#define SLOT_MAGIC     0x1051CA1   /* format identifier */
 #define SLOT_VERSION   2       /* version for new files */
 
 /* Control array for replication slot management */
index bbd26f3d6a3ddb0d3acd8762be2965d9b61ccbd4..6dc808874d66d5c381329cac922f9f5b68c8ce16 100644 (file)
@@ -132,7 +132,7 @@ pg_create_logical_replication_slot(PG_FUNCTION_ARGS)
     * Create logical decoding context, to build the initial snapshot.
     */
    ctx = CreateInitDecodingContext(NameStr(*plugin), NIL,
-                                   false,      /* do not build snapshot */
+                                   false,  /* do not build snapshot */
                                    logical_read_local_xlog_page, NULL, NULL,
                                    NULL);
 
index ad213fc454a6ae54caba86c23f42cd7f66fe88ce..8092f01edda3518de588c39ad103116823b08e0a 100644 (file)
@@ -888,7 +888,7 @@ SyncRepGetSyncStandbysPriority(bool *am_sync)
                if (list_length(result) == SyncRepConfig->num_sync)
                {
                    list_free(pending);
-                   return result;      /* Exit if got enough sync standbys */
+                   return result;  /* Exit if got enough sync standbys */
                }
 
                /*
index 01b86ffe8aa70299c793c06653eebc473091a6e6..8e64e8bf7aab023137aa1ad9a51d7009d5eb629d 100644 (file)
@@ -259,8 +259,7 @@ WalReceiverMain(void)
    walrcv->latch = &MyProc->procLatch;
 
    /* Properly accept or ignore signals the postmaster might send us */
-   pqsignal(SIGHUP, WalRcvSigHupHandler);      /* set flag to read config
-                                                * file */
+   pqsignal(SIGHUP, WalRcvSigHupHandler);  /* set flag to read config file */
    pqsignal(SIGINT, SIG_IGN);
    pqsignal(SIGTERM, WalRcvShutdownHandler);   /* request shutdown */
    pqsignal(SIGQUIT, WalRcvQuickDieHandler);   /* hard crash time */
index b61eaef6f57c551cbe1d72c557f47b121b0e7c8b..71057aecfac8671addaeb38cb347e44f605bff7e 100644 (file)
@@ -111,16 +111,16 @@ WalSndCtlData *WalSndCtl = NULL;
 WalSnd    *MyWalSnd = NULL;
 
 /* Global state */
-bool       am_walsender = false;       /* Am I a walsender process? */
-bool       am_cascading_walsender = false;     /* Am I cascading WAL to
-                                                * another standby? */
+bool       am_walsender = false;   /* Am I a walsender process? */
+bool       am_cascading_walsender = false; /* Am I cascading WAL to another
+                                            * standby? */
 bool       am_db_walsender = false;    /* Connected to a database? */
 
 /* User-settable parameters for walsender */
 int            max_wal_senders = 0;    /* the maximum number of concurrent
                                     * walsenders */
-int            wal_sender_timeout = 60 * 1000;     /* maximum time to send one
-                                                * WAL data message */
+int            wal_sender_timeout = 60 * 1000; /* maximum time to send one WAL
+                                            * data message */
 bool       log_replication_commands = false;
 
 /*
@@ -450,16 +450,16 @@ SendTimeLineHistory(TimeLineHistoryCmd *cmd)
    pq_sendstring(&buf, "filename");    /* col name */
    pq_sendint(&buf, 0, 4);     /* table oid */
    pq_sendint(&buf, 0, 2);     /* attnum */
-   pq_sendint(&buf, TEXTOID, 4);       /* type oid */
+   pq_sendint(&buf, TEXTOID, 4);   /* type oid */
    pq_sendint(&buf, -1, 2);    /* typlen */
    pq_sendint(&buf, 0, 4);     /* typmod */
    pq_sendint(&buf, 0, 2);     /* format code */
 
    /* second field */
-   pq_sendstring(&buf, "content");     /* col name */
+   pq_sendstring(&buf, "content"); /* col name */
    pq_sendint(&buf, 0, 4);     /* table oid */
    pq_sendint(&buf, 0, 2);     /* attnum */
-   pq_sendint(&buf, BYTEAOID, 4);      /* type oid */
+   pq_sendint(&buf, BYTEAOID, 4);  /* type oid */
    pq_sendint(&buf, -1, 2);    /* typlen */
    pq_sendint(&buf, 0, 4);     /* typmod */
    pq_sendint(&buf, 0, 2);     /* format code */
@@ -1748,7 +1748,7 @@ ProcessStandbyReplyMessage(void)
    writePtr = pq_getmsgint64(&reply_message);
    flushPtr = pq_getmsgint64(&reply_message);
    applyPtr = pq_getmsgint64(&reply_message);
-   (void) pq_getmsgint64(&reply_message);      /* sendTime; not used ATM */
+   (void) pq_getmsgint64(&reply_message);  /* sendTime; not used ATM */
    replyRequested = pq_getmsgbyte(&reply_message);
 
    elog(DEBUG2, "write %X/%X flush %X/%X apply %X/%X%s",
@@ -1911,7 +1911,7 @@ ProcessStandbyHSFeedbackMessage(void)
     * byte. See XLogWalRcvSendHSFeedback() in walreceiver.c for the creation
     * of this message.
     */
-   (void) pq_getmsgint64(&reply_message);      /* sendTime; not used ATM */
+   (void) pq_getmsgint64(&reply_message);  /* sendTime; not used ATM */
    feedbackXmin = pq_getmsgint(&reply_message, 4);
    feedbackEpoch = pq_getmsgint(&reply_message, 4);
    feedbackCatalogXmin = pq_getmsgint(&reply_message, 4);
@@ -1978,7 +1978,7 @@ ProcessStandbyHSFeedbackMessage(void)
     * XXX: It might make sense to generalize the ephemeral slot concept and
     * always use the slot mechanism to handle the feedback xmin.
     */
-   if (MyReplicationSlot != NULL)      /* XXX: persistency configurable? */
+   if (MyReplicationSlot != NULL)  /* XXX: persistency configurable? */
        PhysicalReplicationSlotNewXmin(feedbackXmin, feedbackCatalogXmin);
    else
    {
@@ -2000,7 +2000,7 @@ ProcessStandbyHSFeedbackMessage(void)
 static long
 WalSndComputeSleeptime(TimestampTz now)
 {
-   long        sleeptime = 10000;      /* 10 s */
+   long        sleeptime = 10000;  /* 10 s */
 
    if (wal_sender_timeout > 0 && last_reply_timestamp > 0)
    {
index 2ca6c63799ddc8b6796f119d37a885d130b6fc3f..248f0cc872e6b3da3079b90d219068de4c2315cb 100644 (file)
@@ -2076,7 +2076,7 @@ fireRules(Query *parsetree,
                                            returning_flag);
 
            rule_action->querySource = qsrc;
-           rule_action->canSetTag = false;     /* might change later */
+           rule_action->canSetTag = false; /* might change later */
 
            results = lappend(results, rule_action);
        }
@@ -2555,9 +2555,9 @@ relation_is_updatable(Oid reloid,
                updatable_cols = bms_int_members(updatable_cols, include_cols);
 
            if (bms_is_empty(updatable_cols))
-               auto_events = (1 << CMD_DELETE);        /* May support DELETE */
+               auto_events = (1 << CMD_DELETE);    /* May support DELETE */
            else
-               auto_events = ALL_EVENTS;       /* May support all events */
+               auto_events = ALL_EVENTS;   /* May support all events */
 
            /*
             * The base relation must also support these update commands.
index 00ee3a3e0a33e0fda93a02b078bcf560e6290f3f..ef131adc915cc46d63da90e169d2605513f710f4 100644 (file)
@@ -883,7 +883,7 @@ find_strongest_dependency(StatisticExtInfo *stats, MVDependencies *dependencies,
         * slightly more expensive than the previous checks.
         */
        if (dependency_is_fully_matched(dependency, attnums))
-           strongest = dependency;     /* save new best match */
+           strongest = dependency; /* save new best match */
    }
 
    return strongest;
index 77296646d95f8a553327f8c368e47324464f99e5..ec7460764e5c0293e529d069f3aef5a4dbf433f1 100644 (file)
@@ -582,7 +582,7 @@ PrefetchBuffer(Relation reln, ForkNumber forkNum, BlockNumber blockNum)
         * not clear that there's enough of a problem to justify that.
         */
    }
-#endif   /* USE_PREFETCH */
+#endif                         /* USE_PREFETCH */
 }
 
 
@@ -991,10 +991,10 @@ BufferAlloc(SMgrRelation smgr, char relpersistence, ForkNumber forkNum,
 {
    BufferTag   newTag;         /* identity of requested block */
    uint32      newHash;        /* hash value for newTag */
-   LWLock     *newPartitionLock;       /* buffer partition lock for it */
+   LWLock     *newPartitionLock;   /* buffer partition lock for it */
    BufferTag   oldTag;         /* previous identity of selected buffer */
    uint32      oldHash;        /* hash value for oldTag */
-   LWLock     *oldPartitionLock;       /* buffer partition lock for it */
+   LWLock     *oldPartitionLock;   /* buffer partition lock for it */
    uint32      oldFlags;
    int         buf_id;
    BufferDesc *buf;
@@ -1353,7 +1353,7 @@ InvalidateBuffer(BufferDesc *buf)
 {
    BufferTag   oldTag;
    uint32      oldHash;        /* hash value for oldTag */
-   LWLock     *oldPartitionLock;       /* buffer partition lock for it */
+   LWLock     *oldPartitionLock;   /* buffer partition lock for it */
    uint32      oldFlags;
    uint32      buf_state;
 
@@ -2947,7 +2947,7 @@ DropRelFileNodesAllBuffers(RelFileNodeBackend *rnodes, int nnodes)
    if (nnodes == 0)
        return;
 
-   nodes = palloc(sizeof(RelFileNode) * nnodes);       /* non-local relations */
+   nodes = palloc(sizeof(RelFileNode) * nnodes);   /* non-local relations */
 
    /* If it's a local relation, it's localbuf.c's problem. */
    for (i = 0; i < nnodes; i++)
index 6e59ce888c40df67db359c1817d3dc9e61221526..c130283f36d7f8ce61c135b61e9f8856fc36e29e 100644 (file)
@@ -86,7 +86,7 @@ LocalPrefetchBuffer(SMgrRelation smgr, ForkNumber forkNum,
 
    /* Not in buffers, so initiate prefetch */
    smgrprefetch(smgr, forkNum, blockNum);
-#endif   /* USE_PREFETCH */
+#endif                         /* USE_PREFETCH */
 }
 
 
index 2851c5d6a2f8a4f38eacc8933d57d18a27bbe1f6..5ddc5e1af16498f3c88794a46d0ae8b895d6d179 100644 (file)
@@ -815,10 +815,10 @@ count_usable_fds(int max_to_probe, int *usable_fds, int *already_open)
    getrlimit_status = getrlimit(RLIMIT_NOFILE, &rlim);
 #else                          /* but BSD doesn't ... */
    getrlimit_status = getrlimit(RLIMIT_OFILE, &rlim);
-#endif   /* RLIMIT_NOFILE */
+#endif                         /* RLIMIT_NOFILE */
    if (getrlimit_status != 0)
        ereport(WARNING, (errmsg("getrlimit failed: %m")));
-#endif   /* HAVE_GETRLIMIT */
+#endif                         /* HAVE_GETRLIMIT */
 
    /* dup until failure or probe limit reached */
    for (;;)
@@ -978,7 +978,7 @@ _dump_lru(void)
    snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf), "LEAST");
    elog(LOG, "%s", buf);
 }
-#endif   /* FDDEBUG */
+#endif                         /* FDDEBUG */
 
 static void
 Delete(File file)
@@ -2502,7 +2502,7 @@ closeAllVfds(void)
 
    if (SizeVfdCache > 0)
    {
-       Assert(FileIsNotOpen(0));       /* Make sure ring not corrupted */
+       Assert(FileIsNotOpen(0));   /* Make sure ring not corrupted */
        for (i = 1; i < SizeVfdCache; i++)
        {
            if (!FileIsNotOpen(i))
@@ -2653,7 +2653,7 @@ CleanupTempFiles(bool isProcExit)
     */
    if (isProcExit || have_xact_temporary_files)
    {
-       Assert(FileIsNotOpen(0));       /* Make sure ring not corrupted */
+       Assert(FileIsNotOpen(0));   /* Make sure ring not corrupted */
        for (i = 1; i < SizeVfdCache; i++)
        {
            unsigned short fdstate = VfdCache[i].fdstate;
@@ -3102,7 +3102,7 @@ pre_sync_fname(const char *fname, bool isdir, int elevel)
    (void) CloseTransientFile(fd);
 }
 
-#endif   /* PG_FLUSH_DATA_WORKS */
+#endif                         /* PG_FLUSH_DATA_WORKS */
 
 static void
 datadir_fsync_fname(const char *fname, bool isdir, int elevel)
index e0eaefeeb3444540ef101bee81a1c0024efc62ad..d101c717d3693009e69e4d98941b691994ae3615 100644 (file)
@@ -686,9 +686,9 @@ dsm_impl_windows(dsm_op op, dsm_handle handle, Size request_size,
 
        hmap = CreateFileMapping(INVALID_HANDLE_VALUE,  /* Use the pagefile */
                                 NULL,  /* Default security attrs */
-                                PAGE_READWRITE,        /* Memory is read/write */
-                                size_high,     /* Upper 32 bits of size */
-                                size_low,      /* Lower 32 bits of size */
+                                PAGE_READWRITE,    /* Memory is read/write */
+                                size_high, /* Upper 32 bits of size */
+                                size_low,  /* Lower 32 bits of size */
                                 name);
 
        errcode = GetLastError();
index 55959de91f3bf36527bb4898ad65a4422efc9421..29eb4ea54f6ebc7925663d2d6b798318c0e0ae51 100644 (file)
@@ -124,7 +124,7 @@ static int  selfpipe_owner_pid = 0;
 /* Private function prototypes */
 static void sendSelfPipeByte(void);
 static void drainSelfPipe(void);
-#endif   /* WIN32 */
+#endif                         /* WIN32 */
 
 #if defined(WAIT_USE_EPOLL)
 static void WaitEventAdjustEpoll(WaitEventSet *set, WaitEvent *event, int action);
@@ -230,7 +230,7 @@ InitLatch(volatile Latch *latch)
    latch->event = CreateEvent(NULL, TRUE, FALSE, NULL);
    if (latch->event == NULL)
        elog(ERROR, "CreateEvent failed: error code %lu", GetLastError());
-#endif   /* WIN32 */
+#endif                         /* WIN32 */
 }
 
 /*
@@ -576,7 +576,7 @@ CreateWaitEventSet(MemoryContext context, int nevents)
        elog(ERROR, "epoll_create failed: %m");
    if (fcntl(set->epoll_fd, F_SETFD, FD_CLOEXEC) == -1)
        elog(ERROR, "fcntl(F_SETFD) failed on epoll descriptor: %m");
-#endif   /* EPOLL_CLOEXEC */
+#endif                         /* EPOLL_CLOEXEC */
 #elif defined(WAIT_USE_WIN32)
 
    /*
@@ -1469,7 +1469,7 @@ latch_sigusr1_handler(void)
    if (waiting)
        sendSelfPipeByte();
 }
-#endif   /* !WIN32 */
+#endif                         /* !WIN32 */
 
 /* Send one byte to the self-pipe, to wake up WaitLatch */
 #ifndef WIN32
@@ -1502,7 +1502,7 @@ retry:
        return;
    }
 }
-#endif   /* !WIN32 */
+#endif                         /* !WIN32 */
 
 /*
  * Read all available data from the self-pipe
@@ -1550,4 +1550,4 @@ drainSelfPipe(void)
        /* else buffer wasn't big enough, so read again */
    }
 }
-#endif   /* !WIN32 */
+#endif                         /* !WIN32 */
index 98f4082d94fcc8a851870ca65075aaed013ce663..85db6b21f83ff6ed1caebbb74c77f87f649f66cf 100644 (file)
@@ -289,5 +289,5 @@ PostmasterIsAlive(void)
    return false;
 #else                          /* WIN32 */
    return (WaitForSingleObject(PostmasterHandle, 0) == WAIT_TIMEOUT);
-#endif   /* WIN32 */
+#endif                         /* WIN32 */
 }
index dfddfc4002cc59739d5540fd5b02fa639d933d7f..2d6ae23eec50d7018b44a0d9f2b092aa8a2b5345 100644 (file)
@@ -75,7 +75,7 @@ typedef struct ProcArrayStruct
    int         numKnownAssignedXids;   /* current # of valid entries */
    int         tailKnownAssignedXids;  /* index of oldest valid element */
    int         headKnownAssignedXids;  /* index of newest element, + 1 */
-   slock_t     known_assigned_xids_lck;        /* protects head/tail pointers */
+   slock_t     known_assigned_xids_lck;    /* protects head/tail pointers */
 
    /*
     * Highest subxid that has been removed from KnownAssignedXids array to
@@ -149,7 +149,7 @@ static void DisplayXidCache(void);
 #define xc_by_known_assigned_inc() ((void) 0)
 #define xc_no_overflow_inc()       ((void) 0)
 #define xc_slow_answer_inc()       ((void) 0)
-#endif   /* XIDCACHE_DEBUG */
+#endif                         /* XIDCACHE_DEBUG */
 
 /* Primitives for KnownAssignedXids array handling for standby */
 static void KnownAssignedXidsCompress(bool force);
@@ -364,7 +364,7 @@ ProcArrayRemove(PGPROC *proc, TransactionId latestXid)
            /* Keep the PGPROC array sorted. See notes above */
            memmove(&arrayP->pgprocnos[index], &arrayP->pgprocnos[index + 1],
                    (arrayP->numProcs - index - 1) * sizeof(int));
-           arrayP->pgprocnos[arrayP->numProcs - 1] = -1;       /* for debugging */
+           arrayP->pgprocnos[arrayP->numProcs - 1] = -1;   /* for debugging */
            arrayP->numProcs--;
            LWLockRelease(ProcArrayLock);
            return;
@@ -432,7 +432,7 @@ ProcArrayEndTransaction(PGPROC *proc, TransactionId latestXid)
        pgxact->xmin = InvalidTransactionId;
        /* must be cleared with xid/xmin: */
        pgxact->vacuumFlags &= ~PROC_VACUUM_STATE_MASK;
-       pgxact->delayChkpt = false;     /* be sure this is cleared in abort */
+       pgxact->delayChkpt = false; /* be sure this is cleared in abort */
        proc->recoveryConflictPending = false;
 
        Assert(pgxact->nxids == 0);
@@ -1354,7 +1354,7 @@ GetOldestXmin(Relation rel, int flags)
 
        if (allDbs ||
            proc->databaseId == MyDatabaseId ||
-           proc->databaseId == 0)      /* always include WalSender */
+           proc->databaseId == 0)  /* always include WalSender */
        {
            /* Fetch xid just once - see GetNewTransactionId */
            TransactionId xid = pgxact->xid;
@@ -3099,7 +3099,7 @@ DisplayXidCache(void)
            xc_no_overflow,
            xc_slow_answer);
 }
-#endif   /* XIDCACHE_DEBUG */
+#endif                         /* XIDCACHE_DEBUG */
 
 
 /* ----------------------------------------------
index b5f49727f7abcf8aab775eda24c595851a046f99..e18d4c7e1c04531aff2b79ceb15d203e8aaa7a25 100644 (file)
@@ -75,7 +75,7 @@
 
 /* shared memory global variables */
 
-static PGShmemHeader *ShmemSegHdr;     /* shared mem segment header */
+static PGShmemHeader *ShmemSegHdr; /* shared mem segment header */
 
 static void *ShmemBase;            /* start address of shared memory */
 
@@ -314,7 +314,7 @@ InitShmemIndex(void)
  * for NULL.
  */
 HTAB *
-ShmemInitHash(const char *name,            /* table string name for shmem index */
+ShmemInitHash(const char *name,        /* table string name for shmem index */
              long init_size,   /* initial table size */
              long max_size,    /* max size of the table */
              HASHCTL *infoP,   /* info about key and bucket size */
index 18302caf5ecf79bd3884b783531615504b4e6157..1b9d32b7cff28d6639b44f3b62710987786b9ec4 100644 (file)
@@ -240,7 +240,7 @@ CreateSharedInvalidationState(void)
    /* Mark all backends inactive, and initialize nextLXID */
    for (i = 0; i < shmInvalBuffer->maxBackends; i++)
    {
-       shmInvalBuffer->procState[i].procPid = 0;       /* inactive */
+       shmInvalBuffer->procState[i].procPid = 0;   /* inactive */
        shmInvalBuffer->procState[i].proc = NULL;
        shmInvalBuffer->procState[i].nextMsgNum = 0;    /* meaningless */
        shmInvalBuffer->procState[i].resetState = false;
@@ -271,7 +271,7 @@ SharedInvalBackendInit(bool sendOnly)
    /* Look for a free entry in the procState array */
    for (index = 0; index < segP->lastBackend; index++)
    {
-       if (segP->procState[index].procPid == 0)        /* inactive slot? */
+       if (segP->procState[index].procPid == 0)    /* inactive slot? */
        {
            stateP = &segP->procState[index];
            break;
index 6597b36b1725ebda8a7ef8bd50638fdd8cc67729..154516ff365e75c59412a28c28613f08de17af49 100644 (file)
@@ -624,7 +624,7 @@ inv_write(LargeObjectDesc *obj_desc, const char *buf, int nbytes)
        {
            if ((oldtuple = systable_getnext_ordered(sd, ForwardScanDirection)) != NULL)
            {
-               if (HeapTupleHasNulls(oldtuple))        /* paranoia */
+               if (HeapTupleHasNulls(oldtuple))    /* paranoia */
                    elog(ERROR, "null field found in pg_largeobject");
                olddata = (Form_pg_largeobject) GETSTRUCT(oldtuple);
                Assert(olddata->pageno >= pageno);
@@ -806,7 +806,7 @@ inv_truncate(LargeObjectDesc *obj_desc, int64 len)
    olddata = NULL;
    if ((oldtuple = systable_getnext_ordered(sd, ForwardScanDirection)) != NULL)
    {
-       if (HeapTupleHasNulls(oldtuple))        /* paranoia */
+       if (HeapTupleHasNulls(oldtuple))    /* paranoia */
            elog(ERROR, "null field found in pg_largeobject");
        olddata = (Form_pg_largeobject) GETSTRUCT(oldtuple);
        Assert(olddata->pageno >= pageno);
index de67e5db49e01d682d6dc0d805428dc2b74ee198..d1a9ec8a48e4feb44451fef076f136f9259d5008 100644 (file)
@@ -539,8 +539,8 @@ static bool
 FindLockCycleRecurseMember(PGPROC *checkProc,
                           PGPROC *checkProcLeader,
                           int depth,
-                          EDGE *softEdges,     /* output argument */
-                          int *nSoftEdges)     /* output argument */
+                          EDGE *softEdges, /* output argument */
+                          int *nSoftEdges) /* output argument */
 {
    PGPROC     *proc;
    LOCK       *lock = checkProc->waitLock;
index 4315be4077359b8e584804525250fb816847cbc5..19cec580c3eec658d6b82e99b9e268f72766e40d 100644 (file)
@@ -336,7 +336,7 @@ PROCLOCK_PRINT(const char *where, const PROCLOCK *proclockP)
 
 #define LOCK_PRINT(where, lock, type)  ((void) 0)
 #define PROCLOCK_PRINT(where, proclockP)  ((void) 0)
-#endif   /* not LOCK_DEBUG */
+#endif                         /* not LOCK_DEBUG */
 
 
 static uint32 proclock_hash(const void *key, Size keysize);
@@ -595,7 +595,7 @@ LockHasWaiters(const LOCKTAG *locktag, LOCKMODE lockmode, bool sessionLock)
    /*
     * Find the LOCALLOCK entry for this lock and lockmode
     */
-   MemSet(&localtag, 0, sizeof(localtag));     /* must clear padding */
+   MemSet(&localtag, 0, sizeof(localtag)); /* must clear padding */
    localtag.lock = *locktag;
    localtag.mode = lockmode;
 
@@ -749,7 +749,7 @@ LockAcquireExtended(const LOCKTAG *locktag,
    /*
     * Find or create a LOCALLOCK entry for this lock and lockmode
     */
-   MemSet(&localtag, 0, sizeof(localtag));     /* must clear padding */
+   MemSet(&localtag, 0, sizeof(localtag)); /* must clear padding */
    localtag.lock = *locktag;
    localtag.mode = lockmode;
 
@@ -1212,7 +1212,7 @@ SetupLockInTable(LockMethod lockMethodTable, PGPROC *proc,
                }
            }
        }
-#endif   /* CHECK_DEADLOCK_RISK */
+#endif                         /* CHECK_DEADLOCK_RISK */
    }
 
    /*
@@ -1842,7 +1842,7 @@ LockRelease(const LOCKTAG *locktag, LOCKMODE lockmode, bool sessionLock)
    /*
     * Find the LOCALLOCK entry for this lock and lockmode
     */
-   MemSet(&localtag, 0, sizeof(localtag));     /* must clear padding */
+   MemSet(&localtag, 0, sizeof(localtag)); /* must clear padding */
    localtag.lock = *locktag;
    localtag.mode = lockmode;
 
@@ -3923,7 +3923,7 @@ DumpAllLocks(void)
            elog(LOG, "DumpAllLocks: proclock->tag.myLock = NULL");
    }
 }
-#endif   /* LOCK_DEBUG */
+#endif                         /* LOCK_DEBUG */
 
 /*
  * LOCK 2PC resource manager's routines
index a021fbb229778c6bf7058400c90e072c9ca4c89d..82a1cf5150b247f5d20a1e005e5d20f21e2551de 100644 (file)
@@ -226,7 +226,7 @@ LOG_LWDEBUG(const char *where, LWLock *lock, const char *msg)
 #else                          /* not LOCK_DEBUG */
 #define PRINT_LWDEBUG(a,b,c) ((void)0)
 #define LOG_LWDEBUG(a,b,c) ((void)0)
-#endif   /* LOCK_DEBUG */
+#endif                         /* LOCK_DEBUG */
 
 #ifdef LWLOCK_STATS
 
@@ -323,7 +323,7 @@ get_lwlock_stats_entry(LWLock *lock)
    }
    return lwstats;
 }
-#endif   /* LWLOCK_STATS */
+#endif                         /* LWLOCK_STATS */
 
 
 /*
@@ -1129,7 +1129,7 @@ LWLockAcquire(LWLock *lock, LWLockMode mode)
        lwstats->ex_acquire_count++;
    else
        lwstats->sh_acquire_count++;
-#endif   /* LWLOCK_STATS */
+#endif                         /* LWLOCK_STATS */
 
    /*
     * We can't wait if we haven't got a PGPROC.  This should only occur
index b07ef4c21bce7925b4101ebfcf7df133e7304896..3b355641c250198f331935dcaf28363940073083 100644 (file)
@@ -358,9 +358,9 @@ static SERIALIZABLEXACT *OldCommittedSxact;
  * attempt to degrade performance (mostly as false positive serialization
  * failure) gracefully in the face of memory pressurel
  */
-int            max_predicate_locks_per_xact;       /* set by guc.c */
+int            max_predicate_locks_per_xact;   /* set by guc.c */
 int            max_predicate_locks_per_relation;   /* set by guc.c */
-int            max_predicate_locks_per_page;       /* set by guc.c */
+int            max_predicate_locks_per_page;   /* set by guc.c */
 
 /*
  * This provides a list of objects in order to track transactions
@@ -2914,8 +2914,8 @@ DropAllPredicateLocksFromTable(Relation relation, bool transfer)
        heapId = relation->rd_index->indrelid;
    }
    Assert(heapId != InvalidOid);
-   Assert(transfer || !isIndex);       /* index OID only makes sense with
-                                        * transfer */
+   Assert(transfer || !isIndex);   /* index OID only makes sense with
+                                    * transfer */
 
    /* Retrieve first time needed, then keep. */
    heaptargettaghash = 0;
index 09f1c64e46e02efd26ee31f72ea87a8385759903..c3cfdfcb448ab39bd55dcd7339c7c97144cb6700 100644 (file)
@@ -133,7 +133,7 @@ perform_spin_delay(SpinDelayStatus *status)
        if (++(status->delays) > NUM_DELAYS)
            s_lock_stuck(status->file, status->line, status->func);
 
-       if (status->cur_delay == 0)     /* first time to delay? */
+       if (status->cur_delay == 0) /* first time to delay? */
            status->cur_delay = MIN_DELAY_USEC;
 
        pg_usleep(status->cur_delay);
@@ -276,12 +276,12 @@ _tas:                         \n\
 _success:                      \n\
            moveq   #0,d0       \n\
            rts                 \n"
-#endif   /* __NetBSD__ && __ELF__ */
+#endif                         /* __NetBSD__ && __ELF__ */
        );
 }
-#endif   /* __m68k__ && !__linux__ */
-#endif   /* not __GNUC__ */
-#endif   /* HAVE_SPINLOCKS */
+#endif                         /* __m68k__ && !__linux__ */
+#endif                         /* not __GNUC__ */
+#endif                         /* HAVE_SPINLOCKS */
 
 
 
@@ -375,4 +375,4 @@ main()
    return 1;
 }
 
-#endif   /* S_LOCK_TEST */
+#endif                         /* S_LOCK_TEST */
index f7b1ac04f95a4ab204c51872ef82086ae7e81d7d..2c16938f5a9afbad51d90bc2bb8c088c505df7d9 100644 (file)
@@ -140,4 +140,4 @@ tas_sema(volatile slock_t *lock)
    return !PGSemaphoreTryLock(SpinlockSemaArray[lockndx - 1]);
 }
 
-#endif   /* !HAVE_SPINLOCKS */
+#endif                         /* !HAVE_SPINLOCKS */
index 1b53d651cd2a8ceb7e89b17f7b1aa25b7cc26998..b6425e409c581a1dfc316110dec2ffd24faf933d 100644 (file)
@@ -237,7 +237,7 @@ PageAddItemExtended(Page page,
        else
        {
            if (offsetNumber < limit)
-               needshuffle = true;     /* need to move existing linp's */
+               needshuffle = true; /* need to move existing linp's */
        }
    }
    else
@@ -912,7 +912,7 @@ PageIndexMultiDelete(Page page, OffsetNumber *itemnos, int nitems)
        }
        else
        {
-           itemidptr->offsetindex = nused;     /* where it will go */
+           itemidptr->offsetindex = nused; /* where it will go */
            itemidptr->itemoff = offset;
            itemidptr->alignedlen = MAXALIGN(size);
            totallen += itemidptr->alignedlen;
index 1b1de1f879abe0fb6dd080e374306dffabd5243d..c5be21dd91c68715d64add1115a2f5041ab6a854 100644 (file)
@@ -154,7 +154,7 @@ typedef struct
 
 static HTAB *pendingOpsTable = NULL;
 static List *pendingUnlinks = NIL;
-static MemoryContext pendingOpsCxt;        /* context for the above  */
+static MemoryContext pendingOpsCxt; /* context for the above  */
 
 static CycleCtr mdsync_cycle_ctr = 0;
 static CycleCtr mdckpt_cycle_ctr = 0;
@@ -669,7 +669,7 @@ mdprefetch(SMgrRelation reln, ForkNumber forknum, BlockNumber blocknum)
    Assert(seekpos < (off_t) BLCKSZ * RELSEG_SIZE);
 
    (void) FilePrefetch(v->mdfd_vfd, seekpos, BLCKSZ, WAIT_EVENT_DATA_FILE_PREFETCH);
-#endif   /* USE_PREFETCH */
+#endif                         /* USE_PREFETCH */
 }
 
 /*
index e9850f79ae00ae4e0b4d23326a1fa4242cc53b57..6955e4c577ae154c88158233d779fcb078a4fc3a 100644 (file)
@@ -38,7 +38,7 @@
 typedef struct f_smgr
 {
    void        (*smgr_init) (void);    /* may be NULL */
-   void        (*smgr_shutdown) (void);        /* may be NULL */
+   void        (*smgr_shutdown) (void);    /* may be NULL */
    void        (*smgr_close) (SMgrRelation reln, ForkNumber forknum);
    void        (*smgr_create) (SMgrRelation reln, ForkNumber forknum,
                                bool isRedo);
@@ -59,9 +59,9 @@ typedef struct f_smgr
    void        (*smgr_truncate) (SMgrRelation reln, ForkNumber forknum,
                                  BlockNumber nblocks);
    void        (*smgr_immedsync) (SMgrRelation reln, ForkNumber forknum);
-   void        (*smgr_pre_ckpt) (void);        /* may be NULL */
+   void        (*smgr_pre_ckpt) (void);    /* may be NULL */
    void        (*smgr_sync) (void);    /* may be NULL */
-   void        (*smgr_post_ckpt) (void);       /* may be NULL */
+   void        (*smgr_post_ckpt) (void);   /* may be NULL */
 } f_smgr;
 
 
index ba0f06c302d5514a06924aaa84ffd20cc4bfc4eb..90491c9062e962862e4ea7a9d0fc5c0d594b326f 100644 (file)
@@ -54,7 +54,7 @@ struct fp_info
    Oid         namespace;      /* other stuff from pg_proc */
    Oid         rettype;
    Oid         argtypes[FUNC_MAX_ARGS];
-   char        fname[NAMEDATALEN];     /* function name for logging */
+   char        fname[NAMEDATALEN]; /* function name for logging */
 };
 
 
@@ -293,7 +293,7 @@ HandleFunctionRequest(StringInfo msgBuf)
    if (PG_PROTOCOL_MAJOR(FrontendProtocol) < 3)
        (void) pq_getmsgstring(msgBuf); /* dummy string */
 
-   fid = (Oid) pq_getmsgint(msgBuf, 4);        /* function oid */
+   fid = (Oid) pq_getmsgint(msgBuf, 4);    /* function oid */
 
    /*
     * There used to be a lame attempt at caching lookup info here. Now we
index fdc8c71a858a30f75cd7a8224b946e2f2cc3be50..2645cbe6921b2fe8861bd2fa5ece0ea25b96427b 100644 (file)
@@ -153,7 +153,7 @@ static CachedPlanSource *unnamed_stmt_psrc = NULL;
 /* assorted command-line switches */
 static const char *userDoption = NULL; /* -D switch */
 static bool EchoQuery = false; /* -E switch */
-static bool UseSemiNewlineNewline = false;     /* -j switch */
+static bool UseSemiNewlineNewline = false; /* -j switch */
 
 /* whether or not, and why, we were canceled by conflict with recovery */
 static bool RecoveryConflictPending = false;
@@ -682,7 +682,7 @@ pg_analyze_and_rewrite_params(RawStmt *parsetree,
    Query      *query;
    List       *querytree_list;
 
-   Assert(query_string != NULL);       /* required as of 8.4 */
+   Assert(query_string != NULL);   /* required as of 8.4 */
 
    TRACE_POSTGRESQL_QUERY_REWRITE_START(query_string);
 
@@ -1193,9 +1193,9 @@ exec_simple_query(const char *query_string)
  */
 static void
 exec_parse_message(const char *query_string,   /* string to execute */
-                  const char *stmt_name,       /* name for prepared stmt */
-                  Oid *paramTypes,     /* parameter types */
-                  int numParams)       /* number of parameters */
+                  const char *stmt_name,   /* name for prepared stmt */
+                  Oid *paramTypes, /* parameter types */
+                  int numParams)   /* number of parameters */
 {
    MemoryContext unnamed_stmt_context = NULL;
    MemoryContext oldcontext;
@@ -1660,7 +1660,7 @@ exec_bind_message(StringInfo input_message)
            }
            else
            {
-               pbuf.data = NULL;       /* keep compiler quiet */
+               pbuf.data = NULL;   /* keep compiler quiet */
                csave = 0;
            }
 
@@ -1694,7 +1694,7 @@ exec_bind_message(StringInfo input_message)
                if (pstring && pstring != pbuf.data)
                    pfree(pstring);
            }
-           else if (pformat == 1)      /* binary mode */
+           else if (pformat == 1)  /* binary mode */
            {
                Oid         typreceive;
                Oid         typioparam;
@@ -2555,7 +2555,7 @@ drop_unnamed_stmt(void)
 void
 quickdie(SIGNAL_ARGS)
 {
-   sigaddset(&BlockSig, SIGQUIT);      /* prevent nested calls */
+   sigaddset(&BlockSig, SIGQUIT);  /* prevent nested calls */
    PG_SETMASK(&BlockSig);
 
    /*
@@ -2832,7 +2832,7 @@ ProcessInterrupts(void)
    if (ProcDiePending)
    {
        ProcDiePending = false;
-       QueryCancelPending = false;     /* ProcDie trumps QueryCancel */
+       QueryCancelPending = false; /* ProcDie trumps QueryCancel */
        LockErrorCleanup();
        /* As in quickdie, don't risk sending to client during auth */
        if (ClientAuthInProgress && whereToSendOutput == DestRemote)
@@ -2883,7 +2883,7 @@ ProcessInterrupts(void)
    }
    if (ClientConnectionLost)
    {
-       QueryCancelPending = false;     /* lost connection trumps QueryCancel */
+       QueryCancelPending = false; /* lost connection trumps QueryCancel */
        LockErrorCleanup();
        /* don't send to client, we already know the connection to be dead. */
        whereToSendOutput = DestNone;
@@ -2900,7 +2900,7 @@ ProcessInterrupts(void)
     */
    if (RecoveryConflictPending && DoingCommandRead)
    {
-       QueryCancelPending = false;     /* this trumps QueryCancel */
+       QueryCancelPending = false; /* this trumps QueryCancel */
        RecoveryConflictPending = false;
        LockErrorCleanup();
        pgstat_report_recovery_conflict(RecoveryConflictReason);
@@ -2950,7 +2950,7 @@ ProcessInterrupts(void)
         */
        if (lock_timeout_occurred && stmt_timeout_occurred &&
            get_timeout_finish_time(STATEMENT_TIMEOUT) < get_timeout_finish_time(LOCK_TIMEOUT))
-           lock_timeout_occurred = false;      /* report stmt timeout */
+           lock_timeout_occurred = false;  /* report stmt timeout */
 
        if (lock_timeout_occurred)
        {
@@ -3050,7 +3050,7 @@ ia64_get_bsp(void)
    return ret;
 }
 #endif
-#endif   /* IA64 */
+#endif                         /* IA64 */
 
 
 /*
@@ -3168,7 +3168,7 @@ stack_is_too_deep(void)
    if (stack_depth > max_stack_depth_bytes &&
        register_stack_base_ptr != NULL)
        return true;
-#endif   /* IA64 */
+#endif                         /* IA64 */
 
    return false;
 }
@@ -3283,7 +3283,7 @@ get_stats_option_name(const char *arg)
    switch (arg[0])
    {
        case 'p':
-           if (optarg[1] == 'a')       /* "parser" */
+           if (optarg[1] == 'a')   /* "parser" */
                return "log_parser_stats";
            else if (optarg[1] == 'l')  /* "planner" */
                return "log_planner_stats";
@@ -3339,7 +3339,7 @@ process_postgres_switches(int argc, char *argv[], GucContext ctx,
    }
    else
    {
-       gucsource = PGC_S_CLIENT;       /* switches came from client */
+       gucsource = PGC_S_CLIENT;   /* switches came from client */
    }
 
 #ifdef HAVE_INT_OPTERR
@@ -3640,9 +3640,9 @@ PostgresMain(int argc, char *argv[],
        WalSndSignals();
    else
    {
-       pqsignal(SIGHUP, PostgresSigHupHandler);        /* set flag to read
-                                                        * config file */
-       pqsignal(SIGINT, StatementCancelHandler);       /* cancel current query */
+       pqsignal(SIGHUP, PostgresSigHupHandler);    /* set flag to read config
+                                                    * file */
+       pqsignal(SIGINT, StatementCancelHandler);   /* cancel current query */
        pqsignal(SIGTERM, die); /* cancel current query and exit */
 
        /*
@@ -3651,9 +3651,9 @@ PostgresMain(int argc, char *argv[],
         * rather than quickdie().
         */
        if (IsUnderPostmaster)
-           pqsignal(SIGQUIT, quickdie);        /* hard crash time */
+           pqsignal(SIGQUIT, quickdie);    /* hard crash time */
        else
-           pqsignal(SIGQUIT, die);     /* cancel current query and exit */
+           pqsignal(SIGQUIT, die); /* cancel current query and exit */
        InitializeTimeouts();   /* establishes SIGALRM handler */
 
        /*
@@ -3671,8 +3671,8 @@ PostgresMain(int argc, char *argv[],
         * Reset some signals that are accepted by postmaster but not by
         * backend
         */
-       pqsignal(SIGCHLD, SIG_DFL);     /* system() requires this on some
-                                        * platforms */
+       pqsignal(SIGCHLD, SIG_DFL); /* system() requires this on some
+                                    * platforms */
    }
 
    pqinitmask();
@@ -3856,7 +3856,7 @@ PostgresMain(int argc, char *argv[],
         * forgetting a timeout cancel.
         */
        disable_all_timeouts(false);
-       QueryCancelPending = false;     /* second to avoid race condition */
+       QueryCancelPending = false; /* second to avoid race condition */
 
        /* Not reading from the client anymore. */
        DoingCommandRead = false;
@@ -4225,7 +4225,7 @@ PostgresMain(int argc, char *argv[],
                    }
 
                    if (whereToSendOutput == DestRemote)
-                       pq_putemptymessage('3');        /* CloseComplete */
+                       pq_putemptymessage('3');    /* CloseComplete */
                }
                break;
 
@@ -4468,7 +4468,7 @@ ShowUsage(const char *title)
                     r.ru_nvcsw - Save_r.ru_nvcsw,
                     r.ru_nivcsw - Save_r.ru_nivcsw,
                     r.ru_nvcsw, r.ru_nivcsw);
-#endif   /* HAVE_GETRUSAGE */
+#endif                         /* HAVE_GETRUSAGE */
 
    /* remove trailing newline */
    if (str.data[str.len - 1] == '\n')
index e30aeb1c7faff6eb02533dceaa99d46e35f1fa1f..756249ef4b7bbd0482d2b558838089536ae369c8 100644 (file)
@@ -76,7 +76,7 @@ CreateQueryDesc(PlannedStmt *plannedstmt,
    QueryDesc  *qd = (QueryDesc *) palloc(sizeof(QueryDesc));
 
    qd->operation = plannedstmt->commandType;   /* operation */
-   qd->plannedstmt = plannedstmt;      /* plan */
+   qd->plannedstmt = plannedstmt;  /* plan */
    qd->sourceText = sourceText;    /* query text */
    qd->snapshot = RegisterSnapshot(snapshot);  /* snapshot */
    /* RI check snapshot */
@@ -84,8 +84,7 @@ CreateQueryDesc(PlannedStmt *plannedstmt,
    qd->dest = dest;            /* output dest */
    qd->params = params;        /* parameter values passed into query */
    qd->queryEnv = queryEnv;
-   qd->instrument_options = instrument_options;        /* instrumentation
-                                                        * wanted? */
+   qd->instrument_options = instrument_options;    /* instrumentation wanted? */
 
    /* null these fields until set by ExecutorStart */
    qd->tupDesc = NULL;
@@ -939,7 +938,7 @@ PortalRunSelect(Portal portal,
        if (!ScanDirectionIsNoMovement(direction))
        {
            if (nprocessed > 0)
-               portal->atStart = false;        /* OK to go backward now */
+               portal->atStart = false;    /* OK to go backward now */
            if (count == 0 || nprocessed < (uint64) count)
                portal->atEnd = true;   /* we retrieved 'em all */
            portal->portalPos += nprocessed;
index dd1916f366aca226ff710de2069439646d8085ae..b0e8a84c62e7e8644ea66d78378409c60cb78fae 100644 (file)
@@ -1183,7 +1183,7 @@ ProcessUtilitySlow(ParseState *pstate,
                     */
                    switch (stmt->subtype)
                    {
-                       case 'T':       /* ALTER DOMAIN DEFAULT */
+                       case 'T':   /* ALTER DOMAIN DEFAULT */
 
                            /*
                             * Recursively alter column default for table and,
@@ -1193,30 +1193,30 @@ ProcessUtilitySlow(ParseState *pstate,
                                AlterDomainDefault(stmt->typeName,
                                                   stmt->def);
                            break;
-                       case 'N':       /* ALTER DOMAIN DROP NOT NULL */
+                       case 'N':   /* ALTER DOMAIN DROP NOT NULL */
                            address =
                                AlterDomainNotNull(stmt->typeName,
                                                   false);
                            break;
-                       case 'O':       /* ALTER DOMAIN SET NOT NULL */
+                       case 'O':   /* ALTER DOMAIN SET NOT NULL */
                            address =
                                AlterDomainNotNull(stmt->typeName,
                                                   true);
                            break;
-                       case 'C':       /* ADD CONSTRAINT */
+                       case 'C':   /* ADD CONSTRAINT */
                            address =
                                AlterDomainAddConstraint(stmt->typeName,
                                                         stmt->def,
                                                         &secondaryObject);
                            break;
-                       case 'X':       /* DROP CONSTRAINT */
+                       case 'X':   /* DROP CONSTRAINT */
                            address =
                                AlterDomainDropConstraint(stmt->typeName,
                                                          stmt->name,
                                                          stmt->behavior,
                                                          stmt->missing_ok);
                            break;
-                       case 'V':       /* VALIDATE CONSTRAINT */
+                       case 'V':   /* VALIDATE CONSTRAINT */
                            address =
                                AlterDomainValidateConstraint(stmt->typeName,
                                                              stmt->name);
@@ -1324,14 +1324,14 @@ ProcessUtilitySlow(ParseState *pstate,
                    /* ... and do it */
                    EventTriggerAlterTableStart(parsetree);
                    address =
-                       DefineIndex(relid,      /* OID of heap relation */
+                       DefineIndex(relid,  /* OID of heap relation */
                                    stmt,
                                    InvalidOid, /* no predefined OID */
-                                   false,      /* is_alter_table */
-                                   true,       /* check_rights */
-                                   true,       /* check_not_in_use */
-                                   false,      /* skip_build */
-                                   false);     /* quiet */
+                                   false,  /* is_alter_table */
+                                   true,   /* check_rights */
+                                   true,   /* check_not_in_use */
+                                   false,  /* skip_build */
+                                   false); /* quiet */
 
                    /*
                     * Add the CREATE INDEX node itself to stash right away;
@@ -1403,15 +1403,15 @@ ProcessUtilitySlow(ParseState *pstate,
                }
                break;
 
-           case T_CreateEnumStmt:      /* CREATE TYPE AS ENUM */
+           case T_CreateEnumStmt:  /* CREATE TYPE AS ENUM */
                address = DefineEnum((CreateEnumStmt *) parsetree);
                break;
 
-           case T_CreateRangeStmt:     /* CREATE TYPE AS RANGE */
+           case T_CreateRangeStmt: /* CREATE TYPE AS RANGE */
                address = DefineRange((CreateRangeStmt *) parsetree);
                break;
 
-           case T_AlterEnumStmt:       /* ALTER TYPE (enum) */
+           case T_AlterEnumStmt:   /* ALTER TYPE (enum) */
                address = AlterEnum((AlterEnumStmt *) parsetree);
                break;
 
@@ -1594,7 +1594,7 @@ ProcessUtilitySlow(ParseState *pstate,
                address = CreatePolicy((CreatePolicyStmt *) parsetree);
                break;
 
-           case T_AlterPolicyStmt:     /* ALTER POLICY */
+           case T_AlterPolicyStmt: /* ALTER POLICY */
                address = AlterPolicy((AlterPolicyStmt *) parsetree);
                break;
 
@@ -1725,7 +1725,7 @@ UtilityReturnsTuples(Node *parsetree)
                    return false;
                portal = GetPortalByName(stmt->portalname);
                if (!PortalIsValid(portal))
-                   return false;       /* not our business to raise error */
+                   return false;   /* not our business to raise error */
                return portal->tupDesc ? true : false;
            }
 
@@ -1736,7 +1736,7 @@ UtilityReturnsTuples(Node *parsetree)
 
                entry = FetchPreparedStatement(stmt->name, false);
                if (!entry)
-                   return false;       /* not our business to raise error */
+                   return false;   /* not our business to raise error */
                if (entry->plansource->resultDesc)
                    return true;
                return false;
@@ -2887,7 +2887,7 @@ GetCommandLogLevel(Node *parsetree)
 
        case T_SelectStmt:
            if (((SelectStmt *) parsetree)->intoClause)
-               lev = LOGSTMT_DDL;      /* SELECT INTO */
+               lev = LOGSTMT_DDL;  /* SELECT INTO */
            else
                lev = LOGSTMT_ALL;
            break;
index 9a01075d4e1ab055ec6092145205268ed2d227a2..ccf057b5d64e367d3bd64dc221f1d7942ff66af1 100644 (file)
@@ -405,7 +405,7 @@ compileTheLexeme(DictThesaurus *d)
    {
        TSLexeme   *ptr;
 
-       if (strcmp(d->wrds[i].lexeme, "?") == 0)        /* Is stop word marker? */
+       if (strcmp(d->wrds[i].lexeme, "?") == 0)    /* Is stop word marker? */
            newwrds = addCompiledLexeme(newwrds, &nnw, &tnm, NULL, d->wrds[i].entries, 0);
        else
        {
index 817237ce4d202c0e7e89e6f3e461151cf9240e71..3bcc93fa1b7ba6f33a3d0ef702b5524a2e6cc254 100644 (file)
@@ -827,7 +827,7 @@ get_nextfield(char **str, char *next)
 
    *next = '\0';
 
-   return (state == PAE_INMASK);       /* OK if we got a nonempty field */
+   return (state == PAE_INMASK);   /* OK if we got a nonempty field */
 }
 
 /*
index 19d2cc3f30f86582ebb9e92f5c11dc5528d61081..2cc084770d2e10fec4a1ed8cb92a9966b1541865 100644 (file)
@@ -28,7 +28,7 @@ t_isdigit(const char *ptr)
 {
    int         clen = pg_mblen(ptr);
    wchar_t     character[2];
-   Oid         collation = DEFAULT_COLLATION_OID;      /* TODO */
+   Oid         collation = DEFAULT_COLLATION_OID;  /* TODO */
    pg_locale_t mylocale = 0;   /* TODO */
 
    if (clen == 1 || lc_ctype_is_c(collation))
@@ -44,7 +44,7 @@ t_isspace(const char *ptr)
 {
    int         clen = pg_mblen(ptr);
    wchar_t     character[2];
-   Oid         collation = DEFAULT_COLLATION_OID;      /* TODO */
+   Oid         collation = DEFAULT_COLLATION_OID;  /* TODO */
    pg_locale_t mylocale = 0;   /* TODO */
 
    if (clen == 1 || lc_ctype_is_c(collation))
@@ -60,7 +60,7 @@ t_isalpha(const char *ptr)
 {
    int         clen = pg_mblen(ptr);
    wchar_t     character[2];
-   Oid         collation = DEFAULT_COLLATION_OID;      /* TODO */
+   Oid         collation = DEFAULT_COLLATION_OID;  /* TODO */
    pg_locale_t mylocale = 0;   /* TODO */
 
    if (clen == 1 || lc_ctype_is_c(collation))
@@ -76,7 +76,7 @@ t_isprint(const char *ptr)
 {
    int         clen = pg_mblen(ptr);
    wchar_t     character[2];
-   Oid         collation = DEFAULT_COLLATION_OID;      /* TODO */
+   Oid         collation = DEFAULT_COLLATION_OID;  /* TODO */
    pg_locale_t mylocale = 0;   /* TODO */
 
    if (clen == 1 || lc_ctype_is_c(collation))
@@ -86,7 +86,7 @@ t_isprint(const char *ptr)
 
    return iswprint((wint_t) character[0]);
 }
-#endif   /* USE_WIDE_UPPER_LOWER */
+#endif                         /* USE_WIDE_UPPER_LOWER */
 
 
 /*
@@ -246,7 +246,7 @@ lowerstr_with_len(const char *str, int len)
    char       *out;
 
 #ifdef USE_WIDE_UPPER_LOWER
-   Oid         collation = DEFAULT_COLLATION_OID;      /* TODO */
+   Oid         collation = DEFAULT_COLLATION_OID;  /* TODO */
    pg_locale_t mylocale = 0;   /* TODO */
 #endif
 
@@ -300,7 +300,7 @@ lowerstr_with_len(const char *str, int len)
        Assert(wlen < len);
    }
    else
-#endif   /* USE_WIDE_UPPER_LOWER */
+#endif                         /* USE_WIDE_UPPER_LOWER */
    {
        const char *ptr = str;
        char       *outptr;
index f4298ca9aa4d37f51cf82920d272d6b42dc5a019..975623fa960c574252122c849cca72a0091a496b 100644 (file)
@@ -423,7 +423,7 @@ compute_tsvector_stats(VacAttrStats *stats,
        stats->stats_valid = true;
        stats->stanullfrac = 1.0;
        stats->stawidth = 0;    /* "unknown" */
-       stats->stadistinct = 0.0;       /* "unknown" */
+       stats->stadistinct = 0.0;   /* "unknown" */
    }
 
    /*
index 0cfc6552d7513b50f0b07657a0e2fa7035bbe4bb..0ce2e00eb296118ee68e6dfab788e07f7060112c 100644 (file)
@@ -199,10 +199,10 @@ typedef enum
 /* forward declaration */
 struct TParser;
 
-typedef int (*TParserCharTest) (struct TParser *);     /* any p_is* functions
-                                                        * except p_iseq */
-typedef void (*TParserSpecial) (struct TParser *);     /* special handler for
-                                                        * special cases... */
+typedef int (*TParserCharTest) (struct TParser *); /* any p_is* functions
+                                                    * except p_iseq */
+typedef void (*TParserSpecial) (struct TParser *); /* special handler for
+                                                    * special cases... */
 
 typedef struct
 {
@@ -302,7 +302,7 @@ TParserInit(char *str, int len)
    if (prs->charmaxlen > 1)
    {
        Oid         collation = DEFAULT_COLLATION_OID;  /* TODO */
-       pg_locale_t mylocale = 0;       /* TODO */
+       pg_locale_t mylocale = 0;   /* TODO */
 
        prs->usewide = true;
        if (lc_ctype_is_c(collation))
@@ -560,7 +560,7 @@ p_iseq(TParser *prs, char c)
 
 p_iswhat(alnum)
 p_iswhat(alpha)
-#endif   /* USE_WIDE_UPPER_LOWER */
+#endif                         /* USE_WIDE_UPPER_LOWER */
 
 p_iswhat(digit)
 p_iswhat(lower)
@@ -1697,7 +1697,7 @@ static const TParserStateActionItem actionTPS_InHyphenUnsignedInt[] = {
  */
 typedef struct
 {
-   const TParserStateActionItem *action;       /* the actual state info */
+   const TParserStateActionItem *action;   /* the actual state info */
    TParserState state;         /* only for Assert crosscheck */
 #ifdef WPARSER_TRACE
    const char *state_name;     /* only for debug printout */
index 35bdfc9a461787572c3155846a692bf0c4d55cee..c4899cb3bc84911924cb0962616c2b8a1cee2a26 100644 (file)
@@ -793,7 +793,7 @@ acldefault(GrantObjectType objtype, Oid ownerId)
            break;
        default:
            elog(ERROR, "unrecognized objtype: %d", (int) objtype);
-           world_default = ACL_NO_RIGHTS;      /* keep compiler quiet */
+           world_default = ACL_NO_RIGHTS;  /* keep compiler quiet */
            owner_default = ACL_NO_RIGHTS;
            break;
    }
@@ -4713,7 +4713,7 @@ roles_has_privs_of(Oid roleid)
    /*
     * Now safe to assign to state variable
     */
-   cached_privs_role = InvalidOid;     /* just paranoia */
+   cached_privs_role = InvalidOid; /* just paranoia */
    list_free(cached_privs_roles);
    cached_privs_roles = new_cached_privs_roles;
    cached_privs_role = roleid;
index 3ae6018c67e833305d559205c32ac5d530d2287a..7be5e6c6777b37de438b140a2328a2b720a0ff76 100644 (file)
@@ -788,7 +788,7 @@ mcelem_array_contained_selec(Datum *mcelem, int nmcelem,
            else
            {
                if (cmp == 0)
-                   match = true;       /* mcelem is found */
+                   match = true;   /* mcelem is found */
                break;
            }
        }
index 1d202dba12086336b9b8ecff5dcd6fc6750cb827..e1ebe57681792291910497595c6c3c1e2829dd0b 100644 (file)
@@ -171,8 +171,8 @@ Datum
 array_in(PG_FUNCTION_ARGS)
 {
    char       *string = PG_GETARG_CSTRING(0);  /* external form */
-   Oid         element_type = PG_GETARG_OID(1);        /* type of an array
-                                                        * element */
+   Oid         element_type = PG_GETARG_OID(1);    /* type of an array
+                                                    * element */
    int32       typmod = PG_GETARG_INT32(2);    /* typmod for array elements */
    int         typlen;
    bool        typbyval;
@@ -1130,9 +1130,9 @@ array_out(PG_FUNCTION_ARGS)
 
            /* count data plus backslashes; detect chars needing quotes */
            if (values[i][0] == '\0')
-               needquote = true;       /* force quotes for empty string */
+               needquote = true;   /* force quotes for empty string */
            else if (pg_strcasecmp(values[i], "NULL") == 0)
-               needquote = true;       /* force quotes for literal NULL */
+               needquote = true;   /* force quotes for literal NULL */
            else
                needquote = false;
 
@@ -2318,14 +2318,14 @@ array_set_element(Datum arraydatum,
            dim[0] += addedbefore;
            lb[0] = indx[0];
            if (addedbefore > 1)
-               newhasnulls = true;     /* will insert nulls */
+               newhasnulls = true; /* will insert nulls */
        }
        if (indx[0] >= (dim[0] + lb[0]))
        {
            addedafter = indx[0] - (dim[0] + lb[0]) + 1;
            dim[0] += addedafter;
            if (addedafter > 1)
-               newhasnulls = true;     /* will insert nulls */
+               newhasnulls = true; /* will insert nulls */
        }
    }
    else
@@ -2575,7 +2575,7 @@ array_set_element_expanded(Datum arraydatum,
            lb[0] = indx[0];
            dimschanged = true;
            if (addedbefore > 1)
-               newhasnulls = true;     /* will insert nulls */
+               newhasnulls = true; /* will insert nulls */
        }
        if (indx[0] >= (dim[0] + lb[0]))
        {
@@ -2583,7 +2583,7 @@ array_set_element_expanded(Datum arraydatum,
            dim[0] += addedafter;
            dimschanged = true;
            if (addedafter > 1)
-               newhasnulls = true;     /* will insert nulls */
+               newhasnulls = true; /* will insert nulls */
        }
    }
    else
@@ -2871,7 +2871,7 @@ array_set_slice(Datum arraydatum,
        if (lowerIndx[0] < lb[0])
        {
            if (upperIndx[0] < lb[0] - 1)
-               newhasnulls = true;     /* will insert nulls */
+               newhasnulls = true; /* will insert nulls */
            addedbefore = lb[0] - lowerIndx[0];
            dim[0] += addedbefore;
            lb[0] = lowerIndx[0];
@@ -2879,7 +2879,7 @@ array_set_slice(Datum arraydatum,
        if (upperIndx[0] >= (dim[0] + lb[0]))
        {
            if (lowerIndx[0] > (dim[0] + lb[0]))
-               newhasnulls = true;     /* will insert nulls */
+               newhasnulls = true; /* will insert nulls */
            addedafter = upperIndx[0] - (dim[0] + lb[0]) + 1;
            dim[0] += addedafter;
        }
@@ -2956,7 +2956,7 @@ array_set_slice(Datum arraydatum,
                                       ndim, dim, lb,
                                       lowerIndx, upperIndx,
                                       elmlen, elmbyval, elmalign);
-       lenbefore = lenafter = 0;       /* keep compiler quiet */
+       lenbefore = lenafter = 0;   /* keep compiler quiet */
        itemsbefore = itemsafter = nolditems = 0;
    }
    else
@@ -4963,8 +4963,7 @@ initArrayResult(Oid element_type, MemoryContext rcontext, bool subcontext)
        MemoryContextAlloc(arr_context, sizeof(ArrayBuildState));
    astate->mcontext = arr_context;
    astate->private_cxt = subcontext;
-   astate->alen = (subcontext ? 64 : 8);       /* arbitrary starting array
-                                                * size */
+   astate->alen = (subcontext ? 64 : 8);   /* arbitrary starting array size */
    astate->dvalues = (Datum *)
        MemoryContextAlloc(arr_context, astate->alen * sizeof(Datum));
    astate->dnulls = (bool *)
@@ -5140,8 +5139,7 @@ initArrayResultArr(Oid array_type, Oid element_type, MemoryContext rcontext,
                   bool subcontext)
 {
    ArrayBuildStateArr *astate;
-   MemoryContext arr_context = rcontext;       /* by default use the parent
-                                                * ctx */
+   MemoryContext arr_context = rcontext;   /* by default use the parent ctx */
 
    /* Lookup element type, unless element_type already provided */
    if (!OidIsValid(element_type))
index e219d4b4954d4fb8ee4cb8e89d0f49cd6596d172..362272277f2cf642bfb30e159eda08dcd09388cd 100644 (file)
@@ -102,9 +102,9 @@ pg_to_ascii(unsigned char *src, unsigned char *src_end, unsigned char *dest, int
 static text *
 encode_to_ascii(text *data, int enc)
 {
-   pg_to_ascii((unsigned char *) VARDATA(data),        /* src */
-               (unsigned char *) (data) + VARSIZE(data),       /* src end */
-               (unsigned char *) VARDATA(data),        /* dest */
+   pg_to_ascii((unsigned char *) VARDATA(data),    /* src */
+               (unsigned char *) (data) + VARSIZE(data),   /* src end */
+               (unsigned char *) VARDATA(data),    /* dest */
                enc);           /* encoding */
 
    return data;
index 677037c246b1eed81931c23d461b42209d0f7e64..7bbc634bd2b1e22cd522827f5f3963a3a1e30832 100644 (file)
@@ -971,10 +971,10 @@ cash_words(PG_FUNCTION_ARGS)
    val = (uint64) value;
 
    m0 = val % INT64CONST(100); /* cents */
-   m1 = (val / INT64CONST(100)) % 1000;        /* hundreds */
-   m2 = (val / INT64CONST(100000)) % 1000;     /* thousands */
+   m1 = (val / INT64CONST(100)) % 1000;    /* hundreds */
+   m2 = (val / INT64CONST(100000)) % 1000; /* thousands */
    m3 = (val / INT64CONST(100000000)) % 1000;  /* millions */
-   m4 = (val / INT64CONST(100000000000)) % 1000;       /* billions */
+   m4 = (val / INT64CONST(100000000000)) % 1000;   /* billions */
    m5 = (val / INT64CONST(100000000000000)) % 1000;    /* trillions */
    m6 = (val / INT64CONST(100000000000000000)) % 1000; /* quadrillions */
 
index 3095047f0b407008e06b9a8141626daa7739cd3d..2b261cd5bd5472c2e7be4ee795e278f539a91405 100644 (file)
@@ -527,7 +527,7 @@ date_pli(PG_FUNCTION_ARGS)
    DateADT     result;
 
    if (DATE_NOT_FINITE(dateVal))
-       PG_RETURN_DATEADT(dateVal);     /* can't change infinity */
+       PG_RETURN_DATEADT(dateVal); /* can't change infinity */
 
    result = dateVal + days;
 
@@ -551,7 +551,7 @@ date_mii(PG_FUNCTION_ARGS)
    DateADT     result;
 
    if (DATE_NOT_FINITE(dateVal))
-       PG_RETURN_DATEADT(dateVal);     /* can't change infinity */
+       PG_RETURN_DATEADT(dateVal); /* can't change infinity */
 
    result = dateVal - days;
 
index 107b8fdad97ca56a5f37d3c6b2df8214d8c9b544..73c4e41213e77e60903a793d9850ee18cf89a36c 100644 (file)
@@ -91,7 +91,7 @@ static const datetkn datetktbl[] = {
    /* token, type, value */
    {EARLY, RESERV, DTK_EARLY}, /* "-infinity" reserved for "early time" */
    {DA_D, ADBC, AD},           /* "ad" for years > 0 */
-   {"allballs", RESERV, DTK_ZULU},     /* 00:00:00 */
+   {"allballs", RESERV, DTK_ZULU}, /* 00:00:00 */
    {"am", AMPM, AM},
    {"apr", MONTH, 4},
    {"april", MONTH, 4},
@@ -113,8 +113,8 @@ static const datetkn datetktbl[] = {
    {"friday", DOW, 5},
    {"h", UNITS, DTK_HOUR},     /* "hour" */
    {LATE, RESERV, DTK_LATE},   /* "infinity" reserved for "late time" */
-   {INVALID, RESERV, DTK_INVALID},     /* "invalid" reserved for bad time */
-   {"isodow", UNITS, DTK_ISODOW},      /* ISO day of week, Sunday == 7 */
+   {INVALID, RESERV, DTK_INVALID}, /* "invalid" reserved for bad time */
+   {"isodow", UNITS, DTK_ISODOW},  /* ISO day of week, Sunday == 7 */
    {"isoyear", UNITS, DTK_ISOYEAR},    /* year in terms of the ISO week date */
    {"j", UNITS, DTK_JULIAN},
    {"jan", MONTH, 1},
@@ -176,33 +176,33 @@ static const datetkn deltatktbl[] = {
    {"@", IGNORE_DTF, 0},       /* postgres relative prefix */
    {DAGO, AGO, 0},             /* "ago" indicates negative time offset */
    {"c", UNITS, DTK_CENTURY},  /* "century" relative */
-   {"cent", UNITS, DTK_CENTURY},       /* "century" relative */
+   {"cent", UNITS, DTK_CENTURY},   /* "century" relative */
    {"centuries", UNITS, DTK_CENTURY},  /* "centuries" relative */
-   {DCENTURY, UNITS, DTK_CENTURY},     /* "century" relative */
+   {DCENTURY, UNITS, DTK_CENTURY}, /* "century" relative */
    {"d", UNITS, DTK_DAY},      /* "day" relative */
    {DDAY, UNITS, DTK_DAY},     /* "day" relative */
    {"days", UNITS, DTK_DAY},   /* "days" relative */
    {"dec", UNITS, DTK_DECADE}, /* "decade" relative */
-   {DDECADE, UNITS, DTK_DECADE},       /* "decade" relative */
-   {"decades", UNITS, DTK_DECADE},     /* "decades" relative */
+   {DDECADE, UNITS, DTK_DECADE},   /* "decade" relative */
+   {"decades", UNITS, DTK_DECADE}, /* "decades" relative */
    {"decs", UNITS, DTK_DECADE},    /* "decades" relative */
    {"h", UNITS, DTK_HOUR},     /* "hour" relative */
    {DHOUR, UNITS, DTK_HOUR},   /* "hour" relative */
    {"hours", UNITS, DTK_HOUR}, /* "hours" relative */
    {"hr", UNITS, DTK_HOUR},    /* "hour" relative */
    {"hrs", UNITS, DTK_HOUR},   /* "hours" relative */
-   {INVALID, RESERV, DTK_INVALID},     /* reserved for invalid time */
+   {INVALID, RESERV, DTK_INVALID}, /* reserved for invalid time */
    {"m", UNITS, DTK_MINUTE},   /* "minute" relative */
-   {"microsecon", UNITS, DTK_MICROSEC},        /* "microsecond" relative */
-   {"mil", UNITS, DTK_MILLENNIUM},     /* "millennium" relative */
-   {"millennia", UNITS, DTK_MILLENNIUM},       /* "millennia" relative */
-   {DMILLENNIUM, UNITS, DTK_MILLENNIUM},       /* "millennium" relative */
-   {"millisecon", UNITS, DTK_MILLISEC},        /* relative */
+   {"microsecon", UNITS, DTK_MICROSEC},    /* "microsecond" relative */
+   {"mil", UNITS, DTK_MILLENNIUM}, /* "millennium" relative */
+   {"millennia", UNITS, DTK_MILLENNIUM},   /* "millennia" relative */
+   {DMILLENNIUM, UNITS, DTK_MILLENNIUM},   /* "millennium" relative */
+   {"millisecon", UNITS, DTK_MILLISEC},    /* relative */
    {"mils", UNITS, DTK_MILLENNIUM},    /* "millennia" relative */
    {"min", UNITS, DTK_MINUTE}, /* "minute" relative */
    {"mins", UNITS, DTK_MINUTE},    /* "minutes" relative */
-   {DMINUTE, UNITS, DTK_MINUTE},       /* "minute" relative */
-   {"minutes", UNITS, DTK_MINUTE},     /* "minutes" relative */
+   {DMINUTE, UNITS, DTK_MINUTE},   /* "minute" relative */
+   {"minutes", UNITS, DTK_MINUTE}, /* "minutes" relative */
    {"mon", UNITS, DTK_MONTH},  /* "months" relative */
    {"mons", UNITS, DTK_MONTH}, /* "months" relative */
    {DMONTH, UNITS, DTK_MONTH}, /* "month" relative */
@@ -213,7 +213,7 @@ static const datetkn deltatktbl[] = {
    {"mseconds", UNITS, DTK_MILLISEC},
    {"msecs", UNITS, DTK_MILLISEC},
    {"qtr", UNITS, DTK_QUARTER},    /* "quarter" relative */
-   {DQUARTER, UNITS, DTK_QUARTER},     /* "quarter" relative */
+   {DQUARTER, UNITS, DTK_QUARTER}, /* "quarter" relative */
    {"s", UNITS, DTK_SECOND},
    {"sec", UNITS, DTK_SECOND},
    {DSECOND, UNITS, DTK_SECOND},
@@ -221,13 +221,13 @@ static const datetkn deltatktbl[] = {
    {"secs", UNITS, DTK_SECOND},
    {DTIMEZONE, UNITS, DTK_TZ}, /* "timezone" time offset */
    {"timezone_h", UNITS, DTK_TZ_HOUR}, /* timezone hour units */
-   {"timezone_m", UNITS, DTK_TZ_MINUTE},       /* timezone minutes units */
+   {"timezone_m", UNITS, DTK_TZ_MINUTE},   /* timezone minutes units */
    {"undefined", RESERV, DTK_INVALID}, /* pre-v6.1 invalid time */
    {"us", UNITS, DTK_MICROSEC},    /* "microsecond" relative */
-   {"usec", UNITS, DTK_MICROSEC},      /* "microsecond" relative */
+   {"usec", UNITS, DTK_MICROSEC},  /* "microsecond" relative */
    {DMICROSEC, UNITS, DTK_MICROSEC},   /* "microsecond" relative */
    {"useconds", UNITS, DTK_MICROSEC},  /* "microseconds" relative */
-   {"usecs", UNITS, DTK_MICROSEC},     /* "microseconds" relative */
+   {"usecs", UNITS, DTK_MICROSEC}, /* "microseconds" relative */
    {"w", UNITS, DTK_WEEK},     /* "week" relative */
    {DWEEK, UNITS, DTK_WEEK},   /* "week" relative */
    {"weeks", UNITS, DTK_WEEK}, /* "weeks" relative */
@@ -2752,7 +2752,7 @@ DecodeNumber(int flen, char *str, bool haveTextMonth, int fmask,
                if (flen >= 3 && *is2digits)
                {
                    /* Guess that first numeric field is day was wrong */
-                   *tmask = DTK_M(DAY);        /* YEAR is already set */
+                   *tmask = DTK_M(DAY);    /* YEAR is already set */
                    tm->tm_mday = tm->tm_year;
                    tm->tm_year = val;
                    *is2digits = FALSE;
index 894f026a41bd204864f0a85b38800a0d7ffcb1b2..30746ef908c8f928de8109b4b1ec4b27b5fcb8eb 100644 (file)
@@ -65,7 +65,7 @@ do {                                                          \
 
 
 /* Configurable GUC parameter */
-int            extra_float_digits = 0;     /* Added to DBL_DIG or FLT_DIG */
+int            extra_float_digits = 0; /* Added to DBL_DIG or FLT_DIG */
 
 /* Cached constants for degree-based trig functions */
 static bool degree_consts_set = false;
@@ -105,7 +105,7 @@ static void init_degree_constants(void);
  */
 #define cbrt my_cbrt
 static double cbrt(double x);
-#endif   /* HAVE_CBRT */
+#endif                         /* HAVE_CBRT */
 
 
 /*
@@ -329,7 +329,7 @@ float4in(PG_FUNCTION_ARGS)
        if (endptr != num && endptr[-1] == '\0')
            endptr--;
    }
-#endif   /* HAVE_BUGGY_SOLARIS_STRTOD */
+#endif                         /* HAVE_BUGGY_SOLARIS_STRTOD */
 
    /* skip trailing whitespace */
    while (*endptr != '\0' && isspace((unsigned char) *endptr))
@@ -555,7 +555,7 @@ float8in_internal(char *num, char **endptr_p,
        if (endptr != num && endptr[-1] == '\0')
            endptr--;
    }
-#endif   /* HAVE_BUGGY_SOLARIS_STRTOD */
+#endif                         /* HAVE_BUGGY_SOLARIS_STRTOD */
 
    /* skip trailing whitespace */
    while (*endptr != '\0' && isspace((unsigned char) *endptr))
@@ -3608,4 +3608,4 @@ cbrt(double x)
    return isneg ? -tmpres : tmpres;
 }
 
-#endif   /* !HAVE_CBRT */
+#endif                         /* !HAVE_CBRT */
index ba7e4fc934f48c0a7946b5ddb5cbe4b76cdcf75d..807ce589da8dc604bb6ffefb7053a04213fb9820 100644 (file)
  * Maximal length of one node
  * ----------
  */
-#define DCH_MAX_ITEM_SIZ      12       /* max localized day name       */
-#define NUM_MAX_ITEM_SIZ       8       /* roman number (RN has 15 chars)   */
+#define DCH_MAX_ITEM_SIZ      12   /* max localized day name       */
+#define NUM_MAX_ITEM_SIZ       8   /* roman number (RN has 15 chars)   */
 
 /* ----------
  * More is in float.c
@@ -724,7 +724,7 @@ static const KeyWord DCH_keywords[] = {
    {"AM", 2, DCH_AM, FALSE, FROM_CHAR_DATE_NONE},
    {"B.C.", 4, DCH_B_C, FALSE, FROM_CHAR_DATE_NONE},   /* B */
    {"BC", 2, DCH_BC, FALSE, FROM_CHAR_DATE_NONE},
-   {"CC", 2, DCH_CC, TRUE, FROM_CHAR_DATE_NONE},       /* C */
+   {"CC", 2, DCH_CC, TRUE, FROM_CHAR_DATE_NONE},   /* C */
    {"DAY", 3, DCH_DAY, FALSE, FROM_CHAR_DATE_NONE},    /* D */
    {"DDD", 3, DCH_DDD, TRUE, FROM_CHAR_DATE_GREGORIAN},
    {"DD", 2, DCH_DD, TRUE, FROM_CHAR_DATE_GREGORIAN},
@@ -732,11 +732,11 @@ static const KeyWord DCH_keywords[] = {
    {"Day", 3, DCH_Day, FALSE, FROM_CHAR_DATE_NONE},
    {"Dy", 2, DCH_Dy, FALSE, FROM_CHAR_DATE_NONE},
    {"D", 1, DCH_D, TRUE, FROM_CHAR_DATE_GREGORIAN},
-   {"FX", 2, DCH_FX, FALSE, FROM_CHAR_DATE_NONE},      /* F */
+   {"FX", 2, DCH_FX, FALSE, FROM_CHAR_DATE_NONE},  /* F */
    {"HH24", 4, DCH_HH24, TRUE, FROM_CHAR_DATE_NONE},   /* H */
    {"HH12", 4, DCH_HH12, TRUE, FROM_CHAR_DATE_NONE},
    {"HH", 2, DCH_HH, TRUE, FROM_CHAR_DATE_NONE},
-   {"IDDD", 4, DCH_IDDD, TRUE, FROM_CHAR_DATE_ISOWEEK},        /* I */
+   {"IDDD", 4, DCH_IDDD, TRUE, FROM_CHAR_DATE_ISOWEEK},    /* I */
    {"ID", 2, DCH_ID, TRUE, FROM_CHAR_DATE_ISOWEEK},
    {"IW", 2, DCH_IW, TRUE, FROM_CHAR_DATE_ISOWEEK},
    {"IYYY", 4, DCH_IYYY, TRUE, FROM_CHAR_DATE_ISOWEEK},
@@ -744,22 +744,22 @@ static const KeyWord DCH_keywords[] = {
    {"IY", 2, DCH_IY, TRUE, FROM_CHAR_DATE_ISOWEEK},
    {"I", 1, DCH_I, TRUE, FROM_CHAR_DATE_ISOWEEK},
    {"J", 1, DCH_J, TRUE, FROM_CHAR_DATE_NONE}, /* J */
-   {"MI", 2, DCH_MI, TRUE, FROM_CHAR_DATE_NONE},       /* M */
+   {"MI", 2, DCH_MI, TRUE, FROM_CHAR_DATE_NONE},   /* M */
    {"MM", 2, DCH_MM, TRUE, FROM_CHAR_DATE_GREGORIAN},
    {"MONTH", 5, DCH_MONTH, FALSE, FROM_CHAR_DATE_GREGORIAN},
    {"MON", 3, DCH_MON, FALSE, FROM_CHAR_DATE_GREGORIAN},
    {"MS", 2, DCH_MS, TRUE, FROM_CHAR_DATE_NONE},
    {"Month", 5, DCH_Month, FALSE, FROM_CHAR_DATE_GREGORIAN},
    {"Mon", 3, DCH_Mon, FALSE, FROM_CHAR_DATE_GREGORIAN},
-   {"OF", 2, DCH_OF, FALSE, FROM_CHAR_DATE_NONE},      /* O */
+   {"OF", 2, DCH_OF, FALSE, FROM_CHAR_DATE_NONE},  /* O */
    {"P.M.", 4, DCH_P_M, FALSE, FROM_CHAR_DATE_NONE},   /* P */
    {"PM", 2, DCH_PM, FALSE, FROM_CHAR_DATE_NONE},
    {"Q", 1, DCH_Q, TRUE, FROM_CHAR_DATE_NONE}, /* Q */
    {"RM", 2, DCH_RM, FALSE, FROM_CHAR_DATE_GREGORIAN}, /* R */
    {"SSSS", 4, DCH_SSSS, TRUE, FROM_CHAR_DATE_NONE},   /* S */
    {"SS", 2, DCH_SS, TRUE, FROM_CHAR_DATE_NONE},
-   {"TZ", 2, DCH_TZ, FALSE, FROM_CHAR_DATE_NONE},      /* T */
-   {"US", 2, DCH_US, TRUE, FROM_CHAR_DATE_NONE},       /* U */
+   {"TZ", 2, DCH_TZ, FALSE, FROM_CHAR_DATE_NONE},  /* T */
+   {"US", 2, DCH_US, TRUE, FROM_CHAR_DATE_NONE},   /* U */
    {"WW", 2, DCH_WW, TRUE, FROM_CHAR_DATE_GREGORIAN},  /* W */
    {"W", 1, DCH_W, TRUE, FROM_CHAR_DATE_GREGORIAN},
    {"Y,YYY", 5, DCH_Y_YYY, TRUE, FROM_CHAR_DATE_GREGORIAN},    /* Y */
@@ -773,17 +773,17 @@ static const KeyWord DCH_keywords[] = {
    {"am", 2, DCH_am, FALSE, FROM_CHAR_DATE_NONE},
    {"b.c.", 4, DCH_b_c, FALSE, FROM_CHAR_DATE_NONE},   /* b */
    {"bc", 2, DCH_bc, FALSE, FROM_CHAR_DATE_NONE},
-   {"cc", 2, DCH_CC, TRUE, FROM_CHAR_DATE_NONE},       /* c */
+   {"cc", 2, DCH_CC, TRUE, FROM_CHAR_DATE_NONE},   /* c */
    {"day", 3, DCH_day, FALSE, FROM_CHAR_DATE_NONE},    /* d */
    {"ddd", 3, DCH_DDD, TRUE, FROM_CHAR_DATE_GREGORIAN},
    {"dd", 2, DCH_DD, TRUE, FROM_CHAR_DATE_GREGORIAN},
    {"dy", 2, DCH_dy, FALSE, FROM_CHAR_DATE_NONE},
    {"d", 1, DCH_D, TRUE, FROM_CHAR_DATE_GREGORIAN},
-   {"fx", 2, DCH_FX, FALSE, FROM_CHAR_DATE_NONE},      /* f */
+   {"fx", 2, DCH_FX, FALSE, FROM_CHAR_DATE_NONE},  /* f */
    {"hh24", 4, DCH_HH24, TRUE, FROM_CHAR_DATE_NONE},   /* h */
    {"hh12", 4, DCH_HH12, TRUE, FROM_CHAR_DATE_NONE},
    {"hh", 2, DCH_HH, TRUE, FROM_CHAR_DATE_NONE},
-   {"iddd", 4, DCH_IDDD, TRUE, FROM_CHAR_DATE_ISOWEEK},        /* i */
+   {"iddd", 4, DCH_IDDD, TRUE, FROM_CHAR_DATE_ISOWEEK},    /* i */
    {"id", 2, DCH_ID, TRUE, FROM_CHAR_DATE_ISOWEEK},
    {"iw", 2, DCH_IW, TRUE, FROM_CHAR_DATE_ISOWEEK},
    {"iyyy", 4, DCH_IYYY, TRUE, FROM_CHAR_DATE_ISOWEEK},
@@ -791,7 +791,7 @@ static const KeyWord DCH_keywords[] = {
    {"iy", 2, DCH_IY, TRUE, FROM_CHAR_DATE_ISOWEEK},
    {"i", 1, DCH_I, TRUE, FROM_CHAR_DATE_ISOWEEK},
    {"j", 1, DCH_J, TRUE, FROM_CHAR_DATE_NONE}, /* j */
-   {"mi", 2, DCH_MI, TRUE, FROM_CHAR_DATE_NONE},       /* m */
+   {"mi", 2, DCH_MI, TRUE, FROM_CHAR_DATE_NONE},   /* m */
    {"mm", 2, DCH_MM, TRUE, FROM_CHAR_DATE_GREGORIAN},
    {"month", 5, DCH_month, FALSE, FROM_CHAR_DATE_GREGORIAN},
    {"mon", 3, DCH_mon, FALSE, FROM_CHAR_DATE_GREGORIAN},
@@ -802,8 +802,8 @@ static const KeyWord DCH_keywords[] = {
    {"rm", 2, DCH_rm, FALSE, FROM_CHAR_DATE_GREGORIAN}, /* r */
    {"ssss", 4, DCH_SSSS, TRUE, FROM_CHAR_DATE_NONE},   /* s */
    {"ss", 2, DCH_SS, TRUE, FROM_CHAR_DATE_NONE},
-   {"tz", 2, DCH_tz, FALSE, FROM_CHAR_DATE_NONE},      /* t */
-   {"us", 2, DCH_US, TRUE, FROM_CHAR_DATE_NONE},       /* u */
+   {"tz", 2, DCH_tz, FALSE, FROM_CHAR_DATE_NONE},  /* t */
+   {"us", 2, DCH_US, TRUE, FROM_CHAR_DATE_NONE},   /* u */
    {"ww", 2, DCH_WW, TRUE, FROM_CHAR_DATE_GREGORIAN},  /* w */
    {"w", 1, DCH_W, TRUE, FROM_CHAR_DATE_GREGORIAN},
    {"y,yyy", 5, DCH_Y_YYY, TRUE, FROM_CHAR_DATE_GREGORIAN},    /* y */
@@ -1377,7 +1377,7 @@ dump_node(FormatNode *node, int max)
            elog(DEBUG_elog_output, "%d:\t unknown NODE!", a);
    }
 }
-#endif   /* DEBUG */
+#endif                         /* DEBUG */
 
 /*****************************************************************************
  *         Private utils
@@ -1491,7 +1491,7 @@ u_strToTitle_default_BI(UChar *dest, int32_t destCapacity,
                        NULL, locale, pErrorCode);
 }
 
-#endif   /* USE_ICU */
+#endif                         /* USE_ICU */
 
 /*
  * If the system provides the needed functions for wide-character manipulation
@@ -1602,7 +1602,7 @@ str_tolower(const char *buff, size_t nbytes, Oid collid)
                wchar2char(result, workspace, result_size, mylocale);
                pfree(workspace);
            }
-#endif   /* USE_WIDE_UPPER_LOWER */
+#endif                         /* USE_WIDE_UPPER_LOWER */
            else
            {
                char       *p;
@@ -1725,7 +1725,7 @@ str_toupper(const char *buff, size_t nbytes, Oid collid)
                wchar2char(result, workspace, result_size, mylocale);
                pfree(workspace);
            }
-#endif   /* USE_WIDE_UPPER_LOWER */
+#endif                         /* USE_WIDE_UPPER_LOWER */
            else
            {
                char       *p;
@@ -1861,7 +1861,7 @@ str_initcap(const char *buff, size_t nbytes, Oid collid)
                wchar2char(result, workspace, result_size, mylocale);
                pfree(workspace);
            }
-#endif   /* USE_WIDE_UPPER_LOWER */
+#endif                         /* USE_WIDE_UPPER_LOWER */
            else
            {
                char       *p;
@@ -2066,7 +2066,7 @@ dump_index(const KeyWord *k, const int *index)
    elog(DEBUG_elog_output, "\n\t\tUsed positions: %d,\n\t\tFree positions: %d",
         count, free_i);
 }
-#endif   /* DEBUG */
+#endif                         /* DEBUG */
 
 /* ----------
  * Return TRUE if next format picture is not digit value
@@ -4309,12 +4309,12 @@ NUM_numpart_from_char(NUMProc *Np, int id, int input_len)
            if (*Np->inout_p == '-' || (IS_BRACKET(Np->Num) &&
                                        *Np->inout_p == '<'))
            {
-               *Np->number = '-';      /* set - */
+               *Np->number = '-';  /* set - */
                Np->inout_p++;
            }
            else if (*Np->inout_p == '+')
            {
-               *Np->number = '+';      /* set + */
+               *Np->number = '+';  /* set + */
                Np->inout_p++;
            }
        }
@@ -4512,7 +4512,7 @@ NUM_numpart_to_char(NUMProc *Np, int id)
        {
            if (!IS_FILLMODE(Np->Num))
            {
-               *Np->inout_p = ' ';     /* Write + */
+               *Np->inout_p = ' '; /* Write + */
                ++Np->inout_p;
            }
            Np->sign_wrote = TRUE;
@@ -4539,7 +4539,7 @@ NUM_numpart_to_char(NUMProc *Np, int id)
             */
            if (!IS_FILLMODE(Np->Num))
            {
-               *Np->inout_p = ' ';     /* Write ' ' */
+               *Np->inout_p = ' '; /* Write ' ' */
                ++Np->inout_p;
            }
        }
@@ -4608,7 +4608,7 @@ NUM_numpart_to_char(NUMProc *Np, int id)
                }
                else
                {
-                   *Np->inout_p = *Np->number_p;       /* Write DIGIT */
+                   *Np->inout_p = *Np->number_p;   /* Write DIGIT */
                    ++Np->inout_p;
                    Np->num_in = TRUE;
                }
@@ -4847,7 +4847,7 @@ NUM_processor(FormatNode *node, NUMDesc *Num, char *inout,
                    if (Np->is_to_char)
                    {
                        NUM_numpart_to_char(Np, n->key->id);
-                       continue;       /* for() */
+                       continue;   /* for() */
                    }
                    else
                    {
index 40de01b7bc9e4ea2c4e3dde9d1e45b6121a3b115..97210e8db3f5f4eb2cc3fdf9869533902c5aa440 100644 (file)
@@ -1598,7 +1598,7 @@ path_inter(PG_FUNCTION_ARGS)
        {
            if (!p1->closed)
                continue;
-           iprev = p1->npts - 1;       /* include the closure segment */
+           iprev = p1->npts - 1;   /* include the closure segment */
        }
 
        for (j = 0; j < p2->npts; j++)
@@ -1652,7 +1652,7 @@ path_distance(PG_FUNCTION_ARGS)
        {
            if (!p1->closed)
                continue;
-           iprev = p1->npts - 1;       /* include the closure segment */
+           iprev = p1->npts - 1;   /* include the closure segment */
        }
 
        for (j = 0; j < p2->npts; j++)
@@ -1710,7 +1710,7 @@ path_length(PG_FUNCTION_ARGS)
        {
            if (!path->closed)
                continue;
-           iprev = path->npts - 1;     /* include the closure segment */
+           iprev = path->npts - 1; /* include the closure segment */
        }
 
        result += point_dt(&path->p[iprev], &path->p[i]);
@@ -2457,7 +2457,7 @@ dist_ppath(PG_FUNCTION_ARGS)
                {
                    if (!path->closed)
                        continue;
-                   iprev = path->npts - 1;     /* include the closure segment */
+                   iprev = path->npts - 1; /* include the closure segment */
                }
 
                statlseg_construct(&lseg, &path->p[iprev], &path->p[i]);
@@ -2776,7 +2776,7 @@ close_ps(PG_FUNCTION_ARGS)
    xh = lseg->p[0].x < lseg->p[1].x;
    yh = lseg->p[0].y < lseg->p[1].y;
 
-   if (FPeq(lseg->p[0].x, lseg->p[1].x))       /* vertical? */
+   if (FPeq(lseg->p[0].x, lseg->p[1].x))   /* vertical? */
    {
 #ifdef GEODEBUG
        printf("close_ps- segment is vertical\n");
@@ -2822,24 +2822,24 @@ close_ps(PG_FUNCTION_ARGS)
     */
 
    invm = -1.0 / point_sl(&(lseg->p[0]), &(lseg->p[1]));
-   tmp = line_construct_pm(&lseg->p[!yh], invm);       /* lower edge of the
-                                                        * "band" */
+   tmp = line_construct_pm(&lseg->p[!yh], invm);   /* lower edge of the
+                                                    * "band" */
    if (pt->y < (tmp->A * pt->x + tmp->C))
    {                           /* we are below the lower edge */
-       result = point_copy(&lseg->p[!yh]);     /* below the lseg, take lower
-                                                * end pt */
+       result = point_copy(&lseg->p[!yh]); /* below the lseg, take lower end
+                                            * pt */
 #ifdef GEODEBUG
        printf("close_ps below: tmp A %f  B %f   C %f\n",
               tmp->A, tmp->B, tmp->C);
 #endif
        PG_RETURN_POINT_P(result);
    }
-   tmp = line_construct_pm(&lseg->p[yh], invm);        /* upper edge of the
-                                                        * "band" */
+   tmp = line_construct_pm(&lseg->p[yh], invm);    /* upper edge of the
+                                                    * "band" */
    if (pt->y > (tmp->A * pt->x + tmp->C))
    {                           /* we are below the lower edge */
-       result = point_copy(&lseg->p[yh]);      /* above the lseg, take higher
-                                                * end pt */
+       result = point_copy(&lseg->p[yh]);  /* above the lseg, take higher end
+                                            * pt */
 #ifdef GEODEBUG
        printf("close_ps above: tmp A %f  B %f   C %f\n",
               tmp->A, tmp->B, tmp->C);
index 0c6a412f2aa8ec6b9cf0abd75bf38ff3f94d62be..e8354dee44bd054d1ed17155634be6d33ba24f75 100644 (file)
@@ -104,7 +104,7 @@ scanint8(const char *str, bool errorOK, int64 *result)
    {
        int64       newtmp = tmp * 10 + (*ptr++ - '0');
 
-       if ((newtmp / 10) != tmp)       /* overflow? */
+       if ((newtmp / 10) != tmp)   /* overflow? */
        {
            if (errorOK)
                return false;
index 0f99b613f567225b08e9302a70271092f3eac756..8b822b2736608b7b77f9f85dbd78488832d64c2d 100644 (file)
@@ -347,7 +347,7 @@ pg_parse_json(JsonLexContext *lex, JsonSemAction *sem)
            parse_array(lex, sem);
            break;
        default:
-           parse_scalar(lex, sem);     /* json can be a bare scalar */
+           parse_scalar(lex, sem); /* json can be a bare scalar */
    }
 
    lex_expect(JSON_PARSE_END, lex, JSON_TOKEN_END);
index 01df06ebfdba02193e4320bd0cf604451bbefa5d..aa0dc165f022d15c8fc61c4cd432b182d3bd405d 100644 (file)
@@ -57,8 +57,8 @@ typedef struct OkeysState
 typedef struct IterateJsonStringValuesState
 {
    JsonLexContext *lex;
-   JsonIterateStringValuesAction action;       /* an action that will be
-                                                * applied to each json value */
+   JsonIterateStringValuesAction action;   /* an action that will be applied
+                                            * to each json value */
    void       *action_state;   /* any necessary context for iteration */
 } IterateJsonStringValuesState;
 
@@ -67,8 +67,8 @@ typedef struct TransformJsonStringValuesState
 {
    JsonLexContext *lex;
    StringInfo  strval;         /* resulting json */
-   JsonTransformStringValuesAction action;     /* an action that will be
-                                                * applied to each json value */
+   JsonTransformStringValuesAction action; /* an action that will be applied
+                                            * to each json value */
    void       *action_state;   /* any necessary context for transformation */
 } TransformJsonStringValuesState;
 
@@ -136,7 +136,7 @@ typedef struct JHashState
 /* hashtable element */
 typedef struct JsonHashEntry
 {
-   char        fname[NAMEDATALEN];     /* hash key (MUST BE FIRST) */
+   char        fname[NAMEDATALEN]; /* hash key (MUST BE FIRST) */
    char       *val;
    JsonTokenType type;
 } JsonHashEntry;
@@ -2479,7 +2479,7 @@ populate_array_element_end(void *_state, bool isnull)
        else if (state->element_scalar)
        {
            jsv.val.json.str = state->element_scalar;
-           jsv.val.json.len = -1;      /* null-terminated */
+           jsv.val.json.len = -1;  /* null-terminated */
        }
        else
        {
@@ -2545,9 +2545,9 @@ populate_array_json(PopulateArrayContext *ctx, char *json, int len)
  *     elements and accumulate result using given ArrayBuildState.
  */
 static void
-populate_array_dim_jsonb(PopulateArrayContext *ctx,        /* context */
-                        JsonbValue *jbv,       /* jsonb sub-array */
-                        int ndim)      /* current dimension */
+populate_array_dim_jsonb(PopulateArrayContext *ctx, /* context */
+                        JsonbValue *jbv,   /* jsonb sub-array */
+                        int ndim)  /* current dimension */
 {
    JsonbContainer *jbc = jbv->val.binary.data;
    JsonbIterator *it;
@@ -2812,7 +2812,7 @@ populate_scalar(ScalarIOData *io, Oid typid, int32 typmod, JsValue *jsv)
 
            str = JsonbToCString(NULL, &jsonb->root, VARSIZE(jsonb));
        }
-       else if (jbv->type == jbvString)        /* quotes are stripped */
+       else if (jbv->type == jbvString)    /* quotes are stripped */
            str = pnstrdup(jbv->val.string.val, jbv->val.string.len);
        else if (jbv->type == jbvBool)
            str = pstrdup(jbv->val.boolean ? "true" : "false");
@@ -3977,8 +3977,8 @@ addJsonbToParseState(JsonbParseState **jbps, Jsonb *jb)
 
    if (JB_ROOT_IS_SCALAR(jb))
    {
-       (void) JsonbIteratorNext(&it, &v, false);       /* skip array header */
-       (void) JsonbIteratorNext(&it, &v, false);       /* fetch scalar value */
+       (void) JsonbIteratorNext(&it, &v, false);   /* skip array header */
+       (void) JsonbIteratorNext(&it, &v, false);   /* fetch scalar value */
 
        switch (o->type)
        {
index 634953ae67283175bf609ae3cae3698c9b662820..087a720625bfffa6e0c57a6e62b5cd74ded387e8 100644 (file)
@@ -337,7 +337,7 @@ do_like_escape(text *pat, text *esc)
 
    return result;
 }
-#endif   /* do_like_escape */
+#endif                         /* do_like_escape */
 
 #ifdef CHAREQ
 #undef CHAREQ
index 38dc1266e042e44f7faa8678c37dd2a5fd6ca4f7..e3a858c7c7bbdf8bbede8fa2d29b7886ebd557b1 100644 (file)
@@ -772,7 +772,7 @@ tintervalrecv(PG_FUNCTION_ARGS)
 
    if (tinterval->data[0] == INVALID_ABSTIME ||
        tinterval->data[1] == INVALID_ABSTIME)
-       status = T_INTERVAL_INVAL;      /* undefined  */
+       status = T_INTERVAL_INVAL;  /* undefined  */
    else
        status = T_INTERVAL_VALID;
 
@@ -919,7 +919,7 @@ timepl(PG_FUNCTION_ARGS)
    if (AbsoluteTimeIsReal(t1) &&
        RelativeTimeIsValid(t2) &&
        ((t2 > 0 && t1 < NOEND_ABSTIME - t2) ||
-        (t2 <= 0 && t1 > NOSTART_ABSTIME - t2)))       /* prevent overflow */
+        (t2 <= 0 && t1 > NOSTART_ABSTIME - t2)))   /* prevent overflow */
        PG_RETURN_ABSOLUTETIME(t1 + t2);
 
    PG_RETURN_ABSOLUTETIME(INVALID_ABSTIME);
@@ -1538,7 +1538,7 @@ bogus:
            (errcode(ERRCODE_INVALID_DATETIME_FORMAT),
             errmsg("invalid input syntax for type %s: \"%s\"",
                    "tinterval", i_string)));
-   *i_start = *i_end = INVALID_ABSTIME;        /* keep compiler quiet */
+   *i_start = *i_end = INVALID_ABSTIME;    /* keep compiler quiet */
 }
 
 
index e41ee478ecac2e807a971cdf18b87eddfd81b6a3..974e6e84011030f18f5f571b5a95e22a63b3874e 100644 (file)
@@ -200,8 +200,7 @@ namecpy(Name n1, Name n2)
 int
 namecat(Name n1, Name n2)
 {
-   return namestrcat(n1, NameStr(*n2));        /* n2 can't be any longer than
-                                                * n1 */
+   return namestrcat(n1, NameStr(*n2));    /* n2 can't be any longer than n1 */
 }
 #endif
 
@@ -317,9 +316,9 @@ current_schemas(PG_FUNCTION_ARGS)
 
    array = construct_array(names, i,
                            NAMEOID,
-                           NAMEDATALEN,        /* sizeof(Name) */
-                           false,      /* Name is not by-val */
-                           'c');       /* alignment of Name */
+                           NAMEDATALEN,    /* sizeof(Name) */
+                           false,  /* Name is not by-val */
+                           'c');   /* alignment of Name */
 
    PG_RETURN_POINTER(array);
 }
index 6cce0f292c389818624822d7e48bdeed8fd8fa93..1a182a0725c16f8a7bc4fa46b464bbb57d4b3b76 100644 (file)
@@ -1933,7 +1933,7 @@ numeric_abbrev_convert_var(NumericVar *var, NumericSortSupport *nss)
    return NumericAbbrevGetDatum(result);
 }
 
-#endif   /* NUMERIC_ABBREV_BITS == 64 */
+#endif                         /* NUMERIC_ABBREV_BITS == 64 */
 
 #if NUMERIC_ABBREV_BITS == 32
 
@@ -2010,7 +2010,7 @@ numeric_abbrev_convert_var(NumericVar *var, NumericSortSupport *nss)
    return NumericAbbrevGetDatum(result);
 }
 
-#endif   /* NUMERIC_ABBREV_BITS == 32 */
+#endif                         /* NUMERIC_ABBREV_BITS == 32 */
 
 /*
  * Ordinary (non-sortsupport) comparisons follow.
@@ -4704,7 +4704,7 @@ numeric_stddev_internal(NumericAggState *state,
    rscale = vsumX.dscale * 2;
 
    mul_var(&vsumX, &vsumX, &vsumX, rscale);    /* vsumX = sumX * sumX */
-   mul_var(&vN, &vsumX2, &vsumX2, rscale);     /* vsumX2 = N * sumX2 */
+   mul_var(&vN, &vsumX2, &vsumX2, rscale); /* vsumX2 = N * sumX2 */
    sub_var(&vsumX2, &vsumX, &vsumX2);  /* N * sumX2 - sumX * sumX */
 
    if (cmp_var(&vsumX2, &const_zero) <= 0)
@@ -4715,11 +4715,11 @@ numeric_stddev_internal(NumericAggState *state,
    else
    {
        if (sample)
-           mul_var(&vN, &vNminus1, &vNminus1, 0);      /* N * (N - 1) */
+           mul_var(&vN, &vNminus1, &vNminus1, 0);  /* N * (N - 1) */
        else
            mul_var(&vN, &vN, &vNminus1, 0);    /* N * N */
        rscale = select_div_scale(&vsumX2, &vNminus1);
-       div_var(&vsumX2, &vNminus1, &vsumX, rscale, true);      /* variance */
+       div_var(&vsumX2, &vNminus1, &vsumX, rscale, true);  /* variance */
        if (!variance)
            sqrt_var(&vsumX, &vsumX, rscale);   /* stddev */
 
@@ -5369,7 +5369,7 @@ dump_var(const char *str, NumericVar *var)
 
    printf("\n");
 }
-#endif   /* NUMERIC_DEBUG */
+#endif                         /* NUMERIC_DEBUG */
 
 
 /* ----------------------------------------------------------------------
@@ -8081,7 +8081,7 @@ power_var(NumericVar *base, NumericVar *exp, NumericVar *result)
    if (cmp_var(base, &const_zero) == 0)
    {
        set_var_from_var(&const_zero, result);
-       result->dscale = NUMERIC_MIN_SIG_DIGITS;        /* no need to round */
+       result->dscale = NUMERIC_MIN_SIG_DIGITS;    /* no need to round */
        return;
    }
 
index a2855984d51c9874cba6795ed15d42bc0e7e0857..7554fbb22c3a0b817f0fc6eedbb514b378e34ba7 100644 (file)
@@ -129,7 +129,7 @@ static HTAB *collation_cache = NULL;
 
 
 #if defined(WIN32) && defined(LC_MESSAGES)
-static char *IsoLocaleName(const char *);      /* MSVC specific */
+static char *IsoLocaleName(const char *);  /* MSVC specific */
 #endif
 
 
@@ -174,7 +174,7 @@ pg_perm_setlocale(int category, const char *locale)
    else
 #endif
        result = setlocale(category, locale);
-#endif   /* WIN32 */
+#endif                         /* WIN32 */
 
    if (result == NULL)
        return result;          /* fall out immediately on failure */
@@ -219,9 +219,9 @@ pg_perm_setlocale(int category, const char *locale)
            result = IsoLocaleName(locale);
            if (result == NULL)
                result = (char *) locale;
-#endif   /* WIN32 */
+#endif                         /* WIN32 */
            break;
-#endif   /* LC_MESSAGES */
+#endif                         /* LC_MESSAGES */
        case LC_MONETARY:
            envvar = "LC_MONETARY";
            envbuf = lc_monetary_envbuf;
@@ -752,7 +752,7 @@ strftime_win32(char *dst, size_t dstlen,
 
 /* redefine strftime() */
 #define strftime(a,b,c,d) strftime_win32(a,b,c,d)
-#endif   /* WIN32 */
+#endif                         /* WIN32 */
 
 /* Subroutine for cache_locale_time(). */
 static void
@@ -972,9 +972,9 @@ IsoLocaleName(const char *winlocname)
    return NULL;
 #else
    return NULL;                /* Not supported on this version of msvc/mingw */
-#endif   /* _MSC_VER >= 1400 */
+#endif                         /* _MSC_VER >= 1400 */
 }
-#endif   /* WIN32 && LC_MESSAGES */
+#endif                         /* WIN32 && LC_MESSAGES */
 
 
 /*
@@ -1242,7 +1242,7 @@ report_newlocale_failure(const char *localename)
              errdetail("The operating system could not find any locale data for the locale name \"%s\".",
                        localename) : 0)));
 }
-#endif   /* HAVE_LOCALE_T */
+#endif                         /* HAVE_LOCALE_T */
 
 
 /*
@@ -1346,7 +1346,7 @@ pg_newlocale_from_collation(Oid collid)
            ereport(ERROR,
                    (errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
                     errmsg("collation provider LIBC is not supported on this platform")));
-#endif   /* not HAVE_LOCALE_T */
+#endif                         /* not HAVE_LOCALE_T */
        }
        else if (collform->collprovider == COLLPROVIDER_ICU)
        {
@@ -1369,7 +1369,7 @@ pg_newlocale_from_collation(Oid collid)
                    (errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
                     errmsg("ICU is not supported in this build"), \
               errhint("You need to rebuild PostgreSQL using --with-icu.")));
-#endif   /* not USE_ICU */
+#endif                         /* not USE_ICU */
        }
 
        collversion = SysCacheGetAttr(COLLOID, tp, Anum_pg_collation_collversion,
@@ -1569,7 +1569,7 @@ wchar2char(char *to, const wchar_t *from, size_t tolen, pg_locale_t locale)
        }
    }
    else
-#endif   /* WIN32 */
+#endif                         /* WIN32 */
    if (locale == (pg_locale_t) 0)
    {
        /* Use wcstombs directly for the default locale */
@@ -1588,12 +1588,12 @@ wchar2char(char *to, const wchar_t *from, size_t tolen, pg_locale_t locale)
        result = wcstombs(to, from, tolen);
 
        uselocale(save_locale);
-#endif   /* HAVE_WCSTOMBS_L */
+#endif                         /* HAVE_WCSTOMBS_L */
 #else                          /* !HAVE_LOCALE_T */
        /* Can't have locale != 0 without HAVE_LOCALE_T */
        elog(ERROR, "wcstombs_l is not available");
        result = 0;             /* keep compiler quiet */
-#endif   /* HAVE_LOCALE_T */
+#endif                         /* HAVE_LOCALE_T */
    }
 
    return result;
@@ -1642,7 +1642,7 @@ char2wchar(wchar_t *to, size_t tolen, const char *from, size_t fromlen,
        }
    }
    else
-#endif   /* WIN32 */
+#endif                         /* WIN32 */
    {
        /* mbstowcs requires ending '\0' */
        char       *str = pnstrdup(from, fromlen);
@@ -1665,12 +1665,12 @@ char2wchar(wchar_t *to, size_t tolen, const char *from, size_t fromlen,
            result = mbstowcs(to, str, tolen);
 
            uselocale(save_locale);
-#endif   /* HAVE_MBSTOWCS_L */
+#endif                         /* HAVE_MBSTOWCS_L */
 #else                          /* !HAVE_LOCALE_T */
            /* Can't have locale != 0 without HAVE_LOCALE_T */
            elog(ERROR, "mbstowcs_l is not available");
            result = 0;         /* keep compiler quiet */
-#endif   /* HAVE_LOCALE_T */
+#endif                         /* HAVE_LOCALE_T */
        }
 
        pfree(str);
@@ -1697,4 +1697,4 @@ char2wchar(wchar_t *to, size_t tolen, const char *from, size_t fromlen,
    return result;
 }
 
-#endif   /* USE_WIDE_UPPER_LOWER */
+#endif                         /* USE_WIDE_UPPER_LOWER */
index f81b16c236c86d46380b8f0f44d8aa9607769e5c..a1f4f4d37229c4ffa31721521f8fd3246af09078 100644 (file)
@@ -70,7 +70,7 @@ typedef enum
 typedef struct
 {
    TypeCacheEntry *typcache;   /* typcache for range type */
-   bool        has_subtype_diff;       /* does it have subtype_diff? */
+   bool        has_subtype_diff;   /* does it have subtype_diff? */
    int         entries_count;  /* total number of entries being split */
 
    /* Information about currently selected split follows */
index c4c549658d22fbd6fac0fd172f74010355848368..e803f72924a5275b59c5bba01a087c333ea8d55d 100644 (file)
@@ -251,7 +251,7 @@ calc_rangesel(TypeCacheEntry *typcache, VariableStatData *vardata,
                             ATTSTATSSLOT_NUMBERS))
        {
            if (sslot.nnumbers != 1)
-               elog(ERROR, "invalid empty fraction statistic");        /* shouldn't happen */
+               elog(ERROR, "invalid empty fraction statistic");    /* shouldn't happen */
            empty_frac = sslot.numbers[0];
            free_attstatsslot(&sslot);
        }
index a8d585ce7acadb4b403a66a83cef1aaa5de4e476..879540fc1ae225bf6c6083faad231b7c68ad8206 100644 (file)
@@ -347,7 +347,7 @@ compute_range_stats(VacAttrStats *stats, AnalyzeAttrFetchFunc fetchfunc,
        stats->stats_valid = true;
        stats->stanullfrac = 1.0;
        stats->stawidth = 0;    /* "unknown" */
-       stats->stadistinct = 0.0;       /* "unknown" */
+       stats->stadistinct = 0.0;   /* "unknown" */
    }
 
    /*
index 37139f9647b465fa412bb734ecbe800a3c2a87c5..1c02f143ba0da065aae96cd0f2fc468d5b05bf5d 100644 (file)
@@ -119,14 +119,11 @@ typedef struct RI_ConstraintInfo
    char        confdeltype;    /* foreign key's ON DELETE action */
    char        confmatchtype;  /* foreign key's match type */
    int         nkeys;          /* number of key columns */
-   int16       pk_attnums[RI_MAX_NUMKEYS];     /* attnums of referenced cols */
-   int16       fk_attnums[RI_MAX_NUMKEYS];     /* attnums of referencing cols */
-   Oid         pf_eq_oprs[RI_MAX_NUMKEYS];     /* equality operators (PK =
-                                                * FK) */
-   Oid         pp_eq_oprs[RI_MAX_NUMKEYS];     /* equality operators (PK =
-                                                * PK) */
-   Oid         ff_eq_oprs[RI_MAX_NUMKEYS];     /* equality operators (FK =
-                                                * FK) */
+   int16       pk_attnums[RI_MAX_NUMKEYS]; /* attnums of referenced cols */
+   int16       fk_attnums[RI_MAX_NUMKEYS]; /* attnums of referencing cols */
+   Oid         pf_eq_oprs[RI_MAX_NUMKEYS]; /* equality operators (PK = FK) */
+   Oid         pp_eq_oprs[RI_MAX_NUMKEYS]; /* equality operators (PK = PK) */
+   Oid         ff_eq_oprs[RI_MAX_NUMKEYS]; /* equality operators (FK = FK) */
    dlist_node  valid_link;     /* Link in list of valid entries */
 } RI_ConstraintInfo;
 
@@ -579,7 +576,7 @@ ri_Check_Pk_Match(Relation pk_rel, Relation fk_rel,
    result = ri_PerformCheck(riinfo, &qkey, qplan,
                             fk_rel, pk_rel,
                             old_row, NULL,
-                            true,      /* treat like update */
+                            true,  /* treat like update */
                             SPI_OK_SELECT);
 
    if (SPI_finish() != SPI_OK_FINISH)
@@ -771,7 +768,7 @@ ri_restrict_del(TriggerData *trigdata, bool is_no_action)
            ri_PerformCheck(riinfo, &qkey, qplan,
                            fk_rel, pk_rel,
                            old_row, NULL,
-                           true,       /* must detect new rows */
+                           true,   /* must detect new rows */
                            SPI_OK_SELECT);
 
            if (SPI_finish() != SPI_OK_FINISH)
@@ -994,7 +991,7 @@ ri_restrict_upd(TriggerData *trigdata, bool is_no_action)
            ri_PerformCheck(riinfo, &qkey, qplan,
                            fk_rel, pk_rel,
                            old_row, NULL,
-                           true,       /* must detect new rows */
+                           true,   /* must detect new rows */
                            SPI_OK_SELECT);
 
            if (SPI_finish() != SPI_OK_FINISH)
@@ -1150,7 +1147,7 @@ RI_FKey_cascade_del(PG_FUNCTION_ARGS)
            ri_PerformCheck(riinfo, &qkey, qplan,
                            fk_rel, pk_rel,
                            old_row, NULL,
-                           true,       /* must detect new rows */
+                           true,   /* must detect new rows */
                            SPI_OK_DELETE);
 
            if (SPI_finish() != SPI_OK_FINISH)
@@ -1331,7 +1328,7 @@ RI_FKey_cascade_upd(PG_FUNCTION_ARGS)
            ri_PerformCheck(riinfo, &qkey, qplan,
                            fk_rel, pk_rel,
                            old_row, new_row,
-                           true,       /* must detect new rows */
+                           true,   /* must detect new rows */
                            SPI_OK_UPDATE);
 
            if (SPI_finish() != SPI_OK_FINISH)
@@ -1496,7 +1493,7 @@ RI_FKey_setnull_del(PG_FUNCTION_ARGS)
            ri_PerformCheck(riinfo, &qkey, qplan,
                            fk_rel, pk_rel,
                            old_row, NULL,
-                           true,       /* must detect new rows */
+                           true,   /* must detect new rows */
                            SPI_OK_UPDATE);
 
            if (SPI_finish() != SPI_OK_FINISH)
@@ -1672,7 +1669,7 @@ RI_FKey_setnull_upd(PG_FUNCTION_ARGS)
            ri_PerformCheck(riinfo, &qkey, qplan,
                            fk_rel, pk_rel,
                            old_row, NULL,
-                           true,       /* must detect new rows */
+                           true,   /* must detect new rows */
                            SPI_OK_UPDATE);
 
            if (SPI_finish() != SPI_OK_FINISH)
@@ -1838,7 +1835,7 @@ RI_FKey_setdefault_del(PG_FUNCTION_ARGS)
            ri_PerformCheck(riinfo, &qkey, qplan,
                            fk_rel, pk_rel,
                            old_row, NULL,
-                           true,       /* must detect new rows */
+                           true,   /* must detect new rows */
                            SPI_OK_UPDATE);
 
            if (SPI_finish() != SPI_OK_FINISH)
@@ -2029,7 +2026,7 @@ RI_FKey_setdefault_upd(PG_FUNCTION_ARGS)
            ri_PerformCheck(riinfo, &qkey, qplan,
                            fk_rel, pk_rel,
                            old_row, NULL,
-                           true,       /* must detect new rows */
+                           true,   /* must detect new rows */
                            SPI_OK_UPDATE);
 
            if (SPI_finish() != SPI_OK_FINISH)
@@ -3111,7 +3108,7 @@ ri_PerformCheck(const RI_ConstraintInfo *riinfo,
     */
    if (IsolationUsesXactSnapshot() && detectNewRows)
    {
-       CommandCounterIncrement();      /* be sure all my own work is visible */
+       CommandCounterIncrement();  /* be sure all my own work is visible */
        test_snapshot = GetLatestSnapshot();
        crosscheck_snapshot = GetTransactionSnapshot();
    }
@@ -3584,11 +3581,11 @@ ri_AttributesEqual(Oid eq_opr, Oid typeid,
    {
        oldvalue = FunctionCall3(&entry->cast_func_finfo,
                                 oldvalue,
-                                Int32GetDatum(-1),     /* typmod */
+                                Int32GetDatum(-1), /* typmod */
                                 BoolGetDatum(false));  /* implicit coercion */
        newvalue = FunctionCall3(&entry->cast_func_finfo,
                                 newvalue,
-                                Int32GetDatum(-1),     /* typmod */
+                                Int32GetDatum(-1), /* typmod */
                                 BoolGetDatum(false));  /* implicit coercion */
    }
 
@@ -3663,7 +3660,7 @@ ri_HashCompareOp(Oid eq_opr, Oid typeid)
        op_input_types(eq_opr, &lefttype, &righttype);
        Assert(lefttype == righttype);
        if (typeid == lefttype)
-           castfunc = InvalidOid;      /* simplest case */
+           castfunc = InvalidOid;  /* simplest case */
        else
        {
            pathtype = find_coercion_pathway(lefttype, typeid,
index 5f3f7968d55d18c1a43f2ff1ee7d642c7987764b..b8ad47a20c81c97bfcc6675492437bb5e243fb19 100644 (file)
@@ -83,7 +83,7 @@
 #define PRETTYINDENT_JOIN      4
 #define PRETTYINDENT_VAR       4
 
-#define PRETTYINDENT_LIMIT     40      /* wrap limit */
+#define PRETTYINDENT_LIMIT     40  /* wrap limit */
 
 /* Pretty flags */
 #define PRETTYFLAG_PAREN       1
@@ -113,8 +113,8 @@ typedef struct
    int         wrapColumn;     /* max line length, or -1 for no limit */
    int         indentLevel;    /* current indent level for prettyprint */
    bool        varprefix;      /* TRUE to print prefixes on Vars */
-   ParseExprKind special_exprkind;     /* set only for exprkinds needing
-                                        * special handling */
+   ParseExprKind special_exprkind; /* set only for exprkinds needing special
+                                    * handling */
 } deparse_context;
 
 /*
@@ -280,7 +280,7 @@ typedef struct
  */
 typedef struct
 {
-   char        name[NAMEDATALEN];      /* Hash key --- must be first */
+   char        name[NAMEDATALEN];  /* Hash key --- must be first */
    int         counter;        /* Largest addition used so far for name */
 } NameHashEntry;
 
@@ -2566,7 +2566,7 @@ pg_get_functiondef(PG_FUNCTION_ARGS)
    if (!isnull)
    {
        simple_quote_literal(&buf, TextDatumGetCString(tmp));
-       appendStringInfoString(&buf, ", ");     /* assume prosrc isn't null */
+       appendStringInfoString(&buf, ", "); /* assume prosrc isn't null */
    }
 
    tmp = SysCacheGetAttr(PROCOID, proctup, Anum_pg_proc_prosrc, &isnull);
@@ -7376,14 +7376,14 @@ isSimpleNode(Node *node, Node *parentNode, int prettyFlags)
                    }
                case T_BoolExpr:    /* lower precedence */
                case T_ArrayRef:    /* other separators */
-               case T_ArrayExpr:       /* other separators */
+               case T_ArrayExpr:   /* other separators */
                case T_RowExpr: /* other separators */
                case T_CoalesceExpr:    /* own parentheses */
-               case T_MinMaxExpr:      /* own parentheses */
+               case T_MinMaxExpr:  /* own parentheses */
                case T_XmlExpr: /* own parentheses */
-               case T_NullIfExpr:      /* other separators */
+               case T_NullIfExpr:  /* other separators */
                case T_Aggref:  /* own parentheses */
-               case T_WindowFunc:      /* own parentheses */
+               case T_WindowFunc:  /* own parentheses */
                case T_CaseExpr:    /* other separators */
                    return true;
                default:
@@ -7426,14 +7426,14 @@ isSimpleNode(Node *node, Node *parentNode, int prettyFlags)
                        return true;    /* own parentheses */
                    }
                case T_ArrayRef:    /* other separators */
-               case T_ArrayExpr:       /* other separators */
+               case T_ArrayExpr:   /* other separators */
                case T_RowExpr: /* other separators */
                case T_CoalesceExpr:    /* own parentheses */
-               case T_MinMaxExpr:      /* own parentheses */
+               case T_MinMaxExpr:  /* own parentheses */
                case T_XmlExpr: /* own parentheses */
-               case T_NullIfExpr:      /* other separators */
+               case T_NullIfExpr:  /* other separators */
                case T_Aggref:  /* own parentheses */
-               case T_WindowFunc:      /* own parentheses */
+               case T_WindowFunc:  /* own parentheses */
                case T_CaseExpr:    /* other separators */
                    return true;
                default:
@@ -9219,7 +9219,7 @@ get_const_expr(Const *constval, deparse_context *context, int showtype)
            else
            {
                appendStringInfo(buf, "'%s'", extval);
-               needlabel = true;       /* we must attach a cast */
+               needlabel = true;   /* we must attach a cast */
            }
            break;
 
@@ -9238,7 +9238,7 @@ get_const_expr(Const *constval, deparse_context *context, int showtype)
            else
            {
                appendStringInfo(buf, "'%s'", extval);
-               needlabel = true;       /* we must attach a cast */
+               needlabel = true;   /* we must attach a cast */
            }
            break;
 
@@ -9432,7 +9432,7 @@ get_sublink_expr(SubLink *sublink, deparse_context *context)
            break;
 
        case ANY_SUBLINK:
-           if (strcmp(opname, "=") == 0)       /* Represent = ANY as IN */
+           if (strcmp(opname, "=") == 0)   /* Represent = ANY as IN */
                appendStringInfoString(buf, " IN ");
            else
                appendStringInfo(buf, " %s ANY ", opname);
index 33788a2b364ea88edfd01ecba3a2c79b2a2b0600..63a25db5d39932cf5d46246027a66b0670e003ee 100644 (file)
@@ -811,7 +811,7 @@ ineq_histogram_selectivity(PlannerInfo *root,
             */
            double      histfrac;
            int         lobound = 0;    /* first possible slot to search */
-           int         hibound = sslot.nvalues;        /* last+1 slot to search */
+           int         hibound = sslot.nvalues;    /* last+1 slot to search */
            bool        have_end = false;
 
            /*
@@ -1805,7 +1805,7 @@ scalararraysel(PlannerInfo *root,
    /* get nominal (after relabeling) element type of rightop */
    nominal_element_type = get_base_element_type(exprType(rightop));
    if (!OidIsValid(nominal_element_type))
-       return (Selectivity) 0.5;       /* probably shouldn't happen */
+       return (Selectivity) 0.5;   /* probably shouldn't happen */
    /* get nominal collation, too, for generating constants */
    nominal_element_collation = exprCollation(rightop);
 
@@ -4510,10 +4510,10 @@ get_join_variables(PlannerInfo *root, List *args, SpecialJoinInfo *sjinfo,
 
    if (vardata1->rel &&
        bms_is_subset(vardata1->rel->relids, sjinfo->syn_righthand))
-       *join_is_reversed = true;       /* var1 is on RHS */
+       *join_is_reversed = true;   /* var1 is on RHS */
    else if (vardata2->rel &&
             bms_is_subset(vardata2->rel->relids, sjinfo->syn_lefthand))
-       *join_is_reversed = true;       /* var2 is on LHS */
+       *join_is_reversed = true;   /* var2 is on LHS */
    else
        *join_is_reversed = false;
 }
@@ -5331,7 +5331,7 @@ get_actual_variable_range(PlannerInfo *root, VariableStatData *vardata,
            ScanKeyEntryInitialize(&scankeys[0],
                                   SK_ISNULL | SK_SEARCHNOTNULL,
                                   1,   /* index col to scan */
-                                  InvalidStrategy,     /* no strategy */
+                                  InvalidStrategy, /* no strategy */
                                   InvalidOid,  /* no strategy subtype */
                                   InvalidOid,  /* no collation */
                                   InvalidOid,  /* no reg proc for this */
@@ -5725,7 +5725,7 @@ pattern_fixed_prefix(Const *patt, Pattern_Type ptype, Oid collation,
            break;
        default:
            elog(ERROR, "unrecognized ptype: %d", (int) ptype);
-           result = Pattern_Prefix_None;       /* keep compiler quiet */
+           result = Pattern_Prefix_None;   /* keep compiler quiet */
            break;
    }
    return result;
@@ -5931,8 +5931,7 @@ regex_selectivity_sub(const char *patt, int pattlen, bool case_insensitive)
                negclass = true;
                pos++;
            }
-           if (patt[pos] == ']')       /* ']' at start of class is not
-                                        * special */
+           if (patt[pos] == ']')   /* ']' at start of class is not special */
                pos++;
            while (pos < pattlen && patt[pos] != ']')
                pos++;
@@ -6430,7 +6429,7 @@ orderby_operands_eval_cost(PlannerInfo *root, IndexPath *path)
        {
            elog(ERROR, "unsupported indexorderby type: %d",
                 (int) nodeTag(clause));
-           other_operand = NULL;       /* keep compiler quiet */
+           other_operand = NULL;   /* keep compiler quiet */
        }
 
        cost_qual_eval_node(&index_qual_cost, other_operand, root);
index 41e1ecd70f2d266a9a782e75bd47fcea5b692c54..53e36afbe8ed70e7f0626e0beb702fbe32bd3268 100644 (file)
@@ -234,8 +234,8 @@ gettoken_query(TSQueryParserState state,
            case WAITOPERAND:
                if (t_iseq(state->buf, '!'))
                {
-                   (state->buf)++;     /* can safely ++, t_iseq guarantee
-                                        * that pg_mblen()==1 */
+                   (state->buf)++; /* can safely ++, t_iseq guarantee that
+                                    * pg_mblen()==1 */
                    *operator = OP_NOT;
                    state->state = WAITOPERAND;
                    return PT_OPR;
@@ -542,7 +542,7 @@ findoprnd_recurse(QueryItem *ptr, uint32 *pos, int nnodes, bool *needcleanup)
 
        if (ptr[*pos].qoperator.oper == OP_NOT)
        {
-           ptr[*pos].qoperator.left = 1;       /* fixed offset */
+           ptr[*pos].qoperator.left = 1;   /* fixed offset */
            (*pos)++;
 
            /* process the only argument */
@@ -551,7 +551,7 @@ findoprnd_recurse(QueryItem *ptr, uint32 *pos, int nnodes, bool *needcleanup)
        else
        {
            QueryOperator *curitem = &ptr[*pos].qoperator;
-           int         tmp = *pos;     /* save current position */
+           int         tmp = *pos; /* save current position */
 
            Assert(curitem->oper == OP_AND ||
                   curitem->oper == OP_OR ||
@@ -1056,7 +1056,7 @@ tsqueryrecv(PG_FUNCTION_ARGS)
             */
            operands[i] = val;
 
-           datalen += val_len + 1;     /* + 1 for the '\0' terminator */
+           datalen += val_len + 1; /* + 1 for the '\0' terminator */
        }
        else if (item->type == QI_OPR)
        {
index a41eb1fa9c42073216704407a72db46ee548bff0..4577bcc0b8b6ae5d14be0f98ea9080b412c3278a 100644 (file)
@@ -908,8 +908,8 @@ calc_rank_cd(const float4 *arrdata, TSVector txt, TSQuery query, int method)
        Wdoc += Cpos / ((double) (1 + nNoise));
 
        CurExtPos = ((double) (ext.q + ext.p)) / 2.0;
-       if (NExtent > 0 && CurExtPos > PrevExtPos       /* prevent division by
-                                                        * zero in a case of
+       if (NExtent > 0 && CurExtPos > PrevExtPos   /* prevent division by
+                                                    * zero in a case of
              * multiple lexize */ )
            SumDist += 1.0 / (CurExtPos - PrevExtPos);
 
index 89aa0f1b32b0bc559ccd7c7aa59f69d5e9164d3d..66c5255f8b4770e080d4579ca72bbde336298959 100644 (file)
@@ -2466,7 +2466,7 @@ tsvector_update_trigger(PG_FUNCTION_ARGS, bool config_column)
    Oid         cfgId;
 
    /* Check call context */
-   if (!CALLED_AS_TRIGGER(fcinfo))     /* internal error */
+   if (!CALLED_AS_TRIGGER(fcinfo)) /* internal error */
        elog(ERROR, "tsvector_update_trigger: not fired by trigger manager");
 
    trigdata = (TriggerData *) fcinfo->context;
index e947785d8189934cc8b287676320b264ad5c4370..41238dd763f10f33faf8cfec1d023882e4aa5262 100644 (file)
@@ -1131,8 +1131,8 @@ bitoverlay(PG_FUNCTION_ARGS)
 {
    VarBit     *t1 = PG_GETARG_VARBIT_P(0);
    VarBit     *t2 = PG_GETARG_VARBIT_P(1);
-   int         sp = PG_GETARG_INT32(2);        /* substring start position */
-   int         sl = PG_GETARG_INT32(3);        /* substring length */
+   int         sp = PG_GETARG_INT32(2);    /* substring start position */
+   int         sl = PG_GETARG_INT32(3);    /* substring length */
 
    PG_RETURN_VARBIT_P(bit_overlay(t1, t2, sp, sl));
 }
@@ -1142,7 +1142,7 @@ bitoverlay_no_len(PG_FUNCTION_ARGS)
 {
    VarBit     *t1 = PG_GETARG_VARBIT_P(0);
    VarBit     *t2 = PG_GETARG_VARBIT_P(1);
-   int         sp = PG_GETARG_INT32(2);        /* substring start position */
+   int         sp = PG_GETARG_INT32(2);    /* substring start position */
    int         sl;
 
    sl = VARBITLEN(t2);         /* defaults to length(t2) */
index cb1fd4d9cef8d65f6f03b8391057323ae0876fcf..be53f7d60d22be9c2ce424c3a3b07302821b95c5 100644 (file)
@@ -268,7 +268,7 @@ byteain(PG_FUNCTION_ARGS)
        bc = (len - 2) / 2 + VARHDRSZ;  /* maximum possible length */
        result = palloc(bc);
        bc = hex_decode(inputText + 2, len - 2, VARDATA(result));
-       SET_VARSIZE(result, bc + VARHDRSZ);     /* actual length */
+       SET_VARSIZE(result, bc + VARHDRSZ); /* actual length */
 
        PG_RETURN_BYTEA_P(result);
    }
@@ -823,8 +823,8 @@ text_substring(Datum str, int32 start, int32 length, bool length_not_specified)
    {
        S1 = Max(S, 1);
 
-       if (length_not_specified)       /* special case - get length to end of
-                                        * string */
+       if (length_not_specified)   /* special case - get length to end of
+                                    * string */
            L1 = -1;
        else
        {
@@ -888,8 +888,8 @@ text_substring(Datum str, int32 start, int32 length, bool length_not_specified)
         */
        slice_start = 0;
 
-       if (length_not_specified)       /* special case - get length to end of
-                                        * string */
+       if (length_not_specified)   /* special case - get length to end of
+                                    * string */
            slice_size = L1 = -1;
        else
        {
@@ -1012,8 +1012,8 @@ textoverlay(PG_FUNCTION_ARGS)
 {
    text       *t1 = PG_GETARG_TEXT_PP(0);
    text       *t2 = PG_GETARG_TEXT_PP(1);
-   int         sp = PG_GETARG_INT32(2);        /* substring start position */
-   int         sl = PG_GETARG_INT32(3);        /* substring length */
+   int         sp = PG_GETARG_INT32(2);    /* substring start position */
+   int         sl = PG_GETARG_INT32(3);    /* substring length */
 
    PG_RETURN_TEXT_P(text_overlay(t1, t2, sp, sl));
 }
@@ -1023,10 +1023,10 @@ textoverlay_no_len(PG_FUNCTION_ARGS)
 {
    text       *t1 = PG_GETARG_TEXT_PP(0);
    text       *t2 = PG_GETARG_TEXT_PP(1);
-   int         sp = PG_GETARG_INT32(2);        /* substring start position */
+   int         sp = PG_GETARG_INT32(2);    /* substring start position */
    int         sl;
 
-   sl = text_length(PointerGetDatum(t2));      /* defaults to length(t2) */
+   sl = text_length(PointerGetDatum(t2));  /* defaults to length(t2) */
    PG_RETURN_TEXT_P(text_overlay(t1, t2, sp, sl));
 }
 
@@ -1520,7 +1520,7 @@ varstr_cmp(char *arg1, int len1, char *arg2, int len2, Oid collid)
 
            return result;
        }
-#endif   /* WIN32 */
+#endif                         /* WIN32 */
 
        if (len1 >= TEXTBUFLEN)
            a1p = (char *) palloc(len1 + 1);
@@ -1573,7 +1573,7 @@ varstr_cmp(char *arg1, int len1, char *arg2, int len2, Oid collid)
 #else                          /* not USE_ICU */
                /* shouldn't happen */
                elog(ERROR, "unsupported collprovider: %c", mylocale->provider);
-#endif   /* not USE_ICU */
+#endif                         /* not USE_ICU */
            }
            else
            {
@@ -2159,7 +2159,7 @@ varstrfastcmp_locale(Datum x, Datum y, SortSupport ssup)
 #else                          /* not USE_ICU */
            /* shouldn't happen */
            elog(ERROR, "unsupported collprovider: %c", sss->locale->provider);
-#endif   /* not USE_ICU */
+#endif                         /* not USE_ICU */
        }
        else
        {
@@ -2899,8 +2899,8 @@ byteaoverlay(PG_FUNCTION_ARGS)
 {
    bytea      *t1 = PG_GETARG_BYTEA_PP(0);
    bytea      *t2 = PG_GETARG_BYTEA_PP(1);
-   int         sp = PG_GETARG_INT32(2);        /* substring start position */
-   int         sl = PG_GETARG_INT32(3);        /* substring length */
+   int         sp = PG_GETARG_INT32(2);    /* substring start position */
+   int         sl = PG_GETARG_INT32(3);    /* substring length */
 
    PG_RETURN_BYTEA_P(bytea_overlay(t1, t2, sp, sl));
 }
@@ -2910,7 +2910,7 @@ byteaoverlay_no_len(PG_FUNCTION_ARGS)
 {
    bytea      *t1 = PG_GETARG_BYTEA_PP(0);
    bytea      *t2 = PG_GETARG_BYTEA_PP(1);
-   int         sp = PG_GETARG_INT32(2);        /* substring start position */
+   int         sp = PG_GETARG_INT32(2);    /* substring start position */
    int         sl;
 
    sl = VARSIZE_ANY_EXHDR(t2); /* defaults to length(t2) */
@@ -3273,7 +3273,7 @@ SplitIdentifierString(char *rawstring, char separator,
            {
                endp = strchr(nextp + 1, '"');
                if (endp == NULL)
-                   return false;       /* mismatched quotes */
+                   return false;   /* mismatched quotes */
                if (endp[1] != '"')
                    break;      /* found end of quoted name */
                /* Collapse adjacent quotes into one quote, and look again */
@@ -3400,7 +3400,7 @@ SplitDirectoriesString(char *rawstring, char separator,
            {
                endp = strchr(nextp + 1, '"');
                if (endp == NULL)
-                   return false;       /* mismatched quotes */
+                   return false;   /* mismatched quotes */
                if (endp[1] != '"')
                    break;      /* found end of quoted name */
                /* Collapse adjacent quotes into one quote, and look again */
@@ -3932,7 +3932,7 @@ replace_text_regexp(text *src_text, void *regexp,
                                    data,
                                    data_len,
                                    search_start,
-                                   NULL,       /* no details */
+                                   NULL,   /* no details */
                                    REGEXP_REPLACE_BACKREF_CNT,
                                    pmatch,
                                    0);
@@ -4251,7 +4251,7 @@ text_to_array_internal(PG_FUNCTION_ARGS)
        /* start_ptr points to the start_posn'th character of inputstring */
        start_ptr = VARDATA_ANY(inputstring);
 
-       for (fldnum = 1;; fldnum++)     /* field number is 1 based */
+       for (fldnum = 1;; fldnum++) /* field number is 1 based */
        {
            CHECK_FOR_INTERRUPTS();
 
@@ -4695,7 +4695,7 @@ string_agg_transfn(PG_FUNCTION_ARGS)
        else if (!PG_ARGISNULL(2))
            appendStringInfoText(state, PG_GETARG_TEXT_PP(2));  /* delimiter */
 
-       appendStringInfoText(state, PG_GETARG_TEXT_PP(1));      /* value */
+       appendStringInfoText(state, PG_GETARG_TEXT_PP(1));  /* value */
    }
 
    /*
index cdcd45419a4bac646cae1ce5d8511225b4184ae7..0ed679eea69237d5e038dfc599adc93adf9a4698 100644 (file)
@@ -65,7 +65,7 @@
 #if LIBXML_VERSION >= 20704
 #define HAVE_XMLSTRUCTUREDERRORCONTEXT 1
 #endif
-#endif   /* USE_LIBXML */
+#endif                         /* USE_LIBXML */
 
 #include "access/htup_details.h"
 #include "catalog/namespace.h"
@@ -133,7 +133,7 @@ static void *xml_palloc(size_t size);
 static void *xml_repalloc(void *ptr, size_t size);
 static void xml_pfree(void *ptr);
 static char *xml_pstrdup(const char *string);
-#endif   /* USE_LIBXMLCONTEXT */
+#endif                         /* USE_LIBXMLCONTEXT */
 
 static xmlChar *xml_text2xmlChar(text *in);
 static int parse_xml_decl(const xmlChar *str, size_t *lenp,
@@ -147,7 +147,7 @@ static int xml_xpathobjtoxmlarray(xmlXPathObjectPtr xpathobj,
                       ArrayBuildState *astate,
                       PgXmlErrorContext *xmlerrcxt);
 static xmlChar *pg_xmlCharStrndup(char *str, size_t len);
-#endif   /* USE_LIBXML */
+#endif                         /* USE_LIBXML */
 
 static void xmldata_root_element_start(StringInfo result, const char *eltname,
                           const char *xmlschema, const char *targetns,
@@ -924,7 +924,7 @@ xml_is_document(xmltype *arg)
 #else                          /* not USE_LIBXML */
    NO_XML_SUPPORT();
    return false;
-#endif   /* not USE_LIBXML */
+#endif                         /* not USE_LIBXML */
 }
 
 
@@ -1405,7 +1405,7 @@ xml_parse(text *data, XmlOptionType xmloption_arg, bool preserve_whitespace,
    volatile xmlParserCtxtPtr ctxt = NULL;
    volatile xmlDocPtr doc = NULL;
 
-   len = VARSIZE_ANY_EXHDR(data);      /* will be useful later */
+   len = VARSIZE_ANY_EXHDR(data);  /* will be useful later */
    string = xml_text2xmlChar(data);
 
    utf8string = pg_do_encoding_conversion(string,
@@ -1555,7 +1555,7 @@ xml_pstrdup(const char *string)
 {
    return MemoryContextStrdup(LibxmlContext, string);
 }
-#endif   /* USE_LIBXMLCONTEXT */
+#endif                         /* USE_LIBXMLCONTEXT */
 
 
 /*
@@ -1887,7 +1887,7 @@ is_valid_xml_namechar(pg_wchar c)
            || xmlIsCombiningQ(c)
            || xmlIsExtenderQ(c));
 }
-#endif   /* USE_LIBXML */
+#endif                         /* USE_LIBXML */
 
 
 /*
@@ -1942,7 +1942,7 @@ map_sql_identifier_to_xml_name(char *ident, bool fully_escaped,
 #else                          /* not USE_LIBXML */
    NO_XML_SUPPORT();
    return NULL;
-#endif   /* not USE_LIBXML */
+#endif                         /* not USE_LIBXML */
 }
 
 
@@ -2201,7 +2201,7 @@ map_sql_value_to_xml_value(Datum value, Oid type, bool xml_escape_strings)
 
                    return result;
                }
-#endif   /* USE_LIBXML */
+#endif                         /* USE_LIBXML */
 
        }
 
@@ -3942,7 +3942,7 @@ xpath_internal(text *xpath_expr_text, xmltype *data, ArrayType *namespaces,
                if (xmlXPathRegisterNs(xpathctx,
                                       (xmlChar *) ns_name,
                                       (xmlChar *) ns_uri) != 0)
-                   ereport(ERROR,      /* is this an internal error??? */
+                   ereport(ERROR,  /* is this an internal error??? */
                            (errmsg("could not register XML namespace with name \"%s\" and URI \"%s\"",
                                    ns_name, ns_uri)));
            }
@@ -4000,7 +4000,7 @@ xpath_internal(text *xpath_expr_text, xmltype *data, ArrayType *namespaces,
 
    pg_xml_done(xmlerrcxt, false);
 }
-#endif   /* USE_LIBXML */
+#endif                         /* USE_LIBXML */
 
 /*
  * Evaluate XPath expression and return array of XML values.
@@ -4115,7 +4115,7 @@ xml_is_well_formed(PG_FUNCTION_ARGS)
 #else
    NO_XML_SUPPORT();
    return 0;
-#endif   /* not USE_LIBXML */
+#endif                         /* not USE_LIBXML */
 }
 
 Datum
@@ -4128,7 +4128,7 @@ xml_is_well_formed_document(PG_FUNCTION_ARGS)
 #else
    NO_XML_SUPPORT();
    return 0;
-#endif   /* not USE_LIBXML */
+#endif                         /* not USE_LIBXML */
 }
 
 Datum
@@ -4141,7 +4141,7 @@ xml_is_well_formed_content(PG_FUNCTION_ARGS)
 #else
    NO_XML_SUPPORT();
    return 0;
-#endif   /* not USE_LIBXML */
+#endif                         /* not USE_LIBXML */
 }
 
 /*
@@ -4221,7 +4221,7 @@ XmlTableInitOpaque(TableFuncScanState *state, int natts)
    state->opaque = xtCxt;
 #else
    NO_XML_SUPPORT();
-#endif   /* not USE_LIBXML */
+#endif                         /* not USE_LIBXML */
 }
 
 /*
@@ -4281,7 +4281,7 @@ XmlTableSetDocument(TableFuncScanState *state, Datum value)
    xtCxt->xpathcxt = xpathcxt;
 #else
    NO_XML_SUPPORT();
-#endif   /* not USE_LIBXML */
+#endif                         /* not USE_LIBXML */
 }
 
 /*
@@ -4307,7 +4307,7 @@ XmlTableSetNamespace(TableFuncScanState *state, char *name, char *uri)
                    "could not set XML namespace");
 #else
    NO_XML_SUPPORT();
-#endif   /* not USE_LIBXML */
+#endif                         /* not USE_LIBXML */
 }
 
 /*
@@ -4336,7 +4336,7 @@ XmlTableSetRowFilter(TableFuncScanState *state, char *path)
                    "invalid XPath expression");
 #else
    NO_XML_SUPPORT();
-#endif   /* not USE_LIBXML */
+#endif                         /* not USE_LIBXML */
 }
 
 /*
@@ -4367,7 +4367,7 @@ XmlTableSetColumnFilter(TableFuncScanState *state, char *path, int colnum)
                    "invalid XPath expression");
 #else
    NO_XML_SUPPORT();
-#endif   /* not USE_LIBXML */
+#endif                         /* not USE_LIBXML */
 }
 
 /*
@@ -4415,7 +4415,7 @@ XmlTableFetchRow(TableFuncScanState *state)
 #else
    NO_XML_SUPPORT();
    return false;
-#endif   /* not USE_LIBXML */
+#endif                         /* not USE_LIBXML */
 }
 
 /*
@@ -4585,7 +4585,7 @@ XmlTableGetValue(TableFuncScanState *state, int colnum,
 #else
    NO_XML_SUPPORT();
    return 0;
-#endif   /* not USE_LIBXML */
+#endif                         /* not USE_LIBXML */
 }
 
 /*
@@ -4631,5 +4631,5 @@ XmlTableDestroyOpaque(TableFuncScanState *state)
 
 #else
    NO_XML_SUPPORT();
-#endif   /* not USE_LIBXML */
+#endif                         /* not USE_LIBXML */
 }
index 4b30e6bc624c01604f2538938d3351fd969ab1ce..da8b42ddb8d36c445cedb8dbb5e4bcd903542797 100644 (file)
@@ -111,8 +111,7 @@ get_attribute_options(Oid attrelid, int attnum)
    /* Find existing cache entry, if any. */
    if (!AttoptCacheHash)
        InitializeAttoptCache();
-   memset(&key, 0, sizeof(key));       /* make sure any padding bits are
-                                        * unset */
+   memset(&key, 0, sizeof(key));   /* make sure any padding bits are unset */
    key.attrelid = attrelid;
    key.attnum = attnum;
    attopt =
index 74bfd56169a4eb563dd8bb40e71dc13c1718b42d..e7e8e3b54c5531fca621f7c57446f2cd3c65fa3c 100644 (file)
@@ -339,7 +339,7 @@ CatCachePrintStats(int code, Datum arg)
         cc_lsearches,
         cc_lhits);
 }
-#endif   /* CATCACHE_STATS */
+#endif                         /* CATCACHE_STATS */
 
 
 /*
index 055705136a9bd90210d1409d68f5e4a3f0a8effb..5652c3abe077169239bfee39fbf4e7bc033e36e6 100644 (file)
  */
 typedef struct InvalidationChunk
 {
-   struct InvalidationChunk *next;     /* list link */
+   struct InvalidationChunk *next; /* list link */
    int         nitems;         /* # items currently stored in chunk */
    int         maxitems;       /* size of allocated array in this chunk */
    SharedInvalidationMessage msgs[FLEXIBLE_ARRAY_MEMBER];
index 4def73ddfbe7ee0c7f407361896cb2a53c7bde48..82763f8013dd160307a01c21877285e648f184d2 100644 (file)
@@ -2770,7 +2770,7 @@ get_typmodout(Oid typid)
    else
        return InvalidOid;
 }
-#endif   /* NOT_USED */
+#endif                         /* NOT_USED */
 
 /*
  * get_typcollation
index 4b5f8107ef096fc5bb0c7bdc82426df57aaa9306..dfe5592a25a60d173a947a8469a21be805dea45e 100644 (file)
@@ -157,7 +157,7 @@ CreateCachedPlan(RawStmt *raw_parse_tree,
    MemoryContext source_context;
    MemoryContext oldcxt;
 
-   Assert(query_string != NULL);       /* required as of 8.4 */
+   Assert(query_string != NULL);   /* required as of 8.4 */
 
    /*
     * Make a dedicated memory context for the CachedPlanSource and its
@@ -238,7 +238,7 @@ CreateOneShotCachedPlan(RawStmt *raw_parse_tree,
 {
    CachedPlanSource *plansource;
 
-   Assert(query_string != NULL);       /* required as of 8.4 */
+   Assert(query_string != NULL);   /* required as of 8.4 */
 
    /*
     * Create and fill the CachedPlanSource struct within the caller's memory
index c2e8361f2f4413a20345d7a3584084fb1a8e65a9..93bcac1e776b7539136cddf4c14f42c311d260fa 100644 (file)
@@ -1371,7 +1371,7 @@ RelationBuildDesc(Oid targetRelId, bool insertIt)
    /*
     * initialize the relation lock manager information
     */
-   RelationInitLockInfo(relation);     /* see lmgr.c */
+   RelationInitLockInfo(relation); /* see lmgr.c */
 
    /*
     * initialize physical addressing information for the relation
@@ -2011,7 +2011,7 @@ formrdesc(const char *relationName, Oid relationReltype,
    /*
     * initialize the relation lock manager information
     */
-   RelationInitLockInfo(relation);     /* see lmgr.c */
+   RelationInitLockInfo(relation); /* see lmgr.c */
 
    /*
     * initialize physical addressing information for the relation
@@ -2423,7 +2423,7 @@ RelationClearRelation(Relation relation, bool rebuild)
 
        if (relation->rd_rel->relkind == RELKIND_INDEX)
        {
-           relation->rd_isvalid = false;       /* needs to be revalidated */
+           relation->rd_isvalid = false;   /* needs to be revalidated */
            if (relation->rd_refcnt > 1 && IsTransactionState())
                RelationReloadIndexInfo(relation);
        }
@@ -3657,7 +3657,7 @@ RelationCacheInitializePhase3(void)
        formrdesc("pg_type", TypeRelation_Rowtype_Id, false,
                  true, Natts_pg_type, Desc_pg_type);
 
-#define NUM_CRITICAL_LOCAL_RELS 4      /* fix if you change list above */
+#define NUM_CRITICAL_LOCAL_RELS 4  /* fix if you change list above */
    }
 
    MemoryContextSwitchTo(oldcxt);
@@ -3960,7 +3960,7 @@ BuildHardcodedDescriptor(int natts, const FormData_pg_attribute *attrs,
    oldcxt = MemoryContextSwitchTo(CacheMemoryContext);
 
    result = CreateTemplateTupleDesc(natts, hasoids);
-   result->tdtypeid = RECORDOID;       /* not right, but we don't care */
+   result->tdtypeid = RECORDOID;   /* not right, but we don't care */
    result->tdtypmod = -1;
 
    for (i = 0; i < natts; i++)
@@ -4239,7 +4239,7 @@ RelationGetFKeyList(Relation relation)
            elog(ERROR, "null conkey for rel %s",
                 RelationGetRelationName(relation));
 
-       arr = DatumGetArrayTypeP(adatum);       /* ensure not toasted */
+       arr = DatumGetArrayTypeP(adatum);   /* ensure not toasted */
        nelem = ARR_DIMS(arr)[0];
        if (ARR_NDIM(arr) != 1 ||
            nelem < 1 ||
@@ -4258,7 +4258,7 @@ RelationGetFKeyList(Relation relation)
            elog(ERROR, "null confkey for rel %s",
                 RelationGetRelationName(relation));
 
-       arr = DatumGetArrayTypeP(adatum);       /* ensure not toasted */
+       arr = DatumGetArrayTypeP(adatum);   /* ensure not toasted */
        nelem = ARR_DIMS(arr)[0];
        if (ARR_NDIM(arr) != 1 ||
            nelem != info->nkeys ||
@@ -4275,7 +4275,7 @@ RelationGetFKeyList(Relation relation)
            elog(ERROR, "null conpfeqop for rel %s",
                 RelationGetRelationName(relation));
 
-       arr = DatumGetArrayTypeP(adatum);       /* ensure not toasted */
+       arr = DatumGetArrayTypeP(adatum);   /* ensure not toasted */
        nelem = ARR_DIMS(arr)[0];
        if (ARR_NDIM(arr) != 1 ||
            nelem != info->nkeys ||
@@ -5448,7 +5448,7 @@ load_relcache_init_file(bool shared)
        rel->rd_att->tdrefcount = 1;    /* mark as refcounted */
 
        rel->rd_att->tdtypeid = relform->reltype;
-       rel->rd_att->tdtypmod = -1;     /* unnecessary, but... */
+       rel->rd_att->tdtypmod = -1; /* unnecessary, but... */
 
        /* next read all the attribute tuple form data entries */
        has_not_null = false;
@@ -5473,7 +5473,7 @@ load_relcache_init_file(bool shared)
            if (fread(rel->rd_options, 1, len, fp) != len)
                goto read_failed;
            if (len != VARSIZE(rel->rd_options))
-               goto read_failed;       /* sanity check */
+               goto read_failed;   /* sanity check */
        }
        else
        {
index 612f0f3a0d1e83d7d4956ef2b1f5a947c13f306a..3e811e1c9b6a80fee859818de6c697b247f3bc73 100644 (file)
@@ -68,9 +68,9 @@ RelfilenodeMapInvalidateCallback(Datum arg, Oid relid)
         * all entries, otherwise just remove the specific relation's entry.
         * Always remove negative cache entries.
         */
-       if (relid == InvalidOid ||      /* complete reset */
-           entry->relid == InvalidOid ||       /* negative cache entry */
-           entry->relid == relid)      /* individual flushed relation */
+       if (relid == InvalidOid ||  /* complete reset */
+           entry->relid == InvalidOid ||   /* negative cache entry */
+           entry->relid == relid)  /* individual flushed relation */
        {
            if (hash_search(RelfilenodeMapHash,
                            (void *) &entry->key,
index 047c5b40e8480648e654f8b521664fa82b1f95da..6836c601e0e5cd5864fc48defd5a70c5fe62c839 100644 (file)
@@ -72,9 +72,9 @@
  */
 #define RELMAPPER_FILENAME     "pg_filenode.map"
 
-#define RELMAPPER_FILEMAGIC        0x592717        /* version ID value */
+#define RELMAPPER_FILEMAGIC        0x592717    /* version ID value */
 
-#define MAX_MAPPINGS           62      /* 62 * 8 + 16 = 512 */
+#define MAX_MAPPINGS           62  /* 62 * 8 + 16 = 512 */
 
 typedef struct RelMapping
 {
index e66bb03ea57ffcb776de3b09c3c730dcc6b85010..607fe9db79b47510710cc9430d47d56567067a31 100644 (file)
@@ -419,7 +419,7 @@ static const struct cachedesc cacheinfo[] = {
        },
        8
    },
-   {ForeignDataWrapperRelationId,      /* FOREIGNDATAWRAPPERNAME */
+   {ForeignDataWrapperRelationId,  /* FOREIGNDATAWRAPPERNAME */
        ForeignDataWrapperNameIndexId,
        1,
        {
@@ -430,7 +430,7 @@ static const struct cachedesc cacheinfo[] = {
        },
        2
    },
-   {ForeignDataWrapperRelationId,      /* FOREIGNDATAWRAPPEROID */
+   {ForeignDataWrapperRelationId,  /* FOREIGNDATAWRAPPEROID */
        ForeignDataWrapperOidIndexId,
        1,
        {
@@ -683,7 +683,7 @@ static const struct cachedesc cacheinfo[] = {
        },
        128
    },
-   {ReplicationOriginRelationId,       /* REPLORIGIDENT */
+   {ReplicationOriginRelationId,   /* REPLORIGIDENT */
        ReplicationOriginIdentIndex,
        1,
        {
@@ -694,7 +694,7 @@ static const struct cachedesc cacheinfo[] = {
        },
        16
    },
-   {ReplicationOriginRelationId,       /* REPLORIGNAME */
+   {ReplicationOriginRelationId,   /* REPLORIGNAME */
        ReplicationOriginNameIndex,
        1,
        {
index 6ba199b40dfe8726d6fdb273d29add0d8f047399..7ec31eb3e32683f5e3fb87e3b41527257cae93df 100644 (file)
@@ -152,7 +152,7 @@ static HTAB *RecordCacheHash = NULL;
 
 static TupleDesc *RecordCacheArray = NULL;
 static int32 RecordCacheArrayLen = 0;  /* allocated length of array */
-static int32 NextRecordTypmod = 0;     /* number of entries used */
+static int32 NextRecordTypmod = 0; /* number of entries used */
 
 static void load_typcache_tupdesc(TypeCacheEntry *typentry);
 static void load_rangetype_info(TypeCacheEntry *typentry);
@@ -572,7 +572,7 @@ load_typcache_tupdesc(TypeCacheEntry *typentry)
 {
    Relation    rel;
 
-   if (!OidIsValid(typentry->typrelid))        /* should not happen */
+   if (!OidIsValid(typentry->typrelid))    /* should not happen */
        elog(ERROR, "invalid typrelid for composite type %u",
             typentry->type_id);
    rel = relation_open(typentry->typrelid, AccessShareLock);
index cad75c80d8f73a60f7c992c0c564c80bd9c6af6a..234c8e3aa9642261fa847068192a5bade88dcc0e 100644 (file)
@@ -102,7 +102,7 @@ emit_log_hook_type emit_log_hook = NULL;
 
 /* GUC parameters */
 int            Log_error_verbosity = PGERROR_VERBOSE;
-char      *Log_line_prefix = NULL;     /* format for extra log line info */
+char      *Log_line_prefix = NULL; /* format for extra log line info */
 int            Log_destination = LOG_DESTINATION_STDERR;
 char      *Log_destination_string = NULL;
 bool       syslog_sequence_numbers = true;
@@ -356,7 +356,7 @@ errstart(int elevel, const char *filename, int lineno,
         * because it suggests an infinite loop of errors during error
         * recovery.
         */
-       errordata_stack_depth = -1;     /* make room on stack */
+       errordata_stack_depth = -1; /* make room on stack */
        ereport(PANIC, (errmsg_internal("ERRORDATA_STACK_SIZE exceeded")));
    }
 
@@ -1317,7 +1317,7 @@ elog_start(const char *filename, int lineno, const char *funcname)
         * else failure to convert it to client encoding could cause further
         * recursion.
         */
-       errordata_stack_depth = -1;     /* make room on stack */
+       errordata_stack_depth = -1; /* make room on stack */
        ereport(PANIC, (errmsg_internal("ERRORDATA_STACK_SIZE exceeded")));
    }
 
@@ -1684,7 +1684,7 @@ ReThrowError(ErrorData *edata)
         * because it suggests an infinite loop of errors during error
         * recovery.
         */
-       errordata_stack_depth = -1;     /* make room on stack */
+       errordata_stack_depth = -1; /* make room on stack */
        ereport(PANIC, (errmsg_internal("ERRORDATA_STACK_SIZE exceeded")));
    }
 
@@ -1810,7 +1810,7 @@ GetErrorContextStack(void)
         * because it suggests an infinite loop of errors during error
         * recovery.
         */
-       errordata_stack_depth = -1;     /* make room on stack */
+       errordata_stack_depth = -1; /* make room on stack */
        ereport(PANIC, (errmsg_internal("ERRORDATA_STACK_SIZE exceeded")));
    }
 
@@ -2047,7 +2047,7 @@ write_syslog(int level, const char *line)
            syslog(level, "%s", line);
    }
 }
-#endif   /* HAVE_SYSLOG */
+#endif                         /* HAVE_SYSLOG */
 
 #ifdef WIN32
 /*
@@ -2151,7 +2151,7 @@ write_eventlog(int level, const char *line, int len)
                 &line,
                 NULL);
 }
-#endif   /* WIN32 */
+#endif                         /* WIN32 */
 
 static void
 write_console(const char *line, int len)
@@ -2997,7 +2997,7 @@ send_message_to_server_log(ErrorData *edata)
 
        write_syslog(syslog_level, buf.data);
    }
-#endif   /* HAVE_SYSLOG */
+#endif                         /* HAVE_SYSLOG */
 
 #ifdef WIN32
    /* Write to eventlog, if enabled */
@@ -3005,7 +3005,7 @@ send_message_to_server_log(ErrorData *edata)
    {
        write_eventlog(edata->elevel, buf.data, buf.len);
    }
-#endif   /* WIN32 */
+#endif                         /* WIN32 */
 
    /* Write to stderr, if enabled */
    if ((Log_destination & LOG_DESTINATION_STDERR) || whereToSendOutput == DestDebug)
@@ -3273,7 +3273,7 @@ send_message_to_frontend(ErrorData *edata)
            err_sendstring(&msgbuf, edata->funcname);
        }
 
-       pq_sendbyte(&msgbuf, '\0');     /* terminator */
+       pq_sendbyte(&msgbuf, '\0'); /* terminator */
    }
    else
    {
index bfd1b11850017ff056a511bbe46b3a1f0f04e3b9..0783145a16e74cb48b3dcbec559703a3907bbcc5 100644 (file)
@@ -48,7 +48,7 @@ typedef struct df_files
    ino_t       inode;          /* Inode number of file */
 #endif
    void       *handle;         /* a handle for pg_dl* functions */
-   char        filename[FLEXIBLE_ARRAY_MEMBER];        /* Full pathname of file */
+   char        filename[FLEXIBLE_ARRAY_MEMBER];    /* Full pathname of file */
 } DynamicFileList;
 
 static DynamicFileList *file_list = NULL;
@@ -448,7 +448,7 @@ internal_unload_library(const char *libname)
        else
            prv = file_scanner;
    }
-#endif   /* NOT_USED */
+#endif                         /* NOT_USED */
 }
 
 static bool
index 0382c158c54ac1db6a029d54915aef8ae7bb8557..fe268e7d44dd4f68ac01cb560aaa89e0cd5407ac 100644 (file)
@@ -46,7 +46,7 @@ typedef struct
    TransactionId fn_xmin;      /* for checking up-to-dateness */
    ItemPointerData fn_tid;
    PGFunction  user_fn;        /* the function's address */
-   const Pg_finfo_record *inforec;     /* address of its info record */
+   const Pg_finfo_record *inforec; /* address of its info record */
 } CFuncHashTabEntry;
 
 static HTAB *CFuncHash = NULL;
@@ -172,7 +172,7 @@ fmgr_info_cxt_security(Oid functionId, FmgrInfo *finfo, MemoryContext mcxt,
        finfo->fn_nargs = fbp->nargs;
        finfo->fn_strict = fbp->strict;
        finfo->fn_retset = fbp->retset;
-       finfo->fn_stats = TRACK_FUNC_ALL;       /* ie, never track */
+       finfo->fn_stats = TRACK_FUNC_ALL;   /* ie, never track */
        finfo->fn_addr = fbp->func;
        finfo->fn_oid = functionId;
        return;
@@ -208,7 +208,7 @@ fmgr_info_cxt_security(Oid functionId, FmgrInfo *finfo, MemoryContext mcxt,
         FmgrHookIsNeeded(functionId)))
    {
        finfo->fn_addr = fmgr_security_definer;
-       finfo->fn_stats = TRACK_FUNC_ALL;       /* ie, never track */
+       finfo->fn_stats = TRACK_FUNC_ALL;   /* ie, never track */
        finfo->fn_oid = functionId;
        ReleaseSysCache(procedureTuple);
        return;
@@ -1795,7 +1795,7 @@ Int64GetDatum(int64 X)
    *retval = X;
    return PointerGetDatum(retval);
 }
-#endif   /* USE_FLOAT8_BYVAL */
+#endif                         /* USE_FLOAT8_BYVAL */
 
 #ifndef USE_FLOAT4_BYVAL
 
index af08f102fe5d203aeab8e65a0b1c6012a5341ac7..6324220426bc583b60d8dc560dde54acab48afa3 100644 (file)
@@ -814,7 +814,7 @@ get_func_arg_info(HeapTuple procTup,
         * deconstruct_array() since the array data is just going to look like
         * a C array of values.
         */
-       arr = DatumGetArrayTypeP(proallargtypes);       /* ensure not toasted */
+       arr = DatumGetArrayTypeP(proallargtypes);   /* ensure not toasted */
        numargs = ARR_DIMS(arr)[0];
        if (ARR_NDIM(arr) != 1 ||
            numargs < 0 ||
@@ -953,7 +953,7 @@ get_func_input_arg_names(Datum proargnames, Datum proargmodes,
     * For proargmodes, we don't need to use deconstruct_array() since the
     * array data is just going to look like a C array of values.
     */
-   arr = DatumGetArrayTypeP(proargnames);      /* ensure not toasted */
+   arr = DatumGetArrayTypeP(proargnames);  /* ensure not toasted */
    if (ARR_NDIM(arr) != 1 ||
        ARR_HASNULL(arr) ||
        ARR_ELEMTYPE(arr) != TEXTOID)
@@ -1200,7 +1200,7 @@ build_function_result_tupdesc_d(Datum proallargtypes,
        ARR_ELEMTYPE(arr) != OIDOID)
        elog(ERROR, "proallargtypes is not a 1-D Oid array");
    argtypes = (Oid *) ARR_DATA_PTR(arr);
-   arr = DatumGetArrayTypeP(proargmodes);      /* ensure not toasted */
+   arr = DatumGetArrayTypeP(proargmodes);  /* ensure not toasted */
    if (ARR_NDIM(arr) != 1 ||
        ARR_DIMS(arr)[0] != numargs ||
        ARR_HASNULL(arr) ||
index 578b1daccf20d083ccee4ea1949d41010af8b76e..111d63df2b60e921517da778adac7345b5c12ac2 100644 (file)
@@ -352,7 +352,7 @@ hash_create(const char *tabname, long nelem, HASHCTL *info, int flags)
            hashp->hash = tag_hash;
    }
    else
-       hashp->hash = string_hash;      /* default hash function */
+       hashp->hash = string_hash;  /* default hash function */
 
    /*
     * If you don't specify a match function, it defaults to string_compare if
@@ -1417,7 +1417,7 @@ hash_seq_search(HASH_SEQ_STATUS *status)
 
    /* Begin scan of curBucket... */
    status->curEntry = curElem->link;
-   if (status->curEntry == NULL)       /* end of this bucket */
+   if (status->curEntry == NULL)   /* end of this bucket */
        ++curBucket;
    status->curBucket = curBucket;
    return (void *) ELEMENTKEY(curElem);
@@ -1740,7 +1740,7 @@ next_pow2_int(long num)
 #define MAX_SEQ_SCANS 100
 
 static HTAB *seq_scan_tables[MAX_SEQ_SCANS];   /* tables being scanned */
-static int seq_scan_level[MAX_SEQ_SCANS];      /* subtransaction nest level */
+static int seq_scan_level[MAX_SEQ_SCANS];  /* subtransaction nest level */
 static int num_seq_scans = 0;
 
 
index 8000b79e5aa4ae9a30106b0e1395be899d3173ea..7c09498dc047ebc34403a3edc85d147ef293d82e 100644 (file)
@@ -62,10 +62,10 @@ char       *DataDir = NULL;
 char       OutputFileName[MAXPGPATH];  /* debugging output file */
 
 char       my_exec_path[MAXPGPATH];    /* full path to my executable */
-char       pkglib_path[MAXPGPATH];     /* full path to lib directory */
+char       pkglib_path[MAXPGPATH]; /* full path to lib directory */
 
 #ifdef EXEC_BACKEND
-char       postgres_exec_path[MAXPGPATH];      /* full path to backend */
+char       postgres_exec_path[MAXPGPATH];  /* full path to backend */
 
 /* note: currently this is not valid in backend processes */
 #endif
@@ -126,7 +126,7 @@ int         max_worker_processes = 8;
 int            max_parallel_workers = 8;
 int            MaxBackends = 0;
 
-int            VacuumCostPageHit = 1;      /* GUC parameters for vacuum */
+int            VacuumCostPageHit = 1;  /* GUC parameters for vacuum */
 int            VacuumCostPageMiss = 10;
 int            VacuumCostPageDirty = 20;
 int            VacuumCostLimit = 200;
@@ -136,5 +136,5 @@ int         VacuumPageHit = 0;
 int            VacuumPageMiss = 0;
 int            VacuumPageDirty = 0;
 
-int            VacuumCostBalance = 0;      /* working state for vacuum */
+int            VacuumCostBalance = 0;  /* working state for vacuum */
 bool       VacuumCostActive = false;
index 64b3785d7bb1419c2b97b64d894b21766814948d..1c75e6357ec2607f1aaf030b8951d84322b3e425 100644 (file)
@@ -1137,8 +1137,8 @@ TouchSocketLockFiles(void)
            read(fd, buffer, sizeof(buffer));
            close(fd);
        }
-#endif   /* HAVE_UTIMES */
-#endif   /* HAVE_UTIME */
+#endif                         /* HAVE_UTIMES */
+#endif                         /* HAVE_UTIME */
    }
 }
 
index b8b4a06350c50858c66a41f6d70b46e74303c0a4..56b4a5b8c3e576547045bc3a82b5046fe72ae3e0 100644 (file)
@@ -275,7 +275,7 @@ PerformAuthentication(Port *port)
 
    set_ps_display("startup", false);
 
-   ClientAuthInProgress = false;       /* client_min_messages is active now */
+   ClientAuthInProgress = false;   /* client_min_messages is active now */
 }
 
 
index c55bcc978cf71721d81d5afa8fda004e1c2f013b..83c2712eba70f544d77f914ace97ed57d1e03bca 100644 (file)
@@ -261,7 +261,7 @@ shift_jis_20042euc_jis_2004(const unsigned char *sjis, unsigned char *p, int len
            /*
             * JIS X 0213
             */
-           if (c1 >= 0x81 && c1 <= 0x9f)       /* plane 1 1ku-62ku */
+           if (c1 >= 0x81 && c1 <= 0x9f)   /* plane 1 1ku-62ku */
            {
                ku = (c1 << 1) - 0x100;
                ten = get_ten(c2, &kubun);
index 09002a77d8aae5c3515155b7741daffdf624eca9..1d9b10f8a7a9ab3db27514b3761c143bdcbb9e7e 100644 (file)
@@ -22,7 +22,7 @@ typedef struct
 } codes_t;
 
 /* map Big5 Level 1 to CNS 11643-1992 Plane 1 */
-static const codes_t big5Level1ToCnsPlane1[25] = {     /* range */
+static const codes_t big5Level1ToCnsPlane1[25] = { /* range */
    {0xA140, 0x2121},
    {0xA1F6, 0x2258},
    {0xA1F7, 0x2257},
@@ -51,7 +51,7 @@ static const codes_t big5Level1ToCnsPlane1[25] = {        /* range */
 };
 
 /* map CNS 11643-1992 Plane 1 to Big5 Level 1 */
-static const codes_t cnsPlane1ToBig5Level1[26] = {     /* range */
+static const codes_t cnsPlane1ToBig5Level1[26] = { /* range */
    {0x2121, 0xA140},
    {0x2257, 0xA1F7},
    {0x2258, 0xA1F6},
@@ -81,7 +81,7 @@ static const codes_t cnsPlane1ToBig5Level1[26] = {        /* range */
 };
 
 /* map Big5 Level 2 to CNS 11643-1992 Plane 2 */
-static const codes_t big5Level2ToCnsPlane2[48] = {     /* range */
+static const codes_t big5Level2ToCnsPlane2[48] = { /* range */
    {0xC940, 0x2121},
    {0xc94a, 0x0000},
    {0xC94B, 0x212B},
@@ -133,7 +133,7 @@ static const codes_t big5Level2ToCnsPlane2[48] = {      /* range */
 };
 
 /* map CNS 11643-1992 Plane 2 to Big5 Level 2 */
-static const codes_t cnsPlane2ToBig5Level2[49] = {     /* range */
+static const codes_t cnsPlane2ToBig5Level2[49] = { /* range */
    {0x2121, 0xC940},
    {0x212B, 0xC94B},
    {0x214C, 0xC9BE},
index ac0bc915edecd76288d95a087b92156db279b06d..4e47cf66c50fc9905b3e8723b0c20e138f475712 100644 (file)
@@ -60,37 +60,37 @@ PG_FUNCTION_INFO_V1(utf8_to_iso8859);
 typedef struct
 {
    pg_enc      encoding;
-   const pg_mb_radix_tree *map1;       /* to UTF8 map name */
-   const pg_mb_radix_tree *map2;       /* from UTF8 map name */
+   const pg_mb_radix_tree *map1;   /* to UTF8 map name */
+   const pg_mb_radix_tree *map2;   /* from UTF8 map name */
 } pg_conv_map;
 
 static const pg_conv_map maps[] = {
    {PG_LATIN2, &iso8859_2_to_unicode_tree,
-   &iso8859_2_from_unicode_tree},      /* ISO-8859-2 Latin 2 */
+   &iso8859_2_from_unicode_tree},  /* ISO-8859-2 Latin 2 */
    {PG_LATIN3, &iso8859_3_to_unicode_tree,
-   &iso8859_3_from_unicode_tree},      /* ISO-8859-3 Latin 3 */
+   &iso8859_3_from_unicode_tree},  /* ISO-8859-3 Latin 3 */
    {PG_LATIN4, &iso8859_4_to_unicode_tree,
-   &iso8859_4_from_unicode_tree},      /* ISO-8859-4 Latin 4 */
+   &iso8859_4_from_unicode_tree},  /* ISO-8859-4 Latin 4 */
    {PG_LATIN5, &iso8859_9_to_unicode_tree,
-   &iso8859_9_from_unicode_tree},      /* ISO-8859-9 Latin 5 */
+   &iso8859_9_from_unicode_tree},  /* ISO-8859-9 Latin 5 */
    {PG_LATIN6, &iso8859_10_to_unicode_tree,
-   &iso8859_10_from_unicode_tree},     /* ISO-8859-10 Latin 6 */
+   &iso8859_10_from_unicode_tree}, /* ISO-8859-10 Latin 6 */
    {PG_LATIN7, &iso8859_13_to_unicode_tree,
-   &iso8859_13_from_unicode_tree},     /* ISO-8859-13 Latin 7 */
+   &iso8859_13_from_unicode_tree}, /* ISO-8859-13 Latin 7 */
    {PG_LATIN8, &iso8859_14_to_unicode_tree,
-   &iso8859_14_from_unicode_tree},     /* ISO-8859-14 Latin 8 */
+   &iso8859_14_from_unicode_tree}, /* ISO-8859-14 Latin 8 */
    {PG_LATIN9, &iso8859_15_to_unicode_tree,
-   &iso8859_15_from_unicode_tree},     /* ISO-8859-15 Latin 9 */
+   &iso8859_15_from_unicode_tree}, /* ISO-8859-15 Latin 9 */
    {PG_LATIN10, &iso8859_16_to_unicode_tree,
-   &iso8859_16_from_unicode_tree},     /* ISO-8859-16 Latin 10 */
+   &iso8859_16_from_unicode_tree}, /* ISO-8859-16 Latin 10 */
    {PG_ISO_8859_5, &iso8859_5_to_unicode_tree,
-   &iso8859_5_from_unicode_tree},      /* ISO-8859-5 */
+   &iso8859_5_from_unicode_tree},  /* ISO-8859-5 */
    {PG_ISO_8859_6, &iso8859_6_to_unicode_tree,
-   &iso8859_6_from_unicode_tree},      /* ISO-8859-6 */
+   &iso8859_6_from_unicode_tree},  /* ISO-8859-6 */
    {PG_ISO_8859_7, &iso8859_7_to_unicode_tree,
-   &iso8859_7_from_unicode_tree},      /* ISO-8859-7 */
+   &iso8859_7_from_unicode_tree},  /* ISO-8859-7 */
    {PG_ISO_8859_8, &iso8859_8_to_unicode_tree,
-   &iso8859_8_from_unicode_tree},      /* ISO-8859-8 */
+   &iso8859_8_from_unicode_tree},  /* ISO-8859-8 */
 };
 
 Datum
index 971de32f6c2e3245abf892632021278fde6f907e..cec458c9f41ddd1791901ee6eceee631a13cebdb 100644 (file)
@@ -56,8 +56,8 @@ PG_FUNCTION_INFO_V1(utf8_to_win);
 typedef struct
 {
    pg_enc      encoding;
-   const pg_mb_radix_tree *map1;       /* to UTF8 map name */
-   const pg_mb_radix_tree *map2;       /* from UTF8 map name */
+   const pg_mb_radix_tree *map1;   /* to UTF8 map name */
+   const pg_mb_radix_tree *map2;   /* from UTF8 map name */
 } pg_conv_map;
 
 static const pg_conv_map maps[] = {
index f97505e55af41a8e77ef08d9c4a3d7109d285615..12b61cd3db9d9460d7d6c415d62cd4d728cf61fd 100644 (file)
@@ -476,7 +476,7 @@ get_encoding_name_for_icu(int encoding)
    return icu_encoding_name;
 }
 
-#endif   /* not FRONTEND */
+#endif                         /* not FRONTEND */
 
 
 /* ----------
index 9334039f78cdd95c8db32d6b44061bf7be98adc2..b71b5e016a31de7b871b11ddcb82e4a9d1f47cd9 100644 (file)
@@ -85,14 +85,14 @@ pg_euc2wchar_with_len(const unsigned char *from, pg_wchar *to, int len)
            *to = (SS2 << 8) | *from++;
            len -= 2;
        }
-       else if (*from == SS3 && len >= 3)      /* JIS X 0212 KANJI */
+       else if (*from == SS3 && len >= 3)  /* JIS X 0212 KANJI */
        {
            from++;
            *to = (SS3 << 16) | (*from++ << 8);
            *to |= *from++;
            len -= 3;
        }
-       else if (IS_HIGHBIT_SET(*from) && len >= 2)     /* JIS X 0208 KANJI */
+       else if (IS_HIGHBIT_SET(*from) && len >= 2) /* JIS X 0208 KANJI */
        {
            *to = *from++ << 8;
            *to |= *from++;
@@ -212,14 +212,14 @@ pg_euccn2wchar_with_len(const unsigned char *from, pg_wchar *to, int len)
            *to |= *from++;
            len -= 3;
        }
-       else if (*from == SS3 && len >= 3)      /* code set 3 (unused ?) */
+       else if (*from == SS3 && len >= 3)  /* code set 3 (unused ?) */
        {
            from++;
            *to = (SS3 << 16) | (*from++ << 8);
            *to |= *from++;
            len -= 3;
        }
-       else if (IS_HIGHBIT_SET(*from) && len >= 2)     /* code set 1 */
+       else if (IS_HIGHBIT_SET(*from) && len >= 2) /* code set 1 */
        {
            *to = *from++ << 8;
            *to |= *from++;
@@ -280,14 +280,14 @@ pg_euctw2wchar_with_len(const unsigned char *from, pg_wchar *to, int len)
            *to |= *from++;
            len -= 4;
        }
-       else if (*from == SS3 && len >= 3)      /* code set 3 (unused?) */
+       else if (*from == SS3 && len >= 3)  /* code set 3 (unused?) */
        {
            from++;
            *to = (SS3 << 16) | (*from++ << 8);
            *to |= *from++;
            len -= 3;
        }
-       else if (IS_HIGHBIT_SET(*from) && len >= 2)     /* code set 2 */
+       else if (IS_HIGHBIT_SET(*from) && len >= 2) /* code set 2 */
        {
            *to = *from++ << 8;
            *to |= *from++;
@@ -984,7 +984,7 @@ pg_sjis_dsplen(const unsigned char *s)
    else if (IS_HIGHBIT_SET(*s))
        len = 2;                /* kanji? */
    else
-       len = pg_ascii_dsplen(s);       /* should be ASCII */
+       len = pg_ascii_dsplen(s);   /* should be ASCII */
    return len;
 }
 
@@ -1011,7 +1011,7 @@ pg_big5_dsplen(const unsigned char *s)
    if (IS_HIGHBIT_SET(*s))
        len = 2;                /* kanji? */
    else
-       len = pg_ascii_dsplen(s);       /* should be ASCII */
+       len = pg_ascii_dsplen(s);   /* should be ASCII */
    return len;
 }
 
@@ -1038,7 +1038,7 @@ pg_gbk_dsplen(const unsigned char *s)
    if (IS_HIGHBIT_SET(*s))
        len = 2;                /* kanji? */
    else
-       len = pg_ascii_dsplen(s);       /* should be ASCII */
+       len = pg_ascii_dsplen(s);   /* should be ASCII */
    return len;
 }
 
@@ -1065,7 +1065,7 @@ pg_uhc_dsplen(const unsigned char *s)
    if (IS_HIGHBIT_SET(*s))
        len = 2;                /* 2byte? */
    else
-       len = pg_ascii_dsplen(s);       /* should be ASCII */
+       len = pg_ascii_dsplen(s);   /* should be ASCII */
    return len;
 }
 
@@ -1095,7 +1095,7 @@ pg_gb18030_dsplen(const unsigned char *s)
    if (IS_HIGHBIT_SET(*s))
        len = 2;
    else
-       len = pg_ascii_dsplen(s);       /* ASCII */
+       len = pg_ascii_dsplen(s);   /* ASCII */
    return len;
 }
 
@@ -1157,7 +1157,7 @@ pg_eucjp_verifier(const unsigned char *s, int len)
            break;
 
        default:
-           if (IS_HIGHBIT_SET(c1))     /* JIS X 0208? */
+           if (IS_HIGHBIT_SET(c1)) /* JIS X 0208? */
            {
                l = 2;
                if (l > len)
@@ -1241,7 +1241,7 @@ pg_euctw_verifier(const unsigned char *s, int len)
            return -1;
 
        default:
-           if (IS_HIGHBIT_SET(c1))     /* CNS 11643 Plane 1 */
+           if (IS_HIGHBIT_SET(c1)) /* CNS 11643 Plane 1 */
            {
                l = 2;
                if (l > len)
@@ -1683,7 +1683,7 @@ pg_eucjp_increment(unsigned char *charptr, int length)
            return false;
 
        default:
-           if (IS_HIGHBIT_SET(c1))     /* JIS X 0208? */
+           if (IS_HIGHBIT_SET(c1)) /* JIS X 0208? */
            {
                if (length != 2)
                    return false;
@@ -1717,7 +1717,7 @@ pg_eucjp_increment(unsigned char *charptr, int length)
 
    return true;
 }
-#endif   /* !FRONTEND */
+#endif                         /* !FRONTEND */
 
 
 /*
@@ -1734,40 +1734,40 @@ const pg_wchar_tbl pg_wchar_table[] = {
    {pg_euctw2wchar_with_len, pg_wchar2euc_with_len, pg_euctw_mblen, pg_euctw_dsplen, pg_euctw_verifier, 4},    /* PG_EUC_TW */
    {pg_eucjp2wchar_with_len, pg_wchar2euc_with_len, pg_eucjp_mblen, pg_eucjp_dsplen, pg_eucjp_verifier, 3},    /* PG_EUC_JIS_2004 */
    {pg_utf2wchar_with_len, pg_wchar2utf_with_len, pg_utf_mblen, pg_utf_dsplen, pg_utf8_verifier, 4},   /* PG_UTF8 */
-   {pg_mule2wchar_with_len, pg_wchar2mule_with_len, pg_mule_mblen, pg_mule_dsplen, pg_mule_verifier, 4},       /* PG_MULE_INTERNAL */
-   {pg_latin12wchar_with_len, pg_wchar2single_with_len, pg_latin1_mblen, pg_latin1_dsplen, pg_latin1_verifier, 1},     /* PG_LATIN1 */
-   {pg_latin12wchar_with_len, pg_wchar2single_with_len, pg_latin1_mblen, pg_latin1_dsplen, pg_latin1_verifier, 1},     /* PG_LATIN2 */
-   {pg_latin12wchar_with_len, pg_wchar2single_with_len, pg_latin1_mblen, pg_latin1_dsplen, pg_latin1_verifier, 1},     /* PG_LATIN3 */
-   {pg_latin12wchar_with_len, pg_wchar2single_with_len, pg_latin1_mblen, pg_latin1_dsplen, pg_latin1_verifier, 1},     /* PG_LATIN4 */
-   {pg_latin12wchar_with_len, pg_wchar2single_with_len, pg_latin1_mblen, pg_latin1_dsplen, pg_latin1_verifier, 1},     /* PG_LATIN5 */
-   {pg_latin12wchar_with_len, pg_wchar2single_with_len, pg_latin1_mblen, pg_latin1_dsplen, pg_latin1_verifier, 1},     /* PG_LATIN6 */
-   {pg_latin12wchar_with_len, pg_wchar2single_with_len, pg_latin1_mblen, pg_latin1_dsplen, pg_latin1_verifier, 1},     /* PG_LATIN7 */
-   {pg_latin12wchar_with_len, pg_wchar2single_with_len, pg_latin1_mblen, pg_latin1_dsplen, pg_latin1_verifier, 1},     /* PG_LATIN8 */
-   {pg_latin12wchar_with_len, pg_wchar2single_with_len, pg_latin1_mblen, pg_latin1_dsplen, pg_latin1_verifier, 1},     /* PG_LATIN9 */
-   {pg_latin12wchar_with_len, pg_wchar2single_with_len, pg_latin1_mblen, pg_latin1_dsplen, pg_latin1_verifier, 1},     /* PG_LATIN10 */
-   {pg_latin12wchar_with_len, pg_wchar2single_with_len, pg_latin1_mblen, pg_latin1_dsplen, pg_latin1_verifier, 1},     /* PG_WIN1256 */
-   {pg_latin12wchar_with_len, pg_wchar2single_with_len, pg_latin1_mblen, pg_latin1_dsplen, pg_latin1_verifier, 1},     /* PG_WIN1258 */
-   {pg_latin12wchar_with_len, pg_wchar2single_with_len, pg_latin1_mblen, pg_latin1_dsplen, pg_latin1_verifier, 1},     /* PG_WIN866 */
-   {pg_latin12wchar_with_len, pg_wchar2single_with_len, pg_latin1_mblen, pg_latin1_dsplen, pg_latin1_verifier, 1},     /* PG_WIN874 */
-   {pg_latin12wchar_with_len, pg_wchar2single_with_len, pg_latin1_mblen, pg_latin1_dsplen, pg_latin1_verifier, 1},     /* PG_KOI8R */
-   {pg_latin12wchar_with_len, pg_wchar2single_with_len, pg_latin1_mblen, pg_latin1_dsplen, pg_latin1_verifier, 1},     /* PG_WIN1251 */
-   {pg_latin12wchar_with_len, pg_wchar2single_with_len, pg_latin1_mblen, pg_latin1_dsplen, pg_latin1_verifier, 1},     /* PG_WIN1252 */
-   {pg_latin12wchar_with_len, pg_wchar2single_with_len, pg_latin1_mblen, pg_latin1_dsplen, pg_latin1_verifier, 1},     /* ISO-8859-5 */
-   {pg_latin12wchar_with_len, pg_wchar2single_with_len, pg_latin1_mblen, pg_latin1_dsplen, pg_latin1_verifier, 1},     /* ISO-8859-6 */
-   {pg_latin12wchar_with_len, pg_wchar2single_with_len, pg_latin1_mblen, pg_latin1_dsplen, pg_latin1_verifier, 1},     /* ISO-8859-7 */
-   {pg_latin12wchar_with_len, pg_wchar2single_with_len, pg_latin1_mblen, pg_latin1_dsplen, pg_latin1_verifier, 1},     /* ISO-8859-8 */
-   {pg_latin12wchar_with_len, pg_wchar2single_with_len, pg_latin1_mblen, pg_latin1_dsplen, pg_latin1_verifier, 1},     /* PG_WIN1250 */
-   {pg_latin12wchar_with_len, pg_wchar2single_with_len, pg_latin1_mblen, pg_latin1_dsplen, pg_latin1_verifier, 1},     /* PG_WIN1253 */
-   {pg_latin12wchar_with_len, pg_wchar2single_with_len, pg_latin1_mblen, pg_latin1_dsplen, pg_latin1_verifier, 1},     /* PG_WIN1254 */
-   {pg_latin12wchar_with_len, pg_wchar2single_with_len, pg_latin1_mblen, pg_latin1_dsplen, pg_latin1_verifier, 1},     /* PG_WIN1255 */
-   {pg_latin12wchar_with_len, pg_wchar2single_with_len, pg_latin1_mblen, pg_latin1_dsplen, pg_latin1_verifier, 1},     /* PG_WIN1257 */
-   {pg_latin12wchar_with_len, pg_wchar2single_with_len, pg_latin1_mblen, pg_latin1_dsplen, pg_latin1_verifier, 1},     /* PG_KOI8U */
+   {pg_mule2wchar_with_len, pg_wchar2mule_with_len, pg_mule_mblen, pg_mule_dsplen, pg_mule_verifier, 4},   /* PG_MULE_INTERNAL */
+   {pg_latin12wchar_with_len, pg_wchar2single_with_len, pg_latin1_mblen, pg_latin1_dsplen, pg_latin1_verifier, 1}, /* PG_LATIN1 */
+   {pg_latin12wchar_with_len, pg_wchar2single_with_len, pg_latin1_mblen, pg_latin1_dsplen, pg_latin1_verifier, 1}, /* PG_LATIN2 */
+   {pg_latin12wchar_with_len, pg_wchar2single_with_len, pg_latin1_mblen, pg_latin1_dsplen, pg_latin1_verifier, 1}, /* PG_LATIN3 */
+   {pg_latin12wchar_with_len, pg_wchar2single_with_len, pg_latin1_mblen, pg_latin1_dsplen, pg_latin1_verifier, 1}, /* PG_LATIN4 */
+   {pg_latin12wchar_with_len, pg_wchar2single_with_len, pg_latin1_mblen, pg_latin1_dsplen, pg_latin1_verifier, 1}, /* PG_LATIN5 */
+   {pg_latin12wchar_with_len, pg_wchar2single_with_len, pg_latin1_mblen, pg_latin1_dsplen, pg_latin1_verifier, 1}, /* PG_LATIN6 */
+   {pg_latin12wchar_with_len, pg_wchar2single_with_len, pg_latin1_mblen, pg_latin1_dsplen, pg_latin1_verifier, 1}, /* PG_LATIN7 */
+   {pg_latin12wchar_with_len, pg_wchar2single_with_len, pg_latin1_mblen, pg_latin1_dsplen, pg_latin1_verifier, 1}, /* PG_LATIN8 */
+   {pg_latin12wchar_with_len, pg_wchar2single_with_len, pg_latin1_mblen, pg_latin1_dsplen, pg_latin1_verifier, 1}, /* PG_LATIN9 */
+   {pg_latin12wchar_with_len, pg_wchar2single_with_len, pg_latin1_mblen, pg_latin1_dsplen, pg_latin1_verifier, 1}, /* PG_LATIN10 */
+   {pg_latin12wchar_with_len, pg_wchar2single_with_len, pg_latin1_mblen, pg_latin1_dsplen, pg_latin1_verifier, 1}, /* PG_WIN1256 */
+   {pg_latin12wchar_with_len, pg_wchar2single_with_len, pg_latin1_mblen, pg_latin1_dsplen, pg_latin1_verifier, 1}, /* PG_WIN1258 */
+   {pg_latin12wchar_with_len, pg_wchar2single_with_len, pg_latin1_mblen, pg_latin1_dsplen, pg_latin1_verifier, 1}, /* PG_WIN866 */
+   {pg_latin12wchar_with_len, pg_wchar2single_with_len, pg_latin1_mblen, pg_latin1_dsplen, pg_latin1_verifier, 1}, /* PG_WIN874 */
+   {pg_latin12wchar_with_len, pg_wchar2single_with_len, pg_latin1_mblen, pg_latin1_dsplen, pg_latin1_verifier, 1}, /* PG_KOI8R */
+   {pg_latin12wchar_with_len, pg_wchar2single_with_len, pg_latin1_mblen, pg_latin1_dsplen, pg_latin1_verifier, 1}, /* PG_WIN1251 */
+   {pg_latin12wchar_with_len, pg_wchar2single_with_len, pg_latin1_mblen, pg_latin1_dsplen, pg_latin1_verifier, 1}, /* PG_WIN1252 */
+   {pg_latin12wchar_with_len, pg_wchar2single_with_len, pg_latin1_mblen, pg_latin1_dsplen, pg_latin1_verifier, 1}, /* ISO-8859-5 */
+   {pg_latin12wchar_with_len, pg_wchar2single_with_len, pg_latin1_mblen, pg_latin1_dsplen, pg_latin1_verifier, 1}, /* ISO-8859-6 */
+   {pg_latin12wchar_with_len, pg_wchar2single_with_len, pg_latin1_mblen, pg_latin1_dsplen, pg_latin1_verifier, 1}, /* ISO-8859-7 */
+   {pg_latin12wchar_with_len, pg_wchar2single_with_len, pg_latin1_mblen, pg_latin1_dsplen, pg_latin1_verifier, 1}, /* ISO-8859-8 */
+   {pg_latin12wchar_with_len, pg_wchar2single_with_len, pg_latin1_mblen, pg_latin1_dsplen, pg_latin1_verifier, 1}, /* PG_WIN1250 */
+   {pg_latin12wchar_with_len, pg_wchar2single_with_len, pg_latin1_mblen, pg_latin1_dsplen, pg_latin1_verifier, 1}, /* PG_WIN1253 */
+   {pg_latin12wchar_with_len, pg_wchar2single_with_len, pg_latin1_mblen, pg_latin1_dsplen, pg_latin1_verifier, 1}, /* PG_WIN1254 */
+   {pg_latin12wchar_with_len, pg_wchar2single_with_len, pg_latin1_mblen, pg_latin1_dsplen, pg_latin1_verifier, 1}, /* PG_WIN1255 */
+   {pg_latin12wchar_with_len, pg_wchar2single_with_len, pg_latin1_mblen, pg_latin1_dsplen, pg_latin1_verifier, 1}, /* PG_WIN1257 */
+   {pg_latin12wchar_with_len, pg_wchar2single_with_len, pg_latin1_mblen, pg_latin1_dsplen, pg_latin1_verifier, 1}, /* PG_KOI8U */
    {0, 0, pg_sjis_mblen, pg_sjis_dsplen, pg_sjis_verifier, 2}, /* PG_SJIS */
    {0, 0, pg_big5_mblen, pg_big5_dsplen, pg_big5_verifier, 2}, /* PG_BIG5 */
    {0, 0, pg_gbk_mblen, pg_gbk_dsplen, pg_gbk_verifier, 2},    /* PG_GBK */
    {0, 0, pg_uhc_mblen, pg_uhc_dsplen, pg_uhc_verifier, 2},    /* PG_UHC */
-   {0, 0, pg_gb18030_mblen, pg_gb18030_dsplen, pg_gb18030_verifier, 4},        /* PG_GB18030 */
-   {0, 0, pg_johab_mblen, pg_johab_dsplen, pg_johab_verifier, 3},      /* PG_JOHAB */
+   {0, 0, pg_gb18030_mblen, pg_gb18030_dsplen, pg_gb18030_verifier, 4},    /* PG_GB18030 */
+   {0, 0, pg_johab_mblen, pg_johab_dsplen, pg_johab_verifier, 3},  /* PG_JOHAB */
    {0, 0, pg_sjis_mblen, pg_sjis_dsplen, pg_sjis_verifier, 2}  /* PG_SHIFT_JIS_2004 */
 };
 
@@ -2051,4 +2051,4 @@ report_untranslatable_char(int src_encoding, int dest_encoding,
                    pg_enc2name_tbl[dest_encoding].name)));
 }
 
-#endif   /* !FRONTEND */
+#endif                         /* !FRONTEND */
index 9a0b2ce9ebcd6abe9c3ce4af2badc77bc2656f78..4f18656fdafb1ad260311a4b1576cade33e849a0 100644 (file)
@@ -155,4 +155,4 @@ pg_backend_random(char *dst, int len)
 }
 
 
-#endif   /* HAVE_STRONG_RANDOM */
+#endif                         /* HAVE_STRONG_RANDOM */
index d9469e4181d819ba655fedaac247d27298527274..f96a556a5e25e0193569857f973cab50f375f70b 100644 (file)
@@ -438,8 +438,8 @@ bool        Debug_pretty_print = true;
 bool       log_parser_stats = false;
 bool       log_planner_stats = false;
 bool       log_executor_stats = false;
-bool       log_statement_stats = false;        /* this is sort of all three
-                                                * above together */
+bool       log_statement_stats = false;    /* this is sort of all three above
+                                            * together */
 bool       log_btree_build_stats = false;
 char      *event_source;
 
@@ -7040,7 +7040,7 @@ replace_auto_config_value(ConfigVariable **head_p, ConfigVariable **tail_p,
    item->name = pstrdup(name);
    item->value = pstrdup(value);
    item->errmsg = NULL;
-   item->filename = pstrdup("");       /* new item has no location */
+   item->filename = pstrdup("");   /* new item has no location */
    item->sourceline = 0;
    item->ignore = false;
    item->applied = false;
@@ -8956,7 +8956,7 @@ read_nondefault_variables(void)
 
    FreeFile(fp);
 }
-#endif   /* EXEC_BACKEND */
+#endif                         /* EXEC_BACKEND */
 
 /*
  * can_skip_gucvar:
@@ -10404,7 +10404,7 @@ check_effective_io_concurrency(int *newval, void **extra, GucSource source)
        return false;
 #else
    return true;
-#endif   /* USE_PREFETCH */
+#endif                         /* USE_PREFETCH */
 }
 
 static void
@@ -10412,7 +10412,7 @@ assign_effective_io_concurrency(int newval, void *extra)
 {
 #ifdef USE_PREFETCH
    target_prefetch_pages = *((int *) extra);
-#endif   /* USE_PREFETCH */
+#endif                         /* USE_PREFETCH */
 }
 
 static void
@@ -10424,13 +10424,13 @@ assign_pgstat_temp_directory(const char *newval, void *extra)
    char       *fname;
 
    /* directory */
-   dname = guc_malloc(ERROR, strlen(newval) + 1);      /* runtime dir */
+   dname = guc_malloc(ERROR, strlen(newval) + 1);  /* runtime dir */
    sprintf(dname, "%s", newval);
 
    /* global stats */
-   tname = guc_malloc(ERROR, strlen(newval) + 12);     /* /global.tmp */
+   tname = guc_malloc(ERROR, strlen(newval) + 12); /* /global.tmp */
    sprintf(tname, "%s/global.tmp", newval);
-   fname = guc_malloc(ERROR, strlen(newval) + 13);     /* /global.stat */
+   fname = guc_malloc(ERROR, strlen(newval) + 13); /* /global.stat */
    sprintf(fname, "%s/global.stat", newval);
 
    if (pgstat_stat_directory)
index 4007a17800cf55642a0c344a3c07bccbbb9336de..5742de0802a54e38a2c2e3cfa8e8f445b6822883 100644 (file)
@@ -93,11 +93,11 @@ static const size_t ps_buffer_size = PS_BUFFER_SIZE;
 static char *ps_buffer;            /* will point to argv area */
 static size_t ps_buffer_size;  /* space determined at run time */
 static size_t last_status_len; /* use to minimize length of clobber */
-#endif   /* PS_USE_CLOBBER_ARGV */
+#endif                         /* PS_USE_CLOBBER_ARGV */
 
 static size_t ps_buffer_cur_len;   /* nominal strlen(ps_buffer) */
 
-static size_t ps_buffer_fixed_size;        /* size of the constant prefix */
+static size_t ps_buffer_fixed_size; /* size of the constant prefix */
 
 /* save the original argv[] location here */
 static int save_argc;
@@ -183,7 +183,7 @@ save_ps_display_args(int argc, char **argv)
        new_environ[i] = NULL;
        environ = new_environ;
    }
-#endif   /* PS_USE_CLOBBER_ARGV */
+#endif                         /* PS_USE_CLOBBER_ARGV */
 
 #if defined(PS_USE_CHANGE_ARGV) || defined(PS_USE_CLOBBER_ARGV)
 
@@ -231,7 +231,7 @@ save_ps_display_args(int argc, char **argv)
 
        argv = new_argv;
    }
-#endif   /* PS_USE_CHANGE_ARGV or PS_USE_CLOBBER_ARGV */
+#endif                         /* PS_USE_CHANGE_ARGV or PS_USE_CLOBBER_ARGV */
 
    return argv;
 }
@@ -270,7 +270,7 @@ init_ps_display(const char *username, const char *dbname,
 #ifdef PS_USE_CHANGE_ARGV
    save_argv[0] = ps_buffer;
    save_argv[1] = NULL;
-#endif   /* PS_USE_CHANGE_ARGV */
+#endif                         /* PS_USE_CHANGE_ARGV */
 
 #ifdef PS_USE_CLOBBER_ARGV
    {
@@ -280,7 +280,7 @@ init_ps_display(const char *username, const char *dbname,
        for (i = 1; i < save_argc; i++)
            save_argv[i] = ps_buffer + ps_buffer_size;
    }
-#endif   /* PS_USE_CLOBBER_ARGV */
+#endif                         /* PS_USE_CLOBBER_ARGV */
 
    /*
     * Make fixed prefix of ps display.
@@ -313,7 +313,7 @@ init_ps_display(const char *username, const char *dbname,
    ps_buffer_cur_len = ps_buffer_fixed_size = strlen(ps_buffer);
 
    set_ps_display(initial_str, true);
-#endif   /* not PS_USE_NONE */
+#endif                         /* not PS_USE_NONE */
 }
 
 
@@ -358,12 +358,12 @@ set_ps_display(const char *activity, bool force)
        pst.pst_command = ps_buffer;
        pstat(PSTAT_SETCMD, pst, ps_buffer_cur_len, 0, 0);
    }
-#endif   /* PS_USE_PSTAT */
+#endif                         /* PS_USE_PSTAT */
 
 #ifdef PS_USE_PS_STRINGS
    PS_STRINGS->ps_nargvstr = 1;
    PS_STRINGS->ps_argvstr = ps_buffer;
-#endif   /* PS_USE_PS_STRINGS */
+#endif                         /* PS_USE_PS_STRINGS */
 
 #ifdef PS_USE_CLOBBER_ARGV
    /* pad unused memory; need only clobber remainder of old status string */
@@ -371,7 +371,7 @@ set_ps_display(const char *activity, bool force)
        MemSet(ps_buffer + ps_buffer_cur_len, PS_PADDING,
               last_status_len - ps_buffer_cur_len);
    last_status_len = ps_buffer_cur_len;
-#endif   /* PS_USE_CLOBBER_ARGV */
+#endif                         /* PS_USE_CLOBBER_ARGV */
 
 #ifdef PS_USE_WIN32
    {
@@ -390,8 +390,8 @@ set_ps_display(const char *activity, bool force)
 
        ident_handle = CreateEvent(NULL, TRUE, FALSE, name);
    }
-#endif   /* PS_USE_WIN32 */
-#endif   /* not PS_USE_NONE */
+#endif                         /* PS_USE_WIN32 */
+#endif                         /* not PS_USE_NONE */
 }
 
 
index c36459ebadcca119d5ae083b7820a37d0f2c2f28..b618ed1d7e69fea49d1b2d9b64840c616348ae07 100644 (file)
@@ -59,8 +59,8 @@ BlockSampler_HasMore(BlockSampler bs)
 BlockNumber
 BlockSampler_Next(BlockSampler bs)
 {
-   BlockNumber K = bs->N - bs->t;      /* remaining blocks */
-   int         k = bs->n - bs->m;      /* blocks still to sample */
+   BlockNumber K = bs->N - bs->t;  /* remaining blocks */
+   int         k = bs->n - bs->m;  /* blocks still to sample */
    double      p;              /* probability to skip block */
    double      V;              /* random */
 
@@ -150,7 +150,7 @@ reservoir_get_next_S(ReservoirState rs, double t, int n)
        double      V,
                    quot;
 
-       V = sampler_random_fract(rs->randstate);        /* Generate V */
+       V = sampler_random_fract(rs->randstate);    /* Generate V */
        S = 0;
        t += 1;
        /* Note: "num" in Vitter's code is always equal to t - n */
@@ -211,7 +211,7 @@ reservoir_get_next_S(ReservoirState rs, double t, int n)
                y *= numer / denom;
                denom -= 1;
            }
-           W = exp(-log(sampler_random_fract(rs->randstate)) / n);     /* Generate W in advance */
+           W = exp(-log(sampler_random_fract(rs->randstate)) / n); /* Generate W in advance */
            if (exp(log(y) / n) <= (t + X) / t)
                break;
        }
index 9d8f02a17991655743ee705f150755914ba2349d..51668d88fec08304b0e70a91aa9663ccd2301ac0 100644 (file)
@@ -99,7 +99,7 @@
 #define ALLOC_BLOCKHDRSZ   MAXALIGN(sizeof(AllocBlockData))
 #define ALLOC_CHUNKHDRSZ   sizeof(struct AllocChunkData)
 
-typedef struct AllocBlockData *AllocBlock;     /* forward reference */
+typedef struct AllocBlockData *AllocBlock; /* forward reference */
 typedef struct AllocChunkData *AllocChunk;
 
 /*
@@ -122,7 +122,7 @@ typedef struct AllocSetContext
    MemoryContextData header;   /* Standard memory-context fields */
    /* Info about storage allocated in this context: */
    AllocBlock  blocks;         /* head of list of blocks in this set */
-   AllocChunk  freelist[ALLOCSET_NUM_FREELISTS];       /* free chunk lists */
+   AllocChunk  freelist[ALLOCSET_NUM_FREELISTS];   /* free chunk lists */
    /* Allocation parameters for this context: */
    Size        initBlockSize;  /* initial block size */
    Size        maxBlockSize;   /* maximum block size */
@@ -170,7 +170,7 @@ typedef struct AllocChunkData
    Size        padding;
 #endif
 
-#endif   /* MEMORY_CONTEXT_CHECKING */
+#endif                         /* MEMORY_CONTEXT_CHECKING */
 
    /* aset is the owning aset if allocated, or the freelist link if free */
    void       *aset;
@@ -721,7 +721,7 @@ AllocSetAlloc(MemoryContext context, Size size)
 
                chunk->size = availchunk;
 #ifdef MEMORY_CONTEXT_CHECKING
-               chunk->requested_size = 0;      /* mark it free */
+               chunk->requested_size = 0;  /* mark it free */
 #endif
                chunk->aset = (void *) set->freelist[a_fidx];
                set->freelist[a_fidx] = chunk;
@@ -1252,10 +1252,10 @@ AllocSetCheck(MemoryContext context)
            Size        chsize,
                        dsize;
 
-           chsize = chunk->size;       /* aligned chunk size */
+           chsize = chunk->size;   /* aligned chunk size */
            VALGRIND_MAKE_MEM_DEFINED(&chunk->requested_size,
                                      sizeof(chunk->requested_size));
-           dsize = chunk->requested_size;      /* real data */
+           dsize = chunk->requested_size;  /* real data */
            if (dsize > 0)      /* not on a free list */
                VALGRIND_MAKE_MEM_NOACCESS(&chunk->requested_size,
                                           sizeof(chunk->requested_size));
@@ -1305,4 +1305,4 @@ AllocSetCheck(MemoryContext context)
    }
 }
 
-#endif   /* MEMORY_CONTEXT_CHECKING */
+#endif                         /* MEMORY_CONTEXT_CHECKING */
index f09a9c0487d475c8a399b5ecc217cccee9f967b1..7852fde300d740b0fea2662e3aad850d4e0fa00e 100644 (file)
@@ -235,7 +235,7 @@ typedef struct
  */
 static const uint16 dsa_size_classes[] = {
    sizeof(dsa_area_span), 0,   /* special size classes */
-   8, 16, 24, 32, 40, 48, 56, 64,      /* 8 classes separated by 8 bytes */
+   8, 16, 24, 32, 40, 48, 56, 64,  /* 8 classes separated by 8 bytes */
    80, 96, 112, 128,           /* 4 classes separated by 16 bytes */
    160, 192, 224, 256,         /* 4 classes separated by 32 bytes */
    320, 384, 448, 512,         /* 4 classes separated by 64 bytes */
@@ -1304,7 +1304,7 @@ attach_internal(void *place, dsm_segment *segment, dsa_handle handle)
 
    /* Set up the segment map for this process's mapping. */
    segment_map = &area->segment_maps[0];
-   segment_map->segment = segment;     /* NULL for in-place */
+   segment_map->segment = segment; /* NULL for in-place */
    segment_map->mapped_address = place;
    segment_map->header = (dsa_segment_header *) segment_map->mapped_address;
    segment_map->fpm = (FreePageManager *)
index 243607732c0daa80a4ebf0acdefcccdeb58348f0..f0a87d3f207fe655e2756721c7501a11240eb334 100644 (file)
@@ -90,4 +90,4 @@ randomize_mem(char *ptr, size_t size)
    save_ctr = ctr;
 }
 
-#endif   /* RANDOMIZE_ALLOCATED_MEMORY */
+#endif                         /* RANDOMIZE_ALLOCATED_MEMORY */
index 2cf58059d03221af0949d92fa64975146dc54d90..35de6b6d82a537f708987691677d65112473f924 100644 (file)
@@ -764,4 +764,4 @@ SlabCheck(MemoryContext context)
    }
 }
 
-#endif   /* MEMORY_CONTEXT_CHECKING */
+#endif                         /* MEMORY_CONTEXT_CHECKING */
index 8f324cd58047ffa29507c430165fce63815fdeb5..4a4a2871488e683ae87bd75e74c4dec5cfc401f4 100644 (file)
@@ -127,7 +127,7 @@ typedef struct ResourceOwnerData
 
    /* We can remember up to MAX_RESOWNER_LOCKS references to local locks. */
    int         nlocks;         /* number of owned locks */
-   LOCALLOCK  *locks[MAX_RESOWNER_LOCKS];      /* list of owned locks */
+   LOCALLOCK  *locks[MAX_RESOWNER_LOCKS];  /* list of owned locks */
 }          ResourceOwnerData;
 
 
index 455735925e2c66e45fba8f7dbc64efee39466ced..e1628f737951c576d3c14a891935fb7e6b92fde6 100644 (file)
@@ -161,7 +161,7 @@ struct LogicalTapeSet
     * blocks that have been allocated for a tape, but have not been written
     * to the underlying file yet.
     */
-   long        nBlocksAllocated;       /* # of blocks allocated */
+   long        nBlocksAllocated;   /* # of blocks allocated */
    long        nBlocksWritten; /* # of blocks used in underlying file */
 
    /*
index 420a34afe7381eac0acad9b9d5eb78cfba839000..362f5896251f7f01b11c24becf78c97952cc7c7c 100644 (file)
@@ -72,7 +72,7 @@
 /*
  * GUC parameters
  */
-int            old_snapshot_threshold;     /* number of minutes, -1 disables */
+int            old_snapshot_threshold; /* number of minutes, -1 disables */
 
 /*
  * Structure for dealing with old_snapshot_threshold implementation.
@@ -84,9 +84,8 @@ typedef struct OldSnapshotControlData
     * only allowed to move forward.
     */
    slock_t     mutex_current;  /* protect current_timestamp */
-   TimestampTz current_timestamp;      /* latest snapshot timestamp */
-   slock_t     mutex_latest_xmin;      /* protect latest_xmin and
-                                        * next_map_update */
+   TimestampTz current_timestamp;  /* latest snapshot timestamp */
+   slock_t     mutex_latest_xmin;  /* protect latest_xmin and next_map_update */
    TransactionId latest_xmin;  /* latest snapshot xmin */
    TimestampTz next_map_update;    /* latest snapshot valid up to */
    slock_t     mutex_threshold;    /* protect threshold fields */
index 519f3b68031af90160a9902ee3ae87943690b2c9..f9da9e17f523307f7103b6b19a28aab8819d83de 100644 (file)
@@ -512,7 +512,7 @@ HeapTupleSatisfiesUpdate(HeapTuple htup, CommandId curcid,
        else if (TransactionIdIsCurrentTransactionId(HeapTupleHeaderGetRawXmin(tuple)))
        {
            if (HeapTupleHeaderGetCmin(tuple) >= curcid)
-               return HeapTupleInvisible;      /* inserted after scan started */
+               return HeapTupleInvisible;  /* inserted after scan started */
 
            if (tuple->t_infomask & HEAP_XMAX_INVALID)  /* xid invalid */
                return HeapTupleMayBeUpdated;
@@ -571,8 +571,8 @@ HeapTupleSatisfiesUpdate(HeapTuple htup, CommandId curcid,
                        return HeapTupleSelfUpdated;    /* updated after scan
                                                         * started */
                    else
-                       return HeapTupleInvisible;      /* updated before scan
-                                                        * started */
+                       return HeapTupleInvisible;  /* updated before scan
+                                                    * started */
                }
            }
 
@@ -587,7 +587,7 @@ HeapTupleSatisfiesUpdate(HeapTuple htup, CommandId curcid,
            if (HeapTupleHeaderGetCmax(tuple) >= curcid)
                return HeapTupleSelfUpdated;    /* updated after scan started */
            else
-               return HeapTupleInvisible;      /* updated before scan started */
+               return HeapTupleInvisible;  /* updated before scan started */
        }
        else if (TransactionIdIsInProgress(HeapTupleHeaderGetRawXmin(tuple)))
            return HeapTupleInvisible;
@@ -646,7 +646,7 @@ HeapTupleSatisfiesUpdate(HeapTuple htup, CommandId curcid,
            if (HeapTupleHeaderGetCmax(tuple) >= curcid)
                return HeapTupleSelfUpdated;    /* updated after scan started */
            else
-               return HeapTupleInvisible;      /* updated before scan started */
+               return HeapTupleInvisible;  /* updated before scan started */
        }
 
        if (MultiXactIdIsRunning(HeapTupleHeaderGetRawXmax(tuple), false))
@@ -682,7 +682,7 @@ HeapTupleSatisfiesUpdate(HeapTuple htup, CommandId curcid,
        if (HEAP_XMAX_IS_LOCKED_ONLY(tuple->t_infomask))
            return HeapTupleBeingUpdated;
        if (HeapTupleHeaderGetCmax(tuple) >= curcid)
-           return HeapTupleSelfUpdated;        /* updated after scan started */
+           return HeapTupleSelfUpdated;    /* updated after scan started */
        else
            return HeapTupleInvisible;  /* updated before scan started */
    }
@@ -1038,7 +1038,7 @@ HeapTupleSatisfiesMVCC(HeapTuple htup, Snapshot snapshot,
                else if (HeapTupleHeaderGetCmax(tuple) >= snapshot->curcid)
                    return true;    /* updated after scan started */
                else
-                   return false;       /* updated before scan started */
+                   return false;   /* updated before scan started */
            }
 
            if (!TransactionIdIsCurrentTransactionId(HeapTupleHeaderGetRawXmax(tuple)))
index edfeb52d546e68fe44e260bd0ddd9c630fb1c52e..96aa39021e81a947f53176860b9b729becbb6b45 100644 (file)
@@ -279,7 +279,7 @@ score_timezone(const char *tzname, struct tztry *tt)
            if (pgtm->tm_zone == NULL)
                return -1;      /* probably shouldn't happen */
            memset(cbuf, 0, sizeof(cbuf));
-           strftime(cbuf, sizeof(cbuf) - 1, "%Z", systm);      /* zone abbr */
+           strftime(cbuf, sizeof(cbuf) - 1, "%Z", systm);  /* zone abbr */
            if (strcmp(cbuf, pgtm->tm_zone) != 0)
            {
 #ifdef DEBUG_IDENTIFY_TIMEZONE
@@ -1336,7 +1336,7 @@ identify_system_timezone(void)
 #endif
    return NULL;                /* go to GMT */
 }
-#endif   /* WIN32 */
+#endif                         /* WIN32 */
 
 
 /*
index bc8a8706c16f233b42c1f8c8f010ffe96a112b61..7fdaca868a193c07dad20292eb2372ae0b0ff3bd 100644 (file)
@@ -1231,7 +1231,7 @@ setup_config(void)
    conflines = replace_token(conflines,
                              "host    replication     all             ::1",
                              "#host    replication     all             ::1");
-#endif   /* HAVE_IPV6 */
+#endif                         /* HAVE_IPV6 */
 
    /* Replace default authentication methods */
    conflines = replace_token(conflines,
@@ -2961,7 +2961,7 @@ main(int argc, char *argv[])
        {"show", no_argument, NULL, 's'},
        {"noclean", no_argument, NULL, 'n'},    /* for backwards compatibility */
        {"no-clean", no_argument, NULL, 'n'},
-       {"nosync", no_argument, NULL, 'N'},     /* for backwards compatibility */
+       {"nosync", no_argument, NULL, 'N'}, /* for backwards compatibility */
        {"no-sync", no_argument, NULL, 'N'},
        {"sync-only", no_argument, NULL, 'S'},
        {"waldir", required_argument, NULL, 'X'},
index 990fe47e03dbb27e46f11b763870f0ac1d720a16..c5e344f3cf39959d6325c87fc698ecc38b6b2706 100644 (file)
@@ -28,14 +28,13 @@ const char *progname;
 /* Options and defaults */
 bool       debug = false;      /* are we debugging? */
 bool       dryrun = false;     /* are we performing a dry-run operation? */
-char      *additional_ext = NULL;      /* Extension to remove from filenames */
+char      *additional_ext = NULL;  /* Extension to remove from filenames */
 
 char      *archiveLocation;    /* where to find the archive? */
 char      *restartWALFileName; /* the file from which we can restart restore */
 char       WALFilePath[MAXPGPATH * 2]; /* the file path including archive */
-char       exclusiveCleanupFileName[MAXFNAMELEN];      /* the oldest file we
-                                                        * want to remain in
-                                                        * archive */
+char       exclusiveCleanupFileName[MAXFNAMELEN];  /* the oldest file we want
+                                                    * to remain in archive */
 
 
 /* =====================================================================
@@ -315,8 +314,8 @@ main(int argc, char **argv)
                dryrun = true;
                break;
            case 'x':
-               additional_ext = pg_strdup(optarg);     /* Extension to remove
-                                                        * from xlogfile names */
+               additional_ext = pg_strdup(optarg); /* Extension to remove
+                                                    * from xlogfile names */
                break;
            default:
                fprintf(stderr, _("Try \"%s --help\" for more information.\n"), progname);
index 54d27dc658ae85a28fa4a01c61f79354e2c3a037..2c4efd764576ed7db2d2c2df04e702063f441bd6 100644 (file)
@@ -87,7 +87,7 @@ static IncludeWal includewal = STREAM_WAL;
 static bool fastcheckpoint = false;
 static bool writerecoveryconf = false;
 static bool do_sync = true;
-static int standby_message_timeout = 10 * 1000;        /* 10 sec = default */
+static int standby_message_timeout = 10 * 1000;    /* 10 sec = default */
 static pg_time_t last_progress_report = 0;
 static int32 maxrate = 0;      /* no limit by default */
 static char *replication_slot = NULL;
@@ -1398,7 +1398,7 @@ ReceiveAndUnpackTarFile(PGconn *conn, PGresult *res, int rownum)
                    /*
                     * Directory
                     */
-                   filename[strlen(filename) - 1] = '\0';      /* Remove trailing slash */
+                   filename[strlen(filename) - 1] = '\0';  /* Remove trailing slash */
                    if (mkdir(filename, S_IRWXU) != 0)
                    {
                        /*
@@ -1442,7 +1442,7 @@ ReceiveAndUnpackTarFile(PGconn *conn, PGresult *res, int rownum)
                     * are, you can call it an undocumented feature that you
                     * can map them too.)
                     */
-                   filename[strlen(filename) - 1] = '\0';      /* Remove trailing slash */
+                   filename[strlen(filename) - 1] = '\0';  /* Remove trailing slash */
 
                    mapped_tblspc_path = get_tablespace_mapping(©buf[157]);
                    if (symlink(mapped_tblspc_path, filename) != 0)
@@ -2204,7 +2204,7 @@ main(int argc, char **argv)
 #ifdef HAVE_LIBZ
                compresslevel = Z_DEFAULT_COMPRESSION;
 #else
-               compresslevel = 1;      /* will be rejected below */
+               compresslevel = 1;  /* will be rejected below */
 #endif
                break;
            case 'Z':
index 370d871660d28152ac0b7df35efe01a630ad3942..15caf32a764d3b2b230b098e10984accde9d3649 100644 (file)
@@ -35,7 +35,7 @@ static char *basedir = NULL;
 static int verbose = 0;
 static int compresslevel = 0;
 static int noloop = 0;
-static int standby_message_timeout = 10 * 1000;        /* 10 sec = default */
+static int standby_message_timeout = 10 * 1000;    /* 10 sec = default */
 static volatile bool time_to_abort = false;
 static bool do_create_slot = false;
 static bool slot_exists_ok = false;
index 5f7412e9d55f813b9ab20c7f9d8b0803b9070748..fbe9fbb9a81f10320a6e8ea182603985c8977b0e 100644 (file)
@@ -37,7 +37,7 @@
 static char *outfile = NULL;
 static int verbose = 0;
 static int noloop = 0;
-static int standby_message_timeout = 10 * 1000;        /* 10 sec = default */
+static int standby_message_timeout = 10 * 1000;    /* 10 sec = default */
 static int fsync_interval = 10 * 1000; /* 10 sec = default */
 static XLogRecPtr startpos = InvalidXLogRecPtr;
 static XLogRecPtr endpos = InvalidXLogRecPtr;
@@ -142,13 +142,13 @@ sendFeedback(PGconn *conn, TimestampTz now, bool force, bool replyRequested)
    len += 1;
    fe_sendint64(output_written_lsn, &replybuf[len]);   /* write */
    len += 8;
-   fe_sendint64(output_fsync_lsn, &replybuf[len]);     /* flush */
+   fe_sendint64(output_fsync_lsn, &replybuf[len]); /* flush */
    len += 8;
    fe_sendint64(InvalidXLogRecPtr, &replybuf[len]);    /* apply */
    len += 8;
    fe_sendint64(now, &replybuf[len]);  /* sendTime */
    len += 8;
-   replybuf[len] = replyRequested ? 1 : 0;     /* replyRequested */
+   replybuf[len] = replyRequested ? 1 : 0; /* replyRequested */
    len += 1;
 
    startpos = output_written_lsn;
index 52aa274bb8972035c3cd6e7b2d8ded4c1e408ed8..0fe4df126d2116bcf06c5ea775c717216419c9db 100644 (file)
@@ -35,7 +35,7 @@ static char current_walfile_name[MAXPGPATH] = "";
 static bool reportFlushPosition = false;
 static XLogRecPtr lastFlushPosition = InvalidXLogRecPtr;
 
-static bool still_sending = true;      /* feedback still needs to be sent? */
+static bool still_sending = true;  /* feedback still needs to be sent? */
 
 static PGresult *HandleCopyStream(PGconn *conn, StreamCtl *stream,
                 XLogRecPtr *stoppos);
@@ -330,18 +330,18 @@ sendFeedback(PGconn *conn, XLogRecPtr blockpos, TimestampTz now, bool replyReque
 
    replybuf[len] = 'r';
    len += 1;
-   fe_sendint64(blockpos, &replybuf[len]);     /* write */
+   fe_sendint64(blockpos, &replybuf[len]); /* write */
    len += 8;
    if (reportFlushPosition)
-       fe_sendint64(lastFlushPosition, &replybuf[len]);        /* flush */
+       fe_sendint64(lastFlushPosition, &replybuf[len]);    /* flush */
    else
-       fe_sendint64(InvalidXLogRecPtr, &replybuf[len]);        /* flush */
+       fe_sendint64(InvalidXLogRecPtr, &replybuf[len]);    /* flush */
    len += 8;
    fe_sendint64(InvalidXLogRecPtr, &replybuf[len]);    /* apply */
    len += 8;
    fe_sendint64(now, &replybuf[len]);  /* sendTime */
    len += 8;
-   replybuf[len] = replyRequested ? 1 : 0;     /* replyRequested */
+   replybuf[len] = replyRequested ? 1 : 0; /* replyRequested */
    len += 1;
 
    if (PQputCopyData(conn, replybuf, len) <= 0 || PQflush(conn))
index 9a51d9a9c4926d7c5493f2e7c24b9cbfc133b7be..bb786ce289e1db63c4b8bd5196d0753754d84b85 100644 (file)
@@ -33,8 +33,7 @@ typedef struct StreamCtl
    TimeLineID  timeline;       /* Timeline to stream data from */
    char       *sysidentifier;  /* Validate this system identifier and
                                 * timeline */
-   int         standby_message_timeout;        /* Send status messages this
-                                                * often */
+   int         standby_message_timeout;    /* Send status messages this often */
    bool        synchronous;    /* Flush immediately WAL data on write */
    bool        mark_done;      /* Mark segment as done in generated archive */
    bool        do_sync;        /* Flush to disk to ensure consistent state of
@@ -47,7 +46,7 @@ typedef struct StreamCtl
 
    WalWriteMethod *walmethod;  /* How to write the WAL */
    char       *partial_suffix; /* Suffix appended to partially received files */
-   char       *replication_slot;       /* Replication slot to use, or NULL */
+   char       *replication_slot;   /* Replication slot to use, or NULL */
    bool        temp_slot;      /* Create temporary replication slot */
 } StreamCtl;
 
@@ -57,4 +56,4 @@ extern bool CheckServerVersionForStreaming(PGconn *conn);
 extern bool ReceiveXlogStream(PGconn *conn,
                  StreamCtl *stream);
 
-#endif   /* RECEIVELOG_H */
+#endif                         /* RECEIVELOG_H */
index 460dcb52675c2749bc53a68a1002b89b21f683e2..6f6878679fc6555d7e94e7372950e31b07de2784 100644 (file)
@@ -48,4 +48,4 @@ extern bool feTimestampDifferenceExceeds(TimestampTz start_time, TimestampTz sto
 extern void fe_sendint64(int64 i, char *buf);
 extern int64 fe_recvint64(char *buf);
 
-#endif   /* STREAMUTIL_H */
+#endif                         /* STREAMUTIL_H */
index 8387a0b08056872a619dd3229c36a10e66c4699a..9e262dee8bfb4465cb88dfc107ebb4b2c8543939 100644 (file)
@@ -83,7 +83,7 @@ static const char *progname;
 static char *log_file = NULL;
 static char *exec_path = NULL;
 static char *event_source = NULL;
-static char *register_servicename = "PostgreSQL";      /* FIXME: + version ID? */
+static char *register_servicename = "PostgreSQL";  /* FIXME: + version ID? */
 static char *register_username = NULL;
 static char *register_password = NULL;
 static char *argv0 = NULL;
@@ -211,7 +211,7 @@ write_stderr(const char *fmt,...)
     */
    if (pgwin32_is_service())   /* Running as a service */
    {
-       char        errbuf[2048];       /* Arbitrary size? */
+       char        errbuf[2048];   /* Arbitrary size? */
 
        vsnprintf(errbuf, sizeof(errbuf), fmt, ap);
 
@@ -500,7 +500,7 @@ start_postmaster(void)
    postmasterProcess = pi.hProcess;
    CloseHandle(pi.hThread);
    return pi.dwProcessId;      /* Shell's PID, not postmaster's! */
-#endif   /* WIN32 */
+#endif                         /* WIN32 */
 }
 
 
@@ -787,8 +787,7 @@ read_post_opts(void)
                 */
                if ((arg1 = strstr(optline, " \"")) != NULL)
                {
-                   *arg1 = '\0';       /* terminate so we get only program
-                                        * name */
+                   *arg1 = '\0';   /* terminate so we get only program name */
                    post_opts = pg_strdup(arg1 + 1);    /* point past whitespace */
                }
                if (exec_path == NULL)
@@ -1005,7 +1004,7 @@ do_stop(void)
            if ((pid = get_pgpid(false)) != 0)
            {
                print_msg(".");
-               pg_usleep(1000000);     /* 1 sec */
+               pg_usleep(1000000); /* 1 sec */
            }
            else
                break;
@@ -1095,7 +1094,7 @@ do_restart(void)
            if ((pid = get_pgpid(false)) != 0)
            {
                print_msg(".");
-               pg_usleep(1000000);     /* 1 sec */
+               pg_usleep(1000000); /* 1 sec */
            }
            else
                break;
@@ -1362,7 +1361,7 @@ IsWindowsXPOrGreater(void)
    osv.dwOSVersionInfoSize = sizeof(osv);
 
    /* Windows XP = Version 5.1 */
-   return (!GetVersionEx(&osv) ||      /* could not get version */
+   return (!GetVersionEx(&osv) ||  /* could not get version */
            osv.dwMajorVersion > 5 || (osv.dwMajorVersion == 5 && osv.dwMinorVersion >= 1));
 }
 
@@ -1374,7 +1373,7 @@ IsWindows7OrGreater(void)
    osv.dwOSVersionInfoSize = sizeof(osv);
 
    /* Windows 7 = Version 6.0 */
-   return (!GetVersionEx(&osv) ||      /* could not get version */
+   return (!GetVersionEx(&osv) ||  /* could not get version */
            osv.dwMajorVersion > 6 || (osv.dwMajorVersion == 6 && osv.dwMinorVersion >= 0));
 }
 #endif
@@ -1665,7 +1664,7 @@ pgwin32_ServiceMain(DWORD argc, LPTSTR *argv)
                break;
            }
 
-       case (WAIT_OBJECT_0 + 1):       /* postmaster went down */
+       case (WAIT_OBJECT_0 + 1):   /* postmaster went down */
            break;
 
        default:
@@ -1917,7 +1916,7 @@ CreateRestrictedProcess(char *cmd, PROCESS_INFORMATION *processInfo, bool as_ser
     */
    return r;
 }
-#endif   /* WIN32 */
+#endif                         /* WIN32 */
 
 static void
 do_advice(void)
index 631fa337e6d524dee9a25e8771990cc64d2ad801..025835a2e0d3ae7560ad3ce6ab774777438e25b5 100644 (file)
@@ -388,7 +388,7 @@ ReadDataFromArchiveZlib(ArchiveHandle *AH, ReadFunc readF)
    free(out);
    free(zp);
 }
-#endif   /* HAVE_LIBZ */
+#endif                         /* HAVE_LIBZ */
 
 
 /*
index 79eac8c7cf62174c9432dc160bc33925f1ebb1a1..04159bcfc6c1fe656834b565e21831a2374cd562 100644 (file)
@@ -604,7 +604,7 @@ copyAclUserName(PQExpBuffer output, char *input)
            while (!(*input == '"' && *(input + 1) != '"'))
            {
                if (*input == '\0')
-                   return input;       /* really a syntax error... */
+                   return input;   /* really a syntax error... */
 
                /*
                 * Quoting convention is to escape " as "".  Keep this code in
index d7eecdfb3cf91d4b15591d35890a728bd47b0063..fe364dd8c45bd91dfab75f99dbc69b4a8bffe8df 100644 (file)
@@ -56,4 +56,4 @@ extern void buildACLQueries(PQExpBuffer acl_subquery, PQExpBuffer racl_subquery,
                const char *acl_column, const char *acl_owner,
                const char *obj_kind, bool binary_upgrade);
 
-#endif   /* DUMPUTILS_H */
+#endif                         /* DUMPUTILS_H */
index feda575af85de196b1ae9ccfdaef1cd46d455ba6..4452436d0ed1b471e047331dc0958a3a9ad5952f 100644 (file)
@@ -91,7 +91,7 @@ struct ParallelSlot
    T_WorkerStatus workerStatus;    /* see enum above */
 
    /* These fields are valid if workerStatus == WRKR_WORKING: */
-   ParallelCompletionPtr callback;     /* function to call on completion */
+   ParallelCompletionPtr callback; /* function to call on completion */
    void       *callback_data;  /* passthrough data for it */
 
    ArchiveHandle *AH;          /* Archive data worker is using */
@@ -134,7 +134,7 @@ static int  piperead(int s, char *buf, int len);
 #define piperead(a,b,c)        read(a,b,c)
 #define pipewrite(a,b,c)   write(a,b,c)
 
-#endif   /* WIN32 */
+#endif                         /* WIN32 */
 
 /*
  * State info for archive_close_connection() shutdown callback.
@@ -193,7 +193,7 @@ static DWORD tls_index;
 /* globally visible variables (needed by exit_nicely) */
 bool       parallel_init_done = false;
 DWORD      mainThreadId;
-#endif   /* WIN32 */
+#endif                         /* WIN32 */
 
 static const char *modulename = gettext_noop("parallel archiver");
 
@@ -335,7 +335,7 @@ getThreadLocalPQExpBuffer(void)
 
    return id_return;
 }
-#endif   /* WIN32 */
+#endif                         /* WIN32 */
 
 /*
  * pg_dump and pg_restore call this to register the cleanup handler
@@ -512,7 +512,7 @@ WaitForTerminatingWorkers(ParallelState *pstate)
                break;
            }
        }
-#endif   /* WIN32 */
+#endif                         /* WIN32 */
 
        /* On all platforms, update workerStatus and te[] as well */
        Assert(j < pstate->numWorkers);
@@ -729,7 +729,7 @@ setup_cancel_handler(void)
    }
 }
 
-#endif   /* WIN32 */
+#endif                         /* WIN32 */
 
 
 /*
@@ -898,7 +898,7 @@ init_spawned_worker_win32(WorkerInfo *wi)
    _endthreadex(0);
    return 0;
 }
-#endif   /* WIN32 */
+#endif                         /* WIN32 */
 
 /*
  * This function starts a parallel dump or restore by spawning off the worker
@@ -1044,7 +1044,7 @@ ParallelBackupStart(ArchiveHandle *AH)
        closesocket(pipeMW[PIPE_READ]);
        /* close write end of Worker -> Master */
        closesocket(pipeWM[PIPE_WRITE]);
-#endif   /* WIN32 */
+#endif                         /* WIN32 */
    }
 
    /*
@@ -1840,4 +1840,4 @@ piperead(int s, char *buf, int len)
    return ret;
 }
 
-#endif   /* WIN32 */
+#endif                         /* WIN32 */
index 27ae2eda73b0bf5251297e94315ad3acef30a3db..8d800bdf8383eedf63d41fac10f1693e154c43c2 100644 (file)
@@ -67,4 +67,4 @@ extern void ParallelBackupEnd(ArchiveHandle *AH, ParallelState *pstate);
 
 extern void set_archive_cancel_info(ArchiveHandle *AH, PGconn *conn);
 
-#endif   /* PG_DUMP_PARALLEL_H */
+#endif                         /* PG_DUMP_PARALLEL_H */
index 77da43c08a6a3bf98e750b584cc9b803d5196531..144068ac4922167a3eb2c89c92df26661ffd657d 100644 (file)
@@ -63,8 +63,8 @@ typedef struct _restoreOptions
    int         createDB;       /* Issue commands to create the database */
    int         noOwner;        /* Don't try to match original object owner */
    int         noTablespace;   /* Don't issue tablespace-related commands */
-   int         disable_triggers;       /* disable triggers during data-only
-                                        * restore */
+   int         disable_triggers;   /* disable triggers during data-only
+                                    * restore */
    int         use_setsessauth;    /* Use SET SESSION AUTHORIZATION commands
                                     * instead of OWNER TO */
    char       *superuser;      /* Username to use as superuser */
@@ -75,8 +75,8 @@ typedef struct _restoreOptions
    int         column_inserts;
    int         if_exists;
    int         no_publications;    /* Skip publication entries */
-   int         no_security_labels;     /* Skip security label entries */
-   int         no_subscriptions;       /* Skip subscription entries */
+   int         no_security_labels; /* Skip security label entries */
+   int         no_subscriptions;   /* Skip subscription entries */
    int         strict_names;
 
    const char *filename;
@@ -181,16 +181,15 @@ typedef struct Archive
    RestoreOptions *ropt;       /* options, if restoring */
 
    int         verbose;
-   char       *remoteVersionStr;       /* server's version string */
+   char       *remoteVersionStr;   /* server's version string */
    int         remoteVersion;  /* same in numeric form */
    bool        isStandby;      /* is server a standby node */
 
-   int         minRemoteVersion;       /* allowable range */
+   int         minRemoteVersion;   /* allowable range */
    int         maxRemoteVersion;
 
    int         numWorkers;     /* number of parallel processes */
-   char       *sync_snapshot_id;       /* sync snapshot id for parallel
-                                        * operation */
+   char       *sync_snapshot_id;   /* sync snapshot id for parallel operation */
 
    /* info needed for string escaping */
    int         encoding;       /* libpq code for client_encoding */
@@ -299,4 +298,4 @@ extern int  archprintf(Archive *AH, const char *fmt,...) pg_attribute_printf(2, 3
 #define appendStringLiteralAH(buf,str,AH) \
    appendStringLiteral(buf, str, (AH)->encoding, (AH)->std_strings)
 
-#endif   /* PG_BACKUP_H */
+#endif                         /* PG_BACKUP_H */
index 0161fc4231a289a260954fdaba608e1f6ac066f5..35ff958ebacc002e460eda77b94b435a587876fd 100644 (file)
@@ -744,7 +744,7 @@ restore_toc_entry(ArchiveHandle *AH, TocEntry *te, bool is_parallel)
 
    defnDumped = false;
 
-   if ((reqs & REQ_SCHEMA) != 0)       /* We want the schema */
+   if ((reqs & REQ_SCHEMA) != 0)   /* We want the schema */
    {
        /* Show namespace if available */
        if (te->namespace)
@@ -2179,7 +2179,7 @@ _discoverArchiveFormat(ArchiveHandle *AH)
        AH->lookahead[AH->lookaheadLen++] = vmin;
 
        /* Check header version; varies from V1.0 */
-       if (vmaj > 1 || (vmaj == 1 && vmin > 0))        /* Version > 1.0 */
+       if (vmaj > 1 || (vmaj == 1 && vmin > 0))    /* Version > 1.0 */
        {
            if ((byteread = fgetc(fh)) == EOF)
                READ_ERROR_EXIT(fh);
@@ -3600,7 +3600,7 @@ WriteHead(ArchiveHandle *AH)
 {
    struct tm   crtm;
 
-   (*AH->WriteBufPtr) (AH, "PGDMP", 5);        /* Magic code */
+   (*AH->WriteBufPtr) (AH, "PGDMP", 5);    /* Magic code */
    (*AH->WriteBytePtr) (AH, ARCHIVE_MAJOR(AH->version));
    (*AH->WriteBytePtr) (AH, ARCHIVE_MINOR(AH->version));
    (*AH->WriteBytePtr) (AH, ARCHIVE_REV(AH->version));
@@ -3648,7 +3648,7 @@ ReadHead(ArchiveHandle *AH)
        vmaj = (*AH->ReadBytePtr) (AH);
        vmin = (*AH->ReadBytePtr) (AH);
 
-       if (vmaj > 1 || (vmaj == 1 && vmin > 0))        /* Version > 1.0 */
+       if (vmaj > 1 || (vmaj == 1 && vmin > 0))    /* Version > 1.0 */
            vrev = (*AH->ReadBytePtr) (AH);
        else
            vrev = 0;
index 3ee75f0b6e7315d4329c38d1a846a9a3afbb388e..6123859132989e01eead3e0f0a740bc511082896 100644 (file)
@@ -75,23 +75,23 @@ typedef z_stream *z_streamp;
 
 /* Historical version numbers (checked in code) */
 #define K_VERS_1_0 MAKE_ARCHIVE_VERSION(1, 0, 0)
-#define K_VERS_1_2 MAKE_ARCHIVE_VERSION(1, 2, 0)       /* Allow No ZLIB */
-#define K_VERS_1_3 MAKE_ARCHIVE_VERSION(1, 3, 0)       /* BLOBs */
-#define K_VERS_1_4 MAKE_ARCHIVE_VERSION(1, 4, 0)       /* Date & name in header */
-#define K_VERS_1_5 MAKE_ARCHIVE_VERSION(1, 5, 0)       /* Handle dependencies */
-#define K_VERS_1_6 MAKE_ARCHIVE_VERSION(1, 6, 0)       /* Schema field in TOCs */
-#define K_VERS_1_7 MAKE_ARCHIVE_VERSION(1, 7, 0)       /* File Offset size in
-                                                        * header */
-#define K_VERS_1_8 MAKE_ARCHIVE_VERSION(1, 8, 0)       /* change interpretation
-                                                        * of ID numbers and
-                                                        * dependencies */
-#define K_VERS_1_9 MAKE_ARCHIVE_VERSION(1, 9, 0)       /* add default_with_oids
-                                                        * tracking */
-#define K_VERS_1_10 MAKE_ARCHIVE_VERSION(1, 10, 0)     /* add tablespace */
-#define K_VERS_1_11 MAKE_ARCHIVE_VERSION(1, 11, 0)     /* add toc section
-                                                        * indicator */
-#define K_VERS_1_12 MAKE_ARCHIVE_VERSION(1, 12, 0)     /* add separate BLOB
-                                                        * entries */
+#define K_VERS_1_2 MAKE_ARCHIVE_VERSION(1, 2, 0)   /* Allow No ZLIB */
+#define K_VERS_1_3 MAKE_ARCHIVE_VERSION(1, 3, 0)   /* BLOBs */
+#define K_VERS_1_4 MAKE_ARCHIVE_VERSION(1, 4, 0)   /* Date & name in header */
+#define K_VERS_1_5 MAKE_ARCHIVE_VERSION(1, 5, 0)   /* Handle dependencies */
+#define K_VERS_1_6 MAKE_ARCHIVE_VERSION(1, 6, 0)   /* Schema field in TOCs */
+#define K_VERS_1_7 MAKE_ARCHIVE_VERSION(1, 7, 0)   /* File Offset size in
+                                                    * header */
+#define K_VERS_1_8 MAKE_ARCHIVE_VERSION(1, 8, 0)   /* change interpretation
+                                                    * of ID numbers and
+                                                    * dependencies */
+#define K_VERS_1_9 MAKE_ARCHIVE_VERSION(1, 9, 0)   /* add default_with_oids
+                                                    * tracking */
+#define K_VERS_1_10 MAKE_ARCHIVE_VERSION(1, 10, 0) /* add tablespace */
+#define K_VERS_1_11 MAKE_ARCHIVE_VERSION(1, 11, 0) /* add toc section
+                                                    * indicator */
+#define K_VERS_1_12 MAKE_ARCHIVE_VERSION(1, 12, 0) /* add separate BLOB
+                                                    * entries */
 
 /* Current archive version number (the format we can output) */
 #define K_VERS_MAJOR 1
@@ -217,8 +217,8 @@ struct _archiveHandle
 
    char       *archiveRemoteVersion;   /* When reading an archive, the
                                         * version of the dumped DB */
-   char       *archiveDumpVersion;     /* When reading an archive, the
-                                        * version of the dumper */
+   char       *archiveDumpVersion; /* When reading an archive, the version of
+                                    * the dumper */
 
    int         debugLevel;     /* Used for logging (currently only by
                                 * --verbose) */
@@ -242,25 +242,24 @@ struct _archiveHandle
    size_t      lookaheadLen;   /* Length of data in lookahead */
    pgoff_t     lookaheadPos;   /* Current read position in lookahead buffer */
 
-   ArchiveEntryPtrType ArchiveEntryPtr;        /* Called for each metadata
-                                                * object */
-   StartDataPtrType StartDataPtr;      /* Called when table data is about to
-                                        * be dumped */
-   WriteDataPtrType WriteDataPtr;      /* Called to send some table data to
-                                        * the archive */
+   ArchiveEntryPtrType ArchiveEntryPtr;    /* Called for each metadata object */
+   StartDataPtrType StartDataPtr;  /* Called when table data is about to be
+                                    * dumped */
+   WriteDataPtrType WriteDataPtr;  /* Called to send some table data to the
+                                    * archive */
    EndDataPtrType EndDataPtr;  /* Called when table data dump is finished */
-   WriteBytePtrType WriteBytePtr;      /* Write a byte to output */
+   WriteBytePtrType WriteBytePtr;  /* Write a byte to output */
    ReadBytePtrType ReadBytePtr;    /* Read a byte from an archive */
    WriteBufPtrType WriteBufPtr;    /* Write a buffer of output to the archive */
    ReadBufPtrType ReadBufPtr;  /* Read a buffer of input from the archive */
    ClosePtrType ClosePtr;      /* Close the archive */
    ReopenPtrType ReopenPtr;    /* Reopen the archive */
-   WriteExtraTocPtrType WriteExtraTocPtr;      /* Write extra TOC entry data
-                                                * associated with the current
-                                                * archive format */
-   ReadExtraTocPtrType ReadExtraTocPtr;        /* Read extra info associated
-                                                * with archive format */
-   PrintExtraTocPtrType PrintExtraTocPtr;      /* Extra TOC info for format */
+   WriteExtraTocPtrType WriteExtraTocPtr;  /* Write extra TOC entry data
+                                            * associated with the current
+                                            * archive format */
+   ReadExtraTocPtrType ReadExtraTocPtr;    /* Read extra info associated with
+                                            * archive format */
+   PrintExtraTocPtrType PrintExtraTocPtr;  /* Extra TOC info for format */
    PrintTocDataPtrType PrintTocDataPtr;
 
    StartBlobsPtrType StartBlobsPtr;
@@ -275,7 +274,7 @@ struct _archiveHandle
    ClonePtrType ClonePtr;      /* Clone format-specific fields */
    DeClonePtrType DeClonePtr;  /* Clean up cloned fields */
 
-   CustomOutPtrType CustomOutPtr;      /* Alternative script output routine */
+   CustomOutPtrType CustomOutPtr;  /* Alternative script output routine */
 
    /* Stuff for direct DB connection */
    char       *archdbname;     /* DB name *read* from archive */
index a2b320f3710ce249d89c197ec0bd283b5a59f606..22ff8413d37cae05c6170c1456f25b55100eb1a6 100644 (file)
@@ -1193,7 +1193,7 @@ _tarPositionTo(ArchiveHandle *AH, const char *filename)
                          th->targetFile, filename);
 
        /* Header doesn't match, so read to next header */
-       len = ((th->fileLen + 511) & ~511);     /* Padded length */
+       len = ((th->fileLen + 511) & ~511); /* Padded length */
        blks = len >> 9;        /* # of 512 byte blocks */
 
        for (i = 0; i < blks; i++)
index 04b53f496e742da71dae8ab7a07471249b2a0101..14661a116037e5ecf932f5711159f6bf66aac504 100644 (file)
@@ -35,4 +35,4 @@ extern void exit_nicely(int code) pg_attribute_noreturn();
 
 extern void exit_horribly(const char *modulename, const char *fmt,...) pg_attribute_printf(2, 3) pg_attribute_noreturn();
 
-#endif   /* PG_BACKUP_UTILS_H */
+#endif                         /* PG_BACKUP_UTILS_H */
index 1bec66ebbb60e7c8cbc9014b3809488594af4e05..e03fdebecb2b2c0c34192c256ab16ae6241dfd91 100644 (file)
@@ -2103,8 +2103,8 @@ refreshMatViewData(Archive *fout, TableDataInfo *tdinfo)
 
    if (tdinfo->dobj.dump & DUMP_COMPONENT_DATA)
        ArchiveEntry(fout,
-                    tdinfo->dobj.catId,        /* catalog ID */
-                    tdinfo->dobj.dumpId,       /* dump ID */
+                    tdinfo->dobj.catId,    /* catalog ID */
+                    tdinfo->dobj.dumpId,   /* dump ID */
                     tbinfo->dobj.name, /* Name */
                     tbinfo->dobj.namespace->dobj.name, /* Namespace */
                     NULL,      /* Tablespace */
@@ -2116,7 +2116,7 @@ refreshMatViewData(Archive *fout, TableDataInfo *tdinfo)
                     "",        /* Del */
                     NULL,      /* Copy */
                     tdinfo->dobj.dependencies, /* Deps */
-                    tdinfo->dobj.nDeps,        /* # Deps */
+                    tdinfo->dobj.nDeps,    /* # Deps */
                     NULL,      /* Dumper */
                     NULL);     /* Dumper Arg */
 
@@ -2610,7 +2610,7 @@ dumpDatabase(Archive *fout)
                 dba,           /* Owner */
                 false,         /* with oids */
                 "DATABASE",    /* Desc */
-                SECTION_PRE_DATA,      /* Section */
+                SECTION_PRE_DATA,  /* Section */
                 creaQry->data, /* Create */
                 delQry->data,  /* Del */
                 NULL,          /* Copy */
@@ -5211,8 +5211,8 @@ getAggregates(Archive *fout, int *numAggs)
        if (strlen(agginfo[i].aggfn.rolname) == 0)
            write_msg(NULL, "WARNING: owner of aggregate function \"%s\" appears to be invalid\n",
                      agginfo[i].aggfn.dobj.name);
-       agginfo[i].aggfn.lang = InvalidOid;     /* not currently interesting */
-       agginfo[i].aggfn.prorettype = InvalidOid;       /* not saved */
+       agginfo[i].aggfn.lang = InvalidOid; /* not currently interesting */
+       agginfo[i].aggfn.prorettype = InvalidOid;   /* not saved */
        agginfo[i].aggfn.proacl = pg_strdup(PQgetvalue(res, i, i_aggacl));
        agginfo[i].aggfn.rproacl = pg_strdup(PQgetvalue(res, i, i_raggacl));
        agginfo[i].aggfn.initproacl = pg_strdup(PQgetvalue(res, i, i_initaggacl));
@@ -6210,7 +6210,7 @@ getTables(Archive *fout, int *numTables)
 
        tblinfo[i].interesting = tblinfo[i].dobj.dump ? true : false;
        tblinfo[i].dummy_view = false;  /* might get set during sort */
-       tblinfo[i].postponed_def = false;       /* might get set during sort */
+       tblinfo[i].postponed_def = false;   /* might get set during sort */
 
        tblinfo[i].is_identity_sequence = (i_is_identity_sequence >= 0 &&
               strcmp(PQgetvalue(res, i, i_is_identity_sequence), "t") == 0);
@@ -11212,7 +11212,7 @@ dumpFunc(Archive *fout, FuncInfo *finfo)
    PQExpBuffer asPart;
    PGresult   *res;
    char       *funcsig;        /* identity signature */
-   char       *funcfullsig = NULL;     /* full signature */
+   char       *funcfullsig = NULL; /* full signature */
    char       *funcsig_tag;
    char       *proretset;
    char       *prosrc;
@@ -13300,7 +13300,7 @@ dumpAgg(Archive *fout, AggInfo *agginfo)
    PQExpBuffer labelq;
    PQExpBuffer details;
    char       *aggsig;         /* identity signature */
-   char       *aggfullsig = NULL;      /* full signature */
+   char       *aggfullsig = NULL;  /* full signature */
    char       *aggsig_tag;
    PGresult   *res;
    int         i_aggtransfn;
index 4afffc0690daf22b09d5a10fcdc75fb979922070..e7593e6da7fc324bfd16a264ebe92f70982dfc4c 100644 (file)
@@ -133,7 +133,7 @@ typedef struct _dumpableObject
    char       *name;           /* object name (should never be NULL) */
    struct _namespaceInfo *namespace;   /* containing namespace, or NULL */
    DumpComponents dump;        /* bitmask of components to dump */
-   DumpComponents dump_contains;       /* as above, but for contained objects */
+   DumpComponents dump_contains;   /* as above, but for contained objects */
    bool        ext_member;     /* true if object is member of extension */
    DumpId     *dependencies;   /* dumpIds of objects this one depends on */
    int         nDeps;          /* number of valid dependencies */
@@ -271,7 +271,7 @@ typedef struct _tableInfo
    char       *reltablespace;  /* relation tablespace */
    char       *reloptions;     /* options specified by WITH (...) */
    char       *checkoption;    /* WITH CHECK OPTION, if any */
-   char       *toast_reloptions;       /* WITH options for the TOAST table */
+   char       *toast_reloptions;   /* WITH options for the TOAST table */
    bool        hasindex;       /* does it have any indexes? */
    bool        hasrules;       /* does it have any rules? */
    bool        hastriggers;    /* does it have any triggers? */
@@ -317,7 +317,7 @@ typedef struct _tableInfo
    char      **attfdwoptions;  /* per-attribute fdw options */
    bool       *notnull;        /* NOT NULL constraints on attributes */
    bool       *inhNotNull;     /* true if NOT NULL is inherited */
-   struct _attrDefInfo **attrdefs;     /* DEFAULT expressions */
+   struct _attrDefInfo **attrdefs; /* DEFAULT expressions */
    struct _constraintInfo *checkexprs; /* CHECK constraints */
    char       *partkeydef;     /* partition key definition */
    char       *partbound;      /* partition bound definition */
@@ -328,9 +328,9 @@ typedef struct _tableInfo
     */
    int         numParents;     /* number of (immediate) parent tables */
    struct _tableInfo **parents;    /* TableInfos of immediate parents */
-   struct _tableDataInfo *dataObj;     /* TableDataInfo, if dumping its data */
+   struct _tableDataInfo *dataObj; /* TableDataInfo, if dumping its data */
    int         numTriggers;    /* number of triggers for table */
-   struct _triggerInfo *triggers;      /* array of TriggerInfo structs */
+   struct _triggerInfo *triggers;  /* array of TriggerInfo structs */
 } TableInfo;
 
 typedef struct _attrDefInfo
@@ -712,4 +712,4 @@ extern void getPublicationTables(Archive *fout, TableInfo tblinfo[],
                     int numTables);
 extern void getSubscriptions(Archive *fout);
 
-#endif   /* PG_DUMP_H */
+#endif                         /* PG_DUMP_H */
index d29723c171cbf883e9db62baef02a35ce4256977..5044a767873e61a840108de8d397124340319dfc 100644 (file)
@@ -360,7 +360,7 @@ sortDumpableObjects(DumpableObject **objs, int numObjs,
 static bool
 TopoSort(DumpableObject **objs,
         int numObjs,
-        DumpableObject **ordering,     /* output argument */
+        DumpableObject **ordering, /* output argument */
         int *nOrdering)        /* output argument */
 {
    DumpId      maxDumpId = getMaxDumpId();
index 7f010675815b1a58afaba4147872ac75858d8eda..27c5309f63dc067851acedf577328bf0f1b9984c 100644 (file)
@@ -57,7 +57,7 @@
 #include "pg_getopt.h"
 
 
-static ControlFileData ControlFile;        /* pg_control values */
+static ControlFileData ControlFile; /* pg_control values */
 static XLogSegNo newXlogSegNo; /* new XLOG segment # */
 static bool guessed = false;   /* T if we had to guess at any values */
 static const char *progname;
@@ -834,7 +834,7 @@ static void
 RewriteControlFile(void)
 {
    int         fd;
-   char        buffer[PG_CONTROL_SIZE];        /* need not be aligned */
+   char        buffer[PG_CONTROL_SIZE];    /* need not be aligned */
 
    /*
     * Adjust fields as needed to force an empty XLOG starting at
index 347d4e4d4ca70a531716f50872156e40da441073..f7ac5b30b5efdafe953d3806ed6df5fcfb5dc061 100644 (file)
@@ -137,7 +137,7 @@ recurse_dir(const char *datadir, const char *parentpath,
 #else
            pg_fatal("\"%s\" is a symbolic link, but symbolic links are not supported on this platform\n",
                     fullpath);
-#endif   /* HAVE_READLINK */
+#endif                         /* HAVE_READLINK */
        }
    }
 
index 15ebd68b2734d469597debca5ad6e08314f9fc5b..db991c16dfcb460a854ddf8b4702776f4932a02b 100644 (file)
@@ -27,4 +27,4 @@ extern datapagemap_iterator_t *datapagemap_iterate(datapagemap_t *map);
 extern bool datapagemap_next(datapagemap_iterator_t *iter, BlockNumber *blkno);
 extern void datapagemap_print(datapagemap_t *map);
 
-#endif   /* DATAPAGEMAP_H */
+#endif                         /* DATAPAGEMAP_H */
index ccb2dab3e9ad880f436f4b17ace8e2fed9df8fe7..1e08f76b3e942994ac2ff596efe65febbd7252b2 100644 (file)
@@ -41,4 +41,4 @@ extern void copy_executeFileMap(filemap_t *map);
 typedef void (*process_file_callback_t) (const char *path, file_type_t type, size_t size, const char *link_target);
 extern void traverse_datadir(const char *datadir, process_file_callback_t callback);
 
-#endif   /* FETCH_H */
+#endif                         /* FETCH_H */
index d247f3dc6566c0b75f920fdf58db7a3ddf92de64..f9aea52d6d9eee78475d05e917bb204478174c25 100644 (file)
@@ -21,4 +21,4 @@ extern void remove_target(file_entry_t *t);
 
 extern char *slurpFile(const char *datadir, const char *path, size_t *filesize);
 
-#endif   /* FILE_OPS_H */
+#endif                         /* FILE_OPS_H */
index 3431047bf7d2ca2fca51df0b30c6680bda4565d5..6c97fa74d1c8fecdc25479a3c3fe53469a8374cf 100644 (file)
@@ -102,4 +102,4 @@ extern void process_block_change(ForkNumber forknum, RelFileNode rnode,
                     BlockNumber blkno);
 extern void filemap_finalize(void);
 
-#endif   /* FILEMAP_H */
+#endif                         /* FILEMAP_H */
index c2f468910471c923cf2788d700ee8dfede9ef175..c6651940500ec369a51b1c9ff7c555c0d4d2bf4a 100644 (file)
@@ -32,4 +32,4 @@ extern void pg_fatal(const char *fmt,...) pg_attribute_printf(1, 2) pg_attribute
 
 extern void progress_report(bool force);
 
-#endif   /* PG_REWIND_LOGGING_H */
+#endif                         /* PG_REWIND_LOGGING_H */
index 622dc6d1351d61c15d948ef7ef4aaeb62d946786..5526ff96c73e1edef7fb8c92fd58c5d34dbd3452 100644 (file)
@@ -596,7 +596,7 @@ createBackupLabel(XLogRecPtr startpoint, TimeLineID starttli, XLogRecPtr checkpo
        pg_fatal("backup label buffer too small\n");    /* shouldn't happen */
 
    /* TODO: move old file out of the way, if any. */
-   open_target_file("backup_label", true);     /* BACKUP_LABEL_FILE */
+   open_target_file("backup_label", true); /* BACKUP_LABEL_FILE */
    write_target_range(buf, 0, len);
    close_target_file();
 }
index 524478a72bb1cd9534dcbc74e6972da957ff6691..31353dd35488c285db143307607e931ce9e4b0aa 100644 (file)
@@ -43,4 +43,4 @@ extern XLogRecPtr readOneRecord(const char *datadir, XLogRecPtr ptr,
 extern TimeLineHistoryEntry *rewind_parseTimeLineHistory(char *buffer,
                            TimeLineID targetTLI, int *nentries);
 
-#endif   /* PG_REWIND_H */
+#endif                         /* PG_REWIND_H */
index 50897e7b7a29bed29ff391476b547243ca30dc5c..eb925d1e0fcf36b8841686d731434724965c94d7 100644 (file)
@@ -89,7 +89,7 @@ copyFile(const char *src, const char *dst,
                 schemaName, relName, src, dst, strerror(errno));
    }
 
-#endif   /* WIN32 */
+#endif                         /* WIN32 */
 }
 
 
index e3a577a7823e16c1a52568377c464d6b6f692589..c0beb5f4cb976d59fbad9b30ae812e06cf3228b5 100644 (file)
@@ -183,8 +183,8 @@ typedef struct
 {
    Oid         db_oid;         /* oid of the database */
    char       *db_name;        /* database name */
-   char        db_tablespace[MAXPGPATH];       /* database default tablespace
-                                                * path */
+   char        db_tablespace[MAXPGPATH];   /* database default tablespace
+                                            * path */
    char       *db_collate;
    char       *db_ctype;
    int         db_encoding;
@@ -272,7 +272,7 @@ typedef struct
    uint32      major_version;  /* PG_VERSION of cluster */
    char        major_version_str[64];  /* string PG_VERSION of cluster */
    uint32      bin_version;    /* version returned from pg_ctl */
-   const char *tablespace_suffix;      /* directory specification */
+   const char *tablespace_suffix;  /* directory specification */
 } ClusterInfo;
 
 
index 2578d4b692081d9c9630d366302805a4c92059ee..f024a17f29a95a02e291d3b95e207d851293a79b 100644 (file)
@@ -132,7 +132,7 @@ split_path(const char *path, char **dir, char **fname)
    if (sep != NULL)
    {
        *dir = pg_strdup(path);
-       (*dir)[(sep - path) + 1] = '\0';        /* no strndup */
+       (*dir)[(sep - path) + 1] = '\0';    /* no strndup */
        *fname = pg_strdup(sep + 1);
    }
    /* local directory */
index 2fa60d90ad8d2f1f73785ccfa81c283d469967ad..d5f6923e5ce901634401bc1630f58d1be0a4d71b 100644 (file)
@@ -19,4 +19,4 @@ typedef struct RmgrDescData
 
 extern const RmgrDescData RmgrDescTable[];
 
-#endif   /* RMGRDESC_H */
+#endif                         /* RMGRDESC_H */
index e420b37e39da0d4cc1000e8206ad1b25dbcc07ca..3bd33f2d520bb5f90bedd01bf44318416c540db7 100644 (file)
@@ -29,7 +29,7 @@
 
 #ifdef WIN32
 #define FD_SETSIZE 1024            /* set before winsock2.h is included */
-#endif   /* ! WIN32 */
+#endif                         /* ! WIN32 */
 
 #include "postgres_fe.h"
 
@@ -93,7 +93,7 @@ static int    pthread_join(pthread_t th, void **thread_return);
 #define LOG_STEP_SECONDS   5   /* seconds between log messages */
 #define DEFAULT_NXACTS 10      /* default nxacts */
 
-#define MIN_GAUSSIAN_PARAM     2.0     /* minimum parameter for gauss */
+#define MIN_GAUSSIAN_PARAM     2.0 /* minimum parameter for gauss */
 
 int            nxacts = 0;         /* number of transactions per client */
 int            duration = 0;       /* duration in seconds */
@@ -342,8 +342,8 @@ typedef struct
    pthread_t   thread;         /* thread handle */
    CState     *state;          /* array of CState */
    int         nstate;         /* length of state[] */
-   unsigned short random_state[3];     /* separate randomness for each thread */
-   int64       throttle_trigger;       /* previous/next throttling (us) */
+   unsigned short random_state[3]; /* separate randomness for each thread */
+   int64       throttle_trigger;   /* previous/next throttling (us) */
    FILE       *logfile;        /* where to log, or NULL */
 
    /* per thread collected stats */
@@ -605,7 +605,7 @@ strtoint64(const char *str)
    {
        int64       tmp = result * 10 + (*ptr++ - '0');
 
-       if ((tmp / 10) != result)       /* overflow? */
+       if ((tmp / 10) != result)   /* overflow? */
            fprintf(stderr, "value \"%s\" is out of range for type bigint\n", str);
        result = tmp;
    }
@@ -2235,7 +2235,7 @@ doCustom(TState *thread, CState *st, StatsData *agg)
                                st->state = CSTATE_FINISHED;
                                break;
                            }
-                           else if (!ret)      /* on error */
+                           else if (!ret)  /* on error */
                            {
                                commandFailed(st, "execution of meta-command 'setshell' failed");
                                st->state = CSTATE_ABORTED;
@@ -2255,7 +2255,7 @@ doCustom(TState *thread, CState *st, StatsData *agg)
                                st->state = CSTATE_FINISHED;
                                break;
                            }
-                           else if (!ret)      /* on error */
+                           else if (!ret)  /* on error */
                            {
                                commandFailed(st, "execution of meta-command 'shell' failed");
                                st->state = CSTATE_ABORTED;
@@ -3029,7 +3029,7 @@ process_backslash_command(PsqlScanState sstate, const char *source)
    Command    *my_command;
    PQExpBufferData word_buf;
    int         word_offset;
-   int         offsets[MAX_ARGS];      /* offsets of argument words */
+   int         offsets[MAX_ARGS];  /* offsets of argument words */
    int         start_offset,
                end_offset;
    int         lineno;
@@ -3649,8 +3649,8 @@ main(int argc, char **argv)
    };
 
    int         c;
-   int         is_init_mode = 0;       /* initialize mode? */
-   int         is_no_vacuum = 0;       /* no vacuum at all before testing? */
+   int         is_init_mode = 0;   /* initialize mode? */
+   int         is_no_vacuum = 0;   /* no vacuum at all before testing? */
    int         do_vacuum_accounts = 0; /* do vacuum accounts before testing? */
    int         optindex;
    bool        scale_given = false;
@@ -3749,7 +3749,7 @@ main(int argc, char **argv)
                if (getrlimit(RLIMIT_NOFILE, &rlim) == -1)
 #else                          /* but BSD doesn't ... */
                if (getrlimit(RLIMIT_OFILE, &rlim) == -1)
-#endif   /* RLIMIT_NOFILE */
+#endif                         /* RLIMIT_NOFILE */
                {
                    fprintf(stderr, "getrlimit failed: %s\n", strerror(errno));
                    exit(1);
@@ -3761,7 +3761,7 @@ main(int argc, char **argv)
                    fprintf(stderr, "Reduce number of clients, or use limit/ulimit to increase the system limit.\n");
                    exit(1);
                }
-#endif   /* HAVE_GETRLIMIT */
+#endif                         /* HAVE_GETRLIMIT */
                break;
            case 'j':           /* jobs */
                benchmarking_option_set = true;
@@ -3778,7 +3778,7 @@ main(int argc, char **argv)
                    fprintf(stderr, "threads are not supported on this platform; use -j1\n");
                    exit(1);
                }
-#endif   /* !ENABLE_THREAD_SAFETY */
+#endif                         /* !ENABLE_THREAD_SAFETY */
                break;
            case 'C':
                benchmarking_option_set = true;
@@ -4315,7 +4315,7 @@ main(int argc, char **argv)
        end_time = INSTR_TIME_GET_MICROSEC(threads[0].start_time) +
            (int64) 1000000 * duration;
    threads[0].thread = INVALID_THREAD;
-#endif   /* ENABLE_THREAD_SAFETY */
+#endif                         /* ENABLE_THREAD_SAFETY */
 
    /* wait for threads and accumulate results */
    initStats(&stats, 0);
@@ -4333,7 +4333,7 @@ main(int argc, char **argv)
            pthread_join(thread->thread, NULL);
 #else
        (void) threadRun(thread);
-#endif   /* ENABLE_THREAD_SAFETY */
+#endif                         /* ENABLE_THREAD_SAFETY */
 
        /* aggregate thread level stats */
        mergeSimpleStats(&stats.latency, &thread->stats.latency);
@@ -4370,7 +4370,7 @@ threadRun(void *arg)
    instr_time  start,
                end;
    int         nstate = thread->nstate;
-   int         remains = nstate;       /* number of remaining clients */
+   int         remains = nstate;   /* number of remaining clients */
    int         i;
 
    /* for reporting progress: */
@@ -4441,7 +4441,7 @@ threadRun(void *arg)
        fd_set      input_mask;
        int         maxsock;    /* max socket number to be waited for */
        int64       min_usec;
-       int64       now_usec = 0;       /* set this only if needed */
+       int64       now_usec = 0;   /* set this only if needed */
 
        /* identify which client sockets should be checked for input */
        FD_ZERO(&input_mask);
@@ -4825,4 +4825,4 @@ pthread_join(pthread_t th, void **thread_return)
    return 0;
 }
 
-#endif   /* WIN32 */
+#endif                         /* WIN32 */
index 38b3af5ab19bd33826444be99625db2393e04877..abc13e9463423714ac70968a4fd8e243b4d995e5 100644 (file)
@@ -137,4 +137,4 @@ extern void syntax_error(const char *source, int lineno, const char *line,
 
 extern int64 strtoint64(const char *str);
 
-#endif   /* PGBENCH_H */
+#endif                         /* PGBENCH_H */
index b3263a9570afc56dc96fc4885e19d8083b626496..7faf5bc582d1ec98dae99b794ce766fa1de9d341 100644 (file)
@@ -563,7 +563,7 @@ exec_command_cd(PsqlScanState scan_state, bool active_branch, const char *cmd)
             * directory, so if someone wants to code this here instead...
             */
            dir = "/";
-#endif   /* WIN32 */
+#endif                         /* WIN32 */
        }
 
        if (chdir(dir) == -1)
index e8ea8473e848e84713919a8e02e9b64650885cce..7aedd0d6252dea6655a7ca9765b34741188629bb 100644 (file)
@@ -43,4 +43,4 @@ extern void SyncVariables(void);
 
 extern void UnsyncVariables(void);
 
-#endif   /* COMMAND_H */
+#endif                         /* COMMAND_H */
index a2f1259c1e250a91fdfafa70ae4bd97effdb975a..044cdb82a7acac8e168a966d86e3e6e8aec637f6 100644 (file)
@@ -377,7 +377,7 @@ setup_cancel_handler(void)
 
    SetConsoleCtrlHandler(consoleHandler, TRUE);
 }
-#endif   /* WIN32 */
+#endif                         /* WIN32 */
 
 
 /* ConnectionUp
index 1ceb8ae386c3658b71067a826b09631aa2a5e153..f34868b54e4e6b262145f0bbe3b944afaf66179c 100644 (file)
@@ -46,4 +46,4 @@ extern void expand_tilde(char **filename);
 
 extern bool recognized_connection_string(const char *connstr);
 
-#endif   /* COMMON_H */
+#endif                         /* COMMON_H */
index 00fbe90ed0568d6e4bec676df56618e8504f8fe2..0957627742571ff4008f207321b9a30c0cfbe180 100644 (file)
@@ -80,4 +80,4 @@ extern void conditional_stack_set_paren_depth(ConditionalStack cstack, int depth
 
 extern int conditional_stack_get_paren_depth(ConditionalStack cstack);
 
-#endif   /* CONDITIONAL_H */
+#endif                         /* CONDITIONAL_H */
index 12a50d215c0c2d97d461e572b523bed3fb686dbf..cd2e656911f43a08eded1021706cd5b18f15cd57 100644 (file)
@@ -102,7 +102,7 @@ parse_slash_copy(const char *args)
 
    result = pg_malloc0(sizeof(struct copy_options));
 
-   result->before_tofrom = pg_strdup("");      /* initialize for appending */
+   result->before_tofrom = pg_strdup("");  /* initialize for appending */
 
    token = strtokx(args, whitespace, ".,()", "\"",
                    0, false, false, pset.encoding);
index 97c72a5139757966a8bd7a43d8b8e981f9264a19..ad63ddef509f3469a6c9e3d0719ba9bf10dffba8 100644 (file)
@@ -24,4 +24,4 @@
 /* prototypes */
 extern bool PrintResultsInCrosstab(const PGresult *res);
 
-#endif   /* CROSSTABVIEW_H */
+#endif                         /* CROSSTABVIEW_H */
index 83c133534cf5d12987cc8763d6b1286539bd6b48..17bfedb4338fcf361b5be0c29644f4fd9e69dee2 100644 (file)
@@ -3391,7 +3391,7 @@ listTables(const char *tabtypes, const char *pattern, bool verbose, bool showSys
    if (showSeq)
        appendPQExpBufferStr(&buf, CppAsString2(RELKIND_SEQUENCE) ",");
    if (showSystem || pattern)
-       appendPQExpBufferStr(&buf, "'s',");     /* was RELKIND_SPECIAL */
+       appendPQExpBufferStr(&buf, "'s',"); /* was RELKIND_SPECIAL */
    if (showForeign)
        appendPQExpBufferStr(&buf, CppAsString2(RELKIND_FOREIGN_TABLE) ",");
 
index b05d6bb97620bc5b7ef39fd26e360ccf9678ee8b..14a5667f3e2c31f6aa3c1093030a56ac18d22d57 100644 (file)
@@ -111,4 +111,4 @@ bool        describePublications(const char *pattern);
 /* \dRs */
 bool       describeSubscriptions(const char *pattern, bool verbose);
 
-#endif   /* DESCRIBE_H */
+#endif                         /* DESCRIBE_H */
index f097b06594a707aadf2d5a3ceb97ffc4580377f9..f6acf87197110f972b07da72dd16729266ab4fef 100644 (file)
@@ -515,7 +515,7 @@ helpSQL(const char *topic, unsigned short int pager)
                    while (topic[j] != ' ' && j++ <= len)
                        wordlen++;
                }
-               if (wordlen >= len)     /* Don't try again if the same word */
+               if (wordlen >= len) /* Don't try again if the same word */
                {
                    if (!output)
                        output = PageOutput(nl_count, pager ? &(pset.popt.topt) : NULL);
index b8c9a00b099885b07eaa22b52b51bf858919945d..62f5f7738391e38e6d1cff1c8d55d8aab19f7b9b 100644 (file)
@@ -333,7 +333,7 @@ decode_history(void)
    }
    END_ITERATE_HISTORY();
 }
-#endif   /* USE_READLINE */
+#endif                         /* USE_READLINE */
 
 
 /*
index f40561459d760ce580508458d80e3f76531c6f6b..35886dae22ad092ade8f68814a41b98ce11be5ec 100644 (file)
@@ -32,8 +32,8 @@
 #if defined(HAVE_HISTORY_H)
 #include 
 #endif
-#endif   /* HAVE_READLINE_READLINE_H, etc */
-#endif   /* HAVE_LIBREADLINE */
+#endif                         /* HAVE_READLINE_READLINE_H, etc */
+#endif                         /* HAVE_LIBREADLINE */
 
 #include "pqexpbuffer.h"
 
@@ -48,4 +48,4 @@ extern bool printHistory(const char *fname, unsigned short int pager);
 extern void pg_append_history(const char *s, PQExpBuffer history_buf);
 extern void pg_send_history(PQExpBuffer history_buf);
 
-#endif   /* INPUT_H */
+#endif                         /* INPUT_H */
index 7d74d5fdb71299bbe70d41e0ccfd8681c3c02a00..5750b5d9ccc97d72730d147ec4d3862b0ff9ea8d 100644 (file)
@@ -13,4 +13,4 @@ bool      do_lo_import(const char *filename_arg, const char *comment_arg);
 bool       do_lo_unlink(const char *loid_arg);
 bool       do_lo_list(void);
 
-#endif   /* LARGE_OBJ_H */
+#endif                         /* LARGE_OBJ_H */
index 67e922fa94d9de8c9af2779c8a3cf80124a068a6..e35b9077649b34bf9a742c80b239d223e88c1422 100644 (file)
@@ -36,7 +36,7 @@ MainLoop(FILE *source)
 {
    PsqlScanState scan_state;   /* lexer working state */
    ConditionalStack cond_stack;    /* \if status stack */
-   volatile PQExpBuffer query_buf;     /* buffer for query being accumulated */
+   volatile PQExpBuffer query_buf; /* buffer for query being accumulated */
    volatile PQExpBuffer previous_buf;  /* if there isn't anything in the new
                                         * buffer yet, use this one for \e,
                                         * etc. */
index 228a5e085eb28c2ac8aa0d269996603b3c06a380..8ef8cc1bd68af92664f79188e6cf35289a1c0327 100644 (file)
@@ -14,4 +14,4 @@ extern const PsqlScanCallbacks psqlscan_callbacks;
 
 extern int MainLoop(FILE *source);
 
-#endif   /* MAINLOOP_H */
+#endif                         /* MAINLOOP_H */
index e502ff3f6e61292a8726a95959eae56c1d302675..913b23e4cd86a584e8305100c8ace9fae32cac4d 100644 (file)
@@ -310,7 +310,7 @@ get_prompt(promptStatus_t status, ConditionalStack cstack)
                     */
                    buf[0] = (*p == '[') ? RL_PROMPT_START_IGNORE : RL_PROMPT_END_IGNORE;
                    buf[1] = '\0';
-#endif   /* USE_READLINE */
+#endif                         /* USE_READLINE */
                    break;
 
                default:
index b3d2d98fd7df03ec7dcb6f692258fcb9cc17f83e..a7a95effb485f26be1b58bb62fb04e1f1a7f4603 100644 (file)
@@ -14,4 +14,4 @@
 
 char      *get_prompt(promptStatus_t status, ConditionalStack cstack);
 
-#endif   /* PROMPT_H */
+#endif                         /* PROMPT_H */
index 70ff1812c8fc67f1dc42da15b532c298464f01cc..b78f151acd8879bcd8864482d2196caf88968b66 100644 (file)
@@ -86,7 +86,7 @@ typedef struct _psqlSettings
 
    FILE       *copyStream;     /* Stream to read/write for \copy command */
 
-   PGresult   *last_error_result;      /* most recent error result, if any */
+   PGresult   *last_error_result;  /* most recent error result, if any */
 
    printQueryOpt popt;
 
index 751ef913f08508c21527b31da1a115dec1004994..7f767976a5b76805d10c58f74f12fe4e7d44b925 100644 (file)
@@ -12,7 +12,7 @@
 #else                          /* WIN32 */
 #include 
 #include 
-#endif   /* WIN32 */
+#endif                         /* WIN32 */
 
 #include "getopt_long.h"
 
index 360ee030a111f1a1cc36f07a28da50a9a8d3eb00..213473f9199fe5d52c9c5f3a696aab92f20b409e 100644 (file)
@@ -24,4 +24,4 @@ extern void strip_quotes(char *source, char quote, char escape, int encoding);
 extern char *quote_if_needed(const char *source, const char *entails_quote,
                char quote, char escape, int encoding);
 
-#endif   /* STRINGUTILS_H */
+#endif                         /* STRINGUTILS_H */
index 4ef8ed47351c355477374ce9a72ce4595f889fe4..20c41b7ce51b687e68f9d6e4f028822fb4edc712 100644 (file)
@@ -131,8 +131,8 @@ static int  completion_max_records;
  */
 static const char *completion_charp;   /* to pass a string */
 static const char *const *completion_charpp;   /* to pass a list of strings */
-static const char *completion_info_charp;      /* to pass a second string */
-static const char *completion_info_charp2;     /* to pass a third string */
+static const char *completion_info_charp;  /* to pass a second string */
+static const char *completion_info_charp2; /* to pass a third string */
 static const SchemaQuery *completion_squery;   /* to pass a SchemaQuery */
 static bool completion_case_sensitive; /* completion is case sensitive */
 
@@ -1043,8 +1043,8 @@ static const pgsql_thing_t words_after_create[] = {
    {"SYSTEM", NULL, NULL, THING_NO_CREATE | THING_NO_DROP},
    {"TABLE", NULL, &Query_for_list_of_tables},
    {"TABLESPACE", Query_for_list_of_tablespaces},
-   {"TEMP", NULL, NULL, THING_NO_DROP | THING_NO_ALTER},       /* for CREATE TEMP TABLE
-                                                                * ... */
+   {"TEMP", NULL, NULL, THING_NO_DROP | THING_NO_ALTER},   /* for CREATE TEMP TABLE
+                                                            * ... */
    {"TEMPLATE", Query_for_list_of_ts_templates, NULL, THING_NO_SHOW},
    {"TEMPORARY", NULL, NULL, THING_NO_DROP | THING_NO_ALTER},  /* for CREATE TEMPORARY
                                                                 * TABLE ... */
@@ -1052,8 +1052,8 @@ static const pgsql_thing_t words_after_create[] = {
    {"TRANSFORM", NULL, NULL},
    {"TRIGGER", "SELECT pg_catalog.quote_ident(tgname) FROM pg_catalog.pg_trigger WHERE substring(pg_catalog.quote_ident(tgname),1,%d)='%s' AND NOT tgisinternal"},
    {"TYPE", NULL, &Query_for_list_of_datatypes},
-   {"UNIQUE", NULL, NULL, THING_NO_DROP | THING_NO_ALTER},     /* for CREATE UNIQUE
-                                                                * INDEX ... */
+   {"UNIQUE", NULL, NULL, THING_NO_DROP | THING_NO_ALTER}, /* for CREATE UNIQUE
+                                                            * INDEX ... */
    {"UNLOGGED", NULL, NULL, THING_NO_DROP | THING_NO_ALTER},   /* for CREATE UNLOGGED
                                                                 * TABLE ... */
    {"USER", Query_for_list_of_roles},
@@ -4422,6 +4422,6 @@ dequote_file_name(char *text, char quote_char)
 
    return s;
 }
-#endif   /* NOT_USED */
+#endif                         /* NOT_USED */
 
-#endif   /* USE_READLINE */
+#endif                         /* USE_READLINE */
index 9c0309dc1ed32fe1e51a947772ece1632ea5299d..1a42ef1c66128db6118256ff57e577ea1440c9c3 100644 (file)
@@ -14,4 +14,4 @@ extern PQExpBuffer tab_completion_query_buf;
 
 extern void initialize_readline(void);
 
-#endif   /* TAB_COMPLETE_H */
+#endif                         /* TAB_COMPLETE_H */
index d9d07631a59a3730ff31490b4263396ea4ec1119..806d39bfbe3aca67b8d6caebb44e52da9fc1881d 100644 (file)
@@ -273,7 +273,7 @@ SetVariable(VariableSpace space, const char *name, const char *value)
                }
            }
            else if (new_value)
-               pg_free(new_value);     /* current->value is left unchanged */
+               pg_free(new_value); /* current->value is left unchanged */
 
            return confirmed;
        }
index 19257937c7cba98c8dc9e3453e35e84a7da89f91..02d85b1bc2e45b158128b1ccfd5387844357fe56 100644 (file)
@@ -93,4 +93,4 @@ void SetVariableHooks(VariableSpace space, const char *name,
 
 void       PsqlVarEnumError(const char *name, const char *value, const char *suggestions);
 
-#endif   /* VARIABLES_H */
+#endif                         /* VARIABLES_H */
index 0b88fa6b4dc326be24ebacde4805f7e27dc4c700..7394bf293eae2a923dc4c1bf093729cf9558421a 100644 (file)
@@ -425,4 +425,4 @@ setup_cancel_handler(void)
    SetConsoleCtrlHandler(consoleHandler, TRUE);
 }
 
-#endif   /* WIN32 */
+#endif                         /* WIN32 */
index 6532eb23725708ddf11642d4dc61ebff4e591adb..61a31a7f4d7cd36dc3bba5b7375ed507b6e37fc1 100644 (file)
@@ -55,4 +55,4 @@ extern void SetCancelConn(PGconn *conn);
 extern void ResetCancelConn(void);
 
 
-#endif   /* COMMON_H */
+#endif                         /* COMMON_H */
index 617feff861d996601b18602eb67dad55dfd37c3e..67bf4d1d79c9a3a3bbd5b15237f29ff8cf4bc8cf 100644 (file)
@@ -293,7 +293,7 @@ resolve_symlinks(char *path)
        log_error4(_("could not change directory to \"%s\": %s"), orig_wd, strerror(errno));
        return -1;
    }
-#endif   /* HAVE_READLINK */
+#endif                         /* HAVE_READLINK */
 
    return 0;
 }
@@ -499,7 +499,7 @@ pipe_read_line(char *cmd, char *line, int maxsize)
    CloseHandle(childstdoutrddup);
 
    return retval;
-#endif   /* WIN32 */
+#endif                         /* WIN32 */
 }
 
 
index 7f24325b8a8aa3c16476264ed5a5d1fd707da9b2..31e71d855d6d442b05e3d641693026c9e324748d 100644 (file)
@@ -250,7 +250,7 @@ pre_sync_fname(const char *fname, bool isdir, const char *progname)
    return 0;
 }
 
-#endif   /* PG_FLUSH_DATA_WORKS */
+#endif                         /* PG_FLUSH_DATA_WORKS */
 
 /*
  * fsync_fname -- Try to fsync a file or directory
index b71160066c0d8e2f4ee87215eeee3ab9973307e6..bb536d3e86c235a3ea7ca8fb0d3e161a4b25dbcc 100644 (file)
@@ -101,7 +101,7 @@ pg_freeaddrinfo_all(int hint_ai_family, struct addrinfo *ai)
        }
    }
    else
-#endif   /* HAVE_UNIX_SOCKETS */
+#endif                         /* HAVE_UNIX_SOCKETS */
    {
        /* struct was built by getaddrinfo() */
        if (ai != NULL)
@@ -256,4 +256,4 @@ getnameinfo_unix(const struct sockaddr_un *sa, int salen,
 
    return 0;
 }
-#endif   /* HAVE_UNIX_SOCKETS */
+#endif                         /* HAVE_UNIX_SOCKETS */
index 266c29205f5ded40f314a91bb19233d43c47ebf3..a5c6c41cb8456c3d7a71bf42056f9118e2208277 100644 (file)
@@ -35,7 +35,7 @@
  */
 #define PG_KEYWORD(a,b,c) {a,0,c},
 
-#endif   /* FRONTEND */
+#endif                         /* FRONTEND */
 
 
 const ScanKeyword ScanKeywords[] = {
index 6e70b218d26b947fd9ad12ab4f178f6802851aba..ba65b02af68a99ae38d2c87010730b2f663e0b0a 100644 (file)
@@ -117,21 +117,21 @@ doTheRounds(uint32 X[16], uint32 state[4])
    b = c + ROT_LEFT((b + F(c, d, a) + X[7] + 0xfd469501), 22); /* 8 */
    a = b + ROT_LEFT((a + F(b, c, d) + X[8] + 0x698098d8), 7);  /* 9 */
    d = a + ROT_LEFT((d + F(a, b, c) + X[9] + 0x8b44f7af), 12); /* 10 */
-   c = d + ROT_LEFT((c + F(d, a, b) + X[10] + 0xffff5bb1), 17);        /* 11 */
-   b = c + ROT_LEFT((b + F(c, d, a) + X[11] + 0x895cd7be), 22);        /* 12 */
+   c = d + ROT_LEFT((c + F(d, a, b) + X[10] + 0xffff5bb1), 17);    /* 11 */
+   b = c + ROT_LEFT((b + F(c, d, a) + X[11] + 0x895cd7be), 22);    /* 12 */
    a = b + ROT_LEFT((a + F(b, c, d) + X[12] + 0x6b901122), 7); /* 13 */
-   d = a + ROT_LEFT((d + F(a, b, c) + X[13] + 0xfd987193), 12);        /* 14 */
-   c = d + ROT_LEFT((c + F(d, a, b) + X[14] + 0xa679438e), 17);        /* 15 */
-   b = c + ROT_LEFT((b + F(c, d, a) + X[15] + 0x49b40821), 22);        /* 16 */
+   d = a + ROT_LEFT((d + F(a, b, c) + X[13] + 0xfd987193), 12);    /* 14 */
+   c = d + ROT_LEFT((c + F(d, a, b) + X[14] + 0xa679438e), 17);    /* 15 */
+   b = c + ROT_LEFT((b + F(c, d, a) + X[15] + 0x49b40821), 22);    /* 16 */
 
    /* round 2 */
    a = b + ROT_LEFT((a + G(b, c, d) + X[1] + 0xf61e2562), 5);  /* 17 */
    d = a + ROT_LEFT((d + G(a, b, c) + X[6] + 0xc040b340), 9);  /* 18 */
-   c = d + ROT_LEFT((c + G(d, a, b) + X[11] + 0x265e5a51), 14);        /* 19 */
+   c = d + ROT_LEFT((c + G(d, a, b) + X[11] + 0x265e5a51), 14);    /* 19 */
    b = c + ROT_LEFT((b + G(c, d, a) + X[0] + 0xe9b6c7aa), 20); /* 20 */
    a = b + ROT_LEFT((a + G(b, c, d) + X[5] + 0xd62f105d), 5);  /* 21 */
    d = a + ROT_LEFT((d + G(a, b, c) + X[10] + 0x02441453), 9); /* 22 */
-   c = d + ROT_LEFT((c + G(d, a, b) + X[15] + 0xd8a1e681), 14);        /* 23 */
+   c = d + ROT_LEFT((c + G(d, a, b) + X[15] + 0xd8a1e681), 14);    /* 23 */
    b = c + ROT_LEFT((b + G(c, d, a) + X[4] + 0xe7d3fbc8), 20); /* 24 */
    a = b + ROT_LEFT((a + G(b, c, d) + X[9] + 0x21e1cde6), 5);  /* 25 */
    d = a + ROT_LEFT((d + G(a, b, c) + X[14] + 0xc33707d6), 9); /* 26 */
@@ -140,41 +140,41 @@ doTheRounds(uint32 X[16], uint32 state[4])
    a = b + ROT_LEFT((a + G(b, c, d) + X[13] + 0xa9e3e905), 5); /* 29 */
    d = a + ROT_LEFT((d + G(a, b, c) + X[2] + 0xfcefa3f8), 9);  /* 30 */
    c = d + ROT_LEFT((c + G(d, a, b) + X[7] + 0x676f02d9), 14); /* 31 */
-   b = c + ROT_LEFT((b + G(c, d, a) + X[12] + 0x8d2a4c8a), 20);        /* 32 */
+   b = c + ROT_LEFT((b + G(c, d, a) + X[12] + 0x8d2a4c8a), 20);    /* 32 */
 
    /* round 3 */
    a = b + ROT_LEFT((a + H(b, c, d) + X[5] + 0xfffa3942), 4);  /* 33 */
    d = a + ROT_LEFT((d + H(a, b, c) + X[8] + 0x8771f681), 11); /* 34 */
-   c = d + ROT_LEFT((c + H(d, a, b) + X[11] + 0x6d9d6122), 16);        /* 35 */
-   b = c + ROT_LEFT((b + H(c, d, a) + X[14] + 0xfde5380c), 23);        /* 36 */
+   c = d + ROT_LEFT((c + H(d, a, b) + X[11] + 0x6d9d6122), 16);    /* 35 */
+   b = c + ROT_LEFT((b + H(c, d, a) + X[14] + 0xfde5380c), 23);    /* 36 */
    a = b + ROT_LEFT((a + H(b, c, d) + X[1] + 0xa4beea44), 4);  /* 37 */
    d = a + ROT_LEFT((d + H(a, b, c) + X[4] + 0x4bdecfa9), 11); /* 38 */
    c = d + ROT_LEFT((c + H(d, a, b) + X[7] + 0xf6bb4b60), 16); /* 39 */
-   b = c + ROT_LEFT((b + H(c, d, a) + X[10] + 0xbebfbc70), 23);        /* 40 */
+   b = c + ROT_LEFT((b + H(c, d, a) + X[10] + 0xbebfbc70), 23);    /* 40 */
    a = b + ROT_LEFT((a + H(b, c, d) + X[13] + 0x289b7ec6), 4); /* 41 */
    d = a + ROT_LEFT((d + H(a, b, c) + X[0] + 0xeaa127fa), 11); /* 42 */
    c = d + ROT_LEFT((c + H(d, a, b) + X[3] + 0xd4ef3085), 16); /* 43 */
    b = c + ROT_LEFT((b + H(c, d, a) + X[6] + 0x04881d05), 23); /* 44 */
    a = b + ROT_LEFT((a + H(b, c, d) + X[9] + 0xd9d4d039), 4);  /* 45 */
-   d = a + ROT_LEFT((d + H(a, b, c) + X[12] + 0xe6db99e5), 11);        /* 46 */
-   c = d + ROT_LEFT((c + H(d, a, b) + X[15] + 0x1fa27cf8), 16);        /* 47 */
+   d = a + ROT_LEFT((d + H(a, b, c) + X[12] + 0xe6db99e5), 11);    /* 46 */
+   c = d + ROT_LEFT((c + H(d, a, b) + X[15] + 0x1fa27cf8), 16);    /* 47 */
    b = c + ROT_LEFT((b + H(c, d, a) + X[2] + 0xc4ac5665), 23); /* 48 */
 
    /* round 4 */
    a = b + ROT_LEFT((a + I(b, c, d) + X[0] + 0xf4292244), 6);  /* 49 */
    d = a + ROT_LEFT((d + I(a, b, c) + X[7] + 0x432aff97), 10); /* 50 */
-   c = d + ROT_LEFT((c + I(d, a, b) + X[14] + 0xab9423a7), 15);        /* 51 */
+   c = d + ROT_LEFT((c + I(d, a, b) + X[14] + 0xab9423a7), 15);    /* 51 */
    b = c + ROT_LEFT((b + I(c, d, a) + X[5] + 0xfc93a039), 21); /* 52 */
    a = b + ROT_LEFT((a + I(b, c, d) + X[12] + 0x655b59c3), 6); /* 53 */
    d = a + ROT_LEFT((d + I(a, b, c) + X[3] + 0x8f0ccc92), 10); /* 54 */
-   c = d + ROT_LEFT((c + I(d, a, b) + X[10] + 0xffeff47d), 15);        /* 55 */
+   c = d + ROT_LEFT((c + I(d, a, b) + X[10] + 0xffeff47d), 15);    /* 55 */
    b = c + ROT_LEFT((b + I(c, d, a) + X[1] + 0x85845dd1), 21); /* 56 */
    a = b + ROT_LEFT((a + I(b, c, d) + X[8] + 0x6fa87e4f), 6);  /* 57 */
-   d = a + ROT_LEFT((d + I(a, b, c) + X[15] + 0xfe2ce6e0), 10);        /* 58 */
+   d = a + ROT_LEFT((d + I(a, b, c) + X[15] + 0xfe2ce6e0), 10);    /* 58 */
    c = d + ROT_LEFT((c + I(d, a, b) + X[6] + 0xa3014314), 15); /* 59 */
-   b = c + ROT_LEFT((b + I(c, d, a) + X[13] + 0x4e0811a1), 21);        /* 60 */
+   b = c + ROT_LEFT((b + I(c, d, a) + X[13] + 0x4e0811a1), 21);    /* 60 */
    a = b + ROT_LEFT((a + I(b, c, d) + X[4] + 0xf7537e82), 6);  /* 61 */
-   d = a + ROT_LEFT((d + I(a, b, c) + X[11] + 0xbd3af235), 10);        /* 62 */
+   d = a + ROT_LEFT((d + I(a, b, c) + X[11] + 0xbd3af235), 10);    /* 62 */
    c = d + ROT_LEFT((c + I(d, a, b) + X[2] + 0x2ad7d2bb), 15); /* 63 */
    b = c + ROT_LEFT((b + I(c, d, a) + X[9] + 0xeb86d391), 21); /* 64 */
 
index 5ec93ec7a6ba1a2498d7e82bdd85047cda98d83f..67f570c3624e97f44a53c1cf2e33631b8be54c63 100644 (file)
@@ -752,7 +752,7 @@ pglz_decompress(const char *source, int32 slen, char *dest,
                 * An unset control bit means LITERAL BYTE. So we just copy
                 * one from INPUT to OUTPUT.
                 */
-               if (dp >= destend)      /* check for buffer overrun */
+               if (dp >= destend)  /* check for buffer overrun */
                    break;      /* do not clobber memory */
 
                *dp++ = *sp++;
index 8561e9aed600f448dc56703b645fa183cabea451..8f5903d5190f5902d0369615f24aa7547a49b27a 100644 (file)
@@ -25,7 +25,7 @@
 #include "postgres_fe.h"
 
 /* It's possible we could use a different value for this in frontend code */
-#define MaxAllocSize   ((Size) 0x3fffffff)     /* 1 gigabyte - 1 */
+#define MaxAllocSize   ((Size) 0x3fffffff) /* 1 gigabyte - 1 */
 
 #endif
 
index 461d75db1254737d848c5c79054f46a23398e081..e43d035d4da82888fd08137a5e7fc99729abba0f 100644 (file)
@@ -221,7 +221,7 @@ scram_build_verifier(const char *salt, int saltlen, int iterations,
    maxlen = strlen("SCRAM-SHA-256") + 1
        + 10 + 1                /* iteration count */
        + pg_b64_enc_len(saltlen) + 1   /* Base64-encoded salt */
-       + pg_b64_enc_len(SCRAM_KEY_LEN) + 1     /* Base64-encoded StoredKey */
+       + pg_b64_enc_len(SCRAM_KEY_LEN) + 1 /* Base64-encoded StoredKey */
        + pg_b64_enc_len(SCRAM_KEY_LEN) + 1;    /* Base64-encoded ServerKey */
 
 #ifdef FRONTEND
index 496467507d07aebe38c49b78075b3a1dde125e27..7c6f1b49ad5a5158a9e397a4f4405e1ef53cf5d6 100644 (file)
@@ -94,7 +94,7 @@
    (x) = ((tmp & 0xffff0000ffff0000ULL) >> 16) | \
          ((tmp & 0x0000ffff0000ffffULL) << 16); \
 }
-#endif   /* not bigendian */
+#endif                         /* not bigendian */
 
 /*
  * Macro for incrementally adding the unsigned 64-bit integer n to the
@@ -459,7 +459,7 @@ SHA256_Transform(pg_sha256_ctx *context, const uint8 *data)
    /* Clean up */
    a = b = c = d = e = f = g = h = T1 = T2 = 0;
 }
-#endif   /* SHA2_UNROLL_TRANSFORM */
+#endif                         /* SHA2_UNROLL_TRANSFORM */
 
 void
 pg_sha256_update(pg_sha256_ctx *context, const uint8 *data, size_t len)
@@ -785,7 +785,7 @@ SHA512_Transform(pg_sha512_ctx *context, const uint8 *data)
    /* Clean up */
    a = b = c = d = e = f = g = h = T1 = T2 = 0;
 }
-#endif   /* SHA2_UNROLL_TRANSFORM */
+#endif                         /* SHA2_UNROLL_TRANSFORM */
 
 void
 pg_sha512_update(pg_sha512_ctx *context, const uint8 *data, size_t len)
index 364baa6a1b0153aa62e0171597a969023efe4ef8..8db72624d51903040b2eb18a48cbe85474a339c0 100644 (file)
@@ -233,14 +233,14 @@ pg_wcssize(const unsigned char *pwcs, size_t len, int encoding,
                    width = linewidth;
                linewidth = 0;
                height += 1;
-               format_size += 1;       /* For NUL char */
+               format_size += 1;   /* For NUL char */
            }
-           else if (*pwcs == '\r')     /* Linefeed */
+           else if (*pwcs == '\r') /* Linefeed */
            {
                linewidth += 2;
                format_size += 2;
            }
-           else if (*pwcs == '\t')     /* Tab */
+           else if (*pwcs == '\t') /* Tab */
            {
                do
                {
@@ -321,13 +321,13 @@ pg_wcsformat(const unsigned char *pwcs, size_t len, int encoding,
                /* make next line point to remaining memory */
                lines->ptr = ptr;
            }
-           else if (*pwcs == '\r')     /* Linefeed */
+           else if (*pwcs == '\r') /* Linefeed */
            {
                strcpy((char *) ptr, "\\r");
                linewidth += 2;
                ptr += 2;
            }
-           else if (*pwcs == '\t')     /* Tab */
+           else if (*pwcs == '\t') /* Tab */
            {
                do
                {
index 4c320b215c543315eb747f4250911032a4944e30..4f3d9e3afe7e7cdeb6738b71238fe0f1c9dc6802 100644 (file)
@@ -608,12 +608,12 @@ print_aligned_text(const printTableContent *cont, FILE *fout, bool is_pager)
 
    const char *const *ptr;
 
-   struct lineptr **col_lineptrs;      /* pointers to line pointer per column */
+   struct lineptr **col_lineptrs;  /* pointers to line pointer per column */
 
    bool       *header_done;    /* Have all header lines been output? */
    int        *bytes_output;   /* Bytes output for column value */
    printTextLineWrap *wrap;    /* Wrap status for each column */
-   int         output_columns = 0;     /* Width of interactive console */
+   int         output_columns = 0; /* Width of interactive console */
    bool        is_local_pager = false;
 
    if (cancel_pressed)
@@ -1086,7 +1086,7 @@ print_aligned_text(const printTableContent *cont, FILE *fout, bool is_pager)
                 * If left-aligned, pad out remaining space if needed (not
                 * last column, and/or wrap marks required).
                 */
-               if (cont->aligns[j] != 'r')     /* Left aligned cell */
+               if (cont->aligns[j] != 'r') /* Left aligned cell */
                {
                    if (finalspaces ||
                        wrap[j] == PRINT_LINE_WRAP_WRAP ||
@@ -1249,7 +1249,7 @@ print_aligned_vertical(const printTableContent *cont,
    bool        is_local_pager = false,
                hmultiline = false,
                dmultiline = false;
-   int         output_columns = 0;     /* Width of interactive console */
+   int         output_columns = 0; /* Width of interactive console */
 
    if (cancel_pressed)
        return;
index 45a08c7ee104df8d4ed720b7b111c375c08f37b8..c7e42ddec9fd304ca4acce0835f8cbc104d1feb5 100644 (file)
@@ -536,7 +536,7 @@ appendShellStringNoError(PQExpBuffer buf, const char *str)
        backslash_run_length--;
    }
    appendPQExpBufferStr(buf, "^\"");
-#endif   /* WIN32 */
+#endif                         /* WIN32 */
 
    return ok;
 }
@@ -713,9 +713,9 @@ parsePGArray(const char *atext, char ***itemarray, int *nitems)
                    {
                        atext++;
                        if (*atext == '\0')
-                           return false;       /* premature end of string */
+                           return false;   /* premature end of string */
                    }
-                   *strings++ = *atext++;      /* copy quoted data */
+                   *strings++ = *atext++;  /* copy quoted data */
                }
                atext++;
            }
index 37bd51f85bc73b089d01a5b2dfd26fb7bae2c2c5..2d714fded09d047fb8f7d8dd7ceb398aec3057d6 100644 (file)
@@ -203,19 +203,19 @@ typedef struct IndexAmRoutine
    amcanreturn_function amcanreturn;   /* can be NULL */
    amcostestimate_function amcostestimate;
    amoptions_function amoptions;
-   amproperty_function amproperty;     /* can be NULL */
+   amproperty_function amproperty; /* can be NULL */
    amvalidate_function amvalidate;
    ambeginscan_function ambeginscan;
    amrescan_function amrescan;
-   amgettuple_function amgettuple;     /* can be NULL */
+   amgettuple_function amgettuple; /* can be NULL */
    amgetbitmap_function amgetbitmap;   /* can be NULL */
    amendscan_function amendscan;
-   ammarkpos_function ammarkpos;       /* can be NULL */
-   amrestrpos_function amrestrpos;     /* can be NULL */
+   ammarkpos_function ammarkpos;   /* can be NULL */
+   amrestrpos_function amrestrpos; /* can be NULL */
 
    /* interface functions to support parallel index scans */
-   amestimateparallelscan_function amestimateparallelscan;     /* can be NULL */
-   aminitparallelscan_function aminitparallelscan;     /* can be NULL */
+   amestimateparallelscan_function amestimateparallelscan; /* can be NULL */
+   aminitparallelscan_function aminitparallelscan; /* can be NULL */
    amparallelrescan_function amparallelrescan; /* can be NULL */
 } IndexAmRoutine;
 
@@ -224,4 +224,4 @@ typedef struct IndexAmRoutine
 extern IndexAmRoutine *GetIndexAmRoutine(Oid amhandler);
 extern IndexAmRoutine *GetIndexAmRoutineByAmId(Oid amoid, bool noerror);
 
-#endif   /* AMAPI_H */
+#endif                         /* AMAPI_H */
index 742c25a78de840f04bed5c4d92203cfd831a5121..04b7429a78abb0e018872baa2e873eb8bb30b559 100644 (file)
@@ -33,4 +33,4 @@ extern bool check_amop_signature(Oid opno, Oid restype,
                     Oid lefttype, Oid righttype);
 extern bool opfamily_can_sort_type(Oid opfamilyoid, Oid datatypeoid);
 
-#endif   /* AMVALIDATE_H */
+#endif                         /* AMVALIDATE_H */
index 7fa459fc8cca21669bc04eb80bdbb4a676d5b95e..d23888b098226dca3a3edf563a3235d2585c1475 100644 (file)
@@ -61,4 +61,4 @@ typedef int16 AttrNumber;
 #define AttrOffsetGetAttrNumber(attributeOffset) \
     ((AttrNumber) (1 + (attributeOffset)))
 
-#endif   /* ATTNUM_H */
+#endif                         /* ATTNUM_H */
index 45d55a97338d805aeed82d44136382f748904c85..61a38804cad766f55e74f6a6c76ccc3856701e76 100644 (file)
@@ -49,4 +49,4 @@ typedef struct BrinStatsData
 
 extern void brinGetStats(Relation index, BrinStatsData *stats);
 
-#endif   /* BRIN_H */
+#endif                         /* BRIN_H */
index abe887788be39508f4b5081216ddcbb6f7b1fdff..3ed67438b27fcc9a805ff401905b396df0bd9da5 100644 (file)
@@ -107,4 +107,4 @@ extern bytea *brinoptions(Datum reloptions, bool validate);
 /* brin_validate.c */
 extern bool brinvalidate(Oid opclassoid);
 
-#endif   /* BRIN_INTERNAL_H */
+#endif                         /* BRIN_INTERNAL_H */
index e2b3b92fac7409312012c5015ec263cb366930da..bf03a6e9f84d95d3aa84962dd719e1d82720d8e5 100644 (file)
@@ -93,4 +93,4 @@ typedef struct RevmapContents
 #define REVMAP_PAGE_MAXITEMS \
    (REVMAP_CONTENT_SIZE / sizeof(ItemPointerData))
 
-#endif   /* BRIN_PAGE_H */
+#endif                         /* BRIN_PAGE_H */
index ab38093a23f41316562ad420d69a8da91a098304..e0f56416358c6cfc9d3cb52e02dff58ecc621f42 100644 (file)
@@ -35,4 +35,4 @@ extern void brin_evacuate_page(Relation idxRel, BlockNumber pagesPerRange,
 
 extern bool brin_page_cleanup(Relation idxrel, Buffer buf);
 
-#endif   /* BRIN_PAGEOPS_H */
+#endif                         /* BRIN_PAGEOPS_H */
index 7fdcf877f4b2723db4e5b29e816742e24a4f38db..ddd87e040bd7168f516f8b1f014707361ec8dd50 100644 (file)
@@ -38,4 +38,4 @@ extern BrinTuple *brinGetTupleForHeapBlock(BrinRevmap *revmap,
                         Size *size, int mode, Snapshot snapshot);
 extern bool brinRevmapDesummarizeRange(Relation idxrel, BlockNumber heapBlk);
 
-#endif   /* BRIN_REVMAP_H */
+#endif                         /* BRIN_REVMAP_H */
index 3f4a7b6d3cd423025db459ecdf357747026e7812..6545c0a6ffd659d597c8a38d5b0479f32a522414 100644 (file)
@@ -99,4 +99,4 @@ extern BrinMemTuple *brin_memtuple_initialize(BrinMemTuple *dtuple,
 extern BrinMemTuple *brin_deform_tuple(BrinDesc *brdesc,
                  BrinTuple *tuple, BrinMemTuple *dMemtuple);
 
-#endif   /* BRIN_TUPLE_H */
+#endif                         /* BRIN_TUPLE_H */
index 38e6dcccf227ec8cee7df5724a4dc681a00e3c64..10e90d3c78ffa09e6c26fe197c021bb6176b4cae 100644 (file)
@@ -148,4 +148,4 @@ extern void brin_desc(StringInfo buf, XLogReaderState *record);
 extern const char *brin_identify(uint8 info);
 extern void brin_mask(char *pagedata, BlockNumber blkno);
 
-#endif   /* BRIN_XLOG_H */
+#endif                         /* BRIN_XLOG_H */
index 5ac7cdd6184eedcd297bf5eaad9466a8d58cbfed..19a4a2b9b8fc267547ac1770eaf892b1c4578ad2 100644 (file)
@@ -58,4 +58,4 @@ extern void clog_redo(XLogReaderState *record);
 extern void clog_desc(StringInfo buf, XLogReaderState *record);
 extern const char *clog_identify(uint8 info);
 
-#endif   /* CLOG_H */
+#endif                         /* CLOG_H */
index f172c91d8f3e026db19d4eb3344bdcb3ef6bad41..31936faf088e04ea6d72342b44d0ebca4bdd7fa3 100644 (file)
@@ -74,4 +74,4 @@ extern void commit_ts_redo(XLogReaderState *record);
 extern void commit_ts_desc(StringInfo buf, XLogReaderState *record);
 extern const char *commit_ts_identify(uint8 info);
 
-#endif   /* COMMIT_TS_H */
+#endif                         /* COMMIT_TS_H */
index f467b18a9c79cabbe1c4024e8d89b92bed1e2e3e..dadc5d143d29cfa69cf531a8664bf6ef274adc5a 100644 (file)
@@ -48,7 +48,7 @@ typedef struct IndexVacuumInfo
    bool        estimated_count;    /* num_heap_tuples is an estimate */
    int         message_level;  /* ereport level for progress messages */
    double      num_heap_tuples;    /* tuples remaining in heap */
-   BufferAccessStrategy strategy;      /* access strategy for reads */
+   BufferAccessStrategy strategy;  /* access strategy for reads */
 } IndexVacuumInfo;
 
 /*
@@ -73,7 +73,7 @@ typedef struct IndexBulkDeleteResult
    BlockNumber num_pages;      /* pages remaining in index */
    BlockNumber pages_removed;  /* # removed during vacuum operation */
    bool        estimated_count;    /* num_index_tuples is an estimate */
-   double      num_index_tuples;       /* tuples remaining */
+   double      num_index_tuples;   /* tuples remaining */
    double      tuples_removed; /* # removed during vacuum operation */
    BlockNumber pages_deleted;  /* # unused pages in index */
    BlockNumber pages_free;     /* # pages available for reuse */
@@ -203,4 +203,4 @@ extern HeapTuple systable_getnext_ordered(SysScanDesc sysscan,
                         ScanDirection direction);
 extern void systable_endscan_ordered(SysScanDesc sysscan);
 
-#endif   /* GENAM_H */
+#endif                         /* GENAM_H */
index 0dc17f55f2c7f19bdc25d937f295856e60448c58..02696141ea8690017733ee24c216f20aff87ccc4 100644 (file)
@@ -42,4 +42,4 @@ extern const char *generic_identify(uint8 info);
 extern void generic_desc(StringInfo buf, XLogReaderState *record);
 extern void generic_mask(char *pagedata, BlockNumber blkno);
 
-#endif   /* GENERIC_XLOG_H */
+#endif                         /* GENERIC_XLOG_H */
index bd9e8833de4bb089f4921cf2dba10c0ae0c08303..ec83058095b53d1ca1f75a8361431515d86e8f2a 100644 (file)
@@ -33,7 +33,7 @@
 #define GIN_SEARCH_MODE_DEFAULT            0
 #define GIN_SEARCH_MODE_INCLUDE_EMPTY  1
 #define GIN_SEARCH_MODE_ALL                2
-#define GIN_SEARCH_MODE_EVERYTHING     3       /* for internal use only */
+#define GIN_SEARCH_MODE_EVERYTHING     3   /* for internal use only */
 
 /*
  * GinStatsData represents stats data for planner use
@@ -73,4 +73,4 @@ extern int    gin_pending_list_limit;
 extern void ginGetStats(Relation index, GinStatsData *stats);
 extern void ginUpdateStats(Relation index, const GinStatsData *stats);
 
-#endif   /* GIN_H */
+#endif                         /* GIN_H */
index 45616f9c4d6f1d5b7f785307aaddae491fe0f6ea..4d66c27f5829aff2cf938b4fc73740dd7827e2c4 100644 (file)
@@ -75,7 +75,7 @@ typedef struct GinState
    FmgrInfo    extractQueryFn[INDEX_MAX_KEYS];
    FmgrInfo    consistentFn[INDEX_MAX_KEYS];
    FmgrInfo    triConsistentFn[INDEX_MAX_KEYS];
-   FmgrInfo    comparePartialFn[INDEX_MAX_KEYS];       /* optional method */
+   FmgrInfo    comparePartialFn[INDEX_MAX_KEYS];   /* optional method */
    /* canPartialMatch[i] is true if comparePartialFn[i] is valid */
    bool        canPartialMatch[INDEX_MAX_KEYS];
    /* Collations to pass to the support functions */
@@ -473,4 +473,4 @@ ginCompareItemPointers(ItemPointer a, ItemPointer b)
 
 extern int ginTraverseLock(Buffer buffer, bool searchMode);
 
-#endif   /* GIN_PRIVATE_H */
+#endif                         /* GIN_PRIVATE_H */
index 438912c6a0d6238d2e7e4b14bb93e0010907ea06..114370c7d719f482aa1e13f033e27b5aa56e07a6 100644 (file)
@@ -41,7 +41,7 @@ typedef GinPageOpaqueData *GinPageOpaque;
 #define GIN_DELETED          (1 << 2)
 #define GIN_META         (1 << 3)
 #define GIN_LIST         (1 << 4)
-#define GIN_LIST_FULLROW  (1 << 5)     /* makes sense only on GIN_LIST page */
+#define GIN_LIST_FULLROW  (1 << 5) /* makes sense only on GIN_LIST page */
 #define GIN_INCOMPLETE_SPLIT (1 << 6)  /* page was split, but parent not
                                         * updated */
 #define GIN_COMPRESSED   (1 << 7)
@@ -196,10 +196,10 @@ typedef struct
  */
 typedef signed char GinNullCategory;
 
-#define GIN_CAT_NORM_KEY       0       /* normal, non-null key value */
-#define GIN_CAT_NULL_KEY       1       /* null key value */
-#define GIN_CAT_EMPTY_ITEM     2       /* placeholder for zero-key item */
-#define GIN_CAT_NULL_ITEM      3       /* placeholder for null item */
+#define GIN_CAT_NORM_KEY       0   /* normal, non-null key value */
+#define GIN_CAT_NULL_KEY       1   /* null key value */
+#define GIN_CAT_EMPTY_ITEM     2   /* placeholder for zero-key item */
+#define GIN_CAT_NULL_ITEM      3   /* placeholder for null item */
 #define GIN_CAT_EMPTY_QUERY        (-1)    /* placeholder for full-scan query */
 
 /*
@@ -333,4 +333,4 @@ typedef struct
 #define SizeOfGinPostingList(plist) (offsetof(GinPostingList, bytes) + SHORTALIGN((plist)->nbytes) )
 #define GinNextPostingListSegment(cur) ((GinPostingList *) (((char *) (cur)) + SizeOfGinPostingList((cur))))
 
-#endif   /* GINBLOCK_H */
+#endif                         /* GINBLOCK_H */
index 641ae252fa395aeab2eadfb35cf051bca5f9c22b..42e0ae90c3c99d7755b31739d647c08e44062b64 100644 (file)
@@ -90,11 +90,11 @@ typedef struct
 }          ginxlogSegmentAction;
 
 /* Action types */
-#define GIN_SEGMENT_UNMODIFIED 0       /* no action (not used in WAL records) */
-#define GIN_SEGMENT_DELETE     1       /* a whole segment is removed */
-#define GIN_SEGMENT_INSERT     2       /* a whole segment is added */
-#define GIN_SEGMENT_REPLACE        3       /* a segment is replaced */
-#define GIN_SEGMENT_ADDITEMS   4       /* items are added to existing segment */
+#define GIN_SEGMENT_UNMODIFIED 0   /* no action (not used in WAL records) */
+#define GIN_SEGMENT_DELETE     1   /* a whole segment is removed */
+#define GIN_SEGMENT_INSERT     2   /* a whole segment is added */
+#define GIN_SEGMENT_REPLACE        3   /* a segment is replaced */
+#define GIN_SEGMENT_ADDITEMS   4   /* items are added to existing segment */
 
 typedef struct
 {
@@ -214,4 +214,4 @@ extern void gin_xlog_startup(void);
 extern void gin_xlog_cleanup(void);
 extern void gin_mask(char *pagedata, BlockNumber blkno);
 
-#endif   /* GINXLOG_H */
+#endif                         /* GINXLOG_H */
index 5824e90bda1457090781b58a8b2393db324e46e3..83642189db5d7febb4c94c5d636ad946aa779ef4 100644 (file)
@@ -105,12 +105,12 @@ typedef struct GIST_SPLITVEC
    OffsetNumber *spl_left;     /* array of entries that go left */
    int         spl_nleft;      /* size of this array */
    Datum       spl_ldatum;     /* Union of keys in spl_left */
-   bool        spl_ldatum_exists;      /* true, if spl_ldatum already exists. */
+   bool        spl_ldatum_exists;  /* true, if spl_ldatum already exists. */
 
    OffsetNumber *spl_right;    /* array of entries that go right */
    int         spl_nright;     /* size of the array */
    Datum       spl_rdatum;     /* Union of keys in spl_right */
-   bool        spl_rdatum_exists;      /* true, if spl_rdatum already exists. */
+   bool        spl_rdatum_exists;  /* true, if spl_rdatum already exists. */
 } GIST_SPLITVEC;
 
 /*
@@ -170,4 +170,4 @@ typedef struct
    do { (e).key = (k); (e).rel = (r); (e).page = (pg); \
         (e).offset = (o); (e).leafkey = (l); } while (0)
 
-#endif   /* GIST_H */
+#endif                         /* GIST_H */
index 1ad4ed6da7518ff07ad6ee83e0636cf356a17e6f..bfef2df4206015e5aa1ab82c26eacc91dd8329a8 100644 (file)
@@ -118,7 +118,7 @@ typedef struct GISTSearchHeapItem
 {
    ItemPointerData heapPtr;
    bool        recheck;        /* T if quals must be rechecked */
-   bool        recheckDistances;       /* T if distances must be rechecked */
+   bool        recheckDistances;   /* T if distances must be rechecked */
    HeapTuple   recontup;       /* data reconstructed from the index, used in
                                 * index-only scans */
    OffsetNumber offnum;        /* track offset in page to mark tuple as
@@ -136,8 +136,8 @@ typedef struct GISTSearchItem
        /* we must store parentlsn to detect whether a split occurred */
        GISTSearchHeapItem heap;    /* heap info, if heap tuple */
    }           data;
-   double      distances[FLEXIBLE_ARRAY_MEMBER];       /* numberOfOrderBys
-                                                        * entries */
+   double      distances[FLEXIBLE_ARRAY_MEMBER];   /* numberOfOrderBys
+                                                    * entries */
 } GISTSearchItem;
 
 #define GISTSearchItemIsHeap(item) ((item).blkno == InvalidBlockNumber)
@@ -225,12 +225,12 @@ typedef struct GistSplitVector
 {
    GIST_SPLITVEC splitVector;  /* passed to/from user PickSplit method */
 
-   Datum       spl_lattr[INDEX_MAX_KEYS];      /* Union of subkeys in
-                                                * splitVector.spl_left */
+   Datum       spl_lattr[INDEX_MAX_KEYS];  /* Union of subkeys in
+                                            * splitVector.spl_left */
    bool        spl_lisnull[INDEX_MAX_KEYS];
 
-   Datum       spl_rattr[INDEX_MAX_KEYS];      /* Union of subkeys in
-                                                * splitVector.spl_right */
+   Datum       spl_rattr[INDEX_MAX_KEYS];  /* Union of subkeys in
+                                            * splitVector.spl_right */
    bool        spl_risnull[INDEX_MAX_KEYS];
 
    bool       *spl_dontcare;   /* flags tuples which could go to either side
@@ -288,7 +288,7 @@ typedef struct
    int32       blocksCount;    /* current # of blocks occupied by buffer */
 
    BlockNumber pageBlocknum;   /* temporary file block # */
-   GISTNodeBufferPage *pageBuffer;     /* in-memory buffer page */
+   GISTNodeBufferPage *pageBuffer; /* in-memory buffer page */
 
    /* is this buffer queued for emptying? */
    bool        queuedForEmptying;
@@ -360,8 +360,8 @@ typedef struct GISTBuildBuffers
     * loaded in main memory.
     */
    GISTNodeBuffer **loadedBuffers;
-   int         loadedBuffersCount;     /* # of entries in loadedBuffers */
-   int         loadedBuffersLen;       /* allocated size of loadedBuffers */
+   int         loadedBuffersCount; /* # of entries in loadedBuffers */
+   int         loadedBuffersLen;   /* allocated size of loadedBuffers */
 
    /* Level of the current root node (= height of the index tree - 1) */
    int         rootlevel;
@@ -522,4 +522,4 @@ extern void gistRelocateBuildBuffersOnSplit(GISTBuildBuffers *gfbb,
                                List *splitinfo);
 extern void gistUnloadNodeBuffers(GISTBuildBuffers *gfbb);
 
-#endif   /* GIST_PRIVATE_H */
+#endif                         /* GIST_PRIVATE_H */
index 017740d14a988a061a3d64bfa916b8efc4821ad1..2aea6ad3091247e87be0d4dce478efb7d9388cc9 100644 (file)
@@ -21,4 +21,4 @@ extern void gistrescan(IndexScanDesc scan, ScanKey key, int nkeys,
           ScanKey orderbys, int norderbys);
 extern void gistendscan(IndexScanDesc scan);
 
-#endif   /* GISTSCAN_H */
+#endif                         /* GISTSCAN_H */
index 9e8c44bfd3fd611843d99b68ca0935f15cc68a11..fec6e6e9a65b0129394887786eee6750836dd5fd 100644 (file)
@@ -145,8 +145,7 @@ typedef struct HashScanOpaqueData
     */
    bool        hashso_buc_split;
    /* info about killed items if any (killedItems is NULL if never used) */
-   HashScanPosItem *killedItems;       /* tids and offset numbers of killed
-                                        * items */
+   HashScanPosItem *killedItems;   /* tids and offset numbers of killed items */
    int         numKilled;      /* number of currently stored items */
 } HashScanOpaqueData;
 
@@ -218,8 +217,8 @@ typedef struct HashMetaPageData
    uint32      hashm_firstfree;    /* lowest-number free ovflpage (bit#) */
    uint32      hashm_nmaps;    /* number of bitmap pages */
    RegProcedure hashm_procid;  /* hash procedure id from pg_proc */
-   uint32      hashm_spares[HASH_MAX_SPLITPOINTS];     /* spare pages before
-                                                        * each splitpoint */
+   uint32      hashm_spares[HASH_MAX_SPLITPOINTS]; /* spare pages before each
+                                                    * splitpoint */
    BlockNumber hashm_mapp[HASH_MAX_BITMAPS];   /* blknos of ovfl bitmaps */
 } HashMetaPageData;
 
@@ -242,7 +241,7 @@ typedef HashMetaPageData *HashMetaPage;
 /*
  * Constants
  */
-#define BYTE_TO_BIT                3       /* 2^3 bits/byte */
+#define BYTE_TO_BIT                3   /* 2^3 bits/byte */
 #define ALL_SET                    ((uint32) ~0)
 
 /*
@@ -423,4 +422,4 @@ extern void hashbucketcleanup(Relation rel, Bucket cur_bucket,
                  bool bucket_has_garbage,
                  IndexBulkDeleteCallback callback, void *callback_state);
 
-#endif   /* HASH_H */
+#endif                         /* HASH_H */
index b78672f4dcc2fe6e52dc4e2474acbaac9526f67b..c778fdc8df82928efd3dc0604a2bdc0f2ba714d5 100644 (file)
 /*
  * XLOG records for hash operations
  */
-#define XLOG_HASH_INIT_META_PAGE   0x00        /* initialize the meta page */
-#define XLOG_HASH_INIT_BITMAP_PAGE 0x10        /* initialize the bitmap page */
+#define XLOG_HASH_INIT_META_PAGE   0x00    /* initialize the meta page */
+#define XLOG_HASH_INIT_BITMAP_PAGE 0x10    /* initialize the bitmap page */
 #define XLOG_HASH_INSERT       0x20    /* add index tuple without split */
 #define XLOG_HASH_ADD_OVFL_PAGE 0x30   /* add overflow page */
 #define XLOG_HASH_SPLIT_ALLOCATE_PAGE  0x40    /* allocate new page for split */
 #define XLOG_HASH_SPLIT_PAGE   0x50    /* split page */
-#define XLOG_HASH_SPLIT_COMPLETE   0x60        /* completion of split
-                                                * operation */
+#define XLOG_HASH_SPLIT_COMPLETE   0x60    /* completion of split operation */
 #define XLOG_HASH_MOVE_PAGE_CONTENTS   0x70    /* remove tuples from one page
                                                 * and add to another page */
 #define XLOG_HASH_SQUEEZE_PAGE 0x80    /* add tuples to one of the previous
 #define XLOG_HASH_SPLIT_CLEANUP 0xA0   /* clear split-cleanup flag in primary
                                         * bucket page after deleting tuples
                                         * that are moved due to split  */
-#define XLOG_HASH_UPDATE_META_PAGE 0xB0        /* update meta page after
-                                                * vacuum */
+#define XLOG_HASH_UPDATE_META_PAGE 0xB0    /* update meta page after vacuum */
 
-#define XLOG_HASH_VACUUM_ONE_PAGE  0xC0        /* remove dead tuples from
-                                                * index page */
+#define XLOG_HASH_VACUUM_ONE_PAGE  0xC0    /* remove dead tuples from index
+                                            * page */
 
 /*
  * xl_hash_split_allocate_page flag values, 8 bits are available.
@@ -151,9 +149,9 @@ typedef struct xl_hash_split_complete
 typedef struct xl_hash_move_page_contents
 {
    uint16      ntups;
-   bool        is_prim_bucket_same_wrt;        /* TRUE if the page to which
-                                                * tuples are moved is same as
-                                                * primary bucket page */
+   bool        is_prim_bucket_same_wrt;    /* TRUE if the page to which
+                                            * tuples are moved is same as
+                                            * primary bucket page */
 } xl_hash_move_page_contents;
 
 #define SizeOfHashMovePageContents \
@@ -176,13 +174,13 @@ typedef struct xl_hash_squeeze_page
    BlockNumber prevblkno;
    BlockNumber nextblkno;
    uint16      ntups;
-   bool        is_prim_bucket_same_wrt;        /* TRUE if the page to which
-                                                * tuples are moved is same as
-                                                * primary bucket page */
-   bool        is_prev_bucket_same_wrt;        /* TRUE if the page to which
-                                                * tuples are moved is the
-                                                * page previous to the freed
-                                                * overflow page */
+   bool        is_prim_bucket_same_wrt;    /* TRUE if the page to which
+                                            * tuples are moved is same as
+                                            * primary bucket page */
+   bool        is_prev_bucket_same_wrt;    /* TRUE if the page to which
+                                            * tuples are moved is the page
+                                            * previous to the freed overflow
+                                            * page */
 } xl_hash_squeeze_page;
 
 #define SizeOfHashSqueezePage  \
@@ -198,8 +196,8 @@ typedef struct xl_hash_squeeze_page
  */
 typedef struct xl_hash_delete
 {
-   bool        clear_dead_marking;     /* TRUE if this operation clears
-                                        * LH_PAGE_HAS_DEAD_TUPLES flag */
+   bool        clear_dead_marking; /* TRUE if this operation clears
+                                    * LH_PAGE_HAS_DEAD_TUPLES flag */
    bool        is_primary_bucket_page; /* TRUE if the operation is for
                                         * primary bucket page */
 } xl_hash_delete;
@@ -279,4 +277,4 @@ extern void hash_desc(StringInfo buf, XLogReaderState *record);
 extern const char *hash_identify(uint8 info);
 extern void hash_mask(char *pagedata, BlockNumber blkno);
 
-#endif   /* HASH_XLOG_H */
+#endif                         /* HASH_XLOG_H */
index 7e85510d2fd4c305a26f500db689adca9b341742..8196587a3a81e79fea7541b8fe6b690f98ec0164 100644 (file)
@@ -198,4 +198,4 @@ extern BlockNumber ss_get_location(Relation rel, BlockNumber relnblocks);
 extern void SyncScanShmemInit(void);
 extern Size SyncScanShmemSize(void);
 
-#endif   /* HEAPAM_H */
+#endif                         /* HEAPAM_H */
index b285f172aa86e5f714188af497dfb29cf16c1a3f..81a6a395c4f89e8440c0d6fc68f29615087c1fa2 100644 (file)
@@ -189,7 +189,7 @@ typedef struct xl_heap_update
 {
    TransactionId old_xmax;     /* xmax of the old tuple */
    OffsetNumber old_offnum;    /* old tuple's offset */
-   uint8       old_infobits_set;       /* infomask bits to set on old tuple */
+   uint8       old_infobits_set;   /* infomask bits to set on old tuple */
    uint8       flags;
    TransactionId new_xmax;     /* xmax of the new tuple */
    OffsetNumber new_offnum;    /* new tuple's offset */
@@ -399,4 +399,4 @@ extern void heap_execute_freeze_tuple(HeapTupleHeader tuple,
 extern XLogRecPtr log_heap_visible(RelFileNode rnode, Buffer heap_buffer,
                 Buffer vm_buffer, TransactionId cutoff_xid, uint8 flags);
 
-#endif   /* HEAPAM_XLOG_H */
+#endif                         /* HEAPAM_XLOG_H */
index 6dfa8d589122228b9e15494bd11bd66a8cd67c53..4a8beb63a6ca97c7c714943ccb3f4aa6e5760d18 100644 (file)
@@ -30,7 +30,7 @@
  */
 typedef struct BulkInsertStateData
 {
-   BufferAccessStrategy strategy;      /* our BULKWRITE strategy object */
+   BufferAccessStrategy strategy;  /* our BULKWRITE strategy object */
    Buffer      current_buf;    /* current insertion target page */
 }          BulkInsertStateData;
 
@@ -42,4 +42,4 @@ extern Buffer RelationGetBufferForTuple(Relation relation, Size len,
                          BulkInsertState bistate,
                          Buffer *vmbuffer, Buffer *vmbuffer_other);
 
-#endif   /* HIO_H */
+#endif                         /* HIO_H */
index 870adf4f77bd6df55ca09ad50e38dcb9af5d11dc..61b3e6863987a6c381402ad1c355eed15d71a2f4 100644 (file)
@@ -85,4 +85,4 @@ extern void HeapTupleHeaderAdjustCmax(HeapTupleHeader tup,
 /* Prototype for HeapTupleHeader accessors in heapam.c */
 extern TransactionId HeapTupleGetUpdateXid(HeapTupleHeader tuple);
 
-#endif   /* HTUP_H */
+#endif                         /* HTUP_H */
index e365f4f2b4e1c6a29bf5f6e46c09973953d8cea7..3e1676c7e6146c1ab8170a2ca7857977ae74c995 100644 (file)
@@ -748,7 +748,7 @@ struct MinimalTupleData
 
 extern Datum fastgetattr(HeapTuple tup, int attnum, TupleDesc tupleDesc,
            bool *isnull);
-#endif   /* defined(DISABLE_COMPLEX_MACRO) */
+#endif                         /* defined(DISABLE_COMPLEX_MACRO) */
 
 
 /* ----------------
@@ -821,4 +821,4 @@ extern MinimalTuple heap_copy_minimal_tuple(MinimalTuple mtup);
 extern HeapTuple heap_tuple_from_minimal_tuple(MinimalTuple mtup);
 extern MinimalTuple minimal_tuple_from_heap_tuple(HeapTuple htup);
 
-#endif   /* HTUP_DETAILS_H */
+#endif                         /* HTUP_DETAILS_H */
index ecd7c5c2087d43403e94d1ea510175ba39cd6b58..a94e7948b49671293fba0af19c644e564d73da48 100644 (file)
@@ -148,4 +148,4 @@ extern void index_deform_tuple(IndexTuple tup, TupleDesc tupleDescriptor,
                   Datum *values, bool *isnull);
 extern IndexTuple CopyIndexTuple(IndexTuple source);
 
-#endif   /* ITUP_H */
+#endif                         /* ITUP_H */
index 85997a41fa31df2c4ec9745cc746cca2a0c2c1da..d5e18c67338adad69264532fea4e3d558071bda0 100644 (file)
@@ -157,4 +157,4 @@ extern const char *multixact_identify(uint8 info);
 extern char *mxid_to_string(MultiXactId multi, int nmembers,
               MultiXactMember *members);
 
-#endif   /* MULTIXACT_H */
+#endif                         /* MULTIXACT_H */
index 15771ce9e0b7ed11f129c31f9e7ba30d3342d78b..e6abbec280d9da5ea7a4a0bce761e66407781fe9 100644 (file)
@@ -421,9 +421,9 @@ typedef BTScanOpaqueData *BTScanOpaque;
  * to use bits 16-31 (see skey.h).  The uppermost bits are copied from the
  * index's indoption[] array entry for the index attribute.
  */
-#define SK_BT_REQFWD   0x00010000      /* required to continue forward scan */
-#define SK_BT_REQBKWD  0x00020000      /* required to continue backward scan */
-#define SK_BT_INDOPTION_SHIFT  24      /* must clear the above bits */
+#define SK_BT_REQFWD   0x00010000  /* required to continue forward scan */
+#define SK_BT_REQBKWD  0x00020000  /* required to continue backward scan */
+#define SK_BT_INDOPTION_SHIFT  24  /* must clear the above bits */
 #define SK_BT_DESC         (INDOPTION_DESC << SK_BT_INDOPTION_SHIFT)
 #define SK_BT_NULLS_FIRST  (INDOPTION_NULLS_FIRST << SK_BT_INDOPTION_SHIFT)
 
@@ -556,4 +556,4 @@ extern void _bt_spool(BTSpool *btspool, ItemPointer self,
          Datum *values, bool *isnull);
 extern void _bt_leafbuild(BTSpool *btspool, BTSpool *spool2);
 
-#endif   /* NBTREE_H */
+#endif                         /* NBTREE_H */
index d6a308592319037c4cfa4de3906f3d93fca83b11..a46e9c36f33537c1ec7eabea43df0fdc888843f2 100644 (file)
@@ -32,9 +32,9 @@
 #define XLOG_BTREE_SPLIT_R_ROOT 0x60   /* as above, new item on right */
 #define XLOG_BTREE_DELETE      0x70    /* delete leaf index tuples for a page */
 #define XLOG_BTREE_UNLINK_PAGE 0x80    /* delete a half-dead page */
-#define XLOG_BTREE_UNLINK_PAGE_META 0x90       /* same, and update metapage */
+#define XLOG_BTREE_UNLINK_PAGE_META 0x90   /* same, and update metapage */
 #define XLOG_BTREE_NEWROOT     0xA0    /* new root page */
-#define XLOG_BTREE_MARK_PAGE_HALFDEAD 0xB0     /* mark a leaf as half-dead */
+#define XLOG_BTREE_MARK_PAGE_HALFDEAD 0xB0 /* mark a leaf as half-dead */
 #define XLOG_BTREE_VACUUM      0xC0    /* delete entries on a page during
                                         * vacuum */
 #define XLOG_BTREE_REUSE_PAGE  0xD0    /* old page is about to be reused from
@@ -252,4 +252,4 @@ extern void btree_desc(StringInfo buf, XLogReaderState *record);
 extern const char *btree_identify(uint8 info);
 extern void btree_mask(char *pagedata, BlockNumber blkno);
 
-#endif   /* NBXLOG_H */
+#endif                         /* NBXLOG_H */
index 590e27a48455466ad6d1aacf59e290c7f7e1de7b..e3e0cecf1ea3b34d273c806b20b954ffee6e8eaf 100644 (file)
@@ -67,4 +67,4 @@ extern void ParallelWorkerReportLastRecEnd(XLogRecPtr last_xlog_end);
 
 extern void ParallelWorkerMain(Datum main_arg);
 
-#endif   /* PARALLEL_H */
+#endif                         /* PARALLEL_H */
index 3f3e7a38400d5d719e8a7f000e77ab3fa4c9b61e..edf28cece97ed37ec43a80f33235c157dceebb8e 100644 (file)
@@ -20,4 +20,4 @@ extern bool printsimple(TupleTableSlot *slot, DestReceiver *self);
 extern void printsimple_startup(DestReceiver *self, int operation,
                    TupleDesc tupdesc);
 
-#endif   /* PRINTSIMPLE_H */
+#endif                         /* PRINTSIMPLE_H */
index a828889c4f5e72973a8f40ac8f8e460348ce956a..641715e4165e911928dc8b9aeed506dd0d37d1e5 100644 (file)
@@ -32,4 +32,4 @@ extern void spi_dest_startup(DestReceiver *self, int operation,
                 TupleDesc typeinfo);
 extern bool spi_printtup(TupleTableSlot *slot, DestReceiver *self);
 
-#endif   /* PRINTTUP_H */
+#endif                         /* PRINTTUP_H */
index 91b2cd7bb2faa436821af06211a68459877c40f8..5cdaa3bff1fb5f15f90ac6b1414a19ef41ca4a1a 100644 (file)
@@ -280,4 +280,4 @@ extern bytea *attribute_reloptions(Datum reloptions, bool validate);
 extern bytea *tablespace_reloptions(Datum reloptions, bool validate);
 extern LOCKMODE AlterTableGetRelOptionsLockLevel(List *defList);
 
-#endif   /* RELOPTIONS_H */
+#endif                         /* RELOPTIONS_H */
index 5247692d354a52f760a5b4ffe0cdd7a8373e3994..a20646b2b706191b442e98f72420238015488238 100644 (file)
@@ -89,14 +89,14 @@ typedef struct IndexScanDescData
    Relation    indexRelation;  /* index relation descriptor */
    Snapshot    xs_snapshot;    /* snapshot to see */
    int         numberOfKeys;   /* number of index qualifier conditions */
-   int         numberOfOrderBys;       /* number of ordering operators */
+   int         numberOfOrderBys;   /* number of ordering operators */
    ScanKey     keyData;        /* array of index qualifier descriptors */
    ScanKey     orderByData;    /* array of ordering op descriptors */
    bool        xs_want_itup;   /* caller requests index tuples */
    bool        xs_temp_snap;   /* unregister snapshot at scan end? */
 
    /* signaling to index AM about killing index tuples */
-   bool        kill_prior_tuple;       /* last-returned tuple is dead */
+   bool        kill_prior_tuple;   /* last-returned tuple is dead */
    bool        ignore_killed_tuples;   /* do not return killed entries */
    bool        xactStartedInRecovery;  /* prevents killing/seeing killed
                                         * tuples */
@@ -158,4 +158,4 @@ typedef struct SysScanDescData
    Snapshot    snapshot;       /* snapshot to unregister at end of scan */
 }          SysScanDescData;
 
-#endif   /* RELSCAN_H */
+#endif                         /* RELSCAN_H */
index 564c2ad0f52f15f19817399314da62cd08124515..91ff36707a307f027d8253dcc825c890ba8ade94 100644 (file)
@@ -54,4 +54,4 @@ typedef struct LogicalRewriteMappingData
 #define LOGICAL_REWRITE_FORMAT "map-%x-%x-%X_%X-%x-%x"
 void       CheckPointLogicalRewriteHeap(void);
 
-#endif   /* REWRITE_HEAP_H */
+#endif                         /* REWRITE_HEAP_H */
index 64b92ff33a676286cfafe4f4e03764c0aa4ad8c5..c9b5c56a4c601535b9396d1ebeddeb2638225044 100644 (file)
@@ -32,4 +32,4 @@ typedef enum RmgrIds
 
 #define RM_MAX_ID              (RM_NEXT_ID - 1)
 
-#endif   /* RMGR_H */
+#endif                         /* RMGR_H */
index 347e910a41e2ef4db137465922ea9535a70cba09..65eab485517cfc2e851bfe86bb6008abd44dd507 100644 (file)
@@ -55,4 +55,4 @@ typedef enum ScanDirection
 #define ScanDirectionIsForward(direction) \
    ((bool) ((direction) == ForwardScanDirection))
 
-#endif   /* SDIR_H */
+#endif                         /* SDIR_H */
index 01cc940363178d2f3f3cffc1acbf5f54598eb350..2f4814f140f7f360a5a765974ec772ce0dee5d17 100644 (file)
@@ -112,16 +112,15 @@ typedef ScanKeyData *ScanKey;
  * bits should be defined here).  Bits 16-31 are reserved for use within
  * individual index access methods.
  */
-#define SK_ISNULL          0x0001      /* sk_argument is NULL */
-#define SK_UNARY           0x0002      /* unary operator (not supported!) */
-#define SK_ROW_HEADER      0x0004      /* row comparison header (see above) */
-#define SK_ROW_MEMBER      0x0008      /* row comparison member (see above) */
-#define SK_ROW_END         0x0010      /* last row comparison member */
-#define SK_SEARCHARRAY     0x0020      /* scankey represents ScalarArrayOp */
-#define SK_SEARCHNULL      0x0040      /* scankey represents "col IS NULL" */
-#define SK_SEARCHNOTNULL   0x0080      /* scankey represents "col IS NOT
-                                        * NULL" */
-#define SK_ORDER_BY            0x0100      /* scankey is for ORDER BY op */
+#define SK_ISNULL          0x0001  /* sk_argument is NULL */
+#define SK_UNARY           0x0002  /* unary operator (not supported!) */
+#define SK_ROW_HEADER      0x0004  /* row comparison header (see above) */
+#define SK_ROW_MEMBER      0x0008  /* row comparison member (see above) */
+#define SK_ROW_END         0x0010  /* last row comparison member */
+#define SK_SEARCHARRAY     0x0020  /* scankey represents ScalarArrayOp */
+#define SK_SEARCHNULL      0x0040  /* scankey represents "col IS NULL" */
+#define SK_SEARCHNOTNULL   0x0080  /* scankey represents "col IS NOT NULL" */
+#define SK_ORDER_BY            0x0100  /* scankey is for ORDER BY op */
 
 
 /*
@@ -149,4 +148,4 @@ extern void ScanKeyEntryInitializeWithInfo(ScanKey entry,
                               FmgrInfo *finfo,
                               Datum argument);
 
-#endif   /* SKEY_H */
+#endif                         /* SKEY_H */
index 42d0bb72edb6cd8016652cabe9bb4b2c66eca1d8..f1b4d6cc9dc9e10f2305c19ebf4803a6f1810a42 100644 (file)
@@ -165,4 +165,4 @@ extern bool SlruScanDirCbReportPresence(SlruCtl ctl, char *filename,
 extern bool SlruScanDirCbDeleteAll(SlruCtl ctl, char *filename, int segpage,
                       void *data);
 
-#endif   /* SLRU_H */
+#endif                         /* SLRU_H */
index 9dca8fde7df0b9e61cfd1151194a4f00011f2764..d1bc396e6df31d6e9c09c172e8b00da2c08768f4 100644 (file)
@@ -74,33 +74,33 @@ typedef enum spgChooseResultType
 
 typedef struct spgChooseOut
 {
-   spgChooseResultType resultType;     /* action code, see above */
+   spgChooseResultType resultType; /* action code, see above */
    union
    {
        struct                  /* results for spgMatchNode */
        {
            int         nodeN;  /* descend to this node (index from 0) */
-           int         levelAdd;       /* increment level by this much */
-           Datum       restDatum;      /* new leaf datum */
+           int         levelAdd;   /* increment level by this much */
+           Datum       restDatum;  /* new leaf datum */
        }           matchNode;
        struct                  /* results for spgAddNode */
        {
-           Datum       nodeLabel;      /* new node's label */
+           Datum       nodeLabel;  /* new node's label */
            int         nodeN;  /* where to insert it (index from 0) */
        }           addNode;
        struct                  /* results for spgSplitTuple */
        {
            /* Info to form new upper-level inner tuple with one child tuple */
-           bool        prefixHasPrefix;        /* tuple should have a prefix? */
-           Datum       prefixPrefixDatum;      /* if so, its value */
+           bool        prefixHasPrefix;    /* tuple should have a prefix? */
+           Datum       prefixPrefixDatum;  /* if so, its value */
            int         prefixNNodes;   /* number of nodes */
-           Datum      *prefixNodeLabels;       /* their labels (or NULL for
-                                                * no labels) */
-           int         childNodeN;     /* which node gets child tuple */
+           Datum      *prefixNodeLabels;   /* their labels (or NULL for no
+                                            * labels) */
+           int         childNodeN; /* which node gets child tuple */
 
            /* Info to form new lower-level inner tuple with all old nodes */
-           bool        postfixHasPrefix;       /* tuple should have a prefix? */
-           Datum       postfixPrefixDatum;     /* if so, its value */
+           bool        postfixHasPrefix;   /* tuple should have a prefix? */
+           Datum       postfixPrefixDatum; /* if so, its value */
        }           splitTuple;
    }           result;
 } spgChooseOut;
@@ -123,7 +123,7 @@ typedef struct spgPickSplitOut
    int         nNodes;         /* number of nodes for new inner tuple */
    Datum      *nodeLabels;     /* their labels (or NULL for no labels) */
 
-   int        *mapTuplesToNodes;       /* node index for each leaf tuple */
+   int        *mapTuplesToNodes;   /* node index for each leaf tuple */
    Datum      *leafTupleDatums;    /* datum to store in each new leaf tuple */
 } spgPickSplitOut;
 
@@ -135,10 +135,9 @@ typedef struct spgInnerConsistentIn
    ScanKey     scankeys;       /* array of operators and comparison values */
    int         nkeys;          /* length of array */
 
-   Datum       reconstructedValue;     /* value reconstructed at parent */
+   Datum       reconstructedValue; /* value reconstructed at parent */
    void       *traversalValue; /* opclass-specific traverse value */
-   MemoryContext traversalMemoryContext;       /* put new traverse values
-                                                * here */
+   MemoryContext traversalMemoryContext;   /* put new traverse values here */
    int         level;          /* current level (counting from zero) */
    bool        returnData;     /* original data must be returned? */
 
@@ -167,7 +166,7 @@ typedef struct spgLeafConsistentIn
    ScanKey     scankeys;       /* array of operators and comparison values */
    int         nkeys;          /* length of array */
 
-   Datum       reconstructedValue;     /* value reconstructed at parent */
+   Datum       reconstructedValue; /* value reconstructed at parent */
    void       *traversalValue; /* opclass-specific traverse value */
    int         level;          /* current level (counting from zero) */
    bool        returnData;     /* original data must be returned? */
@@ -214,4 +213,4 @@ extern IndexBulkDeleteResult *spgvacuumcleanup(IndexVacuumInfo *info,
 /* spgvalidate.c */
 extern bool spgvalidate(Oid opclassoid);
 
-#endif   /* SPGIST_H */
+#endif                         /* SPGIST_H */
index 4072c050dea7e7f84c98e1347e57b883a3d2a767..1c4b321b6c653140690a525c3b6abe88fba47626 100644 (file)
@@ -48,8 +48,8 @@ typedef SpGistPageOpaqueData *SpGistPageOpaque;
 
 /* Flag bits in page special space */
 #define SPGIST_META            (1<<0)
-#define SPGIST_DELETED     (1<<1)      /* never set, but keep for backwards
-                                        * compatibility */
+#define SPGIST_DELETED     (1<<1)  /* never set, but keep for backwards
+                                    * compatibility */
 #define SPGIST_LEAF            (1<<2)
 #define SPGIST_NULLS       (1<<3)
 
@@ -94,7 +94,7 @@ typedef struct SpGistLUPCache
 typedef struct SpGistMetaPageData
 {
    uint32      magicNumber;    /* for identity cross-check */
-   SpGistLUPCache lastUsedPages;       /* shared storage of last-used info */
+   SpGistLUPCache lastUsedPages;   /* shared storage of last-used info */
 } SpGistMetaPageData;
 
 #define SPGIST_MAGIC_NUMBER (0xBA0BABEE)
@@ -120,10 +120,10 @@ typedef struct SpGistState
    spgConfigOut config;        /* filled in by opclass config method */
 
    SpGistTypeDesc attType;     /* type of input data and leaf values */
-   SpGistTypeDesc attPrefixType;       /* type of inner-tuple prefix values */
+   SpGistTypeDesc attPrefixType;   /* type of inner-tuple prefix values */
    SpGistTypeDesc attLabelType;    /* type of node label values */
 
-   char       *deadTupleStorage;       /* workspace for spgFormDeadTuple */
+   char       *deadTupleStorage;   /* workspace for spgFormDeadTuple */
 
    TransactionId myXid;        /* XID to use when creating a redirect tuple */
    bool        isBuild;        /* true if doing index build */
@@ -159,7 +159,7 @@ typedef struct SpGistScanOpaqueData
    int         iPtr;           /* index for scanning through same */
    ItemPointerData heapPtrs[MaxIndexTuplesPerPage];    /* TIDs from cur page */
    bool        recheck[MaxIndexTuplesPerPage]; /* their recheck flags */
-   HeapTuple   reconTups[MaxIndexTuplesPerPage];       /* reconstructed tuples */
+   HeapTuple   reconTups[MaxIndexTuplesPerPage];   /* reconstructed tuples */
 
    /*
     * Note: using MaxIndexTuplesPerPage above is a bit hokey since
@@ -179,10 +179,10 @@ typedef struct SpGistCache
    spgConfigOut config;        /* filled in by opclass config method */
 
    SpGistTypeDesc attType;     /* type of input data and leaf values */
-   SpGistTypeDesc attPrefixType;       /* type of inner-tuple prefix values */
+   SpGistTypeDesc attPrefixType;   /* type of inner-tuple prefix values */
    SpGistTypeDesc attLabelType;    /* type of node label values */
 
-   SpGistLUPCache lastUsedPages;       /* local storage of last-used info */
+   SpGistLUPCache lastUsedPages;   /* local storage of last-used info */
 } SpGistCache;
 
 
@@ -418,4 +418,4 @@ extern void spgPageIndexMultiDelete(SpGistState *state, Page page,
 extern bool spgdoinsert(Relation index, SpGistState *state,
            ItemPointer heapPtr, Datum datum, bool isnull);
 
-#endif   /* SPGIST_PRIVATE_H */
+#endif                         /* SPGIST_PRIVATE_H */
index ff597f75db87e7edb5bca8e7de658b6527173610..cf4331be4ae4b8b7527294bad79fe2fa6ae04f00 100644 (file)
@@ -238,7 +238,7 @@ typedef struct spgxlogVacuumRoot
 typedef struct spgxlogVacuumRedirect
 {
    uint16      nToPlaceholder; /* number of redirects to make placeholders */
-   OffsetNumber firstPlaceholder;      /* first placeholder tuple to remove */
+   OffsetNumber firstPlaceholder;  /* first placeholder tuple to remove */
    TransactionId newestRedirectXid;    /* newest XID of removed redirects */
 
    /* offsets of redirect tuples to make placeholders follow */
@@ -254,4 +254,4 @@ extern void spg_xlog_startup(void);
 extern void spg_xlog_cleanup(void);
 extern void spg_mask(char *pagedata, BlockNumber blkno);
 
-#endif   /* SPGXLOG_H */
+#endif                         /* SPGXLOG_H */
index 489e5c595e1c2d4b0aa5c1cd7ec9b4f4dfd0424b..91d57605b25bd0a5c773a283599cbda7dfa9b2c5 100644 (file)
@@ -41,35 +41,35 @@ typedef uint16 StrategyNumber;
  * The first few of these come from the R-Tree indexing method (hence the
  * names); the others have been added over time as they have been needed.
  */
-#define RTLeftStrategyNumber           1       /* for << */
-#define RTOverLeftStrategyNumber       2       /* for &< */
-#define RTOverlapStrategyNumber            3       /* for && */
-#define RTOverRightStrategyNumber      4       /* for &> */
-#define RTRightStrategyNumber          5       /* for >> */
-#define RTSameStrategyNumber           6       /* for ~= */
-#define RTContainsStrategyNumber       7       /* for @> */
-#define RTContainedByStrategyNumber        8       /* for <@ */
-#define RTOverBelowStrategyNumber      9       /* for &<| */
-#define RTBelowStrategyNumber          10      /* for <<| */
-#define RTAboveStrategyNumber          11      /* for |>> */
-#define RTOverAboveStrategyNumber      12      /* for |&> */
-#define RTOldContainsStrategyNumber        13      /* for old spelling of @> */
-#define RTOldContainedByStrategyNumber 14      /* for old spelling of <@ */
-#define RTKNNSearchStrategyNumber      15      /* for <-> (distance) */
-#define RTContainsElemStrategyNumber   16      /* for range types @> elem */
-#define RTAdjacentStrategyNumber       17      /* for -|- */
-#define RTEqualStrategyNumber          18      /* for = */
-#define RTNotEqualStrategyNumber       19      /* for != */
-#define RTLessStrategyNumber           20      /* for < */
-#define RTLessEqualStrategyNumber      21      /* for <= */
-#define RTGreaterStrategyNumber            22      /* for > */
-#define RTGreaterEqualStrategyNumber   23      /* for >= */
-#define RTSubStrategyNumber                24      /* for inet >> */
-#define RTSubEqualStrategyNumber       25      /* for inet <<= */
-#define RTSuperStrategyNumber          26      /* for inet << */
-#define RTSuperEqualStrategyNumber     27      /* for inet >>= */
+#define RTLeftStrategyNumber           1   /* for << */
+#define RTOverLeftStrategyNumber       2   /* for &< */
+#define RTOverlapStrategyNumber            3   /* for && */
+#define RTOverRightStrategyNumber      4   /* for &> */
+#define RTRightStrategyNumber          5   /* for >> */
+#define RTSameStrategyNumber           6   /* for ~= */
+#define RTContainsStrategyNumber       7   /* for @> */
+#define RTContainedByStrategyNumber        8   /* for <@ */
+#define RTOverBelowStrategyNumber      9   /* for &<| */
+#define RTBelowStrategyNumber          10  /* for <<| */
+#define RTAboveStrategyNumber          11  /* for |>> */
+#define RTOverAboveStrategyNumber      12  /* for |&> */
+#define RTOldContainsStrategyNumber        13  /* for old spelling of @> */
+#define RTOldContainedByStrategyNumber 14  /* for old spelling of <@ */
+#define RTKNNSearchStrategyNumber      15  /* for <-> (distance) */
+#define RTContainsElemStrategyNumber   16  /* for range types @> elem */
+#define RTAdjacentStrategyNumber       17  /* for -|- */
+#define RTEqualStrategyNumber          18  /* for = */
+#define RTNotEqualStrategyNumber       19  /* for != */
+#define RTLessStrategyNumber           20  /* for < */
+#define RTLessEqualStrategyNumber      21  /* for <= */
+#define RTGreaterStrategyNumber            22  /* for > */
+#define RTGreaterEqualStrategyNumber   23  /* for >= */
+#define RTSubStrategyNumber                24  /* for inet >> */
+#define RTSubEqualStrategyNumber       25  /* for inet <<= */
+#define RTSuperStrategyNumber          26  /* for inet << */
+#define RTSuperEqualStrategyNumber     27  /* for inet >>= */
 
 #define RTMaxStrategyNumber                27
 
 
-#endif   /* STRATNUM_H */
+#endif                         /* STRATNUM_H */
index 847359873a9e3d7589b8b6b015e49dd2e77956de..41716d7b71741b8909bb1601cd08e6441d7b6ceb 100644 (file)
@@ -27,4 +27,4 @@ extern void CheckPointSUBTRANS(void);
 extern void ExtendSUBTRANS(TransactionId newestXact);
 extern void TruncateSUBTRANS(TransactionId oldestXact);
 
-#endif   /* SUBTRANS_H */
+#endif                         /* SUBTRANS_H */
index c03d3ffb43b7a969041387e60c066510c6313018..b88c5e11411189a45c4ec417ad082ab4dd799989 100644 (file)
@@ -27,4 +27,4 @@
 #define TableOidAttributeNumber                    (-7)
 #define FirstLowInvalidHeapAttributeNumber     (-8)
 
-#endif   /* SYSATTR_H */
+#endif                         /* SYSATTR_H */
index c1911feb1604414e0127876a178919ce36b072e7..4bdb0c1f4fef7843afc25f2dcc95b74fe78b3406 100644 (file)
@@ -41,4 +41,4 @@ extern TimeLineID tliOfPointInHistory(XLogRecPtr ptr, List *history);
 extern XLogRecPtr tliSwitchPoint(TimeLineID tli, List *history,
               TimeLineID *nextTLI);
 
-#endif   /* TIMELINE_H */
+#endif                         /* TIMELINE_H */
index d25a2dd2073f406f1ba471d564fbe5d14b2e31bd..86076dede1e5b454493217af3ed804030c690b66 100644 (file)
@@ -183,4 +183,4 @@ extern void AdvanceOldestClogXid(TransactionId oldest_datfrozenxid);
 extern bool ForceTransactionIdLimitUpdate(void);
 extern Oid GetNewObjectId(void);
 
-#endif   /* TRAMSAM_H */
+#endif                         /* TRAMSAM_H */
index 8ba750299f0ef2b542239d91530c8d344f117404..3d94cc646613cb69497f5f63452c718a135a0619 100644 (file)
@@ -67,15 +67,15 @@ typedef struct TsmRoutine
    SampleScanGetSampleSize_function SampleScanGetSampleSize;
 
    /* Functions for executing a SampleScan on a physical table */
-   InitSampleScan_function InitSampleScan;     /* can be NULL */
+   InitSampleScan_function InitSampleScan; /* can be NULL */
    BeginSampleScan_function BeginSampleScan;
    NextSampleBlock_function NextSampleBlock;   /* can be NULL */
    NextSampleTuple_function NextSampleTuple;
-   EndSampleScan_function EndSampleScan;       /* can be NULL */
+   EndSampleScan_function EndSampleScan;   /* can be NULL */
 } TsmRoutine;
 
 
 /* Functions in access/tablesample/tablesample.c */
 extern TsmRoutine *GetTsmRoutine(Oid tsmhandler);
 
-#endif   /* TSMAPI_H */
+#endif                         /* TSMAPI_H */
index e86cfd56c83f8a54c18c8ebf75defffa0219f64f..173904adae0bb9535f641fd1c9d0637e0e7e286d 100644 (file)
@@ -46,4 +46,4 @@ extern HeapTuple do_convert_tuple(HeapTuple tuple, TupleConversionMap *map);
 
 extern void free_conversion_map(TupleConversionMap *map);
 
-#endif   /* TUPCONVERT_H */
+#endif                         /* TUPCONVERT_H */
index 0d1e263013adbcab3eb4cf24382ab944d6eb9f2d..e7065d70baadd8db7b5ba596a9f421464fc5c271 100644 (file)
@@ -134,4 +134,4 @@ extern TupleDesc BuildDescForRelation(List *schema);
 
 extern TupleDesc BuildDescFromLists(List *names, List *types, List *typmods, List *collations);
 
-#endif   /* TUPDESC_H */
+#endif                         /* TUPDESC_H */
index b5369108cc80c660c4ce077d64eeb98de65b8c8f..6746203828f9f3b4c449313436a000f97f65ea8a 100644 (file)
@@ -88,7 +88,7 @@
    : \
    PointerGetDatum((char *) (T)) \
 )
-#endif   /* SIZEOF_DATUM == 8 */
+#endif                         /* SIZEOF_DATUM == 8 */
 
 /*
  * att_align_datum aligns the given offset as needed for a datum of alignment
                break; \
        } \
    } while (0)
-#endif   /* SIZEOF_DATUM == 8 */
+#endif                         /* SIZEOF_DATUM == 8 */
 
 #endif
index 6a5880e23875197e73ff38d435f8630e50d4a7c2..fd9f83ac44943383b9f043e89784f37b2a9bd153 100644 (file)
@@ -84,7 +84,7 @@
  *
  * NB: Changing TOAST_MAX_CHUNK_SIZE requires an initdb.
  */
-#define EXTERN_TUPLES_PER_PAGE 4       /* tweak only this */
+#define EXTERN_TUPLES_PER_PAGE 4   /* tweak only this */
 
 #define EXTERN_TUPLE_MAX_SIZE  MaximumBytesPerTuple(EXTERN_TUPLES_PER_PAGE)
 
@@ -236,4 +236,4 @@ extern Size toast_datum_size(Datum value);
  */
 extern Oid toast_get_valid_index(Oid toastoid, LOCKMODE lock);
 
-#endif   /* TUPTOASTER_H */
+#endif                         /* TUPTOASTER_H */
index 2aab1f93a65fb9e1e73dcd2e2001b15d09229429..54dec4eeafb6864180cfb0fb604dfea497f53e66 100644 (file)
@@ -57,4 +57,4 @@ extern void PrepareRedoAdd(char *buf, XLogRecPtr start_lsn,
               XLogRecPtr end_lsn);
 extern void PrepareRedoRemove(TransactionId xid, bool giveWarning);
 extern void restoreTwoPhaseData(void);
-#endif   /* TWOPHASE_H */
+#endif                         /* TWOPHASE_H */
index ed2067b7fb3c523158c8b9ea1062549e99b5b5ee..44cd6d202f2003201d8ef055d7ad16540b4cdb2d 100644 (file)
@@ -37,4 +37,4 @@ extern const TwoPhaseCallback twophase_standby_recover_callbacks[];
 extern void RegisterTwoPhaseRecord(TwoPhaseRmgrId rmid, uint16 info,
                       const void *data, uint32 len);
 
-#endif   /* TWOPHASE_RMGR_H */
+#endif                         /* TWOPHASE_RMGR_H */
index 72f2bb6ac29272673b20c29852ce41b1f59666f3..53a7d0685aec1efcb4d2e1e3580780556cb1f623 100644 (file)
@@ -66,4 +66,4 @@ do \
    } \
 } while (0)
 
-#endif   /* VALID_H */
+#endif                         /* VALID_H */
index a3796f290289852ec8e147e921cde9adb4f0227a..da0e76d6bef17c00f73f90ae6a327b20d94df508 100644 (file)
@@ -25,8 +25,8 @@
 /* Flags for bit map */
 #define VISIBILITYMAP_ALL_VISIBLE  0x01
 #define VISIBILITYMAP_ALL_FROZEN   0x02
-#define VISIBILITYMAP_VALID_BITS   0x03        /* OR of all valid
-                                                * visibilitymap flags bits */
+#define VISIBILITYMAP_VALID_BITS   0x03    /* OR of all valid visibilitymap
+                                            * flags bits */
 
 /* Macros for visibilitymap test */
 #define VM_ALL_VISIBLE(r, b, v) \
@@ -46,4 +46,4 @@ extern uint8 visibilitymap_get_status(Relation rel, BlockNumber heapBlk, Buffer
 extern void visibilitymap_count(Relation rel, BlockNumber *all_visible, BlockNumber *all_frozen);
 extern void visibilitymap_truncate(Relation rel, BlockNumber nheapblocks);
 
-#endif   /* VISIBILITYMAP_H */
+#endif                         /* VISIBILITYMAP_H */
index 50bace80de21c83c00204dda7c131df8341c158d..ad5aad96df0cdcc11e1d022dd07c84a9a4307545 100644 (file)
@@ -57,12 +57,11 @@ extern bool XactDeferrable;
 typedef enum
 {
    SYNCHRONOUS_COMMIT_OFF,     /* asynchronous commit */
-   SYNCHRONOUS_COMMIT_LOCAL_FLUSH,     /* wait for local flush only */
+   SYNCHRONOUS_COMMIT_LOCAL_FLUSH, /* wait for local flush only */
    SYNCHRONOUS_COMMIT_REMOTE_WRITE,    /* wait for local flush and remote
                                         * write */
    SYNCHRONOUS_COMMIT_REMOTE_FLUSH,    /* wait for local and remote flush */
-   SYNCHRONOUS_COMMIT_REMOTE_APPLY     /* wait for local flush and remote
-                                        * apply */
+   SYNCHRONOUS_COMMIT_REMOTE_APPLY /* wait for local flush and remote apply */
 }          SyncCommitLevel;
 
 /* Define the default setting for synchronous_commit */
@@ -405,4 +404,4 @@ extern void EnterParallelMode(void);
 extern void ExitParallelMode(void);
 extern bool IsInParallelMode(void);
 
-#endif   /* XACT_H */
+#endif                         /* XACT_H */
index e00ab12d2ee64e3a91aad425d4f423eddf41e1e8..49afdfb37486d78a9d1efcb2e35a79195e908dd5 100644 (file)
@@ -24,9 +24,9 @@
 /* Sync methods */
 #define SYNC_METHOD_FSYNC      0
 #define SYNC_METHOD_FDATASYNC  1
-#define SYNC_METHOD_OPEN       2       /* for O_SYNC */
+#define SYNC_METHOD_OPEN       2   /* for O_SYNC */
 #define SYNC_METHOD_FSYNC_WRITETHROUGH 3
-#define SYNC_METHOD_OPEN_DSYNC 4       /* for O_DSYNC */
+#define SYNC_METHOD_OPEN_DSYNC 4   /* for O_DSYNC */
 extern int sync_method;
 
 extern PGDLLIMPORT TimeLineID ThisTimeLineID;  /* current TLI */
@@ -173,9 +173,8 @@ extern bool XLOG_DEBUG;
 
 /* These directly affect the behavior of CreateCheckPoint and subsidiaries */
 #define CHECKPOINT_IS_SHUTDOWN 0x0001  /* Checkpoint is for shutdown */
-#define CHECKPOINT_END_OF_RECOVERY 0x0002      /* Like shutdown checkpoint,
-                                                * but issued at end of WAL
-                                                * recovery */
+#define CHECKPOINT_END_OF_RECOVERY 0x0002  /* Like shutdown checkpoint, but
+                                            * issued at end of WAL recovery */
 #define CHECKPOINT_IMMEDIATE   0x0004  /* Do it without delays */
 #define CHECKPOINT_FORCE       0x0008  /* Force even if no activity */
 #define CHECKPOINT_FLUSH_ALL   0x0010  /* Flush all pages, including those
@@ -202,18 +201,18 @@ typedef struct CheckpointStatsData
    TimestampTz ckpt_sync_end_t;    /* end of fsyncs */
    TimestampTz ckpt_end_t;     /* end of checkpoint */
 
-   int         ckpt_bufs_written;      /* # of buffers written */
+   int         ckpt_bufs_written;  /* # of buffers written */
 
    int         ckpt_segs_added;    /* # of new xlog segments created */
-   int         ckpt_segs_removed;      /* # of xlog segments deleted */
-   int         ckpt_segs_recycled;     /* # of xlog segments recycled */
+   int         ckpt_segs_removed;  /* # of xlog segments deleted */
+   int         ckpt_segs_recycled; /* # of xlog segments recycled */
 
    int         ckpt_sync_rels; /* # of relations synced */
-   uint64      ckpt_longest_sync;      /* Longest sync for one relation */
-   uint64      ckpt_agg_sync_time;     /* The sum of all the individual sync
-                                        * times, which is not necessarily the
-                                        * same as the total elapsed time for
-                                        * the entire sync phase. */
+   uint64      ckpt_longest_sync;  /* Longest sync for one relation */
+   uint64      ckpt_agg_sync_time; /* The sum of all the individual sync
+                                    * times, which is not necessarily the
+                                    * same as the total elapsed time for the
+                                    * entire sync phase. */
 } CheckpointStatsData;
 
 extern CheckpointStatsData CheckpointStats;
@@ -324,4 +323,4 @@ extern SessionBackupState get_backup_status(void);
 #define TABLESPACE_MAP         "tablespace_map"
 #define TABLESPACE_MAP_OLD     "tablespace_map.old"
 
-#endif   /* XLOG_H */
+#endif                         /* XLOG_H */
index 6e2bfd0ad03c9a0d5b9e905f3c2cb58db36a25b2..a661ec01808ed28f4d229dab79b3181245f0ffc6 100644 (file)
@@ -319,4 +319,4 @@ extern bool XLogArchiveIsReady(const char *xlog);
 extern bool XLogArchiveIsReadyOrDone(const char *xlog);
 extern void XLogArchiveCleanup(const char *xlog);
 
-#endif   /* XLOG_INTERNAL_H */
+#endif                         /* XLOG_INTERNAL_H */
index 0f07bb26746fd5aa387d7a7684fbf8f7a31f6bf9..3a80d6be6f5fb89ea37c5871f82f54f051460915 100644 (file)
@@ -99,4 +99,4 @@ typedef uint16 RepOriginId;
 #define DEFAULT_SYNC_METHOD        SYNC_METHOD_FSYNC
 #endif
 
-#endif   /* XLOG_DEFS_H */
+#endif                         /* XLOG_DEFS_H */
index d0d005a557d1abf04bf46482b9dc9771ff52fc8e..174c88677f5d88ec29d7a3d9ef7fd7de492ffb79 100644 (file)
@@ -29,9 +29,8 @@
 /* flags for XLogRegisterBuffer */
 #define REGBUF_FORCE_IMAGE 0x01    /* force a full-page image */
 #define REGBUF_NO_IMAGE        0x02    /* don't take a full-page image */
-#define REGBUF_WILL_INIT   (0x04 | 0x02)       /* page will be re-initialized
-                                                * at replay (implies
-                                                * NO_IMAGE) */
+#define REGBUF_WILL_INIT   (0x04 | 0x02)   /* page will be re-initialized at
+                                            * replay (implies NO_IMAGE) */
 #define REGBUF_STANDARD        0x08    /* page follows "standard" page layout,
                                     * (data between pd_lower and pd_upper
                                     * will be skipped) */
@@ -59,4 +58,4 @@ extern XLogRecPtr XLogSaveBufferForHint(Buffer buffer, bool buffer_std);
 
 extern void InitXLogInsert(void);
 
-#endif   /* XLOGINSERT_H */
+#endif                         /* XLOGINSERT_H */
index 51843a28076c797ae866281a702f671a57e8c005..767159833493ffce8044e18db7e7fc1a9eaa2a3b 100644 (file)
@@ -204,7 +204,7 @@ extern void XLogReaderInvalReadState(XLogReaderState *state);
 
 #ifdef FRONTEND
 extern XLogRecPtr XLogFindNextRecord(XLogReaderState *state, XLogRecPtr RecPtr);
-#endif   /* FRONTEND */
+#endif                         /* FRONTEND */
 
 /* Functions for decoding an XLogRecord */
 
@@ -233,4 +233,4 @@ extern bool XLogRecGetBlockTag(XLogReaderState *record, uint8 block_id,
                   RelFileNode *rnode, ForkNumber *forknum,
                   BlockNumber *blknum);
 
-#endif   /* XLOGREADER_H */
+#endif                         /* XLOGREADER_H */
index 1a8dcf2cce41e8b7ca5b7a85a777f22a9abce9bc..b53960e1126d5501651575febf5189a53d83483f 100644 (file)
@@ -145,7 +145,7 @@ typedef struct XLogRecordBlockImageHeader
 
 /* Information stored in bimg_info */
 #define BKPIMAGE_HAS_HOLE      0x01    /* page image has "hole" */
-#define BKPIMAGE_IS_COMPRESSED     0x02        /* page image is compressed */
+#define BKPIMAGE_IS_COMPRESSED     0x02    /* page image is compressed */
 #define BKPIMAGE_APPLY     0x04    /* page image should be restored during
                                     * replay */
 
@@ -225,4 +225,4 @@ typedef struct XLogRecordDataHeaderLong
 #define XLR_BLOCK_ID_DATA_LONG     254
 #define XLR_BLOCK_ID_ORIGIN            253
 
-#endif   /* XLOGRECORD_H */
+#endif                         /* XLOGRECORD_H */
index cb123e4d6469851dce072fb16c949bc324a52cd9..35eb9a4ff51621f5b469ba2ff4d4482640508a15 100644 (file)
@@ -63,4 +63,4 @@ extern int    boot_yyparse(void);
 extern int boot_yylex(void);
 extern void boot_yyerror(const char *str) pg_attribute_noreturn();
 
-#endif   /* BOOTSTRAP_H */
+#endif                         /* BOOTSTRAP_H */
index c8e761d2777b0e7662a04f129cb8c3f67dac6acb..9066e3c57835f97f8a0ee6cf1cf4bd8102979fcb 100644 (file)
@@ -62,7 +62,7 @@
 #define WIN32
 #endif
 
-#if !defined(WIN32) && !defined(__CYGWIN__)        /* win32 includes further down */
+#if !defined(WIN32) && !defined(__CYGWIN__) /* win32 includes further down */
 #include "pg_config_os.h"      /* must be before any system header files */
 #endif
 
@@ -209,7 +209,7 @@ typedef char bool;
 #ifndef false
 #define false  ((bool) 0)
 #endif
-#endif   /* not C++ */
+#endif                         /* not C++ */
 
 typedef bool *BoolPtr;
 
@@ -254,7 +254,7 @@ typedef char *Pointer;
 typedef signed char int8;      /* == 8 bits */
 typedef signed short int16;        /* == 16 bits */
 typedef signed int int32;      /* == 32 bits */
-#endif   /* not HAVE_INT8 */
+#endif                         /* not HAVE_INT8 */
 
 /*
  * uintN
@@ -266,7 +266,7 @@ typedef signed int int32;       /* == 32 bits */
 typedef unsigned char uint8;   /* == 8 bits */
 typedef unsigned short uint16; /* == 16 bits */
 typedef unsigned int uint32;   /* == 32 bits */
-#endif   /* not HAVE_UINT8 */
+#endif                         /* not HAVE_UINT8 */
 
 /*
  * bitsN
@@ -553,7 +553,7 @@ typedef NameData *Name;
  */
 #ifndef offsetof
 #define offsetof(type, field)  ((long) &((type *)0)->field)
-#endif   /* offsetof */
+#endif                         /* offsetof */
 
 /*
  * lengthof
@@ -732,7 +732,7 @@ typedef NameData *Name;
    Trap(TYPEALIGN(bndr, (uintptr_t)(ptr)) != (uintptr_t)(ptr), \
         "UnalignedPointer")
 
-#endif   /* USE_ASSERT_CHECKING && !FRONTEND */
+#endif                         /* USE_ASSERT_CHECKING && !FRONTEND */
 
 /*
  * Macros to support compile-time assertion checks.
@@ -758,7 +758,7 @@ typedef NameData *Name;
    ((void) sizeof(struct { int static_assert_failure : (condition) ? 1 : -1; }))
 #define StaticAssertExpr(condition, errmessage) \
    StaticAssertStmt(condition, errmessage)
-#endif   /* HAVE__STATIC_ASSERT */
+#endif                         /* HAVE__STATIC_ASSERT */
 
 
 /*
@@ -786,7 +786,7 @@ typedef NameData *Name;
 #define AssertVariableIsOfTypeMacro(varname, typename) \
    ((void) StaticAssertExpr(sizeof(varname) == sizeof(typename),       \
     CppAsString(varname) " does not have type " CppAsString(typename)))
-#endif   /* HAVE__BUILTIN_TYPES_COMPATIBLE_P */
+#endif                         /* HAVE__BUILTIN_TYPES_COMPATIBLE_P */
 
 
 /* ----------------------------------------------------------------
@@ -1124,4 +1124,4 @@ extern int    fdatasync(int fildes);
 /* /port compatibility functions */
 #include "port.h"
 
-#endif   /* C_H */
+#endif                         /* C_H */
index 98089e3c1a975955c7a2f6a97782290a9e50a036..5ff365fe53b372c054954390831d9fd28d0fb72b 100644 (file)
@@ -27,4 +27,4 @@ extern PGDLLIMPORT Oid binary_upgrade_next_pg_authid_oid;
 
 extern PGDLLIMPORT bool binary_upgrade_record_init_privs;
 
-#endif   /* BINARY_UPGRADE_H */
+#endif                         /* BINARY_UPGRADE_H */
index d0a199afde7d1e2de269fde0f81560fca4227f48..8ce9a9966a436a69be07bf786255c3a1808f6345 100644 (file)
@@ -48,4 +48,4 @@ extern Oid GetNewOidWithIndex(Relation relation, Oid indexId,
 extern Oid GetNewRelFileNode(Oid reltablespace, Relation pg_class,
                  char relpersistence);
 
-#endif   /* CATALOG_H */
+#endif                         /* CATALOG_H */
index 8586b9d7a1f0a1122b607a13cf49875e7d2e3c39..b9f98423cc21f77b78f8303dfcd1e4833701a2da 100644 (file)
@@ -171,11 +171,11 @@ typedef enum ObjectClass
 #define LAST_OCLASS        OCLASS_TRANSFORM
 
 /* flag bits for performDeletion/performMultipleDeletions: */
-#define PERFORM_DELETION_INTERNAL          0x0001      /* internal action */
-#define PERFORM_DELETION_CONCURRENTLY      0x0002      /* concurrent drop */
-#define PERFORM_DELETION_QUIETLY           0x0004      /* suppress notices */
-#define PERFORM_DELETION_SKIP_ORIGINAL     0x0008      /* keep original obj */
-#define PERFORM_DELETION_SKIP_EXTENSIONS   0x0010      /* keep extensions */
+#define PERFORM_DELETION_INTERNAL          0x0001  /* internal action */
+#define PERFORM_DELETION_CONCURRENTLY      0x0002  /* concurrent drop */
+#define PERFORM_DELETION_QUIETLY           0x0004  /* suppress notices */
+#define PERFORM_DELETION_SKIP_ORIGINAL     0x0008  /* keep original obj */
+#define PERFORM_DELETION_SKIP_EXTENSIONS   0x0010  /* keep extensions */
 
 
 /* in dependency.c */
@@ -278,4 +278,4 @@ extern void shdepDropOwned(List *relids, DropBehavior behavior);
 
 extern void shdepReassignOwned(List *relids, Oid newrole);
 
-#endif   /* DEPENDENCY_H */
+#endif                         /* DEPENDENCY_H */
index a522b4cd826f81886f01ef9ca7b3aab5fa63b418..a2cb313d4a705320fff85b67609d926b59e829bc 100644 (file)
@@ -47,4 +47,4 @@
 #define DESCR(x)  extern int no_such_variable
 #define SHDESCR(x) extern int no_such_variable
 
-#endif   /* GENBKI_H */
+#endif                         /* GENBKI_H */
index aa494528364367c72c36b97c8344d69d54050671..cb1bc887f8a4b82a5ce638ce73d7d23d4f62b99a 100644 (file)
@@ -146,4 +146,4 @@ extern void RemovePartitionKeyByRelId(Oid relid);
 extern void StorePartitionBound(Relation rel, Relation parent,
                    PartitionBoundSpec *bound);
 
-#endif   /* HEAP_H */
+#endif                         /* HEAP_H */
index 47c059cae497a661040c73c7d35bc6c1879dac34..1d4ec09f8fbd3a6d52f0623646fb05433e0f56d5 100644 (file)
@@ -131,4 +131,4 @@ extern bool ReindexIsProcessingHeap(Oid heapOid);
 extern bool ReindexIsProcessingIndex(Oid indexOid);
 extern Oid IndexGetRelation(Oid indexId, bool missing_ok);
 
-#endif   /* INDEX_H */
+#endif                         /* INDEX_H */
index 07300f8a2bd9e50a881f65754766b3e21923cf99..ef8493674c6d30180166055cadeae859cf533b2b 100644 (file)
@@ -362,4 +362,4 @@ DECLARE_UNIQUE_INDEX(pg_subscription_rel_srrelid_srsubid_index, 6117, on pg_subs
 /* last step of initialization script: build the indexes declared above */
 BUILD_INDICES
 
-#endif   /* INDEXING_H */
+#endif                         /* INDEXING_H */
index 9bec5d5685afce3b45aaf2619bc0a2b781d70f45..f2ee9356236d921c512341f0dfe18340d52dcd69 100644 (file)
@@ -157,4 +157,4 @@ extern char *namespace_search_path;
 extern List *fetch_search_path(bool includeImplicit);
 extern int fetch_search_path_array(Oid *sarray, int sarray_len);
 
-#endif   /* NAMESPACE_H */
+#endif                         /* NAMESPACE_H */
index a53528bba016d27f497d610890f00d644cfb3fe7..251eb6fd88847cc902d2dbf120d959b2a58016bb 100644 (file)
@@ -182,4 +182,4 @@ extern void RunFunctionExecuteHook(Oid objectId);
            RunFunctionExecuteHook(objectId);   \
    } while(0)
 
-#endif   /* OBJECTACCESS_H */
+#endif                         /* OBJECTACCESS_H */
index 406c38bc73adb719ef8dcab47ebb7c5361a358a5..5fc54d0e5791a2e7ee93a7a5de754e1e85d86ea1 100644 (file)
@@ -78,4 +78,4 @@ extern char *getObjectIdentityParts(const ObjectAddress *address,
                       List **objname, List **objargs);
 extern ArrayType *strlist_to_textarray(List *list);
 
-#endif   /* OBJECTADDRESS_H */
+#endif                         /* OBJECTADDRESS_H */
index 448ad9708b7cc36ef287cd90c39cf6d9a5bb8a70..c4a010029ae597e5d0c9a498cd12732479350e54 100644 (file)
@@ -25,4 +25,4 @@ typedef struct
    Oid         sortfamily;     /* ordering operator's sort opfamily, or 0 */
 } OpFamilyMember;
 
-#endif   /* OPFAM_INTERNAL_H */
+#endif                         /* OPFAM_INTERNAL_H */
index 0a1e468898612a514102966753d26b4371dffee8..f10879a162a0068f4bd6ed8443c9a144bc4cc587 100644 (file)
@@ -34,7 +34,7 @@ typedef struct PartitionDescData
 {
    int         nparts;         /* Number of partitions */
    Oid        *oids;           /* OIDs of partitions */
-   PartitionBoundInfo boundinfo;       /* collection of partition bounds */
+   PartitionBoundInfo boundinfo;   /* collection of partition bounds */
 } PartitionDescData;
 
 typedef struct PartitionDescData *PartitionDesc;
@@ -98,4 +98,4 @@ extern int get_partition_for_tuple(PartitionDispatch *pd,
                        EState *estate,
                        PartitionDispatchData **failed_at,
                        TupleTableSlot **failed_slot);
-#endif   /* PARTITION_H */
+#endif                         /* PARTITION_H */
index 1ffde6cdc55eb70ec1313aa1db9def17ac4d8c5b..4d5b9bb9a669dd5b211b03b187a8013a28b1b9a5 100644 (file)
@@ -348,4 +348,4 @@ extern ObjectAddress AggregateCreate(const char *aggName,
                const char *aggminitval,
                char proparallel);
 
-#endif   /* PG_AGGREGATE_H */
+#endif                         /* PG_AGGREGATE_H */
index 9b6dc38f64bf267d20612476cfe82551a6ec4a16..e021f5b8947d344e5e29bf48c0ac11774319e395 100644 (file)
@@ -58,7 +58,7 @@ typedef FormData_pg_am *Form_pg_am;
  *     compiler constant for amtype
  * ----------------
  */
-#define AMTYPE_INDEX                   'i'     /* index access method */
+#define AMTYPE_INDEX                   'i' /* index access method */
 
 /* ----------------
  *     initial contents of pg_am
@@ -84,4 +84,4 @@ DATA(insert OID = 3580 (  brin        brinhandler i ));
 DESCR("block range index (BRIN) access method");
 #define BRIN_AM_OID 3580
 
-#endif   /* PG_AM_H */
+#endif                         /* PG_AM_H */
index da0228de6bb69b9f34934338c307885036deb66d..f850be490af3ebf6c7762b95a465dff8f6b8e134 100644 (file)
@@ -1162,4 +1162,4 @@ DATA(insert ( 4104    603  603 12 s     2572    3580 0 ));
 /* we could, but choose not to, supply entries for strategies 13 and 14 */
 DATA(insert (  4104    603  600  7 s      433    3580 0 ));
 
-#endif   /* PG_AMOP_H */
+#endif                         /* PG_AMOP_H */
index bcbb7a16175cece8a91146115a51e5121fc7d872..7d245b12710ee0bd289cb04791414cbe9092e921 100644 (file)
@@ -536,4 +536,4 @@ DATA(insert (   4104   603   603  4  4108 ));
 DATA(insert (  4104   603   603  11 4067 ));
 DATA(insert (  4104   603   603  13  187 ));
 
-#endif   /* PG_AMPROC_H */
+#endif                         /* PG_AMPROC_H */
index ff1842f53cbd2aac634f0b6f7cfcf0dcc8f20653..b877f42a2d21eb302b98042f7325560196bdbf63 100644 (file)
@@ -56,4 +56,4 @@ typedef FormData_pg_attrdef *Form_pg_attrdef;
 #define Anum_pg_attrdef_adbin          3
 #define Anum_pg_attrdef_adsrc          4
 
-#endif   /* PG_ATTRDEF_H */
+#endif                         /* PG_ATTRDEF_H */
index 753d45f2d17fb975da1e850b8998968ceeac664e..bcf28e8f0459dddd7adf872c3226dbca67f1a683 100644 (file)
@@ -228,4 +228,4 @@ typedef FormData_pg_attribute *Form_pg_attribute;
 #define          ATTRIBUTE_IDENTITY_ALWAYS     'a'
 #define          ATTRIBUTE_IDENTITY_BY_DEFAULT 'd'
 
-#endif   /* PG_ATTRIBUTE_H */
+#endif                         /* PG_ATTRIBUTE_H */
index e34a4e80a4efdb51a124ed5c05a9be0cd3a68dbd..6a954fff9787e97c8d6c5ff1e264990bdc412fde 100644 (file)
@@ -54,4 +54,4 @@ typedef FormData_pg_auth_members *Form_pg_auth_members;
 #define Anum_pg_auth_members_grantor       3
 #define Anum_pg_auth_members_admin_option  4
 
-#endif   /* PG_AUTH_MEMBERS_H */
+#endif                         /* PG_AUTH_MEMBERS_H */
index 39fea9f41ac93667e1d4eff669fbe05a14f1e9d4..9b6b52c9f9192d5cbafee036dbfd77925d9de9ab 100644 (file)
@@ -111,4 +111,4 @@ DATA(insert OID = 3377 ( "pg_stat_scan_tables" f t f f f f f -1 _null_ _null_));
 DATA(insert OID = 4200 ( "pg_signal_backend" f t f f f f f -1 _null_ _null_));
 #define DEFAULT_ROLE_SIGNAL_BACKENDID  4200
 
-#endif   /* PG_AUTHID_H */
+#endif                         /* PG_AUTHID_H */
index ccc6fb35a865697b016ed3e5935f39feec58d28c..17827531ad2d80d5c2a785cd27495bdaea77362d 100644 (file)
@@ -52,8 +52,8 @@ typedef FormData_pg_cast *Form_pg_cast;
 
 typedef enum CoercionCodes
 {
-   COERCION_CODE_IMPLICIT = 'i',       /* coercion in context of expression */
-   COERCION_CODE_ASSIGNMENT = 'a',     /* coercion in context of assignment */
+   COERCION_CODE_IMPLICIT = 'i',   /* coercion in context of expression */
+   COERCION_CODE_ASSIGNMENT = 'a', /* coercion in context of assignment */
    COERCION_CODE_EXPLICIT = 'e'    /* explicit cast operation */
 } CoercionCodes;
 
@@ -64,8 +64,8 @@ typedef enum CoercionCodes
  */
 typedef enum CoercionMethod
 {
-   COERCION_METHOD_FUNCTION = 'f',     /* use a function */
-   COERCION_METHOD_BINARY = 'b',       /* types are binary-compatible */
+   COERCION_METHOD_FUNCTION = 'f', /* use a function */
+   COERCION_METHOD_BINARY = 'b',   /* types are binary-compatible */
    COERCION_METHOD_INOUT = 'i' /* use input/output functions */
 } CoercionMethod;
 
@@ -392,4 +392,4 @@ DATA(insert ( 1700 1700 1703 i f ));
 DATA(insert (  114 3802    0 a i ));
 DATA(insert ( 3802 114    0 a i ));
 
-#endif   /* PG_CAST_H */
+#endif                         /* PG_CAST_H */
index 5a288830e855906133f9f3061b862a315bd68cba..b256657bda08f1377952202619a1ac1285347b35 100644 (file)
@@ -157,19 +157,19 @@ DATA(insert OID = 1259 (  pg_class        PGNSP 83 0 PGUID 0 0 0 0 0 0 0 f f p r 33 0
 DESCR("");
 
 
-#define          RELKIND_RELATION        'r'       /* ordinary table */
-#define          RELKIND_INDEX           'i'       /* secondary index */
-#define          RELKIND_SEQUENCE        'S'       /* sequence object */
-#define          RELKIND_TOASTVALUE      't'       /* for out-of-line values */
-#define          RELKIND_VIEW            'v'       /* view */
-#define          RELKIND_MATVIEW         'm'       /* materialized view */
-#define          RELKIND_COMPOSITE_TYPE  'c'       /* composite type */
-#define          RELKIND_FOREIGN_TABLE   'f'       /* foreign table */
-#define          RELKIND_PARTITIONED_TABLE 'p'     /* partitioned table */
-
-#define          RELPERSISTENCE_PERMANENT  'p'     /* regular table */
-#define          RELPERSISTENCE_UNLOGGED   'u'     /* unlogged permanent table */
-#define          RELPERSISTENCE_TEMP       't'     /* temporary table */
+#define          RELKIND_RELATION        'r'   /* ordinary table */
+#define          RELKIND_INDEX           'i'   /* secondary index */
+#define          RELKIND_SEQUENCE        'S'   /* sequence object */
+#define          RELKIND_TOASTVALUE      't'   /* for out-of-line values */
+#define          RELKIND_VIEW            'v'   /* view */
+#define          RELKIND_MATVIEW         'm'   /* materialized view */
+#define          RELKIND_COMPOSITE_TYPE  'c'   /* composite type */
+#define          RELKIND_FOREIGN_TABLE   'f'   /* foreign table */
+#define          RELKIND_PARTITIONED_TABLE 'p' /* partitioned table */
+
+#define          RELPERSISTENCE_PERMANENT  'p' /* regular table */
+#define          RELPERSISTENCE_UNLOGGED   'u' /* unlogged permanent table */
+#define          RELPERSISTENCE_TEMP       't' /* temporary table */
 
 /* default selection for replica identity (primary key or nothing) */
 #define          REPLICA_IDENTITY_DEFAULT  'd'
@@ -184,4 +184,4 @@ DESCR("");
  */
 #define          REPLICA_IDENTITY_INDEX    'i'
 
-#endif   /* PG_CLASS_H */
+#endif                         /* PG_CLASS_H */
index 901c0b5115e71c23aa1455b657fb18ff81f62fdf..0cac7cae72d0652803ca8f86d0bff7a2bdc3c31d 100644 (file)
@@ -85,4 +85,4 @@ DESCR("standard POSIX collation");
 #define COLLPROVIDER_ICU       'i'
 #define COLLPROVIDER_LIBC      'c'
 
-#endif   /* PG_COLLATION_H */
+#endif                         /* PG_COLLATION_H */
index dfebdbaa0bbb7fddf5296ae737f6f2e9c95dca25..26b8f0d3d1f475d61f6c41f8eed5bf3965f7e8ed 100644 (file)
@@ -23,4 +23,4 @@ extern Oid CollationCreate(const char *collname, Oid collnamespace,
                bool if_not_exists);
 extern void RemoveCollationById(Oid collationOid);
 
-#endif   /* PG_COLLATION_FN_H */
+#endif                         /* PG_COLLATION_FN_H */
index e959583364b65450bb44373cdc5a3db46a6cc170..ec035d84340d39d79cc2b12fd45e8d24e05d9936 100644 (file)
@@ -198,4 +198,4 @@ typedef FormData_pg_constraint *Form_pg_constraint;
  * the FKCONSTR_MATCH_xxx constants defined in parsenodes.h.
  */
 
-#endif   /* PG_CONSTRAINT_H */
+#endif                         /* PG_CONSTRAINT_H */
index d2acb3a05367d45734ca8c36676be10147926dc1..9ef481d15bb80846e26aa2f0b4b69aa2a0c5f5ab 100644 (file)
@@ -79,4 +79,4 @@ extern bool check_functional_grouping(Oid relid,
                          List *grouping_columns,
                          List **constraintDeps);
 
-#endif   /* PG_CONSTRAINT_FN_H */
+#endif                         /* PG_CONSTRAINT_FN_H */
index 3a25cc84b2aa9e2a18087bba06decb73d1e36cb2..84327c9da6b0fe224125480d84fa90521287e277 100644 (file)
@@ -121,8 +121,8 @@ typedef struct ControlFileData
     * example, WAL logs contain per-page magic numbers that can serve as
     * version cues for the WAL log.
     */
-   uint32      pg_control_version;     /* PG_CONTROL_VERSION */
-   uint32      catalog_version_no;     /* see catversion.h */
+   uint32      pg_control_version; /* PG_CONTROL_VERSION */
+   uint32      catalog_version_no; /* see catversion.h */
 
    /*
     * System status data
@@ -244,4 +244,4 @@ typedef struct ControlFileData
  */
 #define PG_CONTROL_SIZE        8192
 
-#endif   /* PG_CONTROL_H */
+#endif                         /* PG_CONTROL_H */
index 88174a620a1d638b90fd8c45aa23ef5447c82a7f..0682d7eb224a0045b6ed77886bf20c307681a3c8 100644 (file)
@@ -74,4 +74,4 @@ typedef FormData_pg_conversion *Form_pg_conversion;
  * ---------------
  */
 
-#endif   /* PG_CONVERSION_H */
+#endif                         /* PG_CONVERSION_H */
index a2c1345f01196d1f72a7873f2f10ac224995ece6..7074bcf13a5be803522e621169b03b825e872162 100644 (file)
@@ -24,4 +24,4 @@ extern ObjectAddress ConversionCreate(const char *conname, Oid connamespace,
 extern void RemoveConversionById(Oid conversionOid);
 extern Oid FindDefaultConversion(Oid connamespace, int32 for_encoding, int32 to_encoding);
 
-#endif   /* PG_CONVERSION_FN_H */
+#endif                         /* PG_CONVERSION_FN_H */
index 55a1f6edabd162850163ec1845c51c5576798305..e7cbca49cf2de5c9eb23b54f576dcee086ac0e2d 100644 (file)
@@ -79,4 +79,4 @@ DATA(insert OID = 1 (  template1 PGUID ENCODING "LC_COLLATE" "LC_CTYPE" t t -1 0
 SHDESCR("default template for new databases");
 #define TemplateDbOid          1
 
-#endif   /* PG_DATABASE_H */
+#endif                         /* PG_DATABASE_H */
index f09b5d7832ad39875c7bf50487eb5edc5e760f6b..4a8e3370c9ef0da2195cbf33ba6b076384d8de59 100644 (file)
@@ -66,4 +66,4 @@ extern void DropSetting(Oid databaseid, Oid roleid);
 extern void ApplySetting(Snapshot snapshot, Oid databaseid, Oid roleid,
             Relation relsetting, GucSource source);
 
-#endif   /* PG_DB_ROLE_SETTING_H */
+#endif                         /* PG_DB_ROLE_SETTING_H */
index 78bbeb64feb2686f9366e42368d38bf8a38498d6..09587abee6b27d2a744c3e49bd0ee50fe637a574 100644 (file)
@@ -66,10 +66,10 @@ typedef FormData_pg_default_acl *Form_pg_default_acl;
  * permissions through pg_default_acl.  These codes are used in the
  * defaclobjtype column.
  */
-#define DEFACLOBJ_RELATION     'r'     /* table, view */
-#define DEFACLOBJ_SEQUENCE     'S'     /* sequence */
-#define DEFACLOBJ_FUNCTION     'f'     /* function */
-#define DEFACLOBJ_TYPE         'T'     /* type */
-#define DEFACLOBJ_NAMESPACE        'n'     /* namespace */
+#define DEFACLOBJ_RELATION     'r' /* table, view */
+#define DEFACLOBJ_SEQUENCE     'S' /* sequence */
+#define DEFACLOBJ_FUNCTION     'f' /* function */
+#define DEFACLOBJ_TYPE         'T' /* type */
+#define DEFACLOBJ_NAMESPACE        'n' /* namespace */
 
-#endif   /* PG_DEFAULT_ACL_H */
+#endif                         /* PG_DEFAULT_ACL_H */
index 6c480dd7dc6d53de0a42fed7aada945c7924a5d5..8bda78d9ef680a8e8bd33f6808c8734586b746b8 100644 (file)
@@ -87,4 +87,4 @@ typedef FormData_pg_depend *Form_pg_depend;
  * convenient to find from the contents of other catalogs.
  */
 
-#endif   /* PG_DEPEND_H */
+#endif                         /* PG_DEPEND_H */
index 9e834fca1ad5a3de661e88ff28eafb5d8cef3d2f..e0499ca2d6a5ff48d82f0460113b9c987d2bc473 100644 (file)
@@ -84,4 +84,4 @@ typedef FormData_pg_description * Form_pg_description;
  * by genbki.pl and loaded during initdb.
  */
 
-#endif   /* PG_DESCRIPTION_H */
+#endif                         /* PG_DESCRIPTION_H */
index faee5e6c3c7db51de4b44318703dec81c9d3d410..5938ba5cac307d2e4d2095526f1491228015d926 100644 (file)
@@ -70,4 +70,4 @@ extern void AddEnumLabel(Oid enumTypeOid, const char *newVal,
 extern void RenameEnumLabel(Oid enumTypeOid,
                const char *oldVal, const char *newVal);
 
-#endif   /* PG_ENUM_H */
+#endif                         /* PG_ENUM_H */
index b41cc12602d680fea02e5586d0b3c7b0a805c4ae..f9f568b27bd6722c758bb797e86c619d5f75881b 100644 (file)
@@ -61,4 +61,4 @@ typedef FormData_pg_event_trigger *Form_pg_event_trigger;
 #define Anum_pg_event_trigger_evtenabled       5
 #define Anum_pg_event_trigger_evttags          6
 
-#endif   /* PG_EVENT_TRIGGER_H */
+#endif                         /* PG_EVENT_TRIGGER_H */
index 56d117a78af5a87b62dce66bd1f09ed982c06219..2ce575d17e605f1488495d7b9959231c91cb6ff9 100644 (file)
@@ -69,4 +69,4 @@ typedef FormData_pg_extension *Form_pg_extension;
  * ----------------
  */
 
-#endif   /* PG_EXTENSION_H */
+#endif                         /* PG_EXTENSION_H */
index 47df6799c950e693b4e687d1ba389dc7462363df..af602c74ee95d6ec3dcbea1569bf6838103c24cc 100644 (file)
@@ -61,4 +61,4 @@ typedef FormData_pg_foreign_data_wrapper *Form_pg_foreign_data_wrapper;
 #define Anum_pg_foreign_data_wrapper_fdwacl            5
 #define Anum_pg_foreign_data_wrapper_fdwoptions        6
 
-#endif   /* PG_FOREIGN_DATA_WRAPPER_H */
+#endif                         /* PG_FOREIGN_DATA_WRAPPER_H */
index 629bfc389d13fa2abdf60bb279ff15ce8788e1dc..689dbbb4e72830eda840787ca3c47da370d9d51a 100644 (file)
@@ -61,4 +61,4 @@ typedef FormData_pg_foreign_server *Form_pg_foreign_server;
 #define Anum_pg_foreign_server_srvacl          6
 #define Anum_pg_foreign_server_srvoptions      7
 
-#endif   /* PG_FOREIGN_SERVER_H */
+#endif                         /* PG_FOREIGN_SERVER_H */
index b62d5e948bffae14b4043b648c1692fa59771799..c5dbcceef1c7d744c79acc7fefcfb0159dfb33a3 100644 (file)
@@ -53,4 +53,4 @@ typedef FormData_pg_foreign_table *Form_pg_foreign_table;
 #define Anum_pg_foreign_table_ftserver         2
 #define Anum_pg_foreign_table_ftoptions            3
 
-#endif   /* PG_FOREIGN_TABLE_H */
+#endif                         /* PG_FOREIGN_TABLE_H */
index 7ca0fae7070be4be6397aa26d972ea78e485b206..8505c3be5f01ceb0a7104bcf3c22da728d992a6e 100644 (file)
@@ -108,4 +108,4 @@ typedef FormData_pg_index *Form_pg_index;
 #define IndexIsReady(indexForm) ((indexForm)->indisready)
 #define IndexIsLive(indexForm) ((indexForm)->indislive)
 
-#endif   /* PG_INDEX_H */
+#endif                         /* PG_INDEX_H */
index 434fa7c864f47126a1393fd143df79a65969f2c2..26bfab5db68a99dd88181ad5d367e2fdf3344afb 100644 (file)
@@ -56,4 +56,4 @@ typedef FormData_pg_inherits *Form_pg_inherits;
  * ----------------
  */
 
-#endif   /* PG_INHERITS_H */
+#endif                         /* PG_INHERITS_H */
index e33b39e71ecc2a8594dd847a2924d7b61277fc97..abfa4766a12e973def4f2d0bf0494800b110c4d5 100644 (file)
@@ -23,4 +23,4 @@ extern List *find_all_inheritors(Oid parentrelId, LOCKMODE lockmode,
 extern bool has_subclass(Oid relationId);
 extern bool typeInheritsFrom(Oid subclassTypeId, Oid superclassTypeId);
 
-#endif   /* PG_INHERITS_FN_H */
+#endif                         /* PG_INHERITS_FN_H */
index b60c3f961c0633474e4078a57fbcb2d47eb08277..5fca36334bd887d751569a9be0bc40a4f37e8a6d 100644 (file)
@@ -49,8 +49,7 @@ CATALOG(pg_init_privs,3394) BKI_WITHOUT_OIDS
    char        privtype;       /* from initdb or extension? */
 
 #ifdef CATALOG_VARLEN          /* variable-length fields start here */
-   aclitem     initprivs[1] BKI_FORCE_NOT_NULL;        /* initial privs on
-                                                        * object */
+   aclitem     initprivs[1] BKI_FORCE_NOT_NULL;    /* initial privs on object */
 #endif
 } FormData_pg_init_privs;
 
@@ -98,4 +97,4 @@ typedef enum InitPrivsType
  * The initial contents are loaded near the end of initdb.
  */
 
-#endif   /* PG_INIT_PRIVS_H */
+#endif                         /* PG_INIT_PRIVS_H */
index 46e409948504d29a572e2c7959e7997cb739d3c3..ad244e839bbef833f40552ff372f3f28ec44211b 100644 (file)
@@ -79,4 +79,4 @@ DATA(insert OID = 14 ( "sql"      PGUID f t 0 0 2248 _null_ ));
 DESCR("SQL-language functions");
 #define SQLlanguageId 14
 
-#endif   /* PG_LANGUAGE_H */
+#endif                         /* PG_LANGUAGE_H */
index 2bdcf96be312d45aebd90e85c673fb8495c5f7f3..f2df67c35f78404ad88d4999a26f2f6882d841ed 100644 (file)
@@ -34,8 +34,8 @@ CATALOG(pg_largeobject,2613) BKI_WITHOUT_OIDS
    int32       pageno;         /* Page number (starting from 0) */
 
    /* data has variable length, but we allow direct access; see inv_api.c */
-   bytea       data BKI_FORCE_NOT_NULL;        /* Data for page (may be
-                                                * zero-length) */
+   bytea       data BKI_FORCE_NOT_NULL;    /* Data for page (may be
+                                            * zero-length) */
 } FormData_pg_largeobject;
 
 /* ----------------
@@ -58,4 +58,4 @@ extern Oid    LargeObjectCreate(Oid loid);
 extern void LargeObjectDrop(Oid loid);
 extern bool LargeObjectExists(Oid loid);
 
-#endif   /* PG_LARGEOBJECT_H */
+#endif                         /* PG_LARGEOBJECT_H */
index 16cb602a6c59fe26611028d07434bf87288f21a4..7ae6d8c02bf43861a30a944bae5efc5c9f357022 100644 (file)
@@ -52,4 +52,4 @@ typedef FormData_pg_largeobject_metadata *Form_pg_largeobject_metadata;
 #define Anum_pg_largeobject_metadata_lomowner  1
 #define Anum_pg_largeobject_metadata_lomacl        2
 
-#endif   /* PG_LARGEOBJECT_METADATA_H */
+#endif                         /* PG_LARGEOBJECT_METADATA_H */
index cb42abf5f8d2550867e1fc43f6448b5b1db061af..a61a8635f60ba2a3c73c7eb15500973e1b4f0f40 100644 (file)
@@ -82,4 +82,4 @@ DESCR("standard public schema");
  */
 extern Oid NamespaceCreate(const char *nspName, Oid ownerId, bool isTemp);
 
-#endif   /* PG_NAMESPACE_H */
+#endif                         /* PG_NAMESPACE_H */
index 5819d5309f1a94c5d91c427cf5e888a40fdee6e0..28dbc747d5b7a3e59a41a845ddd1edb8d44b40eb 100644 (file)
@@ -247,4 +247,4 @@ DATA(insert (   3580    pg_lsn_minmax_ops       PGNSP PGUID 4082  3220 t 3220 ));
 DATA(insert (  3580    box_inclusion_ops       PGNSP PGUID 4104   603 t 603 ));
 /* no brin opclass for the geometric types except box */
 
-#endif   /* PG_OPCLASS_H */
+#endif                         /* PG_OPCLASS_H */
index ccbb17efecd94c1e51746f34b06f6633c224d0b8..ffabc2003b6323598b22e78ba8abf2b76595de3b 100644 (file)
@@ -1854,4 +1854,4 @@ DESCR("delete array element");
 DATA(insert OID = 3287 (  "#-"    PGNSP PGUID b f f 3802 1009 3802 0 0 jsonb_delete_path - - ));
 DESCR("delete path");
 
-#endif   /* PG_OPERATOR_H */
+#endif                         /* PG_OPERATOR_H */
index d8ea390fdf3b1500b2d4c7afc11a54d9f7d2a533..37f5c712fe5e42e04e5d6fc41582cc28dc88124d 100644 (file)
@@ -33,4 +33,4 @@ extern ObjectAddress makeOperatorDependencies(HeapTuple tuple, bool isUpdate);
 
 extern void OperatorUpd(Oid baseId, Oid commId, Oid negId, bool isDelete);
 
-#endif   /* PG_OPERATOR_FN_H */
+#endif                         /* PG_OPERATOR_FN_H */
index 546527aa8e321ade657f9debf91975d893dc1b41..0d0ba7c66a205e0efcc9f1e4a8af1252e5993ac2 100644 (file)
@@ -187,4 +187,4 @@ DATA(insert OID = 4082 (    3580    pg_lsn_minmax_ops       PGNSP PGUID ));
 DATA(insert OID = 4104 (   3580    box_inclusion_ops       PGNSP PGUID ));
 DATA(insert OID = 5000 (   4000    box_ops     PGNSP PGUID ));
 
-#endif   /* PG_OPFAMILY_H */
+#endif                         /* PG_OPFAMILY_H */
index bdff36a04b61fde238c6367a3f4e96755ee1f77f..38d64d6511debcb788b9df4aef91de536c16709e 100644 (file)
@@ -71,4 +71,4 @@ typedef FormData_pg_partitioned_table *Form_pg_partitioned_table;
 #define Anum_pg_partitioned_table_partcollation 6
 #define Anum_pg_partitioned_table_partexprs        7
 
-#endif   /* PG_PARTITIONED_TABLE_H */
+#endif                         /* PG_PARTITIONED_TABLE_H */
index 236291f28e947332f97f3fc37ac2495db64b1ffd..fbe71bd0c36cd3c6deffbf9cdbe6845e10b7be63 100644 (file)
@@ -80,4 +80,4 @@ DATA(insert ( "plpythonu" f f "plpython_call_handler" "plpython_inline_handler"
 DATA(insert ( "plpython2u" f f "plpython2_call_handler" "plpython2_inline_handler" "plpython2_validator" "$libdir/plpython2" _null_ ));
 DATA(insert ( "plpython3u" f f "plpython3_call_handler" "plpython3_inline_handler" "plpython3_validator" "$libdir/plpython3" _null_ ));
 
-#endif   /* PG_PLTEMPLATE_H */
+#endif                         /* PG_PLTEMPLATE_H */
index 331584f5e067cef84477aa4fc3c430ac8141d590..86000737faa22079b8e8ad879748821b9648eb19 100644 (file)
@@ -52,4 +52,4 @@ typedef FormData_pg_policy *Form_pg_policy;
 #define Anum_pg_policy_polqual         6
 #define Anum_pg_policy_polwithcheck        7
 
-#endif   /* PG_POLICY_H */
+#endif                         /* PG_POLICY_H */
index 9eb7b377af919b01a6f0d8c96cb3d61fbd04e795..1191b4ab1bdf3e04f6f7f207b4732f5823247752 100644 (file)
@@ -62,13 +62,13 @@ CATALOG(pg_proc,1255) BKI_BOOTSTRAP BKI_ROWTYPE_OID(81) BKI_SCHEMA_MACRO
    oidvector   proargtypes;    /* parameter types (excludes OUT params) */
 
 #ifdef CATALOG_VARLEN
-   Oid         proallargtypes[1];      /* all param types (NULL if IN only) */
+   Oid         proallargtypes[1];  /* all param types (NULL if IN only) */
    char        proargmodes[1]; /* parameter modes (NULL if IN only) */
    text        proargnames[1]; /* parameter names (NULL if no names) */
    pg_node_tree proargdefaults;    /* list of expression trees for argument
                                     * defaults (NULL if none) */
    Oid         protrftypes[1]; /* types for which to apply transforms */
-   text        prosrc BKI_FORCE_NOT_NULL;      /* procedure source text */
+   text        prosrc BKI_FORCE_NOT_NULL;  /* procedure source text */
    text        probin;         /* secondary procedure info (can be NULL) */
    text        proconfig[1];   /* procedure-local GUC settings */
    aclitem     proacl[1];      /* access permissions */
@@ -5482,18 +5482,18 @@ DESCR("list of files in the WAL directory");
  * must be labeled volatile to ensure they will not get optimized away,
  * even if the actual return value is not changeable.
  */
-#define PROVOLATILE_IMMUTABLE  'i'     /* never changes for given input */
-#define PROVOLATILE_STABLE     's'     /* does not change within a scan */
-#define PROVOLATILE_VOLATILE   'v'     /* can change even within a scan */
+#define PROVOLATILE_IMMUTABLE  'i' /* never changes for given input */
+#define PROVOLATILE_STABLE     's' /* does not change within a scan */
+#define PROVOLATILE_VOLATILE   'v' /* can change even within a scan */
 
 /*
  * Symbolic values for proparallel column: these indicate whether a function
  * can be safely be run in a parallel backend, during parallelism but
  * necessarily in the master, or only in non-parallel mode.
  */
-#define PROPARALLEL_SAFE       's'     /* can run in worker or master */
-#define PROPARALLEL_RESTRICTED 'r'     /* can run in parallel master only */
-#define PROPARALLEL_UNSAFE     'u'     /* banned while in parallel mode */
+#define PROPARALLEL_SAFE       's' /* can run in worker or master */
+#define PROPARALLEL_RESTRICTED 'r' /* can run in parallel master only */
+#define PROPARALLEL_UNSAFE     'u' /* banned while in parallel mode */
 
 /*
  * Symbolic values for proargmodes column.  Note that these must agree with
@@ -5506,4 +5506,4 @@ DESCR("list of files in the WAL directory");
 #define PROARGMODE_VARIADIC 'v'
 #define PROARGMODE_TABLE   't'
 
-#endif   /* PG_PROC_H */
+#endif                         /* PG_PROC_H */
index 993278a91a747e38cb1a0e0c9476af6706c9d41c..2c85f5d267622d669aac5d72d00ad3dbf9b9a3d3 100644 (file)
@@ -48,4 +48,4 @@ extern bool function_parse_error_transpose(const char *prosrc);
 
 extern List *oid_array_to_list(Datum datum);
 
-#endif   /* PG_PROC_FN_H */
+#endif                         /* PG_PROC_FN_H */
index c2086c1f42e3f9fa3cdfcc1e8be9c6b92f3d3440..aa148960cd985f4356a291e0cde4351a73cd67cd 100644 (file)
@@ -101,4 +101,4 @@ extern char *get_publication_name(Oid pubid);
 
 extern Datum pg_get_publication_tables(PG_FUNCTION_ARGS);
 
-#endif   /* PG_PUBLICATION_H */
+#endif                         /* PG_PUBLICATION_H */
index f889b6f4db2a19547d30dbf420356d3478d59218..3729e5abdce7df44255c86cd8ff4d7933e362787 100644 (file)
@@ -49,4 +49,4 @@ typedef FormData_pg_publication_rel *Form_pg_publication_rel;
 #define Anum_pg_publication_rel_prpubid            1
 #define Anum_pg_publication_rel_prrelid            2
 
-#endif   /* PG_PUBLICATION_REL_H */
+#endif                         /* PG_PUBLICATION_REL_H */
index 4ed57fe2e9de3628b70d38e4b3a0708c01550dcf..f12e82b2f2dbe3ac281fe35b6bf5694c7e76b8f9 100644 (file)
@@ -82,4 +82,4 @@ extern void RangeCreate(Oid rangeTypeOid, Oid rangeSubType, Oid rangeCollation,
            RegProcedure rangeSubDiff);
 extern void RangeDelete(Oid rangeTypeOid);
 
-#endif   /* PG_RANGE_H */
+#endif                         /* PG_RANGE_H */
index f95725873b72fd6c0b3e37a2fcef1e69370b59a5..24c8a8430cb432ae83d42b0a04fd3173ec678411 100644 (file)
@@ -67,4 +67,4 @@ typedef FormData_pg_replication_origin *Form_pg_replication_origin;
  * ----------------
  */
 
-#endif   /* PG_REPLICATION_ORIGIN_H */
+#endif                         /* PG_REPLICATION_ORIGIN_H */
index 425a336755871da74a24f404ca7de31ea41e591e..48b9333a9dffd29facd5d8da366f412658a344f2 100644 (file)
@@ -65,4 +65,4 @@ typedef FormData_pg_rewrite *Form_pg_rewrite;
 #define Anum_pg_rewrite_ev_qual            6
 #define Anum_pg_rewrite_ev_action      7
 
-#endif   /* PG_REWRITE_H */
+#endif                         /* PG_REWRITE_H */
index 60eec1d5c8311cf901151ced2441c4d2ded5a93d..3db9612fc30c30e9857b518c4f877206f6d2f81b 100644 (file)
@@ -28,8 +28,7 @@ CATALOG(pg_seclabel,3596) BKI_WITHOUT_OIDS
 
 #ifdef CATALOG_VARLEN          /* variable-length fields start here */
    text        provider BKI_FORCE_NOT_NULL;    /* name of label provider */
-   text        label BKI_FORCE_NOT_NULL;       /* security label of the
-                                                * object */
+   text        label BKI_FORCE_NOT_NULL;   /* security label of the object */
 #endif
 } FormData_pg_seclabel;
 
@@ -44,4 +43,4 @@ CATALOG(pg_seclabel,3596) BKI_WITHOUT_OIDS
 #define Anum_pg_seclabel_provider  4
 #define Anum_pg_seclabel_label     5
 
-#endif   /* PG_SECLABEL_H */
+#endif                         /* PG_SECLABEL_H */
index 26d2993674f868e2a692e1b96243fc27d322f6f3..8ae6b7143da4480830265e8ecc64e34c034593ec 100644 (file)
@@ -29,4 +29,4 @@ typedef FormData_pg_sequence *Form_pg_sequence;
 #define Anum_pg_sequence_seqcache      7
 #define Anum_pg_sequence_seqcycle      8
 
-#endif   /* PG_SEQUENCE_H */
+#endif                         /* PG_SEQUENCE_H */
index ae1aa4f95288d33ba34df1dedd254e7df0fc723c..51b6588d3ed4688f2b804c867d1f5e779c1ac2c9 100644 (file)
@@ -87,4 +87,4 @@ typedef FormData_pg_shdepend *Form_pg_shdepend;
  * are explicitly stored in pg_shdepend.
  */
 
-#endif   /* PG_SHDEPEND_H */
+#endif                         /* PG_SHDEPEND_H */
index 728b0d2b07f8e5238de839ab30154765a4435021..154c48b584cdce6d10db6f245eb139a9e3431ac9 100644 (file)
@@ -75,4 +75,4 @@ typedef FormData_pg_shdescription * Form_pg_shdescription;
  * by genbki.pl and loaded during initdb.
  */
 
-#endif   /* PG_SHDESCRIPTION_H */
+#endif                         /* PG_SHDESCRIPTION_H */
index e559b40935221c13c2047bacaa79c314305451f4..f8a906bb126848c677d2408ff4dce59d4b6191a7 100644 (file)
@@ -28,8 +28,7 @@ CATALOG(pg_shseclabel,3592) BKI_SHARED_RELATION BKI_ROWTYPE_OID(4066) BKI_WITHOU
 
 #ifdef CATALOG_VARLEN          /* variable-length fields start here */
    text        provider BKI_FORCE_NOT_NULL;    /* name of label provider */
-   text        label BKI_FORCE_NOT_NULL;       /* security label of the
-                                                * object */
+   text        label BKI_FORCE_NOT_NULL;   /* security label of the object */
 #endif
 } FormData_pg_shseclabel;
 
@@ -45,4 +44,4 @@ typedef FormData_pg_shseclabel * Form_pg_shseclabel;
 #define Anum_pg_shseclabel_provider        3
 #define Anum_pg_shseclabel_label       4
 
-#endif   /* PG_SHSECLABEL_H */
+#endif                         /* PG_SHSECLABEL_H */
index 3576419a2f18864710f23bdb059807bb0ebf4725..3713a56bbdaee958a39c9c8e6b2308b3c18d53b4 100644 (file)
@@ -291,4 +291,4 @@ typedef FormData_pg_statistic *Form_pg_statistic;
  */
 #define STATISTIC_KIND_BOUNDS_HISTOGRAM  7
 
-#endif   /* PG_STATISTIC_H */
+#endif                         /* PG_STATISTIC_H */
index d302b7fc01f718232abde21f70ada1d27e392e3c..78138026db6d24a9ad2f123615fae6ca468a1690 100644 (file)
@@ -77,4 +77,4 @@ typedef FormData_pg_statistic_ext *Form_pg_statistic_ext;
 #define STATS_EXT_NDISTINCT            'd'
 #define STATS_EXT_DEPENDENCIES     'f'
 
-#endif   /* PG_STATISTIC_EXT_H */
+#endif                         /* PG_STATISTIC_EXT_H */
index 75963431a4feed26c9475c78ce6eb280543fb612..274ff6bc42b9386bf0f6f2c7c33d688306d0e146 100644 (file)
@@ -93,4 +93,4 @@ extern char *get_subscription_name(Oid subid);
 
 extern int CountDBSubscriptions(Oid dbid);
 
-#endif   /* PG_SUBSCRIPTION_H */
+#endif                         /* PG_SUBSCRIPTION_H */
index f5f6191676884af40a21070741e4120a8517455c..991ca9d552abe0668d6a7df2443ae8597a8e8b47 100644 (file)
@@ -51,17 +51,17 @@ typedef FormData_pg_subscription_rel *Form_pg_subscription_rel;
  *     substate constants
  * ----------------
  */
-#define SUBREL_STATE_INIT      'i'     /* initializing (sublsn NULL) */
-#define SUBREL_STATE_DATASYNC  'd'     /* data is being synchronized (sublsn
-                                        * NULL) */
-#define SUBREL_STATE_SYNCDONE  's'     /* synchronization finished in front
-                                        * of apply (sublsn set) */
-#define SUBREL_STATE_READY     'r'     /* ready (sublsn set) */
+#define SUBREL_STATE_INIT      'i' /* initializing (sublsn NULL) */
+#define SUBREL_STATE_DATASYNC  'd' /* data is being synchronized (sublsn
+                                    * NULL) */
+#define SUBREL_STATE_SYNCDONE  's' /* synchronization finished in front of
+                                    * apply (sublsn set) */
+#define SUBREL_STATE_READY     'r' /* ready (sublsn set) */
 
 /* These are never stored in the catalog, we only use them for IPC. */
 #define SUBREL_STATE_UNKNOWN   '\0'    /* unknown state */
-#define SUBREL_STATE_SYNCWAIT  'w'     /* waiting for sync */
-#define SUBREL_STATE_CATCHUP   'c'     /* catching up with apply */
+#define SUBREL_STATE_SYNCWAIT  'w' /* waiting for sync */
+#define SUBREL_STATE_CATCHUP   'c' /* catching up with apply */
 
 typedef struct SubscriptionRelState
 {
@@ -79,4 +79,4 @@ extern void RemoveSubscriptionRel(Oid subid, Oid relid);
 extern List *GetSubscriptionRelations(Oid subid);
 extern List *GetSubscriptionNotReadyRelations(Oid subid);
 
-#endif   /* PG_SUBSCRIPTION_REL_H */
+#endif                         /* PG_SUBSCRIPTION_REL_H */
index d9ea4b7d63a4c6373dbfa300962e48c6f3b71fa3..b759d5cea402e9838274470eed118d0c9e55b4c6 100644 (file)
@@ -63,4 +63,4 @@ DATA(insert OID = 1664 ( pg_global    PGUID _null_ _null_ ));
 #define DEFAULTTABLESPACE_OID 1663
 #define GLOBALTABLESPACE_OID 1664
 
-#endif   /* PG_TABLESPACE_H */
+#endif                         /* PG_TABLESPACE_H */
index 3415db3bd61ba864334c6e32fd60c71a463ea657..8b1610bb838297b94f96e3a2bef2dd3226840d33 100644 (file)
@@ -44,4 +44,4 @@ typedef FormData_pg_transform *Form_pg_transform;
 #define Anum_pg_transform_trffromsql   3
 #define Anum_pg_transform_trftosql 4
 
-#endif   /* PG_TRANSFORM_H */
+#endif                         /* PG_TRANSFORM_H */
index 356bc48bf6aa6dc3085004b0b93dcaa0b4d846d1..f413caf34f4f7a8918c77d14abe1ddaa0ff2d0ed 100644 (file)
@@ -57,7 +57,7 @@ CATALOG(pg_trigger,2620)
    int2vector  tgattr;         /* column numbers, if trigger is on columns */
 
 #ifdef CATALOG_VARLEN
-   bytea       tgargs BKI_FORCE_NOT_NULL;      /* first\000second\000tgnargs\000 */
+   bytea       tgargs BKI_FORCE_NOT_NULL;  /* first\000second\000tgnargs\000 */
    pg_node_tree tgqual;        /* WHEN expression, or NULL if none */
    NameData    tgoldtable;     /* old transition table, or NULL if none */
    NameData    tgnewtable;     /* new transition table, or NULL if none */
@@ -153,4 +153,4 @@ typedef FormData_pg_trigger *Form_pg_trigger;
 #define TRIGGER_USES_TRANSITION_TABLE(namepointer) \
    ((namepointer) != (char *) NULL)
 
-#endif   /* PG_TRIGGER_H */
+#endif                         /* PG_TRIGGER_H */
index b61cf857d9ee4fed6eb5e5ad9d863034faaeacb7..0ba79a596f85a76fdbf9dada05041569e80b5661 100644 (file)
@@ -57,4 +57,4 @@ typedef FormData_pg_ts_config *Form_pg_ts_config;
 DATA(insert OID = 3748 ( "simple" PGNSP PGUID 3722 ));
 DESCR("simple configuration");
 
-#endif   /* PG_TS_CONFIG_H */
+#endif                         /* PG_TS_CONFIG_H */
index fc9467fd9ce9a7d12f681f92af59386a9be1e037..3df05195bef8d5a53ba22abd67600dec772c141c 100644 (file)
@@ -75,4 +75,4 @@ DATA(insert ( 3748    20  1   3765 ));
 DATA(insert ( 3748 21  1   3765 ));
 DATA(insert ( 3748 22  1   3765 ));
 
-#endif   /* PG_TS_CONFIG_MAP_H */
+#endif                         /* PG_TS_CONFIG_MAP_H */
index 28b7bb7c0d1afe06d77214a01125136098b98ce0..634ea703e3403309509101b1d1ac05d65dd0ff72 100644 (file)
@@ -63,4 +63,4 @@ typedef FormData_pg_ts_dict *Form_pg_ts_dict;
 DATA(insert OID = 3765 ( "simple" PGNSP PGUID 3727 _null_));
 DESCR("simple dictionary: just lower case and check for stopword");
 
-#endif   /* PG_TS_DICT_H */
+#endif                         /* PG_TS_DICT_H */
index cfb87b4d569fdaa663dc3bfa22f619126752b3f4..96e09bdcd8b53e514021872af80aa200a43c47a3 100644 (file)
@@ -64,4 +64,4 @@ typedef FormData_pg_ts_parser *Form_pg_ts_parser;
 DATA(insert OID = 3722 ( "default" PGNSP prsd_start prsd_nexttoken prsd_end prsd_headline prsd_lextype ));
 DESCR("default word parser");
 
-#endif   /* PG_TS_PARSER_H */
+#endif                         /* PG_TS_PARSER_H */
index 5fc6eea24391447d07ceaa9b2847bdf29e144915..dc0148c68b922d9dffaf86586069befd64df49ea 100644 (file)
@@ -64,4 +64,4 @@ DESCR("ispell dictionary");
 DATA(insert OID = 3742 ( "thesaurus" PGNSP thesaurus_init thesaurus_lexize ));
 DESCR("thesaurus dictionary: phrase by phrase substitution");
 
-#endif   /* PG_TS_TEMPLATE_H */
+#endif                         /* PG_TS_TEMPLATE_H */
index 345e9164060b728fb25e5a1c6f98d007ca1bca6f..ffdb452b0217c5788dd7fb412e6a91dcf3dbd938 100644 (file)
@@ -731,14 +731,14 @@ DATA(insert OID = 3831 ( anyrange     PGNSP PGUID  -1 f p P f t \054 0 0 0 anyrange
 #define  TYPCATEGORY_DATETIME  'D'
 #define  TYPCATEGORY_ENUM      'E'
 #define  TYPCATEGORY_GEOMETRIC 'G'
-#define  TYPCATEGORY_NETWORK   'I'     /* think INET */
+#define  TYPCATEGORY_NETWORK   'I' /* think INET */
 #define  TYPCATEGORY_NUMERIC   'N'
 #define  TYPCATEGORY_PSEUDOTYPE 'P'
 #define  TYPCATEGORY_RANGE     'R'
 #define  TYPCATEGORY_STRING        'S'
 #define  TYPCATEGORY_TIMESPAN  'T'
 #define  TYPCATEGORY_USER      'U'
-#define  TYPCATEGORY_BITSTRING 'V'     /* er ... "varbit"? */
+#define  TYPCATEGORY_BITSTRING 'V' /* er ... "varbit"? */
 #define  TYPCATEGORY_UNKNOWN   'X'
 
 /* Is a type OID a polymorphic pseudotype? (Beware of multiple evaluation) */
@@ -749,4 +749,4 @@ DATA(insert OID = 3831 ( anyrange       PGNSP PGUID  -1 f p P f t \054 0 0 0 anyrange
     (typid) == ANYENUMOID || \
     (typid) == ANYRANGEOID)
 
-#endif   /* PG_TYPE_H */
+#endif                         /* PG_TYPE_H */
index 01f095612dcfea907cbcba0d69109dbdfd15fdb8..b570d3588f846336b2ebd956970a4225eeef6c09 100644 (file)
@@ -81,4 +81,4 @@ extern char *makeArrayTypeName(const char *typeName, Oid typeNamespace);
 extern bool moveArrayTypeName(Oid typeOid, const char *typeName,
                  Oid typeNamespace);
 
-#endif   /* PG_TYPE_FN_H */
+#endif                         /* PG_TYPE_FN_H */
index 1ebf4611dfa02bc427fc5c821200d47eec1e5f1f..f08e6a72edf989384bdeb9b160c2c541b0466fda 100644 (file)
@@ -54,4 +54,4 @@ typedef FormData_pg_user_mapping *Form_pg_user_mapping;
 #define Anum_pg_user_mapping_umserver      2
 #define Anum_pg_user_mapping_umoptions     3
 
-#endif   /* PG_USER_MAPPING_H */
+#endif                         /* PG_USER_MAPPING_H */
index fea96deba317a2eb246f03d444e2adac63edcf55..a3a97db929a482ca51cc35faf7792b82ffb71157 100644 (file)
@@ -33,4 +33,4 @@ extern void AtSubCommit_smgr(void);
 extern void AtSubAbort_smgr(void);
 extern void PostPrepare_smgr(void);
 
-#endif   /* STORAGE_H */
+#endif                         /* STORAGE_H */
index fcdd0233b151abcad88c431798ab3433947895c2..4c080052284bc5e39b17decfec506e9155d9c648 100644 (file)
@@ -56,4 +56,4 @@ extern void smgr_redo(XLogReaderState *record);
 extern void smgr_desc(StringInfo buf, XLogReaderState *record);
 extern const char *smgr_identify(uint8 info);
 
-#endif   /* STORAGE_XLOG_H */
+#endif                         /* STORAGE_XLOG_H */
index 00d0a8326f3dbbf9f7be44c3c9a64449ad5b6218..f82a7995720552dbe6c54639dde67e027b4f593a 100644 (file)
@@ -67,4 +67,4 @@ DECLARE_TOAST(pg_shseclabel, 4060, 4061);
 #define PgShseclabelToastTable 4060
 #define PgShseclabelToastIndex 4061
 
-#endif   /* TOASTING_H */
+#endif                         /* TOASTING_H */
index b7aa86cb57fdaacd7aeb77202f573b8eb33c7ae6..4365357ab83c48e05801a50f12165e59017d6d36 100644 (file)
@@ -32,4 +32,4 @@ extern ObjectAddress ExecAlterOwnerStmt(AlterOwnerStmt *stmt);
 extern void AlterObjectOwner_internal(Relation catalog, Oid objectId,
                          Oid new_ownerId);
 
-#endif   /* ALTER_H */
+#endif                         /* ALTER_H */
index b7842d1a0fe7e468146bf234f0e3a18461f48047..939711d8d9483555a5acad06185f2938bc82ff26 100644 (file)
@@ -54,4 +54,4 @@ extern void HandleNotifyInterrupt(void);
 /* process interrupts */
 extern void ProcessNotifyInterrupt(void);
 
-#endif   /* ASYNC_H */
+#endif                         /* ASYNC_H */
index 7c9d4746d93a38e09872ab5c86fe51d6635ff8fd..7bade9fad2d70e01467599e4724d8a632f63550f 100644 (file)
@@ -36,4 +36,4 @@ extern void finish_heap_swap(Oid OIDOldHeap, Oid OIDNewHeap,
                 MultiXactId minMulti,
                 char newrelpersistence);
 
-#endif   /* CLUSTER_H */
+#endif                         /* CLUSTER_H */
index df5623ccb6d5dc227f272bf82b554de7ee7a0880..30e847432e26dcdaf72ccdda76445814160229f2 100644 (file)
@@ -22,4 +22,4 @@ extern ObjectAddress DefineCollation(ParseState *pstate, List *names, List *para
 extern void IsThereCollationInNamespace(const char *collname, Oid nspOid);
 extern ObjectAddress AlterCollation(AlterCollationStmt *stmt);
 
-#endif   /* COLLATIONCMDS_H */
+#endif                         /* COLLATIONCMDS_H */
index 684ea8b69717f614310306220c0c2f67997efa1d..85bd80151362dcc812c8f95171f41a7ee38321c1 100644 (file)
@@ -42,4 +42,4 @@ extern void CreateSharedComments(Oid oid, Oid classoid, char *comment);
 
 extern char *GetComment(Oid oid, Oid classoid, int32 subid);
 
-#endif   /* COMMENT_H */
+#endif                         /* COMMENT_H */
index 20d7f0e9b10db33b1a0e45e59f9c04fd9e99039d..70545057945e377b798d3ed6a2ff6f05ea8045ca 100644 (file)
@@ -20,4 +20,4 @@
 
 extern ObjectAddress CreateConversionCommand(CreateConversionStmt *parsetree);
 
-#endif   /* CONVERSIONCMDS_H */
+#endif                         /* CONVERSIONCMDS_H */
index f081f2219f2981ca5883bee88f8d4a63557279b3..8b2971d2871849c5defcde42e991191a6e3f0367 100644 (file)
@@ -41,4 +41,4 @@ extern uint64 CopyFrom(CopyState cstate);
 
 extern DestReceiver *CreateCopyDestReceiver(void);
 
-#endif   /* COPY_H */
+#endif                         /* COPY_H */
index c3c43f6b36f02309e45be7dfef6f0f1e59e6bab2..4e13f7deae7afc13600b8f1ca01a76e7097df504 100644 (file)
@@ -28,4 +28,4 @@ extern int    GetIntoRelEFlags(IntoClause *intoClause);
 
 extern DestReceiver *CreateIntoRelDestReceiver(IntoClause *intoClause);
 
-#endif   /* CREATEAS_H */
+#endif                         /* CREATEAS_H */
index 52918a9f4b257f4c5f75f1fe114d59c68b56e48c..f42c8cdbe305e13ed7b6c9e61a628c7b4716cb12 100644 (file)
@@ -31,4 +31,4 @@ extern char *get_database_name(Oid dbid);
 
 extern void check_encoding_locale_matches(int encoding, const char *collate, const char *ctype);
 
-#endif   /* DBCOMMANDS_H */
+#endif                         /* DBCOMMANDS_H */
index 6583d0d5bd90323b84a5d9c065d4d402dd8a0b5c..63b1a6470c00908c55fbc2726d06ff8278369bdd 100644 (file)
@@ -41,4 +41,4 @@ extern void dbase_redo(XLogReaderState *rptr);
 extern void dbase_desc(StringInfo buf, XLogReaderState *rptr);
 extern const char *dbase_identify(uint8 info);
 
-#endif   /* DBCOMMANDS_XLOG_H */
+#endif                         /* DBCOMMANDS_XLOG_H */
index 5dd14b43d3b1e886a571e71ff65b2c7de52449f1..f7bb4a54f7752ab28e2fda7e6f20c75960a376e5 100644 (file)
@@ -164,4 +164,4 @@ extern TypeName *defGetTypeName(DefElem *def);
 extern int defGetTypeLength(DefElem *def);
 extern List *defGetStringList(DefElem *def);
 
-#endif   /* DEFREM_H */
+#endif                         /* DEFREM_H */
index b960cab51f82bf10bc76e05784b6f7caa947964b..8ea0b30ddf9ce6f992c68d069b15a1b283379121 100644 (file)
@@ -17,4 +17,4 @@
 
 extern void DiscardCommand(DiscardStmt *stmt, bool isTopLevel);
 
-#endif   /* DISCARD_H */
+#endif                         /* DISCARD_H */
index 0017bd0cd413e70e6a80b4c681274da80a090199..2ce528272ca604811801ed9674accc3930ef5bf0 100644 (file)
@@ -86,4 +86,4 @@ extern void EventTriggerCollectAlterTSConfig(AlterTSConfigurationStmt *stmt,
                                 Oid cfgId, Oid *dictIds, int ndicts);
 extern void EventTriggerCollectAlterDefPrivs(AlterDefaultPrivilegesStmt *stmt);
 
-#endif   /* EVENT_TRIGGER_H */
+#endif                         /* EVENT_TRIGGER_H */
index 358bfd84824dd0cb64d8b11722961fffb77dc4f3..4d356071def10fb5fb44951c89e1b6960d2bda57 100644 (file)
@@ -44,7 +44,7 @@ typedef struct ExplainState
    List       *rtable;         /* range table */
    List       *rtable_names;   /* alias names for RTEs */
    List       *deparse_cxt;    /* context list for deparsing expressions */
-   Bitmapset  *printed_subplans;       /* ids of SubPlans we've printed */
+   Bitmapset  *printed_subplans;   /* ids of SubPlans we've printed */
 } ExplainState;
 
 /* Hook for plugins to get control in ExplainOneQuery() */
@@ -101,4 +101,4 @@ extern void ExplainPropertyFloat(const char *qlabel, double value, int ndigits,
 extern void ExplainPropertyBool(const char *qlabel, bool value,
                    ExplainState *es);
 
-#endif   /* EXPLAIN_H */
+#endif                         /* EXPLAIN_H */
index 7f027d9dc7ac6f2388d72b6ca2fa76b6c0bf8180..73bba3c784a6dfafcdf7907fabb3feef304ab821 100644 (file)
@@ -53,4 +53,4 @@ extern ObjectAddress AlterExtensionNamespace(const char *extensionName, const ch
 
 extern void AlterExtensionOwner_oid(Oid extensionOid, Oid newOwnerId);
 
-#endif   /* EXTENSION_H */
+#endif                         /* EXTENSION_H */
index 45ed96d4d173f3d1c6dfd002d43812676ef789fb..cdb5c62a521ed6d58dc4254866e13f1858685f54 100644 (file)
@@ -21,4 +21,4 @@
  */
 extern void LockTableCommand(LockStmt *lockstmt);
 
-#endif   /* LOCKCMDS_H */
+#endif                         /* LOCKCMDS_H */
index 129fb92f5945cfa14dd1d2f1d46e85c6bf4d3231..3feb137ef4edd40151cfb66e5edaac329dc9c76a 100644 (file)
@@ -30,4 +30,4 @@ extern DestReceiver *CreateTransientRelDestReceiver(Oid oid);
 
 extern bool MatViewIncrementalMaintenanceIsEnabled(void);
 
-#endif   /* MATVIEW_H */
+#endif                         /* MATVIEW_H */
index cff93a6cb0e25b9c418d4ac3b2ffed4371ae0aa1..d6a920ccefe17c4924c87b482a48524c716a7ed2 100644 (file)
@@ -35,4 +35,4 @@ extern ObjectAddress rename_policy(RenameStmt *stmt);
 
 extern bool relation_has_policies(Relation rel);
 
-#endif   /* POLICY_H */
+#endif                         /* POLICY_H */
index 8f0e6c48f495aeaa58328e83ce06c436b586e8cd..488ce60cd610329865552df9b5c17fa67d2ddb38 100644 (file)
@@ -30,4 +30,4 @@ extern void PortalCleanup(Portal portal);
 
 extern void PersistHoldablePortal(Portal portal);
 
-#endif   /* PORTALCMDS_H */
+#endif                         /* PORTALCMDS_H */
index c60e6f30b88ddfed2976b5763e7f2e8a497fcb15..5ec1200e0aed780951bcb31ddefccc4bb011b94b 100644 (file)
@@ -28,7 +28,7 @@ typedef struct
 {
    /* dynahash.c requires key to be first field */
    char        stmt_name[NAMEDATALEN];
-   CachedPlanSource *plansource;       /* the actual cached plan */
+   CachedPlanSource *plansource;   /* the actual cached plan */
    bool        from_sql;       /* prepared via SQL, not FE/BE protocol? */
    TimestampTz prepare_time;   /* the time when the stmt was prepared */
 } PreparedStatement;
@@ -57,4 +57,4 @@ extern List *FetchPreparedStatementTargetList(PreparedStatement *stmt);
 
 extern void DropAllPreparedStatements(void);
 
-#endif   /* PREPARE_H */
+#endif                         /* PREPARE_H */
index f056978805d4055655ffa775887238b6d4cb2eb4..9a4bc75d1200091619f65387e25fba85e324d6b9 100644 (file)
@@ -20,4 +20,4 @@ extern void DropProceduralLanguageById(Oid langOid);
 extern bool PLTemplateExists(const char *languageName);
 extern Oid get_language_oid(const char *langname, bool missing_ok);
 
-#endif   /* PROCLANG_H */
+#endif                         /* PROCLANG_H */
index 7f12ff0a1bcc3ab6b7d93b6672be20c48b9a45a7..a2e0f4a21e85d50ead4d0b3d78b23150b1f76d24 100644 (file)
@@ -26,4 +26,4 @@ extern void RemovePublicationRelById(Oid proid);
 extern ObjectAddress AlterPublicationOwner(const char *name, Oid newOwnerId);
 extern void AlterPublicationOwner_oid(Oid pubid, Oid newOwnerId);
 
-#endif   /* PUBLICATIONCMDS_H */
+#endif                         /* PUBLICATIONCMDS_H */
index f07a389c7f6981f8a24dabe016f60db63c8e05dd..381e5b8dae7fd829c17cff1a53633dbe205c65ca 100644 (file)
@@ -28,4 +28,4 @@ extern ObjectAddress RenameSchema(const char *oldname, const char *newname);
 extern ObjectAddress AlterSchemaOwner(const char *name, Oid newOwnerId);
 extern void AlterSchemaOwner_oid(Oid schemaOid, Oid newOwnerId);
 
-#endif   /* SCHEMACMDS_H */
+#endif                         /* SCHEMACMDS_H */
index 2e24801fc19e4ebcd283c5f6b95b0927959c2b91..a97c3293b29de939df6eb8ebf83570185c6b1ee7 100644 (file)
@@ -31,4 +31,4 @@ typedef void (*check_object_relabel_type) (const ObjectAddress *object,
 extern void register_label_provider(const char *provider,
                        check_object_relabel_type hook);
 
-#endif   /* SECLABEL_H */
+#endif                         /* SECLABEL_H */
index 304586e48e813eee4c936fa51c8fa498f311dd87..caab19513067ccd161288e25f7040a21066e5e83 100644 (file)
@@ -66,4 +66,4 @@ extern void seq_desc(StringInfo buf, XLogReaderState *rptr);
 extern const char *seq_identify(uint8 info);
 extern void seq_mask(char *pagedata, BlockNumber blkno);
 
-#endif   /* SEQUENCE_H */
+#endif                         /* SEQUENCE_H */
index 1e4428e6175bcf7f6c99f5fa027bbfa6e4b69204..3d92a682a155f5e6a26c18fb2fb930f9b151206b 100644 (file)
@@ -26,4 +26,4 @@ extern void DropSubscription(DropSubscriptionStmt *stmt, bool isTopLevel);
 extern ObjectAddress AlterSubscriptionOwner(const char *name, Oid newOwnerId);
 extern void AlterSubscriptionOwner_oid(Oid subid, Oid newOwnerId);
 
-#endif   /* SUBSCRIPTIONCMDS_H */
+#endif                         /* SUBSCRIPTIONCMDS_H */
index f3a97016a1bf2dcb9dee3da9e240300be9f8c049..abd31b68d42da42473c28f40e00757b1b51bb982 100644 (file)
@@ -87,4 +87,4 @@ extern void RangeVarCallbackOwnsTable(const RangeVar *relation,
 
 extern void RangeVarCallbackOwnsRelation(const RangeVar *relation,
                             Oid relId, Oid oldRelId, void *noCatalogs);
-#endif   /* TABLECMDS_H */
+#endif                         /* TABLECMDS_H */
index 3ea13bdf140abd0825036a63327ee8efcf25f37a..ba8de32c7b050d2549eb37462c5f95e5d2acdc21 100644 (file)
@@ -63,4 +63,4 @@ extern void tblspc_redo(XLogReaderState *rptr);
 extern void tblspc_desc(StringInfo buf, XLogReaderState *rptr);
 extern const char *tblspc_identify(uint8 info);
 
-#endif   /* TABLESPACE_H */
+#endif                         /* TABLESPACE_H */
index d73969c874790670f666a0848bceae7315b06bf4..10ac724febf52473e7d0e757fef3ad379182bf5e 100644 (file)
@@ -212,4 +212,4 @@ extern bool RI_Initial_Check(Trigger *trigger,
 
 extern int RI_FKey_trigger_type(Oid tgfoid);
 
-#endif   /* TRIGGER_H */
+#endif                         /* TRIGGER_H */
index c18f93adb2bb855c45481377c69c78479e6ad88a..34f6fe328fe1caf6a1ce86fa496168c6dbe59232 100644 (file)
@@ -54,4 +54,4 @@ extern Oid AlterTypeNamespaceInternal(Oid typeOid, Oid nspOid,
                           bool errorOnTableType,
                           ObjectAddresses *objsMoved);
 
-#endif   /* TYPECMDS_H */
+#endif                         /* TYPECMDS_H */
index 08037e0f81a880fd43d6551d4971455abfccb023..028e0dde568e62e9bb26ba23c8c4340883f3f530 100644 (file)
@@ -34,4 +34,4 @@ extern void DropOwnedObjects(DropOwnedStmt *stmt);
 extern void ReassignOwnedObjects(ReassignOwnedStmt *stmt);
 extern List *roleSpecsToIds(List *memberNames);
 
-#endif   /* USER_H */
+#endif                         /* USER_H */
index 0fa585b091f8f051cef38f22f9fc5f3635d344bd..a9035112e96683703a314e04edf252c95c0bbc35 100644 (file)
@@ -136,20 +136,19 @@ typedef struct VacAttrStats
 typedef struct VacuumParams
 {
    int         freeze_min_age; /* min freeze age, -1 to use default */
-   int         freeze_table_age;       /* age at which to scan whole table */
-   int         multixact_freeze_min_age;       /* min multixact freeze age,
-                                                * -1 to use default */
-   int         multixact_freeze_table_age;     /* multixact age at which to
-                                                * scan whole table */
+   int         freeze_table_age;   /* age at which to scan whole table */
+   int         multixact_freeze_min_age;   /* min multixact freeze age, -1 to
+                                            * use default */
+   int         multixact_freeze_table_age; /* multixact age at which to scan
+                                            * whole table */
    bool        is_wraparound;  /* force a for-wraparound vacuum */
-   int         log_min_duration;       /* minimum execution threshold in ms
-                                        * at which  verbose logs are
-                                        * activated, -1 to use default */
+   int         log_min_duration;   /* minimum execution threshold in ms at
+                                    * which  verbose logs are activated, -1
+                                    * to use default */
 } VacuumParams;
 
 /* GUC parameters */
-extern PGDLLIMPORT int default_statistics_target;      /* PGDLLIMPORT for
-                                                        * PostGIS */
+extern PGDLLIMPORT int default_statistics_target;  /* PGDLLIMPORT for PostGIS */
 extern int vacuum_freeze_min_age;
 extern int vacuum_freeze_table_age;
 extern int vacuum_multixact_freeze_min_age;
@@ -203,4 +202,4 @@ extern double anl_random_fract(void);
 extern double anl_init_selection_state(int n);
 extern double anl_get_next_S(double t, int n, double *stateptr);
 
-#endif   /* VACUUM_H */
+#endif                         /* VACUUM_H */
index 247423c6fbe5e23b64306326dca9ea45ed62174c..575339a6d8a65d4941f2ee5ed973e97e16f54b58 100644 (file)
@@ -37,4 +37,4 @@ extern bool check_role(char **newval, void **extra, GucSource source);
 extern void assign_role(const char *newval, void *extra);
 extern const char *show_role(void);
 
-#endif   /* VARIABLE_H */
+#endif                         /* VARIABLE_H */
index 39763913c80590df8526a3810c60196a9f636e55..cf08ce2ac711c1903b2d0d8be02620c16512a33f 100644 (file)
@@ -24,4 +24,4 @@ extern ObjectAddress DefineView(ViewStmt *stmt, const char *queryString,
 
 extern void StoreViewQuery(Oid viewOid, Query *viewParse, bool replace);
 
-#endif   /* VIEW_H */
+#endif                         /* VIEW_H */
index 09b69b1656a671fd2a058bf96756f6d453101d91..7fe19bb43216c30786e6505bac69dc17b19e6e92 100644 (file)
@@ -16,4 +16,4 @@ extern int    pg_b64_decode(const char *src, int len, char *dst);
 extern int pg_b64_enc_len(int srclen);
 extern int pg_b64_dec_len(int srclen);
 
-#endif   /* BASE64_H */
+#endif                         /* BASE64_H */
index 656e26fdb0fdfdda37e7b9eb6c8af96b7a1531dc..f77532786198c5755f8c1b324d3f3a04d6855a7c 100644 (file)
@@ -18,4 +18,4 @@ typedef struct ConfigData
 extern ConfigData *get_configdata(const char *my_exec_path,
               size_t *configdata_len);
 
-#endif   /* COMMON_CONFIG_INFO_H */
+#endif                         /* COMMON_CONFIG_INFO_H */
index 82ea426afe69f65a1d2c9eee90f01e7ef007580a..e97abe6a5107b365ed5c86cafc3fd12323f3dff4 100644 (file)
@@ -14,4 +14,4 @@
 
 extern ControlFileData *get_controlfile(const char *DataDir, const char *progname, bool *crc_ok_p);
 
-#endif   /* COMMON_CONTROLDATA_UTILS_H */
+#endif                         /* COMMON_CONTROLDATA_UTILS_H */
index cb381bd9f5f8cc5b703687265b36f98ff7f13024..6708670b96396d1e3438ba8900bd8087f27cfdb3 100644 (file)
@@ -41,4 +41,4 @@ extern void pfree(void *pointer);
 extern char *psprintf(const char *fmt,...) pg_attribute_printf(1, 2);
 extern size_t pvsnprintf(char *buf, size_t len, const char *fmt, va_list args) pg_attribute_printf(3, 0);
 
-#endif   /* FE_MEMUTILS_H */
+#endif                         /* FE_MEMUTILS_H */
index 95c001905df638f126452cebea83b0deeb34050f..52af7f0baa24604ec3c64b81454192a3adcad595 100644 (file)
@@ -24,4 +24,4 @@ extern int durable_rename(const char *oldfile, const char *newfile,
               const char *progname);
 extern int fsync_parent_path(const char *fname, const char *progname);
 
-#endif   /* FILE_UTILS_H */
+#endif                         /* FILE_UTILS_H */
index 046f5b4903ae98ddbf07bfee4f6ede92b725a20c..af2c93da46df8adf31fb18863ac3894683c12007 100644 (file)
@@ -271,6 +271,6 @@ int128_to_int64(INT128 val)
    return (int64) val.lo;
 }
 
-#endif   /* USE_NATIVE_INT128 */
+#endif                         /* USE_NATIVE_INT128 */
 
-#endif   /* INT128_H */
+#endif                         /* INT128_H */
index 41d1be86adb361db795be058ec860ef00865dd3a..f53013987642b0013d5d2bcdadb4dcfb776c25f6 100644 (file)
@@ -34,4 +34,4 @@ extern int pg_getnameinfo_all(const struct sockaddr_storage *addr, int salen,
                   char *service, int servicelen,
                   int flags);
 
-#endif   /* IP_H */
+#endif                         /* IP_H */
index 34e066be6bb06af94010bfd98d9b802c79fa9815..60522715a8d77b37998238763b00d48c46e10492 100644 (file)
@@ -41,4 +41,4 @@ extern const ScanKeyword *ScanKeywordLookup(const char *text,
                  const ScanKeyword *keywords,
                  int num_keywords);
 
-#endif   /* KEYWORDS_H */
+#endif                         /* KEYWORDS_H */
index dbd51d58efb36024e052866db75fe60b48352451..d4b2e8a53c65056e5256436b5988b37d5fa68f44 100644 (file)
@@ -88,4 +88,4 @@ extern int32 pglz_compress(const char *source, int32 slen, char *dest,
 extern int32 pglz_decompress(const char *source, int32 slen, char *dest,
                int32 rawsize);
 
-#endif   /* _PG_LZCOMPRESS_H_ */
+#endif                         /* _PG_LZCOMPRESS_H_ */
index df090f2da40efa50ff8d45a4bed8c25659e199d6..ec5ef99451750c49388d90b633e8358b3f720fc3 100644 (file)
@@ -71,4 +71,4 @@ extern char *GetRelationPath(Oid dbNode, Oid spcNode, Oid relNode,
 #define relpath(rnode, forknum) \
    relpathbackend((rnode).node, (rnode).backend, forknum)
 
-#endif   /* RELPATH_H */
+#endif                         /* RELPATH_H */
index 7441a55119b32a88a2ea3f48a319f952d1059624..51be5a760ca0472e3c898deb2c633be795928acd 100644 (file)
@@ -21,4 +21,4 @@ void      get_restricted_token(const char *progname);
 HANDLE     CreateRestrictedProcess(char *cmd, PROCESS_INFORMATION *processInfo, const char *progname);
 #endif
 
-#endif   /* COMMON_RESTRICTED_TOKEN_H */
+#endif                         /* COMMON_RESTRICTED_TOKEN_H */
index ec5c8ce361d3b9177c2742b4becbc81fc9024328..c7b620cf194a050d280e5f2260edc5abf2b4b296 100644 (file)
@@ -27,4 +27,4 @@ typedef enum
 
 extern pg_saslprep_rc pg_saslprep(const char *input, char **output);
 
-#endif   /* SASLPREP_H */
+#endif                         /* SASLPREP_H */
index 2ee51fbaec0a1de8322d6d6a8eed7d692a384738..ebb733df4b39de4e456c92dcd2497f4049997a59 100644 (file)
@@ -56,4 +56,4 @@ extern void scram_ServerKey(const uint8 *salted_password, uint8 *result);
 extern char *scram_build_verifier(const char *salt, int saltlen, int iterations,
                     const char *password);
 
-#endif   /* SCRAM_COMMON_H */
+#endif                         /* SCRAM_COMMON_H */
index 09107cfc3b82b0457a830b72953abb07513aaddc..6358ca3c56e22bcd617563377edf8fdc2f7d6805 100644 (file)
@@ -89,7 +89,7 @@ typedef struct pg_sha512_ctx
 } pg_sha512_ctx;
 typedef struct pg_sha256_ctx pg_sha224_ctx;
 typedef struct pg_sha512_ctx pg_sha384_ctx;
-#endif   /* USE_SSL */
+#endif                         /* USE_SSL */
 
 /* Interface routines for SHA224/256/384/512 */
 extern void pg_sha224_init(pg_sha224_ctx *ctx);
@@ -112,4 +112,4 @@ extern void pg_sha512_update(pg_sha512_ctx *ctx, const uint8 *input0,
                 size_t len);
 extern void pg_sha512_final(pg_sha512_ctx *ctx, uint8 *dest);
 
-#endif   /* _PG_SHA2_H_ */
+#endif                         /* _PG_SHA2_H_ */
index ec9ee9a740904226f6e112123673f5c1fd981435..5f3ea71d61329dae5d8e3ad8fb9ee2f3a623ee74 100644 (file)
@@ -12,4 +12,4 @@
 
 extern bool pg_str_endswith(const char *str, const char *end);
 
-#endif   /* COMMON_STRING_H */
+#endif                         /* COMMON_STRING_H */
index 488f964d2c348cc595f40feec9e4b3fb25afd1fc..8741209751a6fa57678e68eb21732bf80131364b 100644 (file)
@@ -18,4 +18,4 @@
 
 extern pg_wchar *unicode_normalize_kc(const pg_wchar *input);
 
-#endif   /* UNICODE_NORM_H */
+#endif                         /* UNICODE_NORM_H */
index 095481ab7f59536117a61ec59e1160adf37cbd04..da08e487e3ff467d684ee2cf6ab6b7e733491877 100644 (file)
@@ -37,14 +37,14 @@ typedef struct
 static const pg_unicode_decomposition UnicodeDecompMain[6532] =
 {
    {0x00A0, 0, 1 | DECOMP_INLINE, 0x0020},
-   {0x00A8, 0, 2 | DECOMP_NO_COMPOSE, 0},      /* compatibility mapping */
+   {0x00A8, 0, 2 | DECOMP_NO_COMPOSE, 0},  /* compatibility mapping */
    {0x00AA, 0, 1 | DECOMP_INLINE, 0x0061},
-   {0x00AF, 0, 2 | DECOMP_NO_COMPOSE, 2},      /* compatibility mapping */
+   {0x00AF, 0, 2 | DECOMP_NO_COMPOSE, 2},  /* compatibility mapping */
    {0x00B2, 0, 1 | DECOMP_INLINE, 0x0032},
    {0x00B3, 0, 1 | DECOMP_INLINE, 0x0033},
-   {0x00B4, 0, 2 | DECOMP_NO_COMPOSE, 4},      /* compatibility mapping */
+   {0x00B4, 0, 2 | DECOMP_NO_COMPOSE, 4},  /* compatibility mapping */
    {0x00B5, 0, 1 | DECOMP_INLINE, 0x03BC},
-   {0x00B8, 0, 2 | DECOMP_NO_COMPOSE, 6},      /* compatibility mapping */
+   {0x00B8, 0, 2 | DECOMP_NO_COMPOSE, 6},  /* compatibility mapping */
    {0x00B9, 0, 1 | DECOMP_INLINE, 0x0031},
    {0x00BA, 0, 1 | DECOMP_INLINE, 0x006F},
    {0x00BC, 0, 3, 8},
index 114304f9e1f8fc0f42b45fdd94e737d5546afa46..735572d382fa282a6cb6e0c8f87cacf10b8e15b7 100644 (file)
@@ -12,4 +12,4 @@
 extern const char *get_user_name(char **errstr);
 extern const char *get_user_name_or_exit(const char *progname);
 
-#endif   /* USERNAME_H */
+#endif                         /* USERNAME_H */
index 16e1b4c44d08cab1082edb621ea6b5f39fce5369..6f48d1c71b364f79d24de5ad0661c0d29c4dfdab 100644 (file)
@@ -178,7 +178,7 @@ typedef struct
 /* First allowed date, and first disallowed date, in Julian-date form */
 #define DATETIME_MIN_JULIAN (0)
 #define DATE_END_JULIAN (2147483494)   /* == date2j(JULIAN_MAXYEAR, 1, 1) */
-#define TIMESTAMP_END_JULIAN (109203528)       /* == date2j(294277, 1, 1) */
+#define TIMESTAMP_END_JULIAN (109203528)   /* == date2j(294277, 1, 1) */
 
 /* Timestamp limits */
 #define MIN_TIMESTAMP  INT64CONST(-211813488000000000)
@@ -194,4 +194,4 @@ typedef struct
 /* Range-check a timestamp */
 #define IS_VALID_TIMESTAMP(t)  (MIN_TIMESTAMP <= (t) && (t) < END_TIMESTAMP)
 
-#endif   /* DATATYPE_TIMESTAMP_H */
+#endif                         /* DATATYPE_TIMESTAMP_H */
index 86fdb33cd3fe7c8bf3f900c1ff440297c78a69b6..7a65339f01ac422c3e4df73698f64634f5d11608 100644 (file)
@@ -261,7 +261,7 @@ typedef struct ExprEvalStep
            bool        first;  /* first time through, need to initialize? */
            bool        slow;   /* need runtime check for nulls? */
            TupleDesc   tupdesc;    /* descriptor for resulting tuples */
-           JunkFilter *junkFilter;     /* JunkFilter to remove resjunk cols */
+           JunkFilter *junkFilter; /* JunkFilter to remove resjunk cols */
        }           wholerow;
 
        /* for EEOP_ASSIGN_*_VAR */
@@ -292,7 +292,7 @@ typedef struct ExprEvalStep
        struct
        {
            FmgrInfo   *finfo;  /* function's lookup data */
-           FunctionCallInfo fcinfo_data;       /* arguments etc */
+           FunctionCallInfo fcinfo_data;   /* arguments etc */
            /* faster to access without additional indirection: */
            PGFunction  fn_addr;    /* actual call address */
            int         nargs;  /* number of arguments */
@@ -302,19 +302,19 @@ typedef struct ExprEvalStep
        struct
        {
            bool       *anynull;    /* track if any input was NULL */
-           int         jumpdone;       /* jump here if result determined */
+           int         jumpdone;   /* jump here if result determined */
        }           boolexpr;
 
        /* for EEOP_QUAL */
        struct
        {
-           int         jumpdone;       /* jump here on false or null */
+           int         jumpdone;   /* jump here on false or null */
        }           qualexpr;
 
        /* for EEOP_JUMP[_CONDITION] */
        struct
        {
-           int         jumpdone;       /* target instruction's index */
+           int         jumpdone;   /* target instruction's index */
        }           jump;
 
        /* for EEOP_NULLTEST_ROWIS[NOT]NULL */
@@ -328,7 +328,7 @@ typedef struct ExprEvalStep
        struct
        {
            int         paramid;    /* numeric ID for parameter */
-           Oid         paramtype;      /* OID of parameter's datatype */
+           Oid         paramtype;  /* OID of parameter's datatype */
        }           param;
 
        /* for EEOP_CASE_TESTVAL/DOMAIN_TESTVAL */
@@ -372,14 +372,14 @@ typedef struct ExprEvalStep
        /* for EEOP_ARRAYEXPR */
        struct
        {
-           Datum      *elemvalues;     /* element values get stored here */
+           Datum      *elemvalues; /* element values get stored here */
            bool       *elemnulls;
            int         nelems; /* length of the above arrays */
-           Oid         elemtype;       /* array element type */
-           int16       elemlength;     /* typlen of the array element type */
-           bool        elembyval;      /* is the element type pass-by-value? */
-           char        elemalign;      /* typalign of the element type */
-           bool        multidims;      /* is array expression multi-D? */
+           Oid         elemtype;   /* array element type */
+           int16       elemlength; /* typlen of the array element type */
+           bool        elembyval;  /* is the element type pass-by-value? */
+           char        elemalign;  /* typalign of the element type */
+           bool        multidims;  /* is array expression multi-D? */
        }           arrayexpr;
 
        /* for EEOP_ARRAYCOERCE */
@@ -387,9 +387,9 @@ typedef struct ExprEvalStep
        {
            ArrayCoerceExpr *coerceexpr;
            Oid         resultelemtype; /* element type of result array */
-           FmgrInfo   *elemfunc;       /* lookup info for element coercion
-                                        * function */
-           struct ArrayMapState *amstate;      /* workspace for array_map */
+           FmgrInfo   *elemfunc;   /* lookup info for element coercion
+                                    * function */
+           struct ArrayMapState *amstate;  /* workspace for array_map */
        }           arraycoerce;
 
        /* for EEOP_ROW */
@@ -437,8 +437,8 @@ typedef struct ExprEvalStep
        /* for EEOP_FIELDSELECT */
        struct
        {
-           AttrNumber  fieldnum;       /* field number to extract */
-           Oid         resulttype;     /* field's type */
+           AttrNumber  fieldnum;   /* field number to extract */
+           Oid         resulttype; /* field's type */
            /* cached tupdesc pointer - filled at runtime */
            TupleDesc   argdesc;
        }           fieldselect;
@@ -466,7 +466,7 @@ typedef struct ExprEvalStep
            struct ArrayRefState *state;
            int         off;    /* 0-based index of this subscript */
            bool        isupper;    /* is it upper or lower subscript? */
-           int         jumpdone;       /* jump here on null */
+           int         jumpdone;   /* jump here on null */
        }           arrayref_subscript;
 
        /* for EEOP_ARRAYREF_OLD / ASSIGN / FETCH */
@@ -491,7 +491,7 @@ typedef struct ExprEvalStep
        /* for EEOP_CONVERT_ROWTYPE */
        struct
        {
-           ConvertRowtypeExpr *convert;        /* original expression */
+           ConvertRowtypeExpr *convert;    /* original expression */
            /* these three fields are filled at runtime: */
            TupleDesc   indesc; /* tupdesc for input type */
            TupleDesc   outdesc;    /* tupdesc for output type */
@@ -509,7 +509,7 @@ typedef struct ExprEvalStep
            bool        typbyval;
            char        typalign;
            FmgrInfo   *finfo;  /* function's lookup data */
-           FunctionCallInfo fcinfo_data;       /* arguments etc */
+           FunctionCallInfo fcinfo_data;   /* arguments etc */
            /* faster to access without additional indirection: */
            PGFunction  fn_addr;    /* actual call address */
        }           scalararrayop;
@@ -647,4 +647,4 @@ extern void ExecEvalAlternativeSubPlan(ExprState *state, ExprEvalStep *op,
 extern void ExecEvalWholeRowVar(ExprState *state, ExprEvalStep *op,
                    ExprContext *econtext);
 
-#endif   /* EXEC_EXPR_H */
+#endif                         /* EXEC_EXPR_H */
index 0b7ca59dca566c827d7a18b9e7dd853ad1be3725..bd0a87fa0416a7ef2224ebd7f3e7b14593fdf098 100644 (file)
@@ -40,4 +40,4 @@ extern void ExecParallelReinitialize(ParallelExecutorInfo *pei);
 
 extern void ParallelQueryMain(dsm_segment *seg, shm_toc *toc);
 
-#endif   /* EXECPARALLEL_H */
+#endif                         /* EXECPARALLEL_H */
index 8b61520e18960786d9d0240df493bed81be446b4..cd04b601762a093127a312f66972e5aa3ffcc846 100644 (file)
@@ -76,7 +76,7 @@
 #define NL_printf(s)
 #define NL1_printf(s, a)
 #define ENL1_printf(message)
-#endif   /* EXEC_NESTLOOPDEBUG */
+#endif                         /* EXEC_NESTLOOPDEBUG */
 
 /* ----------------
  *     sort node debugging defines
@@ -90,7 +90,7 @@
 #define SO_nodeDisplay(l)
 #define SO_printf(s)
 #define SO1_printf(s, p)
-#endif   /* EXEC_SORTDEBUG */
+#endif                         /* EXEC_SORTDEBUG */
 
 /* ----------------
  *     merge join debugging defines
 #define MJ_DEBUG_COMPARE(res)
 #define MJ_DEBUG_QUAL(clause, res)
 #define MJ_DEBUG_PROC_NODE(slot)
-#endif   /* EXEC_MERGEJOINDEBUG */
+#endif                         /* EXEC_MERGEJOINDEBUG */
 
-#endif   /* EXECDEBUG_H */
+#endif                         /* EXECDEBUG_H */
index 37de6f2011332c80e7f30738da9cc3b14af02b14..8c09961e281db914ee87ac54f093c1e84ce6ce19 100644 (file)
@@ -41,7 +41,7 @@ typedef struct QueryDesc
    DestReceiver *dest;         /* the destination for tuple output */
    ParamListInfo params;       /* param values being passed in */
    QueryEnvironment *queryEnv; /* query environment passed in */
-   int         instrument_options;     /* OR of InstrumentOption flags */
+   int         instrument_options; /* OR of InstrumentOption flags */
 
    /* These fields are set by ExecutorStart */
    TupleDesc   tupDesc;        /* descriptor for result tuples */
@@ -49,7 +49,7 @@ typedef struct QueryDesc
    PlanState  *planstate;      /* tree of per-plan-node state */
 
    /* This field is set by ExecutorRun */
-   bool        already_executed;       /* true if previously executed */
+   bool        already_executed;   /* true if previously executed */
 
    /* This is always set NULL by the core system, but plugins can change it */
    struct Instrumentation *totaltime;  /* total time spent in ExecutorRun */
@@ -67,4 +67,4 @@ extern QueryDesc *CreateQueryDesc(PlannedStmt *plannedstmt,
 
 extern void FreeQueryDesc(QueryDesc *qdesc);
 
-#endif   /* EXECDESC_H  */
+#endif                         /* EXECDESC_H  */
index 6544be9602869ee4e5e08c064b41342de92ddc26..3c4abd1098d0891f7f634d8b67a07829c9f422d8 100644 (file)
@@ -538,4 +538,4 @@ extern void CheckCmdReplicaIdentity(Relation rel, CmdType cmd);
 extern void CheckSubscriptionRelkind(char relkind, const char *nspname,
                         const char *relname);
 
-#endif   /* EXECUTOR_H  */
+#endif                         /* EXECUTOR_H  */
index 7821a634f1b198e293d500ac84b584868a946a6a..718d8947a3c7d9632cb97a1f9a45b5e29aa6b1b7 100644 (file)
@@ -36,4 +36,4 @@ extern bool check_sql_fn_retval(Oid func_id, Oid rettype,
 
 extern DestReceiver *CreateSQLFunctionDestReceiver(void);
 
-#endif   /* FUNCTIONS_H */
+#endif                         /* FUNCTIONS_H */
index addcd09049d16619f40143732f71adbc12066cbc..82acadf85bacb214da89dc32a02c5faae0b7e575 100644 (file)
@@ -63,7 +63,7 @@
 
 typedef struct HashJoinTupleData
 {
-   struct HashJoinTupleData *next;     /* link to next tuple in same bucket */
+   struct HashJoinTupleData *next; /* link to next tuple in same bucket */
    uint32      hashvalue;      /* tuple's hash code */
    /* Tuple data, in MinimalTuple format, follows on a MAXALIGN boundary */
 }          HashJoinTupleData;
@@ -128,9 +128,8 @@ typedef struct HashJoinTableData
    int         nbuckets;       /* # buckets in the in-memory hash table */
    int         log2_nbuckets;  /* its log2 (nbuckets must be a power of 2) */
 
-   int         nbuckets_original;      /* # buckets when starting the first
-                                        * hash */
-   int         nbuckets_optimal;       /* optimal # buckets (per batch) */
+   int         nbuckets_original;  /* # buckets when starting the first hash */
+   int         nbuckets_optimal;   /* optimal # buckets (per batch) */
    int         log2_nbuckets_optimal;  /* log2(nbuckets_optimal) */
 
    /* buckets[i] is head of list of tuples in i'th in-memory bucket */
@@ -179,7 +178,7 @@ typedef struct HashJoinTableData
    Size        spaceAllowed;   /* upper limit for space used */
    Size        spacePeak;      /* peak space used */
    Size        spaceUsedSkew;  /* skew hash table's current space usage */
-   Size        spaceAllowedSkew;       /* upper limit for skew hashtable */
+   Size        spaceAllowedSkew;   /* upper limit for skew hashtable */
 
    MemoryContext hashCxt;      /* context for whole-hash-join storage */
    MemoryContext batchCxt;     /* context for this-batch-only storage */
@@ -188,4 +187,4 @@ typedef struct HashJoinTableData
    HashMemoryChunk chunks;     /* one list for the whole batch */
 }          HashJoinTableData;
 
-#endif   /* HASHJOIN_H */
+#endif                         /* HASHJOIN_H */
index c9e169c45ca28d39613577976f7a46eae331e708..31573145a9f63c4676bd96e233717d343767b75b 100644 (file)
 typedef struct BufferUsage
 {
    long        shared_blks_hit;    /* # of shared buffer hits */
-   long        shared_blks_read;       /* # of shared disk blocks read */
+   long        shared_blks_read;   /* # of shared disk blocks read */
    long        shared_blks_dirtied;    /* # of shared blocks dirtied */
    long        shared_blks_written;    /* # of shared disk blocks written */
    long        local_blks_hit; /* # of local buffer hits */
    long        local_blks_read;    /* # of local disk blocks read */
-   long        local_blks_dirtied;     /* # of shared blocks dirtied */
-   long        local_blks_written;     /* # of local disk blocks written */
+   long        local_blks_dirtied; /* # of shared blocks dirtied */
+   long        local_blks_written; /* # of local disk blocks written */
    long        temp_blks_read; /* # of temp blocks read */
-   long        temp_blks_written;      /* # of temp blocks written */
+   long        temp_blks_written;  /* # of temp blocks written */
    instr_time  blk_read_time;  /* time spent reading */
    instr_time  blk_write_time; /* time spent writing */
 } BufferUsage;
@@ -81,4 +81,4 @@ extern void InstrStartParallelQuery(void);
 extern void InstrEndParallelQuery(BufferUsage *result);
 extern void InstrAccumParallelQuery(BufferUsage *result);
 
-#endif   /* INSTRUMENT_H */
+#endif                         /* INSTRUMENT_H */
index d2fee52e123a88768915921dbca30584e3d87159..fa11ba93a6bcb0df48a12cb522e4dd6ee0c7b7b6 100644 (file)
@@ -25,4 +25,4 @@ extern Size hash_agg_entry_size(int numAggs);
 
 extern Datum aggregate_dummy(PG_FUNCTION_ARGS);
 
-#endif   /* NODEAGG_H */
+#endif                         /* NODEAGG_H */
index 6fb4662c880a586dbd2f43f58761531fa0b6d1a9..ee0b6ad23ddf63dd753b01f35ee2b5ea160666c7 100644 (file)
@@ -21,4 +21,4 @@ extern TupleTableSlot *ExecAppend(AppendState *node);
 extern void ExecEndAppend(AppendState *node);
 extern void ExecReScanAppend(AppendState *node);
 
-#endif   /* NODEAPPEND_H */
+#endif                         /* NODEAPPEND_H */
index 1cb3470bcb3b5325399eaad74a55a6bfccd8e3f9..5d848b61afca40ae777bab87a0fc33dbc4598406 100644 (file)
@@ -21,4 +21,4 @@ extern Node *MultiExecBitmapAnd(BitmapAndState *node);
 extern void ExecEndBitmapAnd(BitmapAndState *node);
 extern void ExecReScanBitmapAnd(BitmapAndState *node);
 
-#endif   /* NODEBITMAPAND_H */
+#endif                         /* NODEBITMAPAND_H */
index 465c58e6ee54f6720aeea00f2700324273cf4006..f477d1c7720bcf034fd21228e8cccef63e21cd27 100644 (file)
@@ -28,4 +28,4 @@ extern void ExecBitmapHeapInitializeDSM(BitmapHeapScanState *node,
 extern void ExecBitmapHeapInitializeWorker(BitmapHeapScanState *node,
                               shm_toc *toc);
 
-#endif   /* NODEBITMAPHEAPSCAN_H */
+#endif                         /* NODEBITMAPHEAPSCAN_H */
index 1fb8da01cb0c13af89badc2fdd030a7ee370b45f..842193f4df681c3bcb9fc6d30bf8537fcc0e9266 100644 (file)
@@ -21,4 +21,4 @@ extern Node *MultiExecBitmapIndexScan(BitmapIndexScanState *node);
 extern void ExecEndBitmapIndexScan(BitmapIndexScanState *node);
 extern void ExecReScanBitmapIndexScan(BitmapIndexScanState *node);
 
-#endif   /* NODEBITMAPINDEXSCAN_H */
+#endif                         /* NODEBITMAPINDEXSCAN_H */
index a23bf77ff77a02b6d0c6d868e444078131aae20c..526904eb4dc5d1b846d06bd74465126a5632944d 100644 (file)
@@ -21,4 +21,4 @@ extern Node *MultiExecBitmapOr(BitmapOrState *node);
 extern void ExecEndBitmapOr(BitmapOrState *node);
 extern void ExecReScanBitmapOr(BitmapOrState *node);
 
-#endif   /* NODEBITMAPOR_H */
+#endif                         /* NODEBITMAPOR_H */
index e8bcb88b35108c0433387009b458166395dfb668..397bdfdd1ce8d0d5e510049ba39ff4a4025f1c1d 100644 (file)
@@ -21,4 +21,4 @@ extern TupleTableSlot *ExecCteScan(CteScanState *node);
 extern void ExecEndCteScan(CteScanState *node);
 extern void ExecReScanCteScan(CteScanState *node);
 
-#endif   /* NODECTESCAN_H */
+#endif                         /* NODECTESCAN_H */
index c2f2ca1eede4cea3f811e206dee15272bdf568a4..e81bcf7f21c523693f991e50c7db8d21b3a92354 100644 (file)
@@ -39,4 +39,4 @@ extern void ExecCustomScanInitializeWorker(CustomScanState *node,
                               shm_toc *toc);
 extern void ExecShutdownCustomScan(CustomScanState *node);
 
-#endif   /* NODECUSTOM_H */
+#endif                         /* NODECUSTOM_H */
index 1b167b8143ab201ab9699d87645cdcefd050b79e..3ff4ecd8c939485f89b8141df2373f5440e7e340 100644 (file)
@@ -30,4 +30,4 @@ extern void ExecForeignScanInitializeWorker(ForeignScanState *node,
                                shm_toc *toc);
 extern void ExecShutdownForeignScan(ForeignScanState *node);
 
-#endif   /* NODEFOREIGNSCAN_H */
+#endif                         /* NODEFOREIGNSCAN_H */
index efff0deaee6b15db27bb3129fff048b4ab89281e..5e830ebdeae17dff2684e5b85053f5f12dd5a9b8 100644 (file)
@@ -21,4 +21,4 @@ extern TupleTableSlot *ExecFunctionScan(FunctionScanState *node);
 extern void ExecEndFunctionScan(FunctionScanState *node);
 extern void ExecReScanFunctionScan(FunctionScanState *node);
 
-#endif   /* NODEFUNCTIONSCAN_H */
+#endif                         /* NODEFUNCTIONSCAN_H */
index e19bc9b20dd2dc66d84b5ee50bc932908754278c..b0006934d4ddbc80af60048f2a797e955f233380 100644 (file)
@@ -22,4 +22,4 @@ extern void ExecEndGather(GatherState *node);
 extern void ExecShutdownGather(GatherState *node);
 extern void ExecReScanGather(GatherState *node);
 
-#endif   /* NODEGATHER_H */
+#endif                         /* NODEGATHER_H */
index f5ba353762a5caacd01936a3989ed293307fb3cd..14b31a086c38d9439609ba015fa20bfccbcfc94f 100644 (file)
@@ -24,4 +24,4 @@ extern void ExecEndGatherMerge(GatherMergeState *node);
 extern void ExecReScanGatherMerge(GatherMergeState *node);
 extern void ExecShutdownGatherMerge(GatherMergeState *node);
 
-#endif   /* NODEGATHERMERGE_H */
+#endif                         /* NODEGATHERMERGE_H */
index a9536a3c6f7338be804eb208627b572338012757..7358b61707ceff46f8e0ed8fb647bd22c8980c8a 100644 (file)
@@ -21,4 +21,4 @@ extern TupleTableSlot *ExecGroup(GroupState *node);
 extern void ExecEndGroup(GroupState *node);
 extern void ExecReScanGroup(GroupState *node);
 
-#endif   /* NODEGROUP_H */
+#endif                         /* NODEGROUP_H */
index fe5c2642d74fd57d1df42dd5c3daed4c0278e6b0..8052f27d0b16d2304cb34b81974def7f8fce09c9 100644 (file)
@@ -50,4 +50,4 @@ extern void ExecChooseHashTableSize(double ntuples, int tupwidth, bool useskew,
                        int *num_skew_mcvs);
 extern int ExecHashGetSkewBucket(HashJoinTable hashtable, uint32 hashvalue);
 
-#endif   /* NODEHASH_H */
+#endif                         /* NODEHASH_H */
index ddc32b1de3ae2a36d3cb364ad6a92cb5c22f4797..541c81edc71474961800951b438092bda39490f6 100644 (file)
@@ -25,4 +25,4 @@ extern void ExecReScanHashJoin(HashJoinState *node);
 extern void ExecHashJoinSaveTuple(MinimalTuple tuple, uint32 hashvalue,
                      BufFile **fileptr);
 
-#endif   /* NODEHASHJOIN_H */
+#endif                         /* NODEHASHJOIN_H */
index 5d3c6bbc0de958ad7fa74d82b30aa4926678070d..cf227daae041e68ccf77d36ae7087a5f2e05244f 100644 (file)
@@ -32,4 +32,4 @@ extern void ExecIndexOnlyScanInitializeDSM(IndexOnlyScanState *node,
 extern void ExecIndexOnlyScanInitializeWorker(IndexOnlyScanState *node,
                                  shm_toc *toc);
 
-#endif   /* NODEINDEXONLYSCAN_H */
+#endif                         /* NODEINDEXONLYSCAN_H */
index ea3f3a5cc4d1e17c2c34d05c6e9ab9cd5964f70b..a3518e03a4d8f8b6c893f238eb40c519c615447b 100644 (file)
@@ -42,4 +42,4 @@ extern bool ExecIndexEvalArrayKeys(ExprContext *econtext,
                       IndexArrayKeyInfo *arrayKeys, int numArrayKeys);
 extern bool ExecIndexAdvanceArrayKeys(IndexArrayKeyInfo *arrayKeys, int numArrayKeys);
 
-#endif   /* NODEINDEXSCAN_H */
+#endif                         /* NODEINDEXSCAN_H */
index 6e4084b46d68aa5b93806b07ed204032e13aa7ab..7bb20d99786cd7c8832d6eeea53b2a3a225aaa5a 100644 (file)
@@ -21,4 +21,4 @@ extern TupleTableSlot *ExecLimit(LimitState *node);
 extern void ExecEndLimit(LimitState *node);
 extern void ExecReScanLimit(LimitState *node);
 
-#endif   /* NODELIMIT_H */
+#endif                         /* NODELIMIT_H */
index c23954131b8b468f2b951aaf5a8d2d83df861319..6b90756e4c06f6b2e1288e510c16df761dffa401 100644 (file)
@@ -21,4 +21,4 @@ extern TupleTableSlot *ExecLockRows(LockRowsState *node);
 extern void ExecEndLockRows(LockRowsState *node);
 extern void ExecReScanLockRows(LockRowsState *node);
 
-#endif   /* NODELOCKROWS_H */
+#endif                         /* NODELOCKROWS_H */
index f6a7241ee7b8bbaaa8070e07c65f537803efa6c2..f69abbca82b9c15e6e13012de69d0062317c0a34 100644 (file)
@@ -23,4 +23,4 @@ extern void ExecMaterialMarkPos(MaterialState *node);
 extern void ExecMaterialRestrPos(MaterialState *node);
 extern void ExecReScanMaterial(MaterialState *node);
 
-#endif   /* NODEMATERIAL_H */
+#endif                         /* NODEMATERIAL_H */
index eafa15445cfde65c43a6245cb478d8ba34a0ca56..3cc6ef549b34f0de53b3fcb1e826ed3132c3ed13 100644 (file)
@@ -21,4 +21,4 @@ extern TupleTableSlot *ExecMergeAppend(MergeAppendState *node);
 extern void ExecEndMergeAppend(MergeAppendState *node);
 extern void ExecReScanMergeAppend(MergeAppendState *node);
 
-#endif   /* NODEMERGEAPPEND_H */
+#endif                         /* NODEMERGEAPPEND_H */
index ffaa3af9080227c1638da4e1a7ee1643f5c6e8fa..32df25ae8b3636c9bc5336a65374efe3a1b34173 100644 (file)
@@ -21,4 +21,4 @@ extern TupleTableSlot *ExecMergeJoin(MergeJoinState *node);
 extern void ExecEndMergeJoin(MergeJoinState *node);
 extern void ExecReScanMergeJoin(MergeJoinState *node);
 
-#endif   /* NODEMERGEJOIN_H */
+#endif                         /* NODEMERGEJOIN_H */
index 0c327768e1910487ae3916698fd51f9daa13adc5..5a406f236d4dd34918ba4f81a409047edfbb7d89 100644 (file)
@@ -20,4 +20,4 @@ extern TupleTableSlot *ExecModifyTable(ModifyTableState *node);
 extern void ExecEndModifyTable(ModifyTableState *node);
 extern void ExecReScanModifyTable(ModifyTableState *node);
 
-#endif   /* NODEMODIFYTABLE_H */
+#endif                         /* NODEMODIFYTABLE_H */
index 9ef477e7ff22594aaaa6e45b3438d955585dcf9e..7f72fbe98af5cb8d1bb3e11c78098e8f948ebf3f 100644 (file)
@@ -21,4 +21,4 @@ extern TupleTableSlot *ExecNamedTuplestoreScan(NamedTuplestoreScanState *node);
 extern void ExecEndNamedTuplestoreScan(NamedTuplestoreScanState *node);
 extern void ExecReScanNamedTuplestoreScan(NamedTuplestoreScanState *node);
 
-#endif   /* NODENAMEDTUPLESTORESCAN_H */
+#endif                         /* NODENAMEDTUPLESTORESCAN_H */
index 4b2bf59050094623e401f164537605f5feabe9e0..8e0fcc1922c9f4d4fadca5e9eb536918dd6034f7 100644 (file)
@@ -21,4 +21,4 @@ extern TupleTableSlot *ExecNestLoop(NestLoopState *node);
 extern void ExecEndNestLoop(NestLoopState *node);
 extern void ExecReScanNestLoop(NestLoopState *node);
 
-#endif   /* NODENESTLOOP_H */
+#endif                         /* NODENESTLOOP_H */
index 30b2b7cec9f7dae70d0f1585cb4fd41d1fd37f65..2f6999e8db3a1060b03e9c75ff1e85961ed61376 100644 (file)
@@ -21,4 +21,4 @@ extern TupleTableSlot *ExecProjectSet(ProjectSetState *node);
 extern void ExecEndProjectSet(ProjectSetState *node);
 extern void ExecReScanProjectSet(ProjectSetState *node);
 
-#endif   /* NODEPROJECTSET_H */
+#endif                         /* NODEPROJECTSET_H */
index 066596f773beebfaf9562eb68c0f30d2ff82f8fe..f0eba05bee969e384b8821ccf490dacce515f64b 100644 (file)
@@ -21,4 +21,4 @@ extern TupleTableSlot *ExecRecursiveUnion(RecursiveUnionState *node);
 extern void ExecEndRecursiveUnion(RecursiveUnionState *node);
 extern void ExecReScanRecursiveUnion(RecursiveUnionState *node);
 
-#endif   /* NODERECURSIVEUNION_H */
+#endif                         /* NODERECURSIVEUNION_H */
index 8e547b77e9b7951a2c62ba6d68c545e55fd04d39..61d3cb2cc2e20a93f79d76c57e4665ec0f76784b 100644 (file)
@@ -23,4 +23,4 @@ extern void ExecResultMarkPos(ResultState *node);
 extern void ExecResultRestrPos(ResultState *node);
 extern void ExecReScanResult(ResultState *node);
 
-#endif   /* NODERESULT_H */
+#endif                         /* NODERESULT_H */
index 8baf3a355c568e30e14cf8086bf5a4f201744a45..ed06e77e4eebec553392fe7fc9469f8d6fe530e6 100644 (file)
@@ -21,4 +21,4 @@ extern TupleTableSlot *ExecSampleScan(SampleScanState *node);
 extern void ExecEndSampleScan(SampleScanState *node);
 extern void ExecReScanSampleScan(SampleScanState *node);
 
-#endif   /* NODESAMPLESCAN_H */
+#endif                         /* NODESAMPLESCAN_H */
index 92b305e1384a84bd56b5c031ed369a963824b537..06e0686b0b7e96e11064d8de525b2f882c59397f 100644 (file)
@@ -27,4 +27,4 @@ extern void ExecSeqScanEstimate(SeqScanState *node, ParallelContext *pcxt);
 extern void ExecSeqScanInitializeDSM(SeqScanState *node, ParallelContext *pcxt);
 extern void ExecSeqScanInitializeWorker(SeqScanState *node, shm_toc *toc);
 
-#endif   /* NODESEQSCAN_H */
+#endif                         /* NODESEQSCAN_H */
index 887bdc1a4282d80be7d6a8a3520fc7892d99afab..af8597718380bdbb76ff5723026dbf177fcce9d3 100644 (file)
@@ -21,4 +21,4 @@ extern TupleTableSlot *ExecSetOp(SetOpState *node);
 extern void ExecEndSetOp(SetOpState *node);
 extern void ExecReScanSetOp(SetOpState *node);
 
-#endif   /* NODESETOP_H */
+#endif                         /* NODESETOP_H */
index 10d16b47b1d862a04ba86a564ff0ef81d105722f..1d2b7130b3246775221e75330ad7bb228b811b7d 100644 (file)
@@ -23,4 +23,4 @@ extern void ExecSortMarkPos(SortState *node);
 extern void ExecSortRestrPos(SortState *node);
 extern void ExecReScanSort(SortState *node);
 
-#endif   /* NODESORT_H */
+#endif                         /* NODESORT_H */
index 0d3f52118b2b07791ce754c614828aa03c50df45..5dbaeeb29a3deaf9a6122362323ecf6e0494ded2 100644 (file)
@@ -28,4 +28,4 @@ extern void ExecReScanSetParamPlan(SubPlanState *node, PlanState *parent);
 
 extern void ExecSetParamPlan(SubPlanState *node, ExprContext *econtext);
 
-#endif   /* NODESUBPLAN_H */
+#endif                         /* NODESUBPLAN_H */
index c2a0f707a66c46546b331ca2a368e608d63e57af..c852e2947f96741b7476fc9e22fc2acd2928d830 100644 (file)
@@ -21,4 +21,4 @@ extern TupleTableSlot *ExecSubqueryScan(SubqueryScanState *node);
 extern void ExecEndSubqueryScan(SubqueryScanState *node);
 extern void ExecReScanSubqueryScan(SubqueryScanState *node);
 
-#endif   /* NODESUBQUERYSCAN_H */
+#endif                         /* NODESUBQUERYSCAN_H */
index 529c929993133a9a64d6a6bb06175a27ad14a3fc..c58156e99c2e85e986a7043cff16c5564f14143a 100644 (file)
@@ -21,4 +21,4 @@ extern TupleTableSlot *ExecTableFuncScan(TableFuncScanState *node);
 extern void ExecEndTableFuncScan(TableFuncScanState *node);
 extern void ExecReScanTableFuncScan(TableFuncScanState *node);
 
-#endif   /* NODETABLEFUNCSCAN_H */
+#endif                         /* NODETABLEFUNCSCAN_H */
index 3186ca8cff29a1b8baaf98e456d06059bb2dc7d5..d07ed7c864122676dbcef654d3685c8d540929cc 100644 (file)
@@ -21,4 +21,4 @@ extern TupleTableSlot *ExecTidScan(TidScanState *node);
 extern void ExecEndTidScan(TidScanState *node);
 extern void ExecReScanTidScan(TidScanState *node);
 
-#endif   /* NODETIDSCAN_H */
+#endif                         /* NODETIDSCAN_H */
index 66ad8983971406f21fe72f975ec648990cc94259..3d0ac9dde16cce8f2f36e23a12c790b4e87a4033 100644 (file)
@@ -21,4 +21,4 @@ extern TupleTableSlot *ExecUnique(UniqueState *node);
 extern void ExecEndUnique(UniqueState *node);
 extern void ExecReScanUnique(UniqueState *node);
 
-#endif   /* NODEUNIQUE_H */
+#endif                         /* NODEUNIQUE_H */
index 6c2af73b1f0746f0c2e68a4525c714ab0ddc7983..c28bb1acce657d2613e0e2c0543a290796ed9fca 100644 (file)
@@ -21,4 +21,4 @@ extern TupleTableSlot *ExecValuesScan(ValuesScanState *node);
 extern void ExecEndValuesScan(ValuesScanState *node);
 extern void ExecReScanValuesScan(ValuesScanState *node);
 
-#endif   /* NODEVALUESSCAN_H */
+#endif                         /* NODEVALUESSCAN_H */
index 11d2dba2c5638656effa665db8168dc15fcadbbd..db1ad60677a90c17808db645749212403ca3e428 100644 (file)
@@ -21,4 +21,4 @@ extern TupleTableSlot *ExecWindowAgg(WindowAggState *node);
 extern void ExecEndWindowAgg(WindowAggState *node);
 extern void ExecReScanWindowAgg(WindowAggState *node);
 
-#endif   /* NODEWINDOWAGG_H */
+#endif                         /* NODEWINDOWAGG_H */
index 7790ca2e1b55e8e2cbc69f2c2fc331376a8563ca..c222d9f6b4d2a0991cd388e50f48d5624a638093 100644 (file)
@@ -21,4 +21,4 @@ extern TupleTableSlot *ExecWorkTableScan(WorkTableScanState *node);
 extern void ExecEndWorkTableScan(WorkTableScanState *node);
 extern void ExecReScanWorkTableScan(WorkTableScanState *node);
 
-#endif   /* NODEWORKTABLESCAN_H */
+#endif                         /* NODEWORKTABLESCAN_H */
index ffb4c28ad1a9a93dc359995e531d2a65364ecb1a..acade7e92e370e9441ded7acd571b37bb74a6c5d 100644 (file)
@@ -159,4 +159,4 @@ extern int  SPI_register_trigger_data(TriggerData *tdata);
 extern void AtEOXact_SPI(bool isCommit);
 extern void AtEOSubXact_SPI(bool isCommit, SubTransactionId mySubid);
 
-#endif   /* SPI_H */
+#endif                         /* SPI_H */
index 49aa7c94e7957d969d42305512999247f1cf84c8..ba7fb98875458b8f18c30c415e4e021bf5f919c0 100644 (file)
@@ -31,7 +31,7 @@ typedef struct
    MemoryContext procCxt;      /* procedure context */
    MemoryContext execCxt;      /* executor context */
    MemoryContext savedcxt;     /* context of SPI_connect's caller */
-   SubTransactionId connectSubid;      /* ID of connecting subtransaction */
+   SubTransactionId connectSubid;  /* ID of connecting subtransaction */
    QueryEnvironment *queryEnv; /* query environment setup for SPI level */
 } _SPI_connection;
 
@@ -88,4 +88,4 @@ typedef struct _SPI_plan
    void       *parserSetupArg;
 } _SPI_plan;
 
-#endif   /* SPI_PRIV_H */
+#endif                         /* SPI_PRIV_H */
index 9c7b4808a8e59a2b2d76e9b241141bf016a58a55..a24a555b7579bd5aa3ba1a624a52d3f6cafb2ebb 100644 (file)
@@ -64,4 +64,4 @@ typedef struct TableFuncRoutine
    void        (*DestroyOpaque) (struct TableFuncScanState *state);
 } TableFuncRoutine;
 
-#endif   /* _TABLEFUNC_H */
+#endif                         /* _TABLEFUNC_H */
index 892eec812ec3ce8401b9ece628cbe662a15123ee..a717ac618493277f336e83a13b4c55f06b22bc8d 100644 (file)
@@ -30,4 +30,4 @@ extern void DestroyTupleQueueReader(TupleQueueReader *reader);
 extern HeapTuple TupleQueueReaderNext(TupleQueueReader *reader,
                     bool nowait, bool *done);
 
-#endif   /* TQUEUE_H */
+#endif                         /* TQUEUE_H */
index cd15e278210e5e883cd121afaf9837f59f9e5de3..ac4de3a6632b32058eb757c154b317b84a24dad2 100644 (file)
@@ -26,4 +26,4 @@ extern void SetTuplestoreDestReceiverParams(DestReceiver *self,
                                MemoryContext tContext,
                                bool detoast);
 
-#endif   /* TSTORE_RECEIVER_H */
+#endif                         /* TSTORE_RECEIVER_H */
index 32489ef9bde05519f3defbb334d7ff6b14e52819..55f4cce4ee1bac27fa7ae9aef51faa8efa229529 100644 (file)
@@ -115,7 +115,7 @@ typedef struct TupleTableSlot
    NodeTag     type;
    bool        tts_isempty;    /* true = slot is empty */
    bool        tts_shouldFree; /* should pfree tts_tuple? */
-   bool        tts_shouldFreeMin;      /* should pfree tts_mintuple? */
+   bool        tts_shouldFreeMin;  /* should pfree tts_mintuple? */
    bool        tts_slow;       /* saved state for slot_deform_tuple */
    HeapTuple   tts_tuple;      /* physical tuple, or NULL if virtual */
    TupleDesc   tts_tupleDescriptor;    /* slot's tuple descriptor */
@@ -170,4 +170,4 @@ extern void slot_getallattrs(TupleTableSlot *slot);
 extern void slot_getsomeattrs(TupleTableSlot *slot, int attnum);
 extern bool slot_attisnull(TupleTableSlot *slot, int attnum);
 
-#endif   /* TUPTABLE_H */
+#endif                         /* TUPTABLE_H */
index b5145726c514c2b8b7fd51a5d51e41fcba232abc..e3cfaf3ddd3adb0e2e1b1de1c74082655adb0190 100644 (file)
@@ -26,4 +26,4 @@ extern void pg_wcsformat(const unsigned char *pwcs, size_t len, int encoding,
 extern void pg_wcssize(const unsigned char *pwcs, size_t len, int encoding,
           int *width, int *height, int *format_size);
 
-#endif   /* MBPRINT_H */
+#endif                         /* MBPRINT_H */
index ce4d86ec54e92cde1b6ea73437c704857a3031d3..36b89e7d5728dbac249a0dc06efc9b3118a686ba 100644 (file)
@@ -67,7 +67,7 @@ typedef struct printTextFormat
 {
    /* A complete line style */
    const char *name;           /* for display purposes */
-   printTextLineFormat lrule[4];       /* indexed by enum printTextRule */
+   printTextLineFormat lrule[4];   /* indexed by enum printTextRule */
    const char *midvrule_nl;    /* vertical line for continue after newline */
    const char *midvrule_wrap;  /* vertical line for wrapped data */
    const char *midvrule_blank; /* vertical line for blank data */
@@ -77,8 +77,8 @@ typedef struct printTextFormat
    const char *nl_right;       /* right mark for newline */
    const char *wrap_left;      /* left mark after wrapped data */
    const char *wrap_right;     /* right mark for wrapped data */
-   bool        wrap_right_border;      /* use right-hand border for wrap
-                                        * marks when border=0? */
+   bool        wrap_right_border;  /* use right-hand border for wrap marks
+                                    * when border=0? */
 } printTextFormat;
 
 typedef enum unicode_linestyle
@@ -166,9 +166,9 @@ typedef struct printQueryOpt
    char       *nullPrint;      /* how to print null entities */
    char       *title;          /* override title */
    char      **footers;        /* override footer (default is "(xx rows)") */
-   bool        translate_header;       /* do gettext on column headers */
-   const bool *translate_columns;      /* translate_columns[i-1] => do
-                                        * gettext on col i */
+   bool        translate_header;   /* do gettext on column headers */
+   const bool *translate_columns;  /* translate_columns[i-1] => do gettext on
+                                    * col i */
    int         n_translate_columns;    /* length of translate_columns[] */
 } printQueryOpt;
 
@@ -212,4 +212,4 @@ extern void setDecimalLocale(void);
 extern const printTextFormat *get_line_style(const printTableOpt *opt);
 extern void refresh_utf8format(const printTableOpt *opt);
 
-#endif   /* PRINT_H */
+#endif                         /* PRINT_H */
index 1eadf0b9c3669266cde87d976276fba5332b12af..c199a2917e19ce971033aaa1646aa116e425dd0b 100644 (file)
@@ -94,4 +94,4 @@ extern void psql_scan_reselect_sql_lexer(PsqlScanState state);
 
 extern bool psql_scan_in_quote(PsqlScanState state);
 
-#endif   /* PSQLSCAN_H */
+#endif                         /* PSQLSCAN_H */
index af62f5ebdfc21bec0f44b1046677018e470924c5..c70ff29f4ef5d80265e96e9728ca5075f1c090c6 100644 (file)
@@ -143,4 +143,4 @@ extern void psqlscan_escape_variable(PsqlScanState state,
                         const char *txt, int len,
                         PsqlScanQuoteType quote);
 
-#endif   /* PSQLSCAN_INT_H */
+#endif                         /* PSQLSCAN_INT_H */
index b63f5dc06149adeacffedaaa2c696a118c9dd964..97bb34f1912c1d4160cacffc39486f5a04cb0d9f 100644 (file)
@@ -34,7 +34,7 @@ typedef struct SimpleStringListCell
    struct SimpleStringListCell *next;
    bool        touched;        /* true, when this string was searched and
                                 * touched */
-   char        val[FLEXIBLE_ARRAY_MEMBER];     /* null-terminated string here */
+   char        val[FLEXIBLE_ARRAY_MEMBER]; /* null-terminated string here */
 } SimpleStringListCell;
 
 typedef struct SimpleStringList
@@ -52,4 +52,4 @@ extern bool simple_string_list_member(SimpleStringList *list, const char *val);
 
 extern const char *simple_string_list_not_touched(SimpleStringList *list);
 
-#endif   /* SIMPLE_LIST_H */
+#endif                         /* SIMPLE_LIST_H */
index c68234335e2ea9dc62ee4c658fa40fb8abe78156..bc6b87d6f12453235d344c60bbb7e3e5169ffc40 100644 (file)
@@ -57,4 +57,4 @@ extern bool processSQLNamePattern(PGconn *conn, PQExpBuffer buf,
                      const char *schemavar, const char *namevar,
                      const char *altnamevar, const char *visibilityrule);
 
-#endif   /* STRING_UTILS_H */
+#endif                         /* STRING_UTILS_H */
index 45e09c8c534eb9c80d96600dcadb77f97119f1ef..0216965bfc1ebed329eac84259d365dbe011918f 100644 (file)
@@ -82,7 +82,7 @@ typedef struct FunctionCallInfoData
    Oid         fncollation;    /* collation for function to use */
    bool        isnull;         /* function must set true if result is NULL */
    short       nargs;          /* # arguments actually passed */
-   Datum       arg[FUNC_MAX_ARGS];     /* Arguments passed to function */
+   Datum       arg[FUNC_MAX_ARGS]; /* Arguments passed to function */
    bool        argnull[FUNC_MAX_ARGS]; /* T if arg[i] is actually NULL */
 } FunctionCallInfoData;
 
@@ -690,8 +690,8 @@ extern void RestoreLibraryState(char *start_address);
  */
 
 /* AggCheckCallContext can return one of the following codes, or 0: */
-#define AGG_CONTEXT_AGGREGATE  1       /* regular aggregate */
-#define AGG_CONTEXT_WINDOW     2       /* window function */
+#define AGG_CONTEXT_AGGREGATE  1   /* regular aggregate */
+#define AGG_CONTEXT_WINDOW     2   /* window function */
 
 extern int AggCheckCallContext(FunctionCallInfo fcinfo,
                    MemoryContext *aggcontext);
@@ -743,4 +743,4 @@ extern PGDLLIMPORT fmgr_hook_type fmgr_hook;
  */
 extern char *fmgr(Oid procedureId,...);
 
-#endif   /* FMGR_H */
+#endif                         /* FMGR_H */
index 2ed7049a147134ca7d3ab3fd5b88c8445771e704..bb68f08b8e0f0d62439144e19aeb9b94e89ac7a5 100644 (file)
@@ -239,4 +239,4 @@ extern bool IsImportableForeignTable(const char *tablename,
                         ImportForeignSchemaStmt *stmt);
 extern Path *GetExistingLocalJoinPath(RelOptInfo *joinrel);
 
-#endif   /* FDWAPI_H */
+#endif                         /* FDWAPI_H */
index 446a07123941419ff289f68bf788157d69478985..2f4c569d1de9c68f71b501373ac837ac9f20bfe7 100644 (file)
@@ -82,4 +82,4 @@ extern List *GetForeignColumnOptions(Oid relid, AttrNumber attnum);
 extern Oid get_foreign_data_wrapper_oid(const char *fdwname, bool missing_ok);
 extern Oid get_foreign_server_oid(const char *servername, bool missing_ok);
 
-#endif   /* FOREIGN_H */
+#endif                         /* FOREIGN_H */
index 30e66b633583c573c99f5412678ea390ce8dced8..951af2aad3d0a9c3ed5bd69f46ed2f117f9d6fd2 100644 (file)
@@ -315,4 +315,4 @@ extern void end_MultiFuncCall(PG_FUNCTION_ARGS, FuncCallContext *funcctx);
        PG_RETURN_NULL(); \
    } while (0)
 
-#endif   /* FUNCAPI_H */
+#endif                         /* FUNCAPI_H */
index e91128a339d280afb44166db4da4258b6bac79a0..3dcfc1fa2517653eff30e2403a6eb43014697cb2 100644 (file)
@@ -55,8 +55,8 @@
 #define EAI_NONAME     WSAHOST_NOT_FOUND
 #define EAI_SERVICE        WSATYPE_NOT_FOUND
 #define EAI_SOCKTYPE   WSAESOCKTNOSUPPORT
-#endif   /* !WIN32 */
-#endif   /* !EAI_FAIL */
+#endif                         /* !WIN32 */
+#endif                         /* !EAI_FAIL */
 
 #ifndef AI_PASSIVE
 #define AI_PASSIVE     0x0001
@@ -124,7 +124,7 @@ struct addrinfo
    struct addrinfo *ai_next;
 };
 #endif
-#endif   /* HAVE_STRUCT_ADDRINFO */
+#endif                         /* HAVE_STRUCT_ADDRINFO */
 
 
 #ifndef HAVE_GETADDRINFO
@@ -157,6 +157,6 @@ extern const char *gai_strerror(int errcode);
 extern int getnameinfo(const struct sockaddr *sa, int salen,
            char *node, int nodelen,
            char *service, int servicelen, int flags);
-#endif   /* HAVE_GETADDRINFO */
+#endif                         /* HAVE_GETADDRINFO */
 
-#endif   /* GETADDRINFO_H */
+#endif                         /* GETADDRINFO_H */
index 00692bb616c230f98fe029a7679d66be2e6b78cc..c55d45348a03336dd377b43f4f6cc9f7327da192 100644 (file)
@@ -33,4 +33,4 @@ extern int getopt_long(int argc, char *const argv[],
            const struct option *longopts, int *longindex);
 #endif
 
-#endif   /* GETOPT_LONG_H */
+#endif                         /* GETOPT_LONG_H */
index a4bbb390eabe7760e15c142367c7cb03764dc7f0..da7504bd55dfd0a4d784436ba80042bb975b9d1e 100644 (file)
@@ -51,4 +51,4 @@ extern void binaryheap_replace_first(binaryheap *heap, Datum d);
 
 #define binaryheap_empty(h)            ((h)->bh_size == 0)
 
-#endif   /* BINARYHEAP_H */
+#endif                         /* BINARYHEAP_H */
index d662b3821e3bfa3242a24b8994b99a2b58a396dd..8f580bbd9728aafb9e23bc71c860bc51d00be445 100644 (file)
@@ -43,4 +43,4 @@ extern BipartiteMatchState *BipartiteMatch(int u_size, int v_size, short **adjac
 
 extern void BipartiteMatchFree(BipartiteMatchState *state);
 
-#endif   /* BIPARTITE_MATCH_H */
+#endif                         /* BIPARTITE_MATCH_H */
index dd40fe9b003a8f4f51ce00e1af4b3eddc510ddd6..7a249cd2521ab1120e502c24b4de2090ab0f5799 100644 (file)
@@ -65,4 +65,4 @@ extern void addHyperLogLog(hyperLogLogState *cState, uint32 hash);
 extern double estimateHyperLogLog(hyperLogLogState *cState);
 extern void freeHyperLogLog(hyperLogLogState *cState);
 
-#endif   /* HYPERLOGLOG_H */
+#endif                         /* HYPERLOGLOG_H */
index 8a44c90c4fd3a8b57511233eace32944cb1915aa..e5ac5c218a49278c667845783798d18ae88fb30f 100644 (file)
@@ -266,7 +266,7 @@ extern void slist_check(slist_head *head);
  */
 #define dlist_check(head)  ((void) (head))
 #define slist_check(head)  ((void) (head))
-#endif   /* ILIST_DEBUG */
+#endif                         /* ILIST_DEBUG */
 
 /* doubly linked list implementation */
 
@@ -724,4 +724,4 @@ slist_delete_current(slist_mutable_iter *iter)
         (iter).cur = (iter).next,                                          \
         (iter).next = (iter).next ? (iter).next->next : NULL)
 
-#endif   /* ILIST_H */
+#endif                         /* ILIST_H */
index 8d1e6d0aa04539afc8d4088f250ab81264baabe9..4485738e2a82380dc0b9efc9942e273c69576f78 100644 (file)
@@ -14,4 +14,4 @@
 extern Bitmapset *DiscreteKnapsack(int max_weight, int num_items,
                 int *item_weights, double *item_values);
 
-#endif   /* KNAPSACK_H */
+#endif                         /* KNAPSACK_H */
index 0b03a24fa13c891714f98e55e21eb70caa625693..c8dd60255f1f832e220975a652086221deb0b386 100644 (file)
@@ -99,4 +99,4 @@ extern char *pairingheap_dump(pairingheap *heap,
 #define pairingheap_is_singular(h) \
    ((h)->ph_root && (h)->ph_root->first_child == NULL)
 
-#endif   /* PAIRINGHEAP_H */
+#endif                         /* PAIRINGHEAP_H */
index 7e2b7ae71b9c47520aa477c316cca173e2e0fb56..a7183bb0b48fe91b4c74c61854436aa724a66ce1 100644 (file)
@@ -79,4 +79,4 @@ extern void rb_begin_iterate(RBTree *rb, RBOrderControl ctrl,
                 RBTreeIterator *iter);
 extern RBNode *rb_iterate(RBTreeIterator *iter);
 
-#endif   /* RBTREE_H */
+#endif                         /* RBTREE_H */
index 061d9c373f17aa1603cee20a796b0c7f0a0b71a1..c5af5b96a73f2bbfa0af640c39f00098d0a0aaae 100644 (file)
@@ -149,7 +149,7 @@ SH_SCOPE void SH_START_ITERATE_AT(SH_TYPE * tb, SH_ITERATOR * iter, uint32 at);
 SH_SCOPE   SH_ELEMENT_TYPE *SH_ITERATE(SH_TYPE * tb, SH_ITERATOR * iter);
 SH_SCOPE void SH_STAT(SH_TYPE * tb);
 
-#endif   /* SH_DECLARE */
+#endif                         /* SH_DECLARE */
 
 
 /* generate implementation of the hash table */
@@ -788,7 +788,7 @@ SH_START_ITERATE_AT(SH_TYPE * tb, SH_ITERATOR * iter, uint32 at)
     * Iterate backwards, that allows the current element to be deleted, even
     * if there are backward shifts.
     */
-   iter->cur = at & tb->sizemask;      /* ensure at is within a valid range */
+   iter->cur = at & tb->sizemask;  /* ensure at is within a valid range */
    iter->end = iter->cur;
    iter->done = false;
 }
@@ -899,7 +899,7 @@ SH_STAT(SH_TYPE * tb)
         total_collisions, max_collisions, avg_collisions);
 }
 
-#endif   /* SH_DEFINE */
+#endif                         /* SH_DEFINE */
 
 
 /* undefine external parameters, so next hash table can be defined */
index 316c196565b9c0bcb7949c26e9df601bb02c65ac..9694ea3f2194b7c34f48afe6546ad8266d2a8e71 100644 (file)
@@ -149,4 +149,4 @@ extern void appendBinaryStringInfo(StringInfo str,
  */
 extern void enlargeStringInfo(StringInfo str, int needed);
 
-#endif   /* STRINGINFO_H */
+#endif                         /* STRINGINFO_H */
index 601dc5d71a3fcfc3b7887e0b6d24cf5eb98a998e..871cc03adda1f5f86eaa8bf41fe20a88fef42d96 100644 (file)
@@ -26,4 +26,4 @@ extern void ClientAuthentication(Port *port);
 typedef void (*ClientAuthentication_hook_type) (Port *, int);
 extern PGDLLIMPORT ClientAuthentication_hook_type ClientAuthentication_hook;
 
-#endif   /* AUTH_H */
+#endif                         /* AUTH_H */
index 641124cd21a7a97c668c0f0321fd4e1e8b1c4cca..96bcaa0f0867376eaa32243197662781cd213c57 100644 (file)
@@ -34,4 +34,4 @@ extern void AtEOXact_LargeObject(bool isCommit);
 extern void AtEOSubXact_LargeObject(bool isCommit, SubTransactionId mySubid,
                        SubTransactionId parentSubid);
 
-#endif   /* BE_FSSTUBS_H */
+#endif                         /* BE_FSSTUBS_H */
index f28b860877c598392160838d4fa3b919138f5123..07d92d4f9f3a975a4ed9bebb11b91fbf01c29a46 100644 (file)
@@ -120,4 +120,4 @@ extern int check_usermap(const char *usermap_name,
              bool case_sensitive);
 extern bool pg_isblank(const char c);
 
-#endif   /* HBA_H */
+#endif                         /* HBA_H */
index f11bb4a0735556b9a724dbc3f61df66d83c046db..be19ff88239fea3759bc156a4ffcd9f2f7509bd5 100644 (file)
@@ -27,4 +27,4 @@ extern int pg_sockaddr_cidr_mask(struct sockaddr_storage *mask,
 
 extern int pg_foreach_ifaddr(PgIfAddrCallback callback, void *cb_data);
 
-#endif   /* IFADDR_H */
+#endif                         /* IFADDR_H */
index 5774a6df3ffbdedde23852436369def9600deaa3..7bde744d51ae1935d760301000367dd8a83283a3 100644 (file)
@@ -32,7 +32,7 @@
 #include 
 #else
 #include 
-#endif   /* HAVE_GSSAPI_H */
+#endif                         /* HAVE_GSSAPI_H */
 /*
  * GSSAPI brings in headers that set a lot of things in the global namespace on win32,
  * that doesn't match the msvc build. It gives a bunch of compiler warnings that we ignore,
@@ -41,7 +41,7 @@
 #ifdef _MSC_VER
 #undef HAVE_GETADDRINFO
 #endif
-#endif   /* ENABLE_GSS */
+#endif                         /* ENABLE_GSS */
 
 #ifdef ENABLE_SSPI
 #define SECURITY_WIN32
@@ -61,7 +61,7 @@ typedef struct
    int         length;
 } gss_buffer_desc;
 #endif
-#endif   /* ENABLE_SSPI */
+#endif                         /* ENABLE_SSPI */
 
 #include "datatype/timestamp.h"
 #include "libpq/hba.h"
@@ -124,7 +124,7 @@ typedef struct Port
    char       *remote_hostname;    /* name (not ip addr) of remote host, if
                                     * available */
    int         remote_hostname_resolv; /* see above */
-   int         remote_hostname_errcode;        /* see above */
+   int         remote_hostname_errcode;    /* see above */
    char       *remote_port;    /* text rep of remote port */
    CAC_state   canAcceptConnections;   /* postmaster connection status */
 
@@ -148,7 +148,7 @@ typedef struct Port
     * but since it gets used by elog.c in the same way as database_name and
     * other members of this struct, we may as well keep it here.
     */
-   TimestampTz SessionStartTime;       /* backend start time */
+   TimestampTz SessionStartTime;   /* backend start time */
 
    /*
     * TCP keepalive settings.
@@ -223,4 +223,4 @@ extern int  pq_setkeepalivesidle(int idle, Port *port);
 extern int pq_setkeepalivesinterval(int interval, Port *port);
 extern int pq_setkeepalivescount(int count, Port *port);
 
-#endif   /* LIBPQ_BE_H */
+#endif                         /* LIBPQ_BE_H */
index afe32706f4d400d5ce9c8fd676986583e381e73a..ce4b2a18923cb375381629923f0ee2164f106c6d 100644 (file)
@@ -21,4 +21,4 @@
 #define INV_WRITE      0x00020000
 #define INV_READ       0x00040000
 
-#endif   /* LIBPQ_FS_H */
+#endif                         /* LIBPQ_FS_H */
index d4885a5e2820fa57052800d0ef469247470a9bd0..78851b1060548e3c19287c25afb994e49ef96204 100644 (file)
@@ -99,4 +99,4 @@ extern char *SSLCipherSuites;
 extern char *SSLECDHCurve;
 extern bool SSLPreferServerCiphers;
 
-#endif   /* LIBPQ_H */
+#endif                         /* LIBPQ_H */
index b6de569c5cb6a022b076d5703eeeee91115cea66..10c7434c41113683e0f4b42c10a4a88e2024fd4b 100644 (file)
@@ -57,7 +57,7 @@ struct sockaddr_storage
 #define ss_len     ss_stuff.sa.sa_len
 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
 #endif
-#endif   /* HAVE_STRUCT_SOCKADDR_STORAGE */
+#endif                         /* HAVE_STRUCT_SOCKADDR_STORAGE */
 
 typedef struct
 {
@@ -133,19 +133,19 @@ typedef uint32 PacketLen;
 #define SM_DATABASE        64
 #define SM_USER            32
 /* We append database name if db_user_namespace true. */
-#define SM_DATABASE_USER (SM_DATABASE+SM_USER+1)       /* +1 for @ */
+#define SM_DATABASE_USER (SM_DATABASE+SM_USER+1)   /* +1 for @ */
 #define SM_OPTIONS     64
 #define SM_UNUSED      64
 #define SM_TTY         64
 
 typedef struct StartupPacket
 {
-   ProtocolVersion protoVersion;       /* Protocol version */
+   ProtocolVersion protoVersion;   /* Protocol version */
    char        database[SM_DATABASE];  /* Database name */
    /* Db_user_namespace appends dbname */
    char        user[SM_USER];  /* User name */
    char        options[SM_OPTIONS];    /* Optional additional args */
-   char        unused[SM_UNUSED];      /* Unused */
+   char        unused[SM_UNUSED];  /* Unused */
    char        tty[SM_TTY];    /* Tty for debug output */
 } StartupPacket;
 
@@ -192,7 +192,7 @@ typedef uint32 AuthRequest;
 typedef struct CancelRequestPacket
 {
    /* Note that each field is stored in network byte order! */
-   MsgType     cancelRequestCode;      /* code to identify a cancel request */
+   MsgType     cancelRequestCode;  /* code to identify a cancel request */
    uint32      backendPID;     /* PID of client's backend */
    uint32      cancelAuthCode; /* secret key to authorize cancel */
 } CancelRequestPacket;
@@ -204,4 +204,4 @@ typedef struct CancelRequestPacket
  */
 #define NEGOTIATE_SSL_CODE PG_PROTOCOL(1234,5679)
 
-#endif   /* PQCOMM_H */
+#endif                         /* PQCOMM_H */
index 4df87ec8a2301b8261a4cc0491c91ade6e8be027..32112547a0bdca89cc044335b596aa5142541822 100644 (file)
@@ -47,4 +47,4 @@ extern const char *pq_getmsgstring(StringInfo msg);
 extern const char *pq_getmsgrawstring(StringInfo msg);
 extern void pq_getmsgend(StringInfo msg);
 
-#endif   /* PQFORMAT_H */
+#endif                         /* PQFORMAT_H */
index e356bd60f4b5a79bdf659ba34cbc17bdd61ac59e..86436d67531b084b996b30ef7068141608bf897d 100644 (file)
@@ -21,4 +21,4 @@ extern void pq_set_parallel_master(pid_t pid, BackendId backend_id);
 
 extern void pq_parse_errornotice(StringInfo str, ErrorData *edata);
 
-#endif   /* PQMQ_H */
+#endif                         /* PQMQ_H */
index a9dbce49d193eec9414214213c3c23325cd7d2dc..af4e61ba4d9330a3e9203808d84bb0f319e25c33 100644 (file)
@@ -28,7 +28,7 @@ extern int    pqsigsetmask(int mask);
 #define sigfillset(set)            (*(set) = ~0)
 #define sigaddset(set, signum) (*(set) |= (sigmask(signum)))
 #define sigdelset(set, signum) (*(set) &= ~(sigmask(signum)))
-#endif   /* WIN32 */
+#endif                         /* WIN32 */
 
 extern sigset_t UnBlockSig,
            BlockSig,
@@ -36,4 +36,4 @@ extern sigset_t UnBlockSig,
 
 extern void pqinitmask(void);
 
-#endif   /* PQSIGNAL_H */
+#endif                         /* PQSIGNAL_H */
index 14b48af12f4f7c64d83f38941b0ce54ff685bb0a..0166e1945ddb7c0cbbf7dba000578300691555ff 100644 (file)
@@ -31,4 +31,4 @@ extern char *pg_be_scram_build_verifier(const char *password);
 extern bool scram_verify_plain_password(const char *username,
                            const char *password, const char *verifier);
 
-#endif   /* PG_SCRAM_H */
+#endif                         /* PG_SCRAM_H */
index 33f2c3018edbdd4a8b16b3f79d55a862896fddc0..160dd931ee40536ffd26c6d073c258ae1dab56c5 100644 (file)
@@ -361,12 +361,12 @@ typedef int (*mbverifier) (const unsigned char *mbstr, int len);
 
 typedef struct
 {
-   mb2wchar_with_len_converter mb2wchar_with_len;      /* convert a multibyte
-                                                        * string to a wchar */
-   wchar2mb_with_len_converter wchar2mb_with_len;      /* convert a wchar
-                                                        * string to a multibyte */
+   mb2wchar_with_len_converter mb2wchar_with_len;  /* convert a multibyte
+                                                    * string to a wchar */
+   wchar2mb_with_len_converter wchar2mb_with_len;  /* convert a wchar string
+                                                    * to a multibyte */
    mblen_converter mblen;      /* get byte length of a char */
-   mbdisplaylen_converter dsplen;      /* get display width of a char */
+   mbdisplaylen_converter dsplen;  /* get display width of a char */
    mbverifier  mbverify;       /* verify multibyte sequence */
    int         maxmblen;       /* max bytes for a char in this encoding */
 } pg_wchar_tbl;
@@ -622,4 +622,4 @@ extern bool pg_utf8_islegal(const unsigned char *source, int length);
 extern WCHAR *pgwin32_message_to_UTF16(const char *str, int len, int *utf16len);
 #endif
 
-#endif   /* PG_WCHAR_H */
+#endif                         /* PG_WCHAR_H */
index 35ac4f619482395efbcc54634662d91712c9f649..21a77289f86e85e7b77745a6edced95a6b3ae6d0 100644 (file)
@@ -111,7 +111,7 @@ do { \
    if (InterruptPending) \
        ProcessInterrupts(); \
 } while(0)
-#endif   /* WIN32 */
+#endif                         /* WIN32 */
 
 
 #define HOLD_INTERRUPTS()  (InterruptHoldoffCount++)
@@ -472,4 +472,4 @@ extern bool has_rolreplication(Oid roleid);
 extern bool BackupInProgress(void);
 extern void CancelBackup(void);
 
-#endif   /* MISCADMIN_H */
+#endif                         /* MISCADMIN_H */
index 109f7b0c1482fe930511adf2f4259a00dee12aec..aa3fb253c27fd85efb410c07f1d4482788b198fc 100644 (file)
@@ -101,4 +101,4 @@ extern int  bms_next_member(const Bitmapset *a, int prevbit);
 /* support for hashtables using Bitmapsets as keys: */
 extern uint32 bms_hash_value(const Bitmapset *a);
 
-#endif   /* BITMAPSET_H */
+#endif                         /* BITMAPSET_H */
index 7cb3fc922c2613dfae2b40fe0672338455e53cc4..d535f7a64895fea2369ca0665f767bc3d0768073 100644 (file)
@@ -138,8 +138,8 @@ typedef struct IndexInfo
    List       *ii_Predicate;   /* list of Expr */
    ExprState  *ii_PredicateState;
    Oid        *ii_ExclusionOps;    /* array with one entry per column */
-   Oid        *ii_ExclusionProcs;      /* array with one entry per column */
-   uint16     *ii_ExclusionStrats;     /* array with one entry per column */
+   Oid        *ii_ExclusionProcs;  /* array with one entry per column */
+   uint16     *ii_ExclusionStrats; /* array with one entry per column */
    Oid        *ii_UniqueOps;   /* array with one entry per column */
    Oid        *ii_UniqueProcs; /* array with one entry per column */
    uint16     *ii_UniqueStrats;    /* array with one entry per column */
@@ -203,7 +203,7 @@ typedef struct ExprContext
    MemoryContext ecxt_per_tuple_memory;
 
    /* Values to substitute for Param nodes in expression */
-   ParamExecData *ecxt_param_exec_vals;        /* for PARAM_EXEC params */
+   ParamExecData *ecxt_param_exec_vals;    /* for PARAM_EXEC params */
    ParamListInfo ecxt_param_list_info; /* for other param types */
 
    /*
@@ -249,7 +249,7 @@ typedef enum
 {
    SFRM_ValuePerCall = 0x01,   /* one value returned per call */
    SFRM_Materialize = 0x02,    /* result set instantiated in Tuplestore */
-   SFRM_Materialize_Random = 0x04,     /* Tuplestore needs randomAccess */
+   SFRM_Materialize_Random = 0x04, /* Tuplestore needs randomAccess */
    SFRM_Materialize_Preferred = 0x08   /* caller prefers Tuplestore */
 } SetFunctionReturnMode;
 
@@ -419,8 +419,8 @@ typedef struct EState
 
    /* Info about target table(s) for insert/update/delete queries: */
    ResultRelInfo *es_result_relations; /* array of ResultRelInfos */
-   int         es_num_result_relations;        /* length of array */
-   ResultRelInfo *es_result_relation_info;     /* currently active array elt */
+   int         es_num_result_relations;    /* length of array */
+   ResultRelInfo *es_result_relation_info; /* currently active array elt */
 
    /*
     * Info about the target partitioned target table root(s) for
@@ -433,16 +433,16 @@ typedef struct EState
    int         es_num_root_result_relations;   /* length of the array */
 
    /* Stuff used for firing triggers: */
-   List       *es_trig_target_relations;       /* trigger-only ResultRelInfos */
+   List       *es_trig_target_relations;   /* trigger-only ResultRelInfos */
    TupleTableSlot *es_trig_tuple_slot; /* for trigger output tuples */
-   TupleTableSlot *es_trig_oldtup_slot;        /* for TriggerEnabled */
-   TupleTableSlot *es_trig_newtup_slot;        /* for TriggerEnabled */
+   TupleTableSlot *es_trig_oldtup_slot;    /* for TriggerEnabled */
+   TupleTableSlot *es_trig_newtup_slot;    /* for TriggerEnabled */
 
    /* Parameter info: */
    ParamListInfo es_param_list_info;   /* values of external params */
    ParamExecData *es_param_exec_vals;  /* values of internal params */
 
-   QueryEnvironment *es_queryEnv;      /* query environment */
+   QueryEnvironment *es_queryEnv;  /* query environment */
 
    /* Other working state: */
    MemoryContext es_query_cxt; /* per-query context in which EState lives */
@@ -460,9 +460,9 @@ typedef struct EState
 
    List       *es_exprcontexts;    /* List of ExprContexts within EState */
 
-   List       *es_subplanstates;       /* List of PlanState for SubPlans */
+   List       *es_subplanstates;   /* List of PlanState for SubPlans */
 
-   List       *es_auxmodifytables;     /* List of secondary ModifyTableStates */
+   List       *es_auxmodifytables; /* List of secondary ModifyTableStates */
 
    /*
     * this ExprContext is for per-output-tuple operations, such as constraint
@@ -691,8 +691,7 @@ typedef struct SetExprState
     * output.  If so, it's stored here.
     */
    TupleDesc   funcResultDesc;
-   bool        funcReturnsTuple;       /* valid when funcResultDesc isn't
-                                        * NULL */
+   bool        funcReturnsTuple;   /* valid when funcResultDesc isn't NULL */
 
    /*
     * Remember whether the function is declared to return a set.  This is set
@@ -784,7 +783,7 @@ typedef enum DomainConstraintType
 typedef struct DomainConstraintState
 {
    NodeTag     type;
-   DomainConstraintType constrainttype;        /* constraint type */
+   DomainConstraintType constrainttype;    /* constraint type */
    char       *name;           /* name of constraint (for error msgs) */
    Expr       *check_expr;     /* for CHECK, a boolean expression */
    ExprState  *check_exprstate;    /* check_expr's eval state, or NULL */
@@ -907,7 +906,7 @@ typedef struct ProjectSetState
    Node      **elems;          /* array of expression states */
    ExprDoneCond *elemdone;     /* array of per-SRF is-done states */
    int         nelems;         /* length of elemdone[] array */
-   bool        pending_srf_tuples;     /* still evaluating srfs in tlist? */
+   bool        pending_srf_tuples; /* still evaluating srfs in tlist? */
 } ProjectSetState;
 
 /* ----------------
@@ -923,26 +922,24 @@ typedef struct ModifyTableState
    PlanState **mt_plans;       /* subplans (one per target rel) */
    int         mt_nplans;      /* number of plans in the array */
    int         mt_whichplan;   /* which one is being executed (0..n-1) */
-   ResultRelInfo *resultRelInfo;       /* per-subplan target relations */
+   ResultRelInfo *resultRelInfo;   /* per-subplan target relations */
    ResultRelInfo *rootResultRelInfo;   /* root target relation (partitioned
                                         * table root) */
    List      **mt_arowmarks;   /* per-subplan ExecAuxRowMark lists */
    EPQState    mt_epqstate;    /* for evaluating EvalPlanQual rechecks */
    bool        fireBSTriggers; /* do we need to fire stmt triggers? */
-   OnConflictAction mt_onconflict;     /* ON CONFLICT type */
-   List       *mt_arbiterindexes;      /* unique index OIDs to arbitrate
-                                        * taking alt path */
+   OnConflictAction mt_onconflict; /* ON CONFLICT type */
+   List       *mt_arbiterindexes;  /* unique index OIDs to arbitrate taking
+                                    * alt path */
    TupleTableSlot *mt_existing;    /* slot to store existing target tuple in */
-   List       *mt_excludedtlist;       /* the excluded pseudo relation's
-                                        * tlist  */
-   TupleTableSlot *mt_conflproj;       /* CONFLICT ... SET ... projection
-                                        * target */
+   List       *mt_excludedtlist;   /* the excluded pseudo relation's tlist  */
+   TupleTableSlot *mt_conflproj;   /* CONFLICT ... SET ... projection target */
    struct PartitionDispatchData **mt_partition_dispatch_info;
    /* Tuple-routing support info */
    int         mt_num_dispatch;    /* Number of entries in the above array */
-   int         mt_num_partitions;      /* Number of members in the following
-                                        * arrays */
-   ResultRelInfo *mt_partitions;       /* Per partition result relation */
+   int         mt_num_partitions;  /* Number of members in the following
+                                    * arrays */
+   ResultRelInfo *mt_partitions;   /* Per partition result relation */
    TupleConversionMap **mt_partition_tupconv_maps;
    /* Per partition tuple conversion map */
    TupleTableSlot *mt_partition_tuple_slot;
@@ -1081,7 +1078,7 @@ typedef struct SampleScanState
    List       *args;           /* expr states for TABLESAMPLE params */
    ExprState  *repeatable;     /* expr state for REPEATABLE expr */
    /* use struct pointer to avoid including tsmapi.h here */
-   struct TsmRoutine *tsmroutine;      /* descriptor for tablesample method */
+   struct TsmRoutine *tsmroutine;  /* descriptor for tablesample method */
    void       *tsm_state;      /* tablesample method can keep state here */
    bool        use_bulkread;   /* use bulkread buffer access strategy? */
    bool        use_pagemode;   /* use page-at-a-time visibility checking? */
@@ -1380,8 +1377,7 @@ typedef struct FunctionScanState
    bool        simple;
    int64       ordinal;
    int         nfuncs;
-   struct FunctionScanPerFuncState *funcstates;        /* array of length
-                                                        * nfuncs */
+   struct FunctionScanPerFuncState *funcstates;    /* array of length nfuncs */
    MemoryContext argcontext;
 } FunctionScanState;
 
@@ -1428,7 +1424,7 @@ typedef struct TableFuncScanState
    List       *ns_uris;        /* list of states of namespace uri exprs */
    Bitmapset  *notnulls;       /* nullability flag for each output column */
    void       *opaque;         /* table builder private space */
-   const struct TableFuncRoutine *routine;     /* table builder methods */
+   const struct TableFuncRoutine *routine; /* table builder methods */
    FmgrInfo   *in_functions;   /* input function for each column */
    Oid        *typioparams;    /* typioparam for each column */
    int64       ordinal;        /* row number to be output next */
@@ -1500,7 +1496,7 @@ typedef struct WorkTableScanState
 typedef struct ForeignScanState
 {
    ScanState   ss;             /* its first field is NodeTag */
-   ExprState  *fdw_recheck_quals;      /* original quals not in ss.ps.qual */
+   ExprState  *fdw_recheck_quals;  /* original quals not in ss.ps.qual */
    Size        pscan_len;      /* size of parallel coordination information */
    /* use struct pointer to avoid including fdwapi.h here */
    struct FdwRoutine *fdwroutine;
@@ -1650,9 +1646,9 @@ typedef struct HashJoinState
 {
    JoinState   js;             /* its first field is NodeTag */
    ExprState  *hashclauses;
-   List       *hj_OuterHashKeys;       /* list of ExprState nodes */
-   List       *hj_InnerHashKeys;       /* list of ExprState nodes */
-   List       *hj_HashOperators;       /* list of operator OIDs */
+   List       *hj_OuterHashKeys;   /* list of ExprState nodes */
+   List       *hj_InnerHashKeys;   /* list of ExprState nodes */
+   List       *hj_HashOperators;   /* list of operator OIDs */
    HashJoinTable hj_HashTable;
    uint32      hj_CurHashValue;
    int         hj_CurBucketNo;
@@ -1754,14 +1750,13 @@ typedef struct AggState
    ExprContext **aggcontexts;  /* econtexts for long-lived data (per GS) */
    ExprContext *tmpcontext;    /* econtext for input expressions */
    ExprContext *curaggcontext; /* currently active aggcontext */
-   AggStatePerTrans curpertrans;       /* currently active trans state */
+   AggStatePerTrans curpertrans;   /* currently active trans state */
    bool        input_done;     /* indicates end of input */
    bool        agg_done;       /* indicates completion of Agg scan */
    int         projected_set;  /* The last projected grouping set */
    int         current_set;    /* The current grouping set being evaluated */
    Bitmapset  *grouped_cols;   /* grouped cols in current projection */
-   List       *all_grouped_cols;       /* list of all grouped cols in DESC
-                                        * order */
+   List       *all_grouped_cols;   /* list of all grouped cols in DESC order */
    /* These fields are for grouping set phase data */
    int         maxsets;        /* The max number of sets in any phase */
    AggStatePerPhase phases;    /* array of all phases */
@@ -1810,15 +1805,14 @@ typedef struct WindowAggState
    int64       frameheadpos;   /* current frame head position */
    int64       frametailpos;   /* current frame tail position */
    /* use struct pointer to avoid including windowapi.h here */
-   struct WindowObjectData *agg_winobj;        /* winobj for aggregate
-                                                * fetches */
+   struct WindowObjectData *agg_winobj;    /* winobj for aggregate fetches */
    int64       aggregatedbase; /* start row for current aggregates */
    int64       aggregatedupto; /* rows before this one are aggregated */
 
    int         frameOptions;   /* frame_clause options, see WindowDef */
    ExprState  *startOffset;    /* expression for starting bound offset */
    ExprState  *endOffset;      /* expression for ending bound offset */
-   Datum       startOffsetValue;       /* result of startOffset evaluation */
+   Datum       startOffsetValue;   /* result of startOffset evaluation */
    Datum       endOffsetValue; /* result of endOffset evaluation */
 
    MemoryContext partcontext;  /* context for partition-lifespan data */
@@ -1828,9 +1822,8 @@ typedef struct WindowAggState
 
    bool        all_first;      /* true if the scan is starting */
    bool        all_done;       /* true if the scan is finished */
-   bool        partition_spooled;      /* true if all tuples in current
-                                        * partition have been spooled into
-                                        * tuplestore */
+   bool        partition_spooled;  /* true if all tuples in current partition
+                                    * have been spooled into tuplestore */
    bool        more_partitions;    /* true if there's more partitions after
                                     * this one */
    bool        framehead_valid;    /* true if frameheadpos is known up to
@@ -1910,8 +1903,7 @@ typedef struct GatherMergeState
    bool        need_to_scan_locally;
    int         gm_nkeys;
    SortSupport gm_sortkeys;    /* array of length ms_nkeys */
-   struct GMReaderTupleBuffer *gm_tuple_buffers;       /* tuple buffer per
-                                                        * reader */
+   struct GMReaderTupleBuffer *gm_tuple_buffers;   /* tuple buffer per reader */
 } GatherMergeState;
 
 /* ----------------
@@ -2007,4 +1999,4 @@ typedef struct LimitState
    TupleTableSlot *subSlot;    /* tuple last obtained from subplan */
 } LimitState;
 
-#endif   /* EXECNODES_H */
+#endif                         /* EXECNODES_H */
index 6ba7ad27a2f3c96c5207fbade34dbfdb1d6d5762..7325bf536afb8e9c5a5ee677bdfdffdd5ca246ef 100644 (file)
@@ -151,4 +151,4 @@ extern void RegisterCustomScanMethods(const CustomScanMethods *methods);
 extern const CustomScanMethods *GetCustomScanMethods(const char *CustomName,
                     bool missing_ok);
 
-#endif   /* EXTENSIBLE_H */
+#endif                         /* EXTENSIBLE_H */
index 4f8affd930bb2ff1045fb4072c3ec07bb1f293f1..e0981dac6fade48be1517ab7801f2a6cc32fa7eb 100644 (file)
@@ -43,4 +43,4 @@ typedef enum LockWaitPolicy
    LockWaitError
 } LockWaitPolicy;
 
-#endif   /* LOCKOPTIONS_H */
+#endif                         /* LOCKOPTIONS_H */
index 53ea6598c8aaae437fefa197420df0fb8fcbedab..46a79b18175cfeccd951e84ee95c5bdc68a69cbf 100644 (file)
@@ -86,4 +86,4 @@ extern DefElem *makeDefElemExtended(char *nameSpace, char *name, Node *arg,
 
 extern GroupingSet *makeGroupingSet(GroupingSetKind kind, List *content, int location);
 
-#endif   /* MAKEFUNC_H */
+#endif                         /* MAKEFUNC_H */
index bcf81304fd2198ccbd6025a7b7e9d70fd3408ba3..7a0c6763dfe8e89cb822d8aa63a4dc49097334c8 100644 (file)
@@ -75,8 +75,8 @@ typedef struct MemoryContextData
    NodeTag     type;           /* identifies exact kind of context */
    /* these two fields are placed here to minimize alignment wastage: */
    bool        isReset;        /* T = no space alloced since last reset */
-   bool        allowInCritSection;     /* allow palloc in critical section */
-   MemoryContextMethods *methods;      /* virtual function table */
+   bool        allowInCritSection; /* allow palloc in critical section */
+   MemoryContextMethods *methods;  /* virtual function table */
    MemoryContext parent;       /* NULL if no parent (toplevel context) */
    MemoryContext firstchild;   /* head of linked list of children */
    MemoryContext prevchild;    /* previous child of same parent */
@@ -98,4 +98,4 @@ typedef struct MemoryContextData
    ((context) != NULL && \
     (IsA((context), AllocSetContext) || IsA((context), SlabContext)))
 
-#endif   /* MEMNODES_H */
+#endif                         /* MEMNODES_H */
index cda925397bfffc95f90db55af3ff50e732e2abaf..33669839364024139fc38739c3fe27003fe2ae59 100644 (file)
 
 
 /* flags bits for query_tree_walker and query_tree_mutator */
-#define QTW_IGNORE_RT_SUBQUERIES   0x01        /* subqueries in rtable */
-#define QTW_IGNORE_CTE_SUBQUERIES  0x02        /* subqueries in cteList */
-#define QTW_IGNORE_RC_SUBQUERIES   0x03        /* both of above */
-#define QTW_IGNORE_JOINALIASES     0x04        /* JOIN alias var lists */
-#define QTW_IGNORE_RANGE_TABLE     0x08        /* skip rangetable entirely */
-#define QTW_EXAMINE_RTES           0x10        /* examine RTEs */
-#define QTW_DONT_COPY_QUERY            0x20        /* do not copy top Query */
+#define QTW_IGNORE_RT_SUBQUERIES   0x01    /* subqueries in rtable */
+#define QTW_IGNORE_CTE_SUBQUERIES  0x02    /* subqueries in cteList */
+#define QTW_IGNORE_RC_SUBQUERIES   0x03    /* both of above */
+#define QTW_IGNORE_JOINALIASES     0x04    /* JOIN alias var lists */
+#define QTW_IGNORE_RANGE_TABLE     0x08    /* skip rangetable entirely */
+#define QTW_EXAMINE_RTES           0x10    /* examine RTEs */
+#define QTW_DONT_COPY_QUERY            0x20    /* do not copy top Query */
 
 /* callback function for check_functions_in_node */
 typedef bool (*check_function_callback) (Oid func_id, void *context);
@@ -77,4 +77,4 @@ struct PlanState;
 extern bool planstate_tree_walker(struct PlanState *planstate, bool (*walker) (),
                                  void *context);
 
-#endif   /* NODEFUNCS_H */
+#endif                         /* NODEFUNCS_H */
index 35c3c7db2ac18a03470ad92d95312b18fafea218..01527399b80f3ecd7d135baa9df7b69dbdde5ad7 100644 (file)
@@ -551,7 +551,7 @@ extern PGDLLIMPORT Node *newNodeMacroHolder;
    newNodeMacroHolder->type = (tag), \
    newNodeMacroHolder \
 )
-#endif   /* __GNUC__ */
+#endif                         /* __GNUC__ */
 
 
 #define makeNode(_type_)       ((_type_ *) newNode(sizeof(_type_),T_##_type_))
@@ -576,7 +576,7 @@ castNodeImpl(NodeTag type, void *ptr)
 #define castNode(_type_, nodeptr) ((_type_ *) castNodeImpl(T_##_type_, nodeptr))
 #else
 #define castNode(_type_, nodeptr) ((_type_ *) (nodeptr))
-#endif   /* USE_ASSERT_CHECKING */
+#endif                         /* USE_ASSERT_CHECKING */
 
 
 /* ----------------------------------------------------------------
@@ -803,4 +803,4 @@ typedef enum OnConflictAction
    ONCONFLICT_UPDATE           /* ON CONFLICT ... DO UPDATE */
 } OnConflictAction;
 
-#endif   /* NODES_H */
+#endif                         /* NODES_H */
index bb1618c753d1011fe88b6e1d66ba0bbda3985526..55219dab6e797c32fc7ad7bf03f75fd629d43afe 100644 (file)
@@ -49,7 +49,7 @@ struct ParseState;
  * ----------------
  */
 
-#define PARAM_FLAG_CONST   0x0001      /* parameter is constant */
+#define PARAM_FLAG_CONST   0x0001  /* parameter is constant */
 
 typedef struct ParamExternData
 {
@@ -108,4 +108,4 @@ extern Size EstimateParamListSpace(ParamListInfo paramLI);
 extern void SerializeParamList(ParamListInfo paramLI, char **start_address);
 extern ParamListInfo RestoreParamList(char **start_address);
 
-#endif   /* PARAMS_H */
+#endif                         /* PARAMS_H */
index 3864635f4c742c49844259dca96393b13a9c882b..1d96169d34df77ec8abf1d97707d1ef3c5474895 100644 (file)
@@ -166,10 +166,9 @@ typedef struct Query
    List       *constraintDeps; /* a list of pg_constraint OIDs that the query
                                 * depends on to be semantically valid */
 
-   List       *withCheckOptions;       /* a list of WithCheckOption's, which
-                                        * are only added during rewrite and
-                                        * therefore are not written out as
-                                        * part of Query. */
+   List       *withCheckOptions;   /* a list of WithCheckOption's, which are
+                                    * only added during rewrite and therefore
+                                    * are not written out as part of Query. */
 
    /*
     * The following two fields identify the portion of the source text string
@@ -351,7 +350,7 @@ typedef struct FuncCall
    List       *args;           /* the arguments (list of exprs) */
    List       *agg_order;      /* ORDER BY (list of SortBy) */
    Node       *agg_filter;     /* FILTER clause, if any */
-   bool        agg_within_group;       /* ORDER BY appeared in WITHIN GROUP */
+   bool        agg_within_group;   /* ORDER BY appeared in WITHIN GROUP */
    bool        agg_star;       /* argument was really '*' */
    bool        agg_distinct;   /* arguments were labeled DISTINCT */
    bool        func_variadic;  /* last argument was labeled VARIADIC */
@@ -952,13 +951,13 @@ typedef struct RangeTblEntry
     */
    Oid         relid;          /* OID of the relation */
    char        relkind;        /* relation kind (see pg_class.relkind) */
-   struct TableSampleClause *tablesample;      /* sampling info, or NULL */
+   struct TableSampleClause *tablesample;  /* sampling info, or NULL */
 
    /*
     * Fields valid for a subquery RTE (else NULL):
     */
    Query      *subquery;       /* the sub-query */
-   bool        security_barrier;       /* is from security_barrier view? */
+   bool        security_barrier;   /* is from security_barrier view? */
 
    /*
     * Fields valid for a join RTE (else NULL/zero):
@@ -1071,7 +1070,7 @@ typedef struct RangeTblFunction
    List       *funccolnames;   /* column names (list of String) */
    List       *funccoltypes;   /* OID list of column type OIDs */
    List       *funccoltypmods; /* integer list of column typmods */
-   List       *funccolcollations;      /* OID list of column collation OIDs */
+   List       *funccolcollations;  /* OID list of column collation OIDs */
    /* This is set during planning for use by the executor: */
    Bitmapset  *funcparams;     /* PARAM_EXEC Param IDs affecting this func */
 } RangeTblFunction;
@@ -1364,7 +1363,7 @@ typedef struct CommonTableExpr
    List       *ctecolnames;    /* list of output column names */
    List       *ctecoltypes;    /* OID list of output column type OIDs */
    List       *ctecoltypmods;  /* integer list of output column typmods */
-   List       *ctecolcollations;       /* OID list of column collation OIDs */
+   List       *ctecolcollations;   /* OID list of column collation OIDs */
 } CommonTableExpr;
 
 /* Convenience macro to get the output tlist of a CTE's query */
@@ -1702,7 +1701,7 @@ typedef enum AlterTableType
    AT_ReAddConstraint,         /* internal to commands/tablecmds.c */
    AT_AlterConstraint,         /* alter constraint */
    AT_ValidateConstraint,      /* validate constraint */
-   AT_ValidateConstraintRecurse,       /* internal to commands/tablecmds.c */
+   AT_ValidateConstraintRecurse,   /* internal to commands/tablecmds.c */
    AT_ProcessedConstraint,     /* pre-processed add constraint (local in
                                 * parser/parse_utilcmd.c) */
    AT_AddIndexConstraint,      /* add constraint using existing index */
@@ -1710,7 +1709,7 @@ typedef enum AlterTableType
    AT_DropConstraintRecurse,   /* internal to commands/tablecmds.c */
    AT_ReAddComment,            /* internal to commands/tablecmds.c */
    AT_AlterColumnType,         /* alter column type */
-   AT_AlterColumnGenericOptions,       /* alter column OPTIONS (...) */
+   AT_AlterColumnGenericOptions,   /* alter column OPTIONS (...) */
    AT_ChangeOwner,             /* change owner */
    AT_ClusterOn,               /* CLUSTER ON */
    AT_DropCluster,             /* SET WITHOUT CLUSTER */
@@ -1863,9 +1862,9 @@ typedef struct ObjectWithArgs
    NodeTag     type;
    List       *objname;        /* qualified name of function/operator */
    List       *objargs;        /* list of Typename nodes */
-   bool        args_unspecified;       /* argument list was omitted, so name
-                                        * must be unique (note that objargs
-                                        * == NIL means zero args) */
+   bool        args_unspecified;   /* argument list was omitted, so name must
+                                    * be unique (note that objargs == NIL
+                                    * means zero args) */
 } ObjectWithArgs;
 
 /*
@@ -1989,7 +1988,7 @@ typedef struct CreateStmt
    List       *tableElts;      /* column definitions (list of ColumnDef) */
    List       *inhRelations;   /* relations to inherit from (list of
                                 * inhRelation) */
-   PartitionBoundSpec *partbound;      /* FOR VALUES clause */
+   PartitionBoundSpec *partbound;  /* FOR VALUES clause */
    PartitionSpec *partspec;    /* PARTITION BY clause */
    TypeName   *ofTypename;     /* OF typename */
    List       *constraints;    /* constraints (list of Constraint nodes) */
@@ -2966,7 +2965,7 @@ typedef struct AlterEnumStmt
    char       *newVal;         /* new enum value's name */
    char       *newValNeighbor; /* neighboring enum value, if specified */
    bool        newValIsAfter;  /* place new enum value after neighbor? */
-   bool        skipIfNewValExists;     /* no error if new already exists? */
+   bool        skipIfNewValExists; /* no error if new already exists? */
 } AlterEnumStmt;
 
 /* ----------------------
@@ -3080,7 +3079,7 @@ typedef enum VacuumOption
    VACOPT_FULL = 1 << 4,       /* FULL (non-concurrent) vacuum */
    VACOPT_NOWAIT = 1 << 5,     /* don't wait to get lock (autovacuum only) */
    VACOPT_SKIPTOAST = 1 << 6,  /* don't process the TOAST table, if any */
-   VACOPT_DISABLE_PAGE_SKIPPING = 1 << 7       /* don't skip any pages */
+   VACOPT_DISABLE_PAGE_SKIPPING = 1 << 7   /* don't skip any pages */
 } VacuumOption;
 
 typedef struct VacuumStmt
@@ -3198,7 +3197,7 @@ typedef struct ConstraintsSetStmt
  */
 
 /* Reindex options */
-#define REINDEXOPT_VERBOSE 1 << 0      /* print progress info */
+#define REINDEXOPT_VERBOSE 1 << 0  /* print progress info */
 
 typedef enum ReindexObjectType
 {
@@ -3227,8 +3226,8 @@ typedef struct CreateConversionStmt
 {
    NodeTag     type;
    List       *conversion_name;    /* Name of the conversion */
-   char       *for_encoding_name;      /* source encoding name */
-   char       *to_encoding_name;       /* destination encoding name */
+   char       *for_encoding_name;  /* source encoding name */
+   char       *to_encoding_name;   /* destination encoding name */
    List       *func_name;      /* qualified conversion function name */
    bool        def;            /* is this a default conversion? */
 } CreateConversionStmt;
@@ -3417,4 +3416,4 @@ typedef struct DropSubscriptionStmt
    DropBehavior behavior;      /* RESTRICT or CASCADE behavior */
 } DropSubscriptionStmt;
 
-#endif   /* PARSENODES_H */
+#endif                         /* PARSENODES_H */
index 3313b051ceceef6e3ef637ef1945563746fe6368..667d5e269cc516dd600df33d76461fd801364ace 100644 (file)
@@ -336,6 +336,6 @@ extern List *list_copy_tail(const List *list, int nskip);
 #define listCopy(list)             list_copy(list)
 
 extern int length(List *list);
-#endif   /* ENABLE_LIST_COMPAT */
+#endif                         /* ENABLE_LIST_COMPAT */
 
-#endif   /* PG_LIST_H */
+#endif                         /* PG_LIST_H */
index d84372da386911ff4c989dbed72530a394b2379e..f1a1b24e6776b6353e77bc7c1e67f8623ae4ad24 100644 (file)
@@ -56,7 +56,7 @@ typedef struct PlannedStmt
 
    bool        dependsOnRole;  /* is plan specific to current role? */
 
-   bool        parallelModeNeeded;     /* parallel mode required to execute? */
+   bool        parallelModeNeeded; /* parallel mode required to execute? */
 
    struct Plan *planTree;      /* tree of Plan nodes */
 
@@ -221,7 +221,7 @@ typedef struct ModifyTable
    List       *partitioned_rels;
    List       *resultRelations;    /* integer list of RT indexes */
    int         resultRelIndex; /* index of first resultRel in plan's list */
-   int         rootResultRelIndex;     /* index of the partitioned table root */
+   int         rootResultRelIndex; /* index of the partitioned table root */
    List       *plans;          /* plan(s) producing source data */
    List       *withCheckOptionLists;   /* per-target-table WCO lists */
    List       *returningLists; /* per-target-table RETURNING tlists */
@@ -390,7 +390,7 @@ typedef struct IndexScan
    List       *indexqual;      /* list of index quals (usually OpExprs) */
    List       *indexqualorig;  /* the same in original form */
    List       *indexorderby;   /* list of index ORDER BY exprs */
-   List       *indexorderbyorig;       /* the same in original form */
+   List       *indexorderbyorig;   /* the same in original form */
    List       *indexorderbyops;    /* OIDs of sort ops for ORDER BY exprs */
    ScanDirection indexorderdir;    /* forward or backward or don't care */
 } IndexScan;
@@ -600,8 +600,7 @@ typedef struct ForeignScan
    List       *fdw_exprs;      /* expressions that FDW may evaluate */
    List       *fdw_private;    /* private data for FDW */
    List       *fdw_scan_tlist; /* optional tlist describing scan tuple */
-   List       *fdw_recheck_quals;      /* original quals not in
-                                        * scan.plan.qual */
+   List       *fdw_recheck_quals;  /* original quals not in scan.plan.qual */
    Bitmapset  *fs_relids;      /* RTIs generated by this scan */
    bool        fsSystemCol;    /* true if any "system column" is needed */
 } ForeignScan;
@@ -629,8 +628,7 @@ typedef struct CustomScan
    List       *custom_plans;   /* list of Plan nodes, if any */
    List       *custom_exprs;   /* expressions that custom code may evaluate */
    List       *custom_private; /* private data for custom code */
-   List       *custom_scan_tlist;      /* optional tlist describing scan
-                                        * tuple */
+   List       *custom_scan_tlist;  /* optional tlist describing scan tuple */
    Bitmapset  *custom_relids;  /* RTIs generated by this scan */
    const struct CustomScanMethods *methods;
 } CustomScan;
@@ -709,7 +707,7 @@ typedef struct NestLoopParam
 typedef struct MergeJoin
 {
    Join        join;
-   bool        skip_mark_restore;      /* Can we skip mark/restore calls? */
+   bool        skip_mark_restore;  /* Can we skip mark/restore calls? */
    List       *mergeclauses;   /* mergeclauses as expression trees */
    /* these are arrays, but have the same length as the mergeclauses list: */
    Oid        *mergeFamilies;  /* per-clause OIDs of btree opfamilies */
@@ -1030,4 +1028,4 @@ typedef struct PlanInvalItem
    uint32      hashValue;      /* hash value of object's cache lookup key */
 } PlanInvalItem;
 
-#endif   /* PLANNODES_H */
+#endif                         /* PLANNODES_H */
index edca5d2816eea9b30f234e690d3be6be4282c158..38015ed540594c5b60abeeccec9a6320fa99858f 100644 (file)
@@ -150,9 +150,9 @@ typedef struct Expr
  * are very useful for debugging and interpreting completed plans, so we keep
  * them around.
  */
-#define    INNER_VAR       65000       /* reference to inner subplan */
-#define    OUTER_VAR       65001       /* reference to outer subplan */
-#define    INDEX_VAR       65002       /* reference to index column */
+#define    INNER_VAR       65000   /* reference to inner subplan */
+#define    OUTER_VAR       65001   /* reference to outer subplan */
+#define    INDEX_VAR       65002   /* reference to index column */
 
 #define IS_SPECIAL_VARNO(varno)        ((varno) >= INNER_VAR)
 
@@ -692,8 +692,8 @@ typedef struct SubPlan
    /* Extra data useful for determining subplan's output type: */
    Oid         firstColType;   /* Type of first column of subplan result */
    int32       firstColTypmod; /* Typmod of first column of subplan result */
-   Oid         firstColCollation;      /* Collation of first column of
-                                        * subplan result */
+   Oid         firstColCollation;  /* Collation of first column of subplan
+                                    * result */
    /* Information about execution strategy: */
    bool        useHashTable;   /* TRUE to store subselect output in a hash
                                 * table (implies we are doing "IN") */
@@ -1499,4 +1499,4 @@ typedef struct OnConflictExpr
    List       *exclRelTlist;   /* tlist of the EXCLUDED pseudo relation */
 } OnConflictExpr;
 
-#endif   /* PRIMNODES_H */
+#endif                         /* PRIMNODES_H */
index 4c94a3afe5e7df1757c05cc42f7342710406d995..fa01c2ad84e4d67bd96f290ff4a8ba76cb81936d 100644 (file)
@@ -31,4 +31,4 @@ extern void print_pathkeys(const List *pathkeys, const List *rtable);
 extern void print_tl(const List *tlist, const List *rtable);
 extern void print_slot(TupleTableSlot *slot);
 
-#endif   /* PRINT_H */
+#endif                         /* PRINT_H */
index ca540baf024c04685fa813fdc3c1dc4477912236..c80fae23110eafd5ecd1c742e3b6a1e482ac448b 100644 (file)
@@ -28,4 +28,4 @@ extern void *nodeRead(char *token, int tok_len);
  */
 extern Node *parseNodeString(void);
 
-#endif   /* READFUNCS_H */
+#endif                         /* READFUNCS_H */
index 077e1ceedd1e6e590d481e5fd4d6abf86620b086..9bae3c6ab98e75bebadc0db8ad4009731c092f17 100644 (file)
@@ -128,9 +128,9 @@ typedef struct PlannerGlobal
 
    bool        parallelModeOK; /* parallel mode potentially OK? */
 
-   bool        parallelModeNeeded;     /* parallel mode actually required? */
+   bool        parallelModeNeeded; /* parallel mode actually required? */
 
-   char        maxParallelHazard;      /* worst PROPARALLEL hazard level */
+   char        maxParallelHazard;  /* worst PROPARALLEL hazard level */
 } PlannerGlobal;
 
 /* macro for fetching the Plan associated with a SubPlan node */
@@ -176,7 +176,7 @@ typedef struct PlannerInfo
     * does not correspond to a base relation, such as a join RTE or an
     * unreferenced view RTE; or if the RelOptInfo hasn't been made yet.
     */
-   struct RelOptInfo **simple_rel_array;       /* All 1-rel RelOptInfos */
+   struct RelOptInfo **simple_rel_array;   /* All 1-rel RelOptInfos */
    int         simple_rel_array_size;  /* allocated size of array */
 
    /*
@@ -229,23 +229,23 @@ typedef struct PlannerInfo
 
    List       *cte_plan_ids;   /* per-CTE-item list of subplan IDs */
 
-   List       *multiexpr_params;       /* List of Lists of Params for
-                                        * MULTIEXPR subquery outputs */
+   List       *multiexpr_params;   /* List of Lists of Params for MULTIEXPR
+                                    * subquery outputs */
 
    List       *eq_classes;     /* list of active EquivalenceClasses */
 
    List       *canon_pathkeys; /* list of "canonical" PathKeys */
 
-   List       *left_join_clauses;      /* list of RestrictInfos for
-                                        * mergejoinable outer join clauses
-                                        * w/nonnullable var on left */
+   List       *left_join_clauses;  /* list of RestrictInfos for mergejoinable
+                                    * outer join clauses w/nonnullable var on
+                                    * left */
 
-   List       *right_join_clauses;     /* list of RestrictInfos for
-                                        * mergejoinable outer join clauses
-                                        * w/nonnullable var on right */
+   List       *right_join_clauses; /* list of RestrictInfos for mergejoinable
+                                    * outer join clauses w/nonnullable var on
+                                    * right */
 
-   List       *full_join_clauses;      /* list of RestrictInfos for
-                                        * mergejoinable full join clauses */
+   List       *full_join_clauses;  /* list of RestrictInfos for mergejoinable
+                                    * full join clauses */
 
    List       *join_info_list; /* list of SpecialJoinInfos */
 
@@ -255,7 +255,7 @@ typedef struct PlannerInfo
 
    List       *rowMarks;       /* list of PlanRowMarks */
 
-   List       *placeholder_list;       /* list of PlaceHolderInfos */
+   List       *placeholder_list;   /* list of PlaceHolderInfos */
 
    List       *fkey_list;      /* list of ForeignKeyOptInfos */
 
@@ -263,7 +263,7 @@ typedef struct PlannerInfo
 
    List       *group_pathkeys; /* groupClause pathkeys, if any */
    List       *window_pathkeys;    /* pathkeys of bottom window, if any */
-   List       *distinct_pathkeys;      /* distinctClause pathkeys, if any */
+   List       *distinct_pathkeys;  /* distinctClause pathkeys, if any */
    List       *sort_pathkeys;  /* sortClause pathkeys, if any */
 
    List       *initial_rels;   /* RelOptInfos we are now trying to join */
@@ -286,7 +286,7 @@ typedef struct PlannerInfo
 
    MemoryContext planner_cxt;  /* context holding PlannerInfo */
 
-   double      total_table_pages;      /* # of pages in all tables of query */
+   double      total_table_pages;  /* # of pages in all tables of query */
 
    double      tuple_fraction; /* tuple_fraction passed to query_planner */
    double      limit_tuples;   /* limit_tuples passed to query_planner */
@@ -294,8 +294,8 @@ typedef struct PlannerInfo
    Index       qual_security_level;    /* minimum security_level for quals */
    /* Note: qual_security_level is zero if there are no securityQuals */
 
-   bool        hasInheritedTarget;     /* true if parse->resultRelation is an
-                                        * inheritance child rel */
+   bool        hasInheritedTarget; /* true if parse->resultRelation is an
+                                    * inheritance child rel */
    bool        hasJoinRTEs;    /* true if any RTEs are RTE_JOIN kind */
    bool        hasLateralRTEs; /* true if any RTEs are marked LATERAL */
    bool        hasDeletedRTEs; /* true if any RTE was deleted from jointree */
@@ -528,17 +528,17 @@ typedef struct RelOptInfo
    double      rows;           /* estimated number of result tuples */
 
    /* per-relation planner control flags */
-   bool        consider_startup;       /* keep cheap-startup-cost paths? */
+   bool        consider_startup;   /* keep cheap-startup-cost paths? */
    bool        consider_param_startup; /* ditto, for parameterized paths? */
-   bool        consider_parallel;      /* consider parallel paths? */
+   bool        consider_parallel;  /* consider parallel paths? */
 
    /* default result targetlist for Paths scanning this relation */
-   struct PathTarget *reltarget;       /* list of Vars/Exprs, cost, width */
+   struct PathTarget *reltarget;   /* list of Vars/Exprs, cost, width */
 
    /* materialization information */
    List       *pathlist;       /* Path structures */
    List       *ppilist;        /* ParamPathInfos used in pathlist */
-   List       *partial_pathlist;       /* partial Paths */
+   List       *partial_pathlist;   /* partial Paths */
    struct Path *cheapest_startup_path;
    struct Path *cheapest_total_path;
    struct Path *cheapest_unique_path;
@@ -582,17 +582,16 @@ typedef struct RelOptInfo
    List       *non_unique_for_rels;    /* known not unique for these set(s) */
 
    /* used by various scans and joins: */
-   List       *baserestrictinfo;       /* RestrictInfo structures (if base
-                                        * rel) */
-   QualCost    baserestrictcost;       /* cost of evaluating the above */
-   Index       baserestrict_min_security;      /* min security_level found in
-                                                * baserestrictinfo */
+   List       *baserestrictinfo;   /* RestrictInfo structures (if base rel) */
+   QualCost    baserestrictcost;   /* cost of evaluating the above */
+   Index       baserestrict_min_security;  /* min security_level found in
+                                            * baserestrictinfo */
    List       *joininfo;       /* RestrictInfo structures for join clauses
                                 * involving this rel */
-   bool        has_eclass_joins;       /* T means joininfo is incomplete */
+   bool        has_eclass_joins;   /* T means joininfo is incomplete */
 
    /* used by "other" relations */
-   Relids      top_parent_relids;      /* Relids of topmost parents */
+   Relids      top_parent_relids;  /* Relids of topmost parents */
 } RelOptInfo;
 
 /*
@@ -696,8 +695,8 @@ typedef struct ForeignKeyOptInfo
    Index       ref_relid;      /* RT index of the referenced table */
    int         nkeys;          /* number of columns in the foreign key */
    AttrNumber  conkey[INDEX_MAX_KEYS]; /* cols in referencing table */
-   AttrNumber  confkey[INDEX_MAX_KEYS];        /* cols in referenced table */
-   Oid         conpfeqop[INDEX_MAX_KEYS];      /* PK = FK operator OIDs */
+   AttrNumber  confkey[INDEX_MAX_KEYS];    /* cols in referenced table */
+   Oid         conpfeqop[INDEX_MAX_KEYS];  /* PK = FK operator OIDs */
 
    /* Derived info about whether FK's equality conditions match the query: */
    int         nmatched_ec;    /* # of FK cols matched by ECs */
@@ -822,7 +821,7 @@ typedef struct EquivalenceMember
 
    Expr       *em_expr;        /* the expression represented */
    Relids      em_relids;      /* all relids appearing in em_expr */
-   Relids      em_nullable_relids;     /* nullable by lower outer joins */
+   Relids      em_nullable_relids; /* nullable by lower outer joins */
    bool        em_is_const;    /* expression is pseudoconstant? */
    bool        em_is_child;    /* derived version for a child relation? */
    Oid         em_datatype;    /* the "nominal type" used by the opfamily */
@@ -959,8 +958,7 @@ typedef struct Path
 
    bool        parallel_aware; /* engage parallel-aware logic? */
    bool        parallel_safe;  /* OK to use as part of parallel plan? */
-   int         parallel_workers;       /* desired # of workers; 0 = not
-                                        * parallel */
+   int         parallel_workers;   /* desired # of workers; 0 = not parallel */
 
    /* estimated size/costs for path (see costsize.c for more info) */
    double      rows;           /* estimated number of result tuples */
@@ -1298,7 +1296,7 @@ typedef struct JoinPath
    Path       *outerjoinpath;  /* path for the outer side of the join */
    Path       *innerjoinpath;  /* path for the inner side of the join */
 
-   List       *joinrestrictinfo;       /* RestrictInfos to apply to join */
+   List       *joinrestrictinfo;   /* RestrictInfos to apply to join */
 
    /*
     * See the notes for RelOptInfo and ParamPathInfo to understand why
@@ -1351,11 +1349,11 @@ typedef JoinPath NestPath;
 typedef struct MergePath
 {
    JoinPath    jpath;
-   List       *path_mergeclauses;      /* join clauses to be used for merge */
+   List       *path_mergeclauses;  /* join clauses to be used for merge */
    List       *outersortkeys;  /* keys for explicit sort, if any */
    List       *innersortkeys;  /* keys for explicit sort, if any */
-   bool        skip_mark_restore;      /* can executor skip mark/restore? */
-   bool        materialize_inner;      /* add Materialize to inner? */
+   bool        skip_mark_restore;  /* can executor skip mark/restore? */
+   bool        materialize_inner;  /* add Materialize to inner? */
 } MergePath;
 
 /*
@@ -1370,7 +1368,7 @@ typedef struct MergePath
 typedef struct HashPath
 {
    JoinPath    jpath;
-   List       *path_hashclauses;       /* join clauses used for hashing */
+   List       *path_hashclauses;   /* join clauses used for hashing */
    int         num_batches;    /* number of batches expected */
 } HashPath;
 
@@ -1750,7 +1748,7 @@ typedef struct RestrictInfo
 
    bool        is_pushed_down; /* TRUE if clause was pushed down in level */
 
-   bool        outerjoin_delayed;      /* TRUE if delayed by lower outer join */
+   bool        outerjoin_delayed;  /* TRUE if delayed by lower outer join */
 
    bool        can_join;       /* see comment above */
 
@@ -1804,11 +1802,11 @@ typedef struct RestrictInfo
    bool        outer_is_left;  /* T = outer var on left, F = on right */
 
    /* valid if clause is hashjoinable, else InvalidOid: */
-   Oid         hashjoinoperator;       /* copy of clause operator */
+   Oid         hashjoinoperator;   /* copy of clause operator */
 
    /* cache space for hashclause processing; -1 if not yet set */
    Selectivity left_bucketsize;    /* avg bucketsize of left side */
-   Selectivity right_bucketsize;       /* avg bucketsize of right side */
+   Selectivity right_bucketsize;   /* avg bucketsize of right side */
 } RestrictInfo;
 
 /*
@@ -1922,7 +1920,7 @@ typedef struct SpecialJoinInfo
    Relids      syn_righthand;  /* base relids syntactically within RHS */
    JoinType    jointype;       /* always INNER, LEFT, FULL, SEMI, or ANTI */
    bool        lhs_strict;     /* joinclause is strict for some LHS rel */
-   bool        delay_upper_joins;      /* can't commute with upper RHS */
+   bool        delay_upper_joins;  /* can't commute with upper RHS */
    /* Remaining fields are set only for JOIN_SEMI jointype: */
    bool        semi_can_btree; /* true if semi_operators are all btree */
    bool        semi_can_hash;  /* true if semi_operators are all hash */
@@ -2223,4 +2221,4 @@ typedef struct JoinCostWorkspace
    int         numbatches;
 } JoinCostWorkspace;
 
-#endif   /* RELATION_H */
+#endif                         /* RELATION_H */
index 92ada41b6d522fd8ceee32a1acec7be4b76f7274..dea61e90e9685097caeb3705a5341a4b8077b0d4 100644 (file)
@@ -105,4 +105,4 @@ typedef struct SQLCmd
    NodeTag     type;
 } SQLCmd;
 
-#endif   /* REPLNODES_H */
+#endif                         /* REPLNODES_H */
index 87f4bb7c91154337c14d33fa28d3e4645651efc4..f9a1902da879a73d68d86e5810873af65c7fe7e9 100644 (file)
@@ -71,4 +71,4 @@ extern void tbm_end_shared_iterate(TBMSharedIterator *iterator);
 extern TBMSharedIterator *tbm_attach_shared_iterate(dsa_area *dsa,
                          dsa_pointer dp);
 
-#endif   /* TIDBITMAP_H */
+#endif                         /* TIDBITMAP_H */
index ede97b7bcdb78dfe9121065da9b97c041060a1da..83f5a19fe93f882c3df8a76ddb759e5a7cc9d353 100644 (file)
@@ -58,4 +58,4 @@ extern Value *makeFloat(char *numericStr);
 extern Value *makeString(char *str);
 extern Value *makeBitString(char *str);
 
-#endif   /* VALUE_H */
+#endif                         /* VALUE_H */
index cc0d7b0a26800d1c7e2334cec13f5e99e2df3f17..e3672218f38b095bf250769b1439fec1fec61948 100644 (file)
@@ -85,4 +85,4 @@ extern Node *estimate_expression_value(PlannerInfo *root, Node *node);
 extern Query *inline_set_returning_function(PlannerInfo *root,
                              RangeTblEntry *rte);
 
-#endif   /* CLAUSES_H */
+#endif                         /* CLAUSES_H */
index a8cedb8f78abc67b11f27eb857f2ae9721b6f894..8c0cccb054bf2c2932ecd1cced878350ed1560f5 100644 (file)
@@ -35,7 +35,7 @@ typedef enum
 {
    CONSTRAINT_EXCLUSION_OFF,   /* do not use c_e */
    CONSTRAINT_EXCLUSION_ON,    /* apply c_e to all rels */
-   CONSTRAINT_EXCLUSION_PARTITION      /* apply c_e to otherrels only */
+   CONSTRAINT_EXCLUSION_PARTITION  /* apply c_e to otherrels only */
 }          ConstraintExclusionType;
 
 
@@ -210,4 +210,4 @@ extern void cost_gather_merge(GatherMergePath *path, PlannerInfo *root,
                  Cost input_startup_cost, Cost input_total_cost,
                  double *rows);
 
-#endif   /* COST_H */
+#endif                         /* COST_H */
index be65c054e1055bad4aaf69ada911cb0982610504..d0158d7adfbbacea3037a2c90d56e44e53d18961 100644 (file)
@@ -73,7 +73,7 @@ extern double Geqo_seed;      /* 0 .. 1 */
 typedef struct
 {
    List       *initial_rels;   /* the base relations we are joining */
-   unsigned short random_state[3];     /* state for pg_erand48() */
+   unsigned short random_state[3]; /* state for pg_erand48() */
 } GeqoPrivateData;
 
 
@@ -85,4 +85,4 @@ extern RelOptInfo *geqo(PlannerInfo *root,
 extern Cost geqo_eval(PlannerInfo *root, Gene *tour, int num_gene);
 extern RelOptInfo *gimme_tree(PlannerInfo *root, Gene *tour, int num_gene);
 
-#endif   /* GEQO_H */
+#endif                         /* GEQO_H */
index 3cbaf3e4cadf6417e3ca13011ebbce4e33b013b9..4035b4ff1307a4634a613878d014cde5a464c524 100644 (file)
@@ -27,4 +27,4 @@
 
 extern void geqo_copy(PlannerInfo *root, Chromosome *chromo1, Chromosome *chromo2, int string_length);
 
-#endif   /* GEQO_COPY_H */
+#endif                         /* GEQO_COPY_H */
index f936ebdd89fc0d1ee8ae6be6f9082f5f8d291389..328219328400c70320ad0fdef2ba4edacd9d20b1 100644 (file)
@@ -42,4 +42,4 @@ typedef struct Pool
    int         string_length;
 } Pool;
 
-#endif   /* GEQO_GENE_H */
+#endif                         /* GEQO_GENE_H */
index 880bd0e140c398fcf7fcbb3d9df73ac05b433d97..89f91b3a4dfa8f94643b18220b22d493a80af477 100644 (file)
@@ -29,6 +29,6 @@
 extern void print_pool(FILE *fp, Pool *pool, int start, int stop);
 extern void print_gen(FILE *fp, Pool *pool, int generation);
 extern void print_edge_table(FILE *fp, Edge *edge_table, int num_gene);
-#endif   /* GEQO_DEBUG */
+#endif                         /* GEQO_DEBUG */
 
-#endif   /* GEQO_MISC_H */
+#endif                         /* GEQO_MISC_H */
index 85781c3c317f8e2a48aee0ba5d039321c800e2e1..c5a94e03cfd7ada504ef08463eec315c39727a63 100644 (file)
@@ -27,4 +27,4 @@
 
 extern void geqo_mutation(PlannerInfo *root, Gene *tour, int num_gene);
 
-#endif   /* GEQO_MUTATION_H */
+#endif                         /* GEQO_MUTATION_H */
index 7947b6e5bb3cb03a864b4bfa81eb83d0e2257efb..9fac307d691a4423a75a8e2b9e09b601ffc1f4a5 100644 (file)
@@ -37,4 +37,4 @@ extern void spread_chromo(PlannerInfo *root, Chromosome *chromo, Pool *pool);
 
 extern void sort_pool(PlannerInfo *root, Pool *pool);
 
-#endif   /* GEQO_POOL_H */
+#endif                         /* GEQO_POOL_H */
index 531258938780ab60df0e8520779f81db6b59d8c7..2665a096b3446b576ca394f4412228145cd78bdd 100644 (file)
@@ -38,4 +38,4 @@ extern double geqo_rand(PlannerInfo *root);
 #define geqo_randint(root, upper, lower) \
    ( (int) floor( geqo_rand(root)*(((upper)-(lower))+0.999999) ) + (lower) )
 
-#endif   /* GEQO_RANDOM_H */
+#endif                         /* GEQO_RANDOM_H */
index 8ddde222960ac8da609b74ed558c3e476f13ea13..8a436b9ec2bdbe33bb1c538590b13bd8b2864696 100644 (file)
@@ -86,4 +86,4 @@ extern void ox1(PlannerInfo *root, Gene *mom, Gene *dad, Gene *offspring,
 extern void ox2(PlannerInfo *root, Gene *mom, Gene *dad, Gene *offspring,
    int num_gene, City *city_table);
 
-#endif   /* GEQO_RECOMBINATION_H */
+#endif                         /* GEQO_RECOMBINATION_H */
index 1aecf14ac138d8b8dd8a01780d7a03d217208371..69ce2b4b8a019fdacb9f854af0f84813182b7cb1 100644 (file)
@@ -30,4 +30,4 @@ extern void geqo_selection(PlannerInfo *root,
               Chromosome *momma, Chromosome *daddy,
               Pool *pool, double bias);
 
-#endif   /* GEQO_SELECTION_H */
+#endif                         /* GEQO_SELECTION_H */
index c9a8b53f1fd6e9cf37de6f7ad6c1f7710f3e7097..4450d81408cafcaaff5163895857d8ac9de27bae 100644 (file)
@@ -27,4 +27,4 @@ extern void remove_join_clause_from_rels(PlannerInfo *root,
                             RestrictInfo *restrictinfo,
                             Relids join_relids);
 
-#endif   /* JOININFO_H */
+#endif                         /* JOININFO_H */
index 2512ddee8f218d58a67878b707877cc342637e5f..a3d8e1d9f90af9b19eb4b49165b88535c957a92d 100644 (file)
@@ -18,4 +18,4 @@
 
 extern void extract_restriction_or_clauses(PlannerInfo *root);
 
-#endif   /* ORCLAUSES_H */
+#endif                         /* ORCLAUSES_H */
index 245825c38b95854a50056904bc55e47ddf7caaec..0c0549db7f7e061ccda955b160f85d3a49a0bc8f 100644 (file)
@@ -286,4 +286,4 @@ extern ParamPathInfo *get_joinrel_parampathinfo(PlannerInfo *root,
 extern ParamPathInfo *get_appendrel_parampathinfo(RelOptInfo *appendrel,
                            Relids required_outer);
 
-#endif   /* PATHNODE_H */
+#endif                         /* PATHNODE_H */
index 807729c74a34ba98ebababcbfa023d89a8509e46..4e06b2e29931e7b43165dfba0466da9cf5b94ae4 100644 (file)
@@ -228,4 +228,4 @@ extern PathKey *make_canonical_pathkey(PlannerInfo *root,
                       EquivalenceClass *eclass, Oid opfamily,
                       int strategy, bool nulls_first);
 
-#endif   /* PATHS_H */
+#endif                         /* PATHS_H */
index 11e6403aa30117167f4835852d0bd3fa40077840..5a4d46ba9d7000ce893b7866c8a4ae87934adbb8 100644 (file)
@@ -29,4 +29,4 @@ extern void add_placeholders_to_base_rels(PlannerInfo *root);
 extern void add_placeholders_to_joinrel(PlannerInfo *root, RelOptInfo *joinrel,
                            RelOptInfo *outer_rel, RelOptInfo *inner_rel);
 
-#endif   /* PLACEHOLDER_H */
+#endif                         /* PLACEHOLDER_H */
index 16960c28590cec58af15f164ffaa49adf47d27ed..71f0faf93847e964748ee944ac16b0b046be394a 100644 (file)
@@ -57,4 +57,4 @@ extern Selectivity join_selectivity(PlannerInfo *root,
 
 extern bool has_row_triggers(PlannerInfo *root, Index rti, CmdType event);
 
-#endif   /* PLANCAT_H */
+#endif                         /* PLANCAT_H */
index e3cde2595b33d78c4adfeec42afd2e7f785e2a67..f1d16cffab07ee1584ba9246b125d13cefa2a9ad 100644 (file)
@@ -120,4 +120,4 @@ extern void extract_query_dependencies(Node *query,
                           List **invalItems,
                           bool *hasRowSecurity);
 
-#endif   /* PLANMAIN_H */
+#endif                         /* PLANMAIN_H */
index 41667f2c4132260dcb9a8688117acc12bc9c148a..2a4cf71e10216e8b6894373fb2b1e4069003e922 100644 (file)
@@ -59,4 +59,4 @@ extern bool plan_cluster_use_sort(Oid tableOid, Oid indexOid);
 
 extern List *get_partitioned_child_rels(PlannerInfo *root, Index rti);
 
-#endif   /* PLANNER_H */
+#endif                         /* PLANNER_H */
index 748cd35611226d9efdb15bf6d3e740a0c8ae9b0c..bccb8d63a958be6fe3dc4fbb05b271c824881636 100644 (file)
@@ -22,4 +22,4 @@ extern bool predicate_implied_by(List *predicate_list, List *clause_list,
 extern bool predicate_refuted_by(List *predicate_list, List *clause_list,
                     bool clause_is_check);
 
-#endif   /* PREDTEST_H */
+#endif                         /* PREDTEST_H */
index 2b20b36f74f00e2df72c10ad193c3fb817e438a2..faad46b5e4e33570af17d41224f309841800c0cf 100644 (file)
@@ -58,4 +58,4 @@ extern Node *adjust_appendrel_attrs(PlannerInfo *root, Node *node,
 extern Node *adjust_appendrel_attrs_multilevel(PlannerInfo *root, Node *node,
                                  RelOptInfo *child_rel);
 
-#endif   /* PREP_H */
+#endif                         /* PREP_H */
index 31b9a7928593992eac9e3c7e64782187abc59409..b2a69998fd84a823ef41e5e8ea2ccb755c281230 100644 (file)
@@ -43,4 +43,4 @@ extern bool join_clause_is_movable_into(RestrictInfo *rinfo,
                            Relids currentrelids,
                            Relids current_and_outer);
 
-#endif   /* RESTRICTINFO_H */
+#endif                         /* RESTRICTINFO_H */
index 56dc237b513a1d0455b69e5dc12b58e6dfc7182c..ecd2011d54d52d726d9d6d44f3b83683385c2d7d 100644 (file)
@@ -40,4 +40,4 @@ extern Param *assign_nestloop_param_placeholdervar(PlannerInfo *root,
                                     PlaceHolderVar *phv);
 extern int SS_assign_special_param(PlannerInfo *root);
 
-#endif   /* SUBSELECT_H */
+#endif                         /* SUBSELECT_H */
index ccb93d8c8023733bba6a7c65893ea10ed7d47259..0d3ec920dd874446fb1108562bd9d66e26c31df9 100644 (file)
@@ -69,4 +69,4 @@ extern void split_pathtarget_at_srfs(PlannerInfo *root,
 #define create_pathtarget(root, tlist) \
    set_pathtarget_cost_width(root, make_pathtarget_from_tlist(tlist))
 
-#endif   /* TLIST_H */
+#endif                         /* TLIST_H */
index ae1f856933c229eb64f4bf2325a6a14ed492b310..61861528af2a3ca1d2ac5a047901c3b02148ed3d 100644 (file)
 #define PVC_RECURSE_AGGREGATES 0x0002  /* recurse into Aggref arguments */
 #define PVC_INCLUDE_WINDOWFUNCS 0x0004 /* include WindowFuncs in output list */
 #define PVC_RECURSE_WINDOWFUNCS 0x0008 /* recurse into WindowFunc arguments */
-#define PVC_INCLUDE_PLACEHOLDERS   0x0010      /* include PlaceHolderVars in
-                                                * output list */
-#define PVC_RECURSE_PLACEHOLDERS   0x0020      /* recurse into PlaceHolderVar
-                                                * arguments */
+#define PVC_INCLUDE_PLACEHOLDERS   0x0010  /* include PlaceHolderVars in
+                                            * output list */
+#define PVC_RECURSE_PLACEHOLDERS   0x0020  /* recurse into PlaceHolderVar
+                                            * arguments */
 
 
 extern Relids pull_varnos(Node *node);
@@ -37,4 +37,4 @@ extern int    locate_var_of_level(Node *node, int levelsup);
 extern List *pull_var_clause(Node *node, int flags);
 extern Node *flatten_join_alias_vars(PlannerInfo *root, Node *node);
 
-#endif   /* VAR_H */
+#endif                         /* VAR_H */
index 4d7d06a162223bbbfed5ea9ea075c690d6434b89..40f22339f1a6f2064ab692ea2c03346b7aa862eb 100644 (file)
@@ -43,4 +43,4 @@ extern void applyLockingClause(Query *qry, Index rtindex,
                   LockClauseStrength strength,
                   LockWaitPolicy waitPolicy, bool pushedDown);
 
-#endif   /* ANALYZE_H */
+#endif                         /* ANALYZE_H */
index 2da98f67f319a739087475727c60e6ce11c02db5..b6b67fb92c5b5675d24bc4e9a36b86a6c5b69688 100644 (file)
@@ -44,8 +44,8 @@ typedef struct base_yy_extra_type
     */
    bool        have_lookahead; /* is lookahead info valid? */
    int         lookahead_token;    /* one-token lookahead */
-   core_YYSTYPE lookahead_yylval;      /* yylval for lookahead token */
-   YYLTYPE     lookahead_yylloc;       /* yylloc for lookahead token */
+   core_YYSTYPE lookahead_yylval;  /* yylval for lookahead token */
+   YYLTYPE     lookahead_yylloc;   /* yylloc for lookahead token */
    char       *lookahead_end;  /* end of current token */
    char        lookahead_hold_char;    /* to be put back at *lookahead_end */
 
@@ -72,4 +72,4 @@ extern int base_yylex(YYSTYPE *lvalp, YYLTYPE *llocp,
 extern void parser_init(base_yy_extra_type *yyext);
 extern int base_yyparse(core_yyscan_t yyscanner);
 
-#endif   /* GRAMPARSE_H */
+#endif                         /* GRAMPARSE_H */
index 8a54d59d6f9478689859689ffb67cec99b9c7234..6947a0186e2f4fcf42acb455a8c84e840eab03f1 100644 (file)
@@ -65,4 +65,4 @@ extern void build_aggregate_finalfn_expr(Oid *agg_input_types,
                             Oid finalfn_oid,
                             Expr **finalfnexpr);
 
-#endif   /* PARSE_AGG_H */
+#endif                         /* PARSE_AGG_H */
index 823138f6c0e04c79817cd406bde37afb14dc7921..1d205c6327cac7aa3103871f4b731644bf05c736 100644 (file)
@@ -51,4 +51,4 @@ extern List *addTargetToSortList(ParseState *pstate, TargetEntry *tle,
 extern Index assignSortGroupRef(TargetEntry *tle, List *tlist);
 extern bool targetIsInSortList(TargetEntry *tle, Oid sortop, List *sortList);
 
-#endif   /* PARSE_CLAUSE_H */
+#endif                         /* PARSE_CLAUSE_H */
index 3eed81966dcc34ae0fc25b3d75c88b69d649a486..06f65293cb39ddf2ee44e5bfc8c2e335dc846541 100644 (file)
@@ -91,4 +91,4 @@ extern CoercionPathType find_coercion_pathway(Oid targetTypeId,
 extern CoercionPathType find_typmod_coercion_function(Oid typeId,
                              Oid *funcid);
 
-#endif   /* PARSE_COERCE_H */
+#endif                         /* PARSE_COERCE_H */
index e42971dfde033514eb8aa2068a1f26cc89875021..7279fa4e7cff00b1725bba9e8f6916538372cc0c 100644 (file)
@@ -24,4 +24,4 @@ extern void assign_expr_collations(ParseState *pstate, Node *expr);
 
 extern Oid select_common_collation(ParseState *pstate, List *exprs, bool none_ok);
 
-#endif   /* PARSE_COLLATE_H */
+#endif                         /* PARSE_COLLATE_H */
index 91306123128f021aafa80fd786ca34a63adde864..695e88c7ed67afb4ffd622aaa6cfb42aae6718fe 100644 (file)
@@ -21,4 +21,4 @@ extern List *transformWithClause(ParseState *pstate, WithClause *withClause);
 extern void analyzeCTETargetList(ParseState *pstate, CommonTableExpr *cte,
                     List *tlist);
 
-#endif   /* PARSE_CTE_H */
+#endif                         /* PARSE_CTE_H */
index 48a7576f2c2c6d1133e60e2263a0769040fd4337..9c68ddbb0439899d5f546443a61e9c1d50114856 100644 (file)
@@ -19,4 +19,4 @@
 extern bool name_matches_visible_ENR(ParseState *pstate, const char *refname);
 extern EphemeralNamedRelationMetadata get_visible_ENR(ParseState *pstate, const char *refname);
 
-#endif   /* PARSE_ENR_H */
+#endif                         /* PARSE_ENR_H */
index 2101eaefda4c3e153fbe2d16b10a56e4d34604bd..3af09b00560e17b9f60534512411ac11fbd5c778 100644 (file)
@@ -23,4 +23,4 @@ extern Node *transformExpr(ParseState *pstate, Node *expr, ParseExprKind exprKin
 
 extern const char *ParseExprKindName(ParseExprKind exprKind);
 
-#endif   /* PARSE_EXPR_H */
+#endif                         /* PARSE_EXPR_H */
index 68572e9d2a92b4c13eaefdd0139e7ad789ab1016..b4b6084b1bfd35c7bb7e72c326354e4569980848 100644 (file)
@@ -70,4 +70,4 @@ extern Oid LookupAggWithArgs(ObjectWithArgs *agg,
 extern void check_srf_call_placement(ParseState *pstate, Node *last_srf,
                         int location);
 
-#endif   /* PARSE_FUNC_H */
+#endif                         /* PARSE_FUNC_H */
index cc424ece039f1ed946f1bc762b1fc1e285770b13..68930c1f4adf3b67ca04b9148d7b336ff3ccfbc9 100644 (file)
@@ -43,7 +43,7 @@ typedef enum ParseExprKind
    EXPR_KIND_FILTER,           /* FILTER */
    EXPR_KIND_WINDOW_PARTITION, /* window definition PARTITION BY */
    EXPR_KIND_WINDOW_ORDER,     /* window definition ORDER BY */
-   EXPR_KIND_WINDOW_FRAME_RANGE,       /* window frame clause with RANGE */
+   EXPR_KIND_WINDOW_FRAME_RANGE,   /* window frame clause with RANGE */
    EXPR_KIND_WINDOW_FRAME_ROWS,    /* window frame clause with ROWS */
    EXPR_KIND_SELECT_TARGET,    /* SELECT target list item */
    EXPR_KIND_INSERT_TARGET,    /* INSERT target list item */
@@ -63,11 +63,11 @@ typedef enum ParseExprKind
    EXPR_KIND_FUNCTION_DEFAULT, /* default parameter value for function */
    EXPR_KIND_INDEX_EXPRESSION, /* index expression */
    EXPR_KIND_INDEX_PREDICATE,  /* index predicate */
-   EXPR_KIND_ALTER_COL_TRANSFORM,      /* transform expr in ALTER COLUMN TYPE */
+   EXPR_KIND_ALTER_COL_TRANSFORM,  /* transform expr in ALTER COLUMN TYPE */
    EXPR_KIND_EXECUTE_PARAMETER,    /* parameter value in EXECUTE */
    EXPR_KIND_TRIGGER_WHEN,     /* WHEN condition in CREATE TRIGGER */
    EXPR_KIND_POLICY,           /* USING or WITH CHECK expr in policy */
-   EXPR_KIND_PARTITION_EXPRESSION      /* PARTITION BY expression */
+   EXPR_KIND_PARTITION_EXPRESSION  /* PARTITION BY expression */
 } ParseExprKind;
 
 
@@ -167,7 +167,7 @@ typedef Node *(*CoerceParamHook) (ParseState *pstate, Param *param,
  */
 struct ParseState
 {
-   struct ParseState *parentParseState;        /* stack link */
+   struct ParseState *parentParseState;    /* stack link */
    const char *p_sourcetext;   /* source text, or NULL if not available */
    List       *p_rtable;       /* range table so far */
    List       *p_joinexprs;    /* JoinExprs for RTE_JOIN p_rtable entries */
@@ -175,25 +175,24 @@ struct ParseState
                                 * node's fromlist) */
    List       *p_namespace;    /* currently-referenceable RTEs (List of
                                 * ParseNamespaceItem) */
-   bool        p_lateral_active;       /* p_lateral_only items visible? */
+   bool        p_lateral_active;   /* p_lateral_only items visible? */
    List       *p_ctenamespace; /* current namespace for common table exprs */
    List       *p_future_ctes;  /* common table exprs not yet in namespace */
-   CommonTableExpr *p_parent_cte;      /* this query's containing CTE */
-   Relation    p_target_relation;      /* INSERT/UPDATE/DELETE target rel */
-   RangeTblEntry *p_target_rangetblentry;      /* target rel's RTE */
+   CommonTableExpr *p_parent_cte;  /* this query's containing CTE */
+   Relation    p_target_relation;  /* INSERT/UPDATE/DELETE target rel */
+   RangeTblEntry *p_target_rangetblentry;  /* target rel's RTE */
    bool        p_is_insert;    /* process assignment like INSERT not UPDATE */
    List       *p_windowdefs;   /* raw representations of window clauses */
    ParseExprKind p_expr_kind;  /* what kind of expression we're parsing */
    int         p_next_resno;   /* next targetlist resno to assign */
    List       *p_multiassign_exprs;    /* junk tlist entries for multiassign */
-   List       *p_locking_clause;       /* raw FOR UPDATE/FOR SHARE info */
+   List       *p_locking_clause;   /* raw FOR UPDATE/FOR SHARE info */
    bool        p_locked_from_parent;   /* parent has marked this subquery
                                         * with FOR UPDATE/FOR SHARE */
-   bool        p_resolve_unknowns;     /* resolve unknown-type SELECT outputs
-                                        * as type text */
+   bool        p_resolve_unknowns; /* resolve unknown-type SELECT outputs as
+                                    * type text */
 
-   QueryEnvironment *p_queryEnv;       /* curr env, incl refs to enclosing
-                                        * env */
+   QueryEnvironment *p_queryEnv;   /* curr env, incl refs to enclosing env */
 
    /* Flags telling about things found in the query: */
    bool        p_hasAggs;
@@ -212,7 +211,7 @@ struct ParseState
    PostParseColumnRefHook p_post_columnref_hook;
    ParseParamRefHook p_paramref_hook;
    CoerceParamHook p_coerce_param_hook;
-   void       *p_ref_hook_state;       /* common passthrough link for above */
+   void       *p_ref_hook_state;   /* common passthrough link for above */
 };
 
 /*
@@ -280,4 +279,4 @@ extern ArrayRef *transformArraySubscripts(ParseState *pstate,
                         Node *assignFrom);
 extern Const *make_const(ParseState *pstate, Value *value, int location);
 
-#endif   /* PARSE_NODE_H */
+#endif                         /* PARSE_NODE_H */
index ab3c4aa62f619766e4d81e1252519e0daa3f7195..3cab732b1f71caa43d9d661735b4918f8e5343ea 100644 (file)
@@ -64,4 +64,4 @@ extern Expr *make_scalar_array_op(ParseState *pstate, List *opname,
                     bool useOr,
                     Node *ltree, Node *rtree, int location);
 
-#endif   /* PARSE_OPER_H */
+#endif                         /* PARSE_OPER_H */
index 68f3ddaffa7c8ab54ec96241868d985e7860bcfb..50c21cfc9df7142a5a648de4969002bcd9c99a31 100644 (file)
@@ -22,4 +22,4 @@ extern void parse_variable_parameters(ParseState *pstate,
 extern void check_variable_parameters(ParseState *pstate, Query *query);
 extern bool query_contains_extern_params(Query *query);
 
-#endif   /* PARSE_PARAM_H */
+#endif                         /* PARSE_PARAM_H */
index 2f42cc8ef071b66b3dda8109d4b07cf13661d7b0..6aa4ee69e60194d6b3f389f64d971cbcd4c14426 100644 (file)
@@ -129,4 +129,4 @@ extern Oid  attnumTypeId(Relation rd, int attid);
 extern Oid attnumCollationId(Relation rd, int attid);
 extern bool isQueryUsingTempRelation(Query *query);
 
-#endif   /* PARSE_RELATION_H */
+#endif                         /* PARSE_RELATION_H */
index d06a235df0b191965bf9c5f04dda4e50eed2bb97..44af46b1aaa043bd65a226e48ba066a6f1e32d72 100644 (file)
@@ -43,4 +43,4 @@ extern TupleDesc expandRecordVariable(ParseState *pstate, Var *var,
 extern char *FigureColname(Node *node);
 extern char *FigureIndexColname(Node *node);
 
-#endif   /* PARSE_TARGET_H */
+#endif                         /* PARSE_TARGET_H */
index db0cd56eccaf2a6e46577da8bf29e5e3d2011a92..7b843d0b9de8ee55c0466378ec25b54a84505143 100644 (file)
@@ -52,4 +52,4 @@ extern void parseTypeString(const char *str, Oid *typeid_p, int32 *typmod_p, boo
 
 #define ISCOMPLEX(typeid) (typeidTypeRelid(typeid) != InvalidOid)
 
-#endif   /* PARSE_TYPE_H */
+#endif                         /* PARSE_TYPE_H */
index 8d0d17f8577a972824141279dcf920d7f8b088de..e749432ef03e7cfbc6e35e3807144c0bea3ecd29 100644 (file)
@@ -28,4 +28,4 @@ extern List *transformCreateSchemaStmt(CreateSchemaStmt *stmt);
 extern PartitionBoundSpec *transformPartitionBound(ParseState *pstate, Relation parent,
                        PartitionBoundSpec *spec);
 
-#endif   /* PARSE_UTILCMD_H */
+#endif                         /* PARSE_UTILCMD_H */
index 3895e03c6c39c04ec03e8842ae6c904a6eddc511..8370df6bbb993780323b7e02a7f822f859ea4d7b 100644 (file)
@@ -38,4 +38,4 @@ extern List *raw_parser(const char *str);
 extern List *SystemFuncName(char *name);
 extern TypeName *SystemTypeName(char *name);
 
-#endif   /* PARSER_H */
+#endif                         /* PARSER_H */
index 951ff0a254b6748b2f967cf65d15487e12a9d92b..96cb2e2f67ce973309674d1241e895da9fb62266 100644 (file)
@@ -76,4 +76,4 @@ extern TargetEntry *get_tle_by_resno(List *tlist, AttrNumber resno);
 
 extern RowMarkClause *get_parse_rowmark(Query *qry, Index rtindex);
 
-#endif   /* PARSETREE_H */
+#endif                         /* PARSETREE_H */
index 74f1cc897f50a54562539a2e93908ba34eccc074..bb95de730b1f40faee1a6dc1e394c0a76914db6a 100644 (file)
@@ -127,4 +127,4 @@ extern int core_yylex(core_YYSTYPE *lvalp, YYLTYPE *llocp,
 extern int scanner_errposition(int location, core_yyscan_t yyscanner);
 extern void scanner_yyerror(const char *message, core_yyscan_t yyscanner) pg_attribute_noreturn();
 
-#endif   /* SCANNER_H */
+#endif                         /* SCANNER_H */
index 3464eb4c0e48778617b635b9f6c3fba49dbe8559..f9a36b5cbd679d767d1418d166da6175a48dc8ee 100644 (file)
@@ -27,4 +27,4 @@ extern void truncate_identifier(char *ident, int len, bool warn);
 
 extern bool scanner_isspace(char ch);
 
-#endif   /* SCANSUP_H */
+#endif                         /* SCANSUP_H */
index c356ba197e1dba899097ee30a97700e18401b32e..16d5a326f99584777310378d450ccf9a5476923b 100644 (file)
@@ -29,7 +29,7 @@ extern int    optind;
 extern int opterr;
 extern int optopt;
 
-#endif   /* HAVE_GETOPT_H */
+#endif                         /* HAVE_GETOPT_H */
 
 /*
  * Some platforms have optreset but fail to declare it in , so cope.
@@ -43,4 +43,4 @@ extern int    optreset;
 extern int getopt(int nargc, char *const *nargv, const char *ostr);
 #endif
 
-#endif   /* PG_GETOPT_H */
+#endif                         /* PG_GETOPT_H */
index 1fe95e6403c1bf28537036c2dac31fa72760be0e..29bc95d0d3ea656ccc1fc70a84dbf95130b743fc 100644 (file)
@@ -14,4 +14,4 @@
 
 #include "utils/probes.h"      /* pgrminclude ignore */
 
-#endif   /* PG_TRACE_H */
+#endif                         /* PG_TRACE_H */
index bcf20ced5917da85ee8cfd939a743fe88ed43ca5..6bffe63ad6badaed8bcddab1342632aa2f45067d 100644 (file)
@@ -154,7 +154,7 @@ typedef struct PgStat_TableStatus
 {
    Oid         t_id;           /* table's OID */
    bool        t_shared;       /* is it a shared catalog? */
-   struct PgStat_TableXactStatus *trans;       /* lowest subxact's counts */
+   struct PgStat_TableXactStatus *trans;   /* lowest subxact's counts */
    PgStat_TableCounts t_counts;    /* event counts to be sent */
 } PgStat_TableStatus;
 
@@ -164,19 +164,19 @@ typedef struct PgStat_TableStatus
  */
 typedef struct PgStat_TableXactStatus
 {
-   PgStat_Counter tuples_inserted;     /* tuples inserted in (sub)xact */
-   PgStat_Counter tuples_updated;      /* tuples updated in (sub)xact */
-   PgStat_Counter tuples_deleted;      /* tuples deleted in (sub)xact */
+   PgStat_Counter tuples_inserted; /* tuples inserted in (sub)xact */
+   PgStat_Counter tuples_updated;  /* tuples updated in (sub)xact */
+   PgStat_Counter tuples_deleted;  /* tuples deleted in (sub)xact */
    bool        truncated;      /* relation truncated in this (sub)xact */
    PgStat_Counter inserted_pre_trunc;  /* tuples inserted prior to truncate */
    PgStat_Counter updated_pre_trunc;   /* tuples updated prior to truncate */
    PgStat_Counter deleted_pre_trunc;   /* tuples deleted prior to truncate */
    int         nest_level;     /* subtransaction nest level */
    /* links to other structs for same relation: */
-   struct PgStat_TableXactStatus *upper;       /* next higher subxact if any */
+   struct PgStat_TableXactStatus *upper;   /* next higher subxact if any */
    PgStat_TableStatus *parent; /* per-table status */
    /* structs of same subxact level are linked here: */
-   struct PgStat_TableXactStatus *next;        /* next of same subxact */
+   struct PgStat_TableXactStatus *next;    /* next of same subxact */
 } PgStat_TableXactStatus;
 
 
@@ -418,7 +418,7 @@ typedef struct PgStat_MsgBgWriter
    PgStat_Counter m_buf_written_backend;
    PgStat_Counter m_buf_fsync_backend;
    PgStat_Counter m_buf_alloc;
-   PgStat_Counter m_checkpoint_write_time;     /* times in milliseconds */
+   PgStat_Counter m_checkpoint_write_time; /* times in milliseconds */
    PgStat_Counter m_checkpoint_sync_time;
 } PgStat_MsgBgWriter;
 
@@ -633,13 +633,13 @@ typedef struct PgStat_StatTabEntry
    PgStat_Counter blocks_fetched;
    PgStat_Counter blocks_hit;
 
-   TimestampTz vacuum_timestamp;       /* user initiated vacuum */
+   TimestampTz vacuum_timestamp;   /* user initiated vacuum */
    PgStat_Counter vacuum_count;
-   TimestampTz autovac_vacuum_timestamp;       /* autovacuum initiated */
+   TimestampTz autovac_vacuum_timestamp;   /* autovacuum initiated */
    PgStat_Counter autovac_vacuum_count;
-   TimestampTz analyze_timestamp;      /* user initiated */
+   TimestampTz analyze_timestamp;  /* user initiated */
    PgStat_Counter analyze_count;
-   TimestampTz autovac_analyze_timestamp;      /* autovacuum initiated */
+   TimestampTz autovac_analyze_timestamp;  /* autovacuum initiated */
    PgStat_Counter autovac_analyze_count;
 } PgStat_StatTabEntry;
 
@@ -664,13 +664,13 @@ typedef struct PgStat_StatFuncEntry
  */
 typedef struct PgStat_ArchiverStats
 {
-   PgStat_Counter archived_count;      /* archival successes */
+   PgStat_Counter archived_count;  /* archival successes */
    char        last_archived_wal[MAX_XFN_CHARS + 1];   /* last WAL file
                                                         * archived */
-   TimestampTz last_archived_timestamp;        /* last archival success time */
+   TimestampTz last_archived_timestamp;    /* last archival success time */
    PgStat_Counter failed_count;    /* failed archival attempts */
-   char        last_failed_wal[MAX_XFN_CHARS + 1];     /* WAL file involved in
-                                                        * last failure */
+   char        last_failed_wal[MAX_XFN_CHARS + 1]; /* WAL file involved in
+                                                    * last failure */
    TimestampTz last_failed_timestamp;  /* last archival failure time */
    TimestampTz stat_reset_timestamp;
 } PgStat_ArchiverStats;
@@ -683,7 +683,7 @@ typedef struct PgStat_GlobalStats
    TimestampTz stats_timestamp;    /* time of stats file update */
    PgStat_Counter timed_checkpoints;
    PgStat_Counter requested_checkpoints;
-   PgStat_Counter checkpoint_write_time;       /* times in milliseconds */
+   PgStat_Counter checkpoint_write_time;   /* times in milliseconds */
    PgStat_Counter checkpoint_sync_time;
    PgStat_Counter buf_written_checkpoints;
    PgStat_Counter buf_written_clean;
@@ -934,9 +934,9 @@ typedef struct PgBackendSSLStatus
    /* Information about SSL connection */
    int         ssl_bits;
    bool        ssl_compression;
-   char        ssl_version[NAMEDATALEN];       /* MUST be null-terminated */
-   char        ssl_cipher[NAMEDATALEN];        /* MUST be null-terminated */
-   char        ssl_clientdn[NAMEDATALEN];      /* MUST be null-terminated */
+   char        ssl_version[NAMEDATALEN];   /* MUST be null-terminated */
+   char        ssl_cipher[NAMEDATALEN];    /* MUST be null-terminated */
+   char        ssl_clientdn[NAMEDATALEN];  /* MUST be null-terminated */
 } PgBackendSSLStatus;
 
 
@@ -987,7 +987,7 @@ typedef struct PgBackendStatus
    Oid         st_databaseid;
    Oid         st_userid;
    SockAddr    st_clientaddr;
-   char       *st_clienthostname;      /* MUST be null-terminated */
+   char       *st_clienthostname;  /* MUST be null-terminated */
 
    /* Information about SSL connection */
    bool        st_ssl;
@@ -1324,4 +1324,4 @@ extern int    pgstat_fetch_stat_numbackends(void);
 extern PgStat_ArchiverStats *pgstat_fetch_stat_archiver(void);
 extern PgStat_GlobalStats *pgstat_fetch_global(void);
 
-#endif   /* PGSTAT_H */
+#endif                         /* PGSTAT_H */
index 3624dbdf4204cf8c0ba57d2baee84eb8a8eccf45..4fd8f75ef9162f6a8688acca4710fd48ba9b9d02 100644 (file)
@@ -81,4 +81,4 @@ extern pg_tzenum *pg_tzenumerate_start(void);
 extern pg_tz *pg_tzenumerate_next(pg_tzenum *dir);
 extern void pg_tzenumerate_end(pg_tzenum *dir);
 
-#endif   /* _PGTIME_H */
+#endif                         /* _PGTIME_H */
index 0fa030ea818cfe7030dbc9f36cd46d300ae7cd8f..c2462167e4c75e3c8b370d008f54cb0dbc589560 100644 (file)
@@ -180,7 +180,7 @@ extern int  pg_printf(const char *fmt,...) pg_attribute_printf(1, 2);
 #define fprintf            pg_fprintf
 #define printf         pg_printf
 #endif
-#endif   /* USE_REPL_SNPRINTF */
+#endif                         /* USE_REPL_SNPRINTF */
 
 #if defined(WIN32)
 /*
@@ -200,7 +200,7 @@ extern int  pg_printf(const char *fmt,...) pg_attribute_printf(1, 2);
 extern char *pgwin32_setlocale(int category, const char *locale);
 
 #define setlocale(a,b) pgwin32_setlocale(a,b)
-#endif   /* WIN32 */
+#endif                         /* WIN32 */
 
 /* Portable prompt handling */
 extern void simple_prompt(const char *prompt, char *destination, size_t destlen,
@@ -237,7 +237,7 @@ extern int  pgunlink(const char *path);
 
 #define rename(from, to)       pgrename(from, to)
 #define unlink(path)           pgunlink(path)
-#endif   /* defined(WIN32) || defined(__CYGWIN__) */
+#endif                         /* defined(WIN32) || defined(__CYGWIN__) */
 
 /*
  * Win32 also doesn't have symlinks, but we can emulate them with
@@ -326,7 +326,7 @@ extern int  gettimeofday(struct timeval *tp, struct timezone *tzp);
  * close() does them all.
  */
 #define closesocket close
-#endif   /* WIN32 */
+#endif                         /* WIN32 */
 
 /*
  * On Windows, setvbuf() does not support _IOLBF mode, and interprets that
@@ -481,4 +481,4 @@ extern char *escape_single_quotes_ascii(const char *src);
 /* port/wait_error.c */
 extern char *wait_result_to_str(int exit_status);
 
-#endif   /* PG_PORT_H */
+#endif                         /* PG_PORT_H */
index 89eb522637a8f94ccbe44a59ff30da7991d6c3dd..2bfd1ed728fca722686cf8522da5f7f1b92378a9 100644 (file)
@@ -532,4 +532,4 @@ pg_atomic_sub_fetch_u64(volatile pg_atomic_uint64 *ptr, int64 sub_)
 
 #undef INSIDE_ATOMICS_H
 
-#endif   /* ATOMICS_H */
+#endif                         /* ATOMICS_H */
index 18859a6ea3510665478f8c202dc523aafb0ac397..50a6bd106b0bf3b060f3792caabf5fe50d3f0411 100644 (file)
@@ -29,7 +29,7 @@
                    (((x) << 8)  & 0x00ff0000) | \
                    (((x) >> 8)  & 0x0000ff00) | \
                    (((x) >> 24) & 0x000000ff))
-#endif   /* HAVE__BUILTIN_BSWAP32 */
+#endif                         /* HAVE__BUILTIN_BSWAP32 */
 
 #ifdef HAVE__BUILTIN_BSWAP64
 #define BSWAP64(x) __builtin_bswap64(x)
@@ -42,7 +42,7 @@
                    (((x) >> 24) & UINT64CONST(0x0000000000ff0000)) | \
                    (((x) >> 40) & UINT64CONST(0x000000000000ff00)) | \
                    (((x) >> 56) & UINT64CONST(0x00000000000000ff)))
-#endif   /* HAVE__BUILTIN_BSWAP64 */
+#endif                         /* HAVE__BUILTIN_BSWAP64 */
 
 /*
  * Rearrange the bytes of a Datum from big-endian order into the native byte
@@ -63,7 +63,7 @@
 #define        DatumBigEndianToNative(x)   BSWAP64(x)
 #else                          /* SIZEOF_DATUM != 8 */
 #define        DatumBigEndianToNative(x)   BSWAP32(x)
-#endif   /* SIZEOF_DATUM == 8 */
-#endif   /* WORDS_BIGENDIAN */
+#endif                         /* SIZEOF_DATUM == 8 */
+#endif                         /* WORDS_BIGENDIAN */
 
-#endif   /* PG_BSWAP_H */
+#endif                         /* PG_BSWAP_H */
index aa35fa89d275a59dc42ee9192a7068b64e1db304..cd58ecc988adf163db867350384222cf0939cce6 100644 (file)
@@ -82,4 +82,4 @@ extern pg_crc32c pg_comp_crc32c_sb8(pg_crc32c crc, const void *data, size_t len)
 
 #endif
 
-#endif   /* PG_CRC32C_H */
+#endif                         /* PG_CRC32C_H */
index 43505f23e02cfdda63e9d5c40ec671b217538ac4..23f89748ac6738a931ad71d7a5e2a7b1e54625ab 100644 (file)
@@ -442,7 +442,7 @@ typedef unsigned short mode_t;
 /* Pulled from Makefile.port in mingw */
 #define DLSUFFIX ".dll"
 
-#endif   /* _MSC_VER */
+#endif                         /* _MSC_VER */
 
 /* These aren't provided by either MingW or MSVC */
 #define S_IRGRP 0
index edaee6a894ca74e2c329a4bbcb3b68307e438670..9b2cdf3b9bcab926c99e9adbc90d0787b15ad4a5 100644 (file)
@@ -30,4 +30,4 @@
  */
 #undef gai_strerror
 
-#endif   /* WIN32_SYS_SOCKET_H */
+#endif                         /* WIN32_SYS_SOCKET_H */
index 9eb4bb7eac2f6cfafe8f80a0aa52ce9f6e8041cf..b6e8c58d44c39744460de371c2cdde84290490ca 100644 (file)
@@ -202,7 +202,7 @@ typedef struct timeval instr_time;
 #define INSTR_TIME_GET_MICROSEC(t) \
    (((uint64) (t).tv_sec * (uint64) 1000000) + (uint64) (t).tv_usec)
 
-#endif   /* HAVE_CLOCK_GETTIME */
+#endif                         /* HAVE_CLOCK_GETTIME */
 
 #else                          /* WIN32 */
 
@@ -243,6 +243,6 @@ GetTimerFrequency(void)
    return (double) f.QuadPart;
 }
 
-#endif   /* WIN32 */
+#endif                         /* WIN32 */
 
-#endif   /* INSTR_TIME_H */
+#endif                         /* INSTR_TIME_H */
index d560c3ce56070415e56705559341e81d12767a52..fa507c2581262cb6afd1140876d907ae65ca3e16 100644 (file)
@@ -45,4 +45,4 @@
 #define MAP_FAILED ((void *) -1)
 #endif
 
-#endif   /* MEM_H */
+#endif                         /* MEM_H */
index 70ffdc6e173096c72a9773dde5ff67f399bfd87b..ae01ef86adffa4b927634bcdb903a6756e149321 100644 (file)
@@ -147,7 +147,7 @@ typedef union
    {
        uint32      va_header;
        uint32      va_rawsize; /* Original data size (excludes header) */
-       char        va_data[FLEXIBLE_ARRAY_MEMBER];     /* Compressed data */
+       char        va_data[FLEXIBLE_ARRAY_MEMBER]; /* Compressed data */
    }           va_compressed;
 } varattrib_4b;
 
@@ -264,7 +264,7 @@ typedef struct
 #define SET_VARTAG_1B_E(PTR,tag) \
    (((varattrib_1b_e *) (PTR))->va_header = 0x01, \
     ((varattrib_1b_e *) (PTR))->va_tag = (tag))
-#endif   /* WORDS_BIGENDIAN */
+#endif                         /* WORDS_BIGENDIAN */
 
 #define VARHDRSZ_SHORT         offsetof(varattrib_1b, va_data)
 #define VARATT_SHORT_MAX       0x7F
@@ -803,4 +803,4 @@ extern void ExceptionalCondition(const char *conditionName,
                     const char *errorType,
               const char *fileName, int lineNumber) pg_attribute_noreturn();
 
-#endif   /* POSTGRES_H */
+#endif                         /* POSTGRES_H */
index 452eae9935e5523981659bb6ee78aef74d5b9c5c..fdb61b7cf54efeff7fe00fbf218b61153c82e32b 100644 (file)
@@ -71,4 +71,4 @@ typedef PG_INT64_TYPE pg_int64;
 #define PG_DIAG_SOURCE_LINE        'L'
 #define PG_DIAG_SOURCE_FUNCTION 'R'
 
-#endif   /* POSTGRES_EXT_H */
+#endif                         /* POSTGRES_EXT_H */
index f49e33bc35ddc45d07fb4f4bb2b0765a0392e127..1dd01d02833fa0c3cfa51ea5982a0d1ece75d671 100644 (file)
@@ -26,4 +26,4 @@
 
 #include "common/fe_memutils.h"
 
-#endif   /* POSTGRES_FE_H */
+#endif                         /* POSTGRES_FE_H */
index d383fd3926eeb54a9b36e475f7fffb13b2a4d2c0..3469915ae25c11ce0ec1c776d59fda0714d993c8 100644 (file)
@@ -78,4 +78,4 @@ extern void AutoVacuumRequestWork(AutoVacuumWorkItemType type,
 extern Size AutoVacuumShmemSize(void);
 extern void AutoVacuumShmemInit(void);
 
-#endif   /* AUTOVACUUM_H */
+#endif                         /* AUTOVACUUM_H */
index be4d3d27daba933f6274a5685ba55dae265f51dc..e2ecd3c9eb256d35e3e34b221c117c6adc5073be 100644 (file)
@@ -90,7 +90,7 @@ typedef struct BackgroundWorker
    char        bgw_name[BGW_MAXLEN];
    int         bgw_flags;
    BgWorkerStartTime bgw_start_time;
-   int         bgw_restart_time;       /* in seconds, or BGW_NEVER_RESTART */
+   int         bgw_restart_time;   /* in seconds, or BGW_NEVER_RESTART */
    char        bgw_library_name[BGW_MAXLEN];
    char        bgw_function_name[BGW_MAXLEN];
    Datum       bgw_main_arg;
@@ -147,4 +147,4 @@ extern void BackgroundWorkerInitializeConnectionByOid(Oid dboid, Oid useroid);
 extern void BackgroundWorkerBlockSignals(void);
 extern void BackgroundWorkerUnblockSignals(void);
 
-#endif   /* BGWORKER_H */
+#endif                         /* BGWORKER_H */
index 9e0b0621cf4794ed25d1827a41b2586862b5b4be..bff10ba53c82c8ffd5b8d97df90e3b27edbbc34c 100644 (file)
@@ -60,4 +60,4 @@ extern void StartBackgroundWorker(void) pg_attribute_noreturn();
 extern BackgroundWorker *BackgroundWorkerEntry(int slotno);
 #endif
 
-#endif   /* BGWORKER_INTERNALS_H */
+#endif                         /* BGWORKER_INTERNALS_H */
index 359b3ef5a5dcde2e6c29d41207dffedee05c23e0..a9b8bc7e8e95a187bf9d9c4ae1bb9088d5aad744 100644 (file)
@@ -40,4 +40,4 @@ extern void CheckpointerShmemInit(void);
 
 extern bool FirstCallSinceLastCheckpoint(void);
 
-#endif   /* _BGWRITER_H */
+#endif                         /* _BGWRITER_H */
index c2bfd44ea0a230d1c8c23eac5ecc9c634c4f00cc..9d5b97aca754fe1fbfea185a3a6dd75d9323986d 100644 (file)
@@ -14,4 +14,4 @@
 
 extern pid_t fork_process(void);
 
-#endif   /* FORK_PROCESS_H */
+#endif                         /* FORK_PROCESS_H */
index 6a4e0f43b847815ba0b701ce7161780a897b749d..ab1ddcf52c797649556bcfc795299336feffd4b6 100644 (file)
@@ -36,4 +36,4 @@ extern int    pgarch_start(void);
 extern void PgArchiverMain(int argc, char *argv[]) pg_attribute_noreturn();
 #endif
 
-#endif   /* _PGARCH_H */
+#endif                         /* _PGARCH_H */
index 95231bf768b89dcef798ef53b0d04bb12fb165fe..0f85908b0980f4155d1d6dac05fd2df5a5170abb 100644 (file)
@@ -39,9 +39,9 @@ extern int    postmaster_alive_fds[2];
  * Constants that represent which of postmaster_alive_fds is held by
  * postmaster, and which is used in children to check for postmaster death.
  */
-#define POSTMASTER_FD_WATCH        0       /* used in children to check for
-                                        * postmaster death */
-#define POSTMASTER_FD_OWN      1       /* kept open by postmaster only */
+#define POSTMASTER_FD_WATCH        0   /* used in children to check for
+                                    * postmaster death */
+#define POSTMASTER_FD_OWN      1   /* kept open by postmaster only */
 #endif
 
 extern const char *progname;
@@ -74,4 +74,4 @@ extern void ShmemBackendArrayAllocation(void);
  */
 #define MAX_BACKENDS   0x3FFFF
 
-#endif   /* _POSTMASTER_H */
+#endif                         /* _POSTMASTER_H */
index ce76d9499170cd0b775c8c686d737fdeae5d769a..883bd395bd6b82b18b60fceda69829d454fcf1f5 100644 (file)
@@ -19,4 +19,4 @@ extern void PostRestoreCommand(void);
 extern bool IsPromoteTriggered(void);
 extern void ResetPromoteTriggered(void);
 
-#endif   /* _STARTUP_H */
+#endif                         /* _STARTUP_H */
index 94d7eac347f54e655fe637bddb4fe9fbd3798762..f4248ef5d46fa4cd51d243a978359336380d77e3 100644 (file)
@@ -94,4 +94,4 @@ extern void SysLoggerMain(int argc, char *argv[]) pg_attribute_noreturn();
 #define LOG_METAINFO_DATAFILE  "current_logfiles"
 #define LOG_METAINFO_DATAFILE_TMP  LOG_METAINFO_DATAFILE ".tmp"
 
-#endif   /* _SYSLOGGER_H */
+#endif                         /* _SYSLOGGER_H */
index fb91385e0bacd6cbe905d7f35a758297a23e0a98..f0eb42580215ead6a9d5c07afffa500185fdd774 100644 (file)
@@ -18,4 +18,4 @@ extern int    WalWriterFlushAfter;
 
 extern void WalWriterMain(void) pg_attribute_noreturn();
 
-#endif   /* _WALWRITER_H */
+#endif                         /* _WALWRITER_H */
index cc73db25473c06e058555021e08cd5d1e2c75417..27fdc090409de7f3660c34684cb2c95c2cae6853 100644 (file)
@@ -173,4 +173,4 @@ extern int  pg_regprefix(regex_t *, pg_wchar **, size_t *);
 extern void pg_regfree(regex_t *);
 extern size_t pg_regerror(int, const regex_t *, char *, size_t);
 
-#endif   /* _REGEX_H_ */
+#endif                         /* _REGEX_H_ */
index 091c568e635c738ba5526a9d6b58e19263bdfe62..1c84d15d55c1355c82dcd4ce32ffc435b8905f7c 100644 (file)
@@ -54,4 +54,4 @@ extern int    pg_reg_getnumcharacters(const regex_t *regex, int co);
 extern void pg_reg_getcharacters(const regex_t *regex, int co,
                     pg_wchar *chars, int chars_len);
 
-#endif   /* _REGEXPORT_H_ */
+#endif                         /* _REGEXPORT_H_ */
index 8d3221e4a4a91271eb86cff9425496b55a4b7558..5d0e7a961c920bee2e025d8b6bc8cb9922c16463 100644 (file)
@@ -218,7 +218,7 @@ struct colormap
    color      *locolormap;     /* simple array indexed by chr code */
 
    /* mapping data for chrs > MAX_SIMPLE_CHR: */
-   int         classbits[NUM_CCLASSES];        /* see comment above */
+   int         classbits[NUM_CCLASSES];    /* see comment above */
    int         numcmranges;    /* number of colormapranges */
    colormaprange *cmranges;    /* ranges of high chrs */
    color      *hicolormap;     /* 2-D array of color entries */
index bbd446904fa5021494774bcd6ac9aeb79b5cfe6e..1a165c860b4695ad12b037e22eb1ad2d75cb3945 100644 (file)
@@ -33,4 +33,4 @@ extern void SendBaseBackup(BaseBackupCmd *cmd);
 
 extern int64 sendTablespace(char *path, bool sizeonly);
 
-#endif   /* _BASEBACKUP_H */
+#endif                         /* _BASEBACKUP_H */
index 4f3e89e061906a35c463a1359d11187d00665a9e..aac7d326e22cf2d1cbe3dc9cca42f0384b7327b9 100644 (file)
@@ -26,4 +26,4 @@ extern void AtEOXact_ApplyLauncher(bool isCommit);
 
 extern bool IsLogicalLauncher(void);
 
-#endif   /* LOGICALLAUNCHER_H */
+#endif                         /* LOGICALLAUNCHER_H */
index e7679e29edfb5bcfd7e698e237e82ee2472c49c7..191b03772fb30376d4d936c4b9555fc0f5eb7e40 100644 (file)
@@ -103,4 +103,4 @@ extern LogicalRepRelation *logicalrep_read_rel(StringInfo in);
 extern void logicalrep_write_typ(StringInfo out, Oid typoid);
 extern void logicalrep_read_typ(StringInfo out, LogicalRepTyp *ltyp);
 
-#endif   /* LOGICALREP_PROTO_H */
+#endif                         /* LOGICALREP_PROTO_H */
index 3b814d3b2b531d7f0889a4c88ab8a92394f3cb48..835270565027276f2ab1330eb7a62305724b2ef7 100644 (file)
@@ -16,7 +16,7 @@
 
 typedef struct LogicalRepRelMapEntry
 {
-   LogicalRepRelation remoterel;       /* key is remoterel.remoteid */
+   LogicalRepRelation remoterel;   /* key is remoterel.remoteid */
 
    /* Mapping to local relation, filled as needed. */
    Oid         localreloid;    /* local relation id */
@@ -39,4 +39,4 @@ extern void logicalrep_rel_close(LogicalRepRelMapEntry *rel,
 extern void logicalrep_typmap_update(LogicalRepTyp *remotetyp);
 extern Oid logicalrep_typmap_getid(Oid remoteid);
 
-#endif   /* LOGICALRELATION_H */
+#endif                         /* LOGICALRELATION_H */
index 5877a930f68ca635c68c25fa031a28e09b824b80..2557d5a23bb3745dcb6c1874e322be3e129e469e 100644 (file)
@@ -16,4 +16,4 @@ extern void ApplyWorkerMain(Datum main_arg);
 
 extern bool IsLogicalWorker(void);
 
-#endif   /* LOGICALWORKER_H */
+#endif                         /* LOGICALWORKER_H */
index b016af7bd77717179ce2881ab8f8d2155d409b2d..1f2d0bb5353658c1f48250288398f8a9c28a9281 100644 (file)
@@ -39,4 +39,4 @@ void      logicalmsg_redo(XLogReaderState *record);
 void       logicalmsg_desc(StringInfo buf, XLogReaderState *record);
 const char *logicalmsg_identify(uint8 info);
 
-#endif   /* PG_LOGICAL_MESSAGE_H */
+#endif                         /* PG_LOGICAL_MESSAGE_H */
index d6b8eb9d80cd328c065f74e8ab6a3951ad9be456..ca56c01469f811a557627ed84b19906e814afc88 100644 (file)
@@ -71,4 +71,4 @@ const char *replorigin_identify(uint8 info);
 extern Size ReplicationOriginShmemSize(void);
 extern void ReplicationOriginShmemInit(void);
 
-#endif   /* PG_ORIGIN_H */
+#endif                         /* PG_ORIGIN_H */
index 511216a295afe5b7b8571b733404ef426052e3be..26ff024882e7f49c9fcc88f943fefa10f49d7968 100644 (file)
@@ -108,4 +108,4 @@ extern void OutputPluginPrepareWrite(struct LogicalDecodingContext *ctx, bool la
 extern void OutputPluginWrite(struct LogicalDecodingContext *ctx, bool last_write);
 extern void OutputPluginUpdateProgress(struct LogicalDecodingContext *ctx);
 
-#endif   /* OUTPUT_PLUGIN_H */
+#endif                         /* OUTPUT_PLUGIN_H */
index 8cd29ab1641e269c5954ca0c26f64f5afe286cd9..bfe8448ba9887e5e30f930fb2352879932bcfd00 100644 (file)
@@ -27,4 +27,4 @@ typedef struct PGOutputData
    List       *publications;
 } PGOutputData;
 
-#endif   /* PGOUTPUT_H */
+#endif                         /* PGOUTPUT_H */
index 9a2dbd7b61c54cde8a3ab4df481562141b8c25f4..a283f4e2b860c966776582988ccace122bfdfc73 100644 (file)
@@ -184,4 +184,4 @@ extern void CheckPointReplicationSlots(void);
 
 extern void CheckSlotRequirements(void);
 
-#endif   /* SLOT_H */
+#endif                         /* SLOT_H */
index dc676a0ce2e06d3169834b2cd19fbefe22229f43..7653717f83fe051b8a9938f4afcf526fbaa6f483 100644 (file)
@@ -87,4 +87,4 @@ extern void SnapBuildProcessRunningXacts(SnapBuild *builder, XLogRecPtr lsn,
                             struct xl_running_xacts *running);
 extern void SnapBuildSerializationPoint(SnapBuild *builder, XLogRecPtr lsn);
 
-#endif   /* SNAPBUILD_H */
+#endif                         /* SNAPBUILD_H */
index 1676ea09520d4c5c80f41a10e0170088142ea32b..ceafe2cbea1b9968d112463ef6d78f2c127c8dcb 100644 (file)
@@ -94,4 +94,4 @@ extern void syncrep_yyerror(const char *str);
 extern void syncrep_scanner_init(const char *query_string);
 extern void syncrep_scanner_finish(void);
 
-#endif   /* _SYNCREP_H */
+#endif                         /* _SYNCREP_H */
index 68a813895b604e3eb9d1e050055309e7f4e8894c..c8652dbd489246f21c51920999e9319a9c902ed6 100644 (file)
@@ -153,7 +153,7 @@ typedef struct
        struct
        {
            uint32      proto_version;  /* Logical protocol version */
-           List       *publication_names;      /* String list of publications */
+           List       *publication_names;  /* String list of publications */
        }           logical;
    }           proto;
 } WalRcvStreamOptions;
@@ -298,4 +298,4 @@ extern int  GetReplicationApplyDelay(void);
 extern int GetReplicationTransferLatency(void);
 extern void WalRcvForceReply(void);
 
-#endif   /* _WALRECEIVER_H */
+#endif                         /* _WALRECEIVER_H */
index c50e450ec2a897be716288ca913190ec524d65d5..1f20db827a84ba0740bc68d5795b04b17e363e92 100644 (file)
@@ -72,4 +72,4 @@ extern void WalSndRqstFileReload(void);
        }                                   \
    } while (0)
 
-#endif   /* _WALSENDER_H */
+#endif                         /* _WALSENDER_H */
index 36311e124c4e0f098d0f88980d07086827b8dd38..0aa80d5c3e28d189755a019a33f3fdf02808f895 100644 (file)
@@ -114,4 +114,4 @@ extern void replication_scanner_finish(void);
 
 extern Node *replication_parse_result;
 
-#endif   /* _WALSENDER_PRIVATE_H */
+#endif                         /* _WALSENDER_PRIVATE_H */
index 2bfff5c1205dc499f845f2b725db56473773ab51..494a3a3d087d2dea9cccb5b2bfd3a0fbc40e5905 100644 (file)
@@ -90,4 +90,4 @@ am_tablesync_worker(void)
    return OidIsValid(MyLogicalRepWorker->relid);
 }
 
-#endif   /* WORKER_INTERNAL_H */
+#endif                         /* WORKER_INTERNAL_H */
index 36dca02a7e3e07b92a2229b23fda8ec64a661fd8..419d140bd508a60c65bf0c260fd96cf0b6a112d6 100644 (file)
@@ -43,4 +43,4 @@ typedef struct RuleLock
    RewriteRule **rules;
 } RuleLock;
 
-#endif   /* REWRITE_H */
+#endif                         /* REWRITE_H */
index 54957009705816f7de3695c2aa1e9d5deb94e3cc..2e25288bb4b02bb80351ee6c81ca1a80a2bb7ead 100644 (file)
@@ -41,4 +41,4 @@ extern void setRuleCheckAsUser(Node *node, Oid userid);
 extern void EnableDisableRule(Relation rel, const char *rulename,
                  char fires_when);
 
-#endif   /* REWRITEDEFINE_H */
+#endif                         /* REWRITEDEFINE_H */
index 9857b4823b879768a768e74cf95a38c86f31f660..494fa29f10e1a888c63f425c1447cdde745de795 100644 (file)
@@ -30,4 +30,4 @@ extern int relation_is_updatable(Oid reloid,
                      bool include_triggers,
                      Bitmapset *include_cols);
 
-#endif   /* REWRITEHANDLER_H */
+#endif                         /* REWRITEHANDLER_H */
index 3910bceb2aa7f4a03cd574ef3fd04747233f5beb..c76538c1338d77c937d3ef99eeb9d0ee330ddef8 100644 (file)
@@ -28,7 +28,7 @@ struct replace_rte_variables_context
    void       *callback_arg;   /* context data for callback function */
    int         target_varno;   /* RTE index to search for */
    int         sublevels_up;   /* (current) nesting depth */
-   bool        inserted_sublink;       /* have we inserted a SubLink? */
+   bool        inserted_sublink;   /* have we inserted a SubLink? */
 };
 
 typedef enum ReplaceVarsNoMatchOption
@@ -82,4 +82,4 @@ extern Node *ReplaceVarsFromTargetList(Node *node,
                          int nomatch_varno,
                          bool *outer_hasSubLinks);
 
-#endif   /* REWRITEMANIP_H */
+#endif                         /* REWRITEMANIP_H */
index 28c9be72dbc0584c199064e920b8866e899566b6..d7d53b013720fbfa25fcda525460911d4e6685b2 100644 (file)
@@ -18,4 +18,4 @@
 
 extern void RemoveRewriteRuleById(Oid ruleOid);
 
-#endif   /* REWRITEREMOVE_H */
+#endif                         /* REWRITEREMOVE_H */
index d287bbda7891c25705d6d306bbc50c6ad02c9540..60800aae2509127da7bd2d4550462c2faf847030 100644 (file)
@@ -23,4 +23,4 @@ extern void SetRelationRuleStatus(Oid relationId, bool relHasRules);
 
 extern Oid get_rewrite_oid(Oid relid, const char *rulename, bool missing_ok);
 
-#endif   /* REWRITESUPPORT_H */
+#endif                         /* REWRITESUPPORT_H */
index 260a79c3d28b9f3ca764a07a42ce2bf8c93260e9..0dbc1a4beed114cae041bb6c2ae295253aac1494 100644 (file)
@@ -46,4 +46,4 @@ extern void get_row_security_policies(Query *root,
                          List **securityQuals, List **withCheckOptions,
                          bool *hasRowSecurity, bool *hasSubLinks);
 
-#endif   /* ROWSECURITY_H */
+#endif                         /* ROWSECURITY_H */
index 9027b89bf048dbff36d23eff900b1ae2d2288686..f54f66e6f3e168990eb659ded46db92661cc782a 100644 (file)
@@ -31,4 +31,4 @@ struct rusage
 
 extern int getrusage(int who, struct rusage *rusage);
 
-#endif   /* RUSAGESTUB_H */
+#endif                         /* RUSAGESTUB_H */
index d8be02ee609e5ae548c20db0e6c8b64b76677e8d..10acf4c53df8dbce17d60fff7077def8cec63012 100644 (file)
@@ -64,4 +64,4 @@
 #endif
 #define free(a)            pfree(a)
 
-#endif   /* SNOWBALL_HEADR_H */
+#endif                         /* SNOWBALL_HEADR_H */
index dc72e2f4798cea2ab5cb68bbbb84915f522c0009..738ff3fadc244dad7972afad88f41f4d73e9264a 100644 (file)
@@ -66,4 +66,4 @@ extern int multi_sort_compare_dim(int dim, const SortItem *a,
 extern int multi_sort_compare_dims(int start, int end, const SortItem *a,
                        const SortItem *b, MultiSortSupport mss);
 
-#endif   /* EXTENDED_STATS_INTERNAL_H */
+#endif                         /* EXTENDED_STATS_INTERNAL_H */
index 87bf3d82cab6e1032671c7ccae2d98acce3c03dd..1d68c39df0583062ff3f30ed79d02159450d86c5 100644 (file)
@@ -16,7 +16,7 @@
 #include "commands/vacuum.h"
 #include "nodes/relation.h"
 
-#define STATS_MAX_DIMENSIONS   8       /* max number of attributes */
+#define STATS_MAX_DIMENSIONS   8   /* max number of attributes */
 
 /* Multivariate distinct coefficients */
 #define STATS_NDISTINCT_MAGIC      0xA352BFA4  /* struct identifier */
@@ -49,8 +49,8 @@ typedef struct MVNDistinct
 /* size of the struct excluding the items array */
 #define SizeOfMVNDistinct  (offsetof(MVNDistinct, nitems) + sizeof(uint32))
 
-#define STATS_DEPS_MAGIC       0xB4549A2C      /* marks serialized bytea */
-#define STATS_DEPS_TYPE_BASIC  1       /* basic dependencies type */
+#define STATS_DEPS_MAGIC       0xB4549A2C  /* marks serialized bytea */
+#define STATS_DEPS_TYPE_BASIC  1   /* basic dependencies type */
 
 /*
  * Functional dependencies, tracking column-level relationships (values
@@ -60,7 +60,7 @@ typedef struct MVDependency
 {
    double      degree;         /* degree of validity (0-1) */
    AttrNumber  nattributes;    /* number of attributes */
-   AttrNumber  attributes[FLEXIBLE_ARRAY_MEMBER];      /* attribute numbers */
+   AttrNumber  attributes[FLEXIBLE_ARRAY_MEMBER];  /* attribute numbers */
 } MVDependency;
 
 /* size of the struct excluding the deps array */
@@ -96,4 +96,4 @@ extern bool has_stats_of_kind(List *stats, char requiredkind);
 extern StatisticExtInfo *choose_best_statistics(List *stats,
                       Bitmapset *attnums, char requiredkind);
 
-#endif   /* STATISTICS_H */
+#endif                         /* STATISTICS_H */
index 9d1fc500820fcc6f1460f8488177a5098ad046f5..bf31ba4f4802308a1ec25b2881675f9c59b43dd4 100644 (file)
@@ -22,7 +22,7 @@ typedef int BackendId;            /* unique currently active backend identifier */
 
 #define InvalidBackendId       (-1)
 
-extern PGDLLIMPORT BackendId MyBackendId;      /* backend id of this backend */
+extern PGDLLIMPORT BackendId MyBackendId;  /* backend id of this backend */
 
 /* backend id of our parallel session leader, or InvalidBackendId if none */
 extern PGDLLIMPORT BackendId ParallelMasterBackendId;
@@ -34,4 +34,4 @@ extern PGDLLIMPORT BackendId ParallelMasterBackendId;
 #define BackendIdForTempRelations() \
    (ParallelMasterBackendId == InvalidBackendId ? MyBackendId : ParallelMasterBackendId)
 
-#endif   /* BACKENDID_H */
+#endif                         /* BACKENDID_H */
index ec847bbb7a46e74edf2df60e9043265725b880dd..33840798a8575c70a86042c755537cf0c6e2b0d2 100644 (file)
@@ -118,4 +118,4 @@ typedef BlockIdData *BlockId;   /* block identifier */
    (BlockNumber) (((blockId)->bi_hi << 16) | ((uint16) (blockId)->bi_lo)) \
 )
 
-#endif   /* BLOCK_H */
+#endif                         /* BLOCK_H */
index ac33b83b4b6473ddac5344e568c53a1a9bb31b30..054f482bd779c4cf80f6956ef3874b80db6b4838 100644 (file)
@@ -43,4 +43,4 @@ typedef int Buffer;
  */
 typedef struct BufferAccessStrategyData *BufferAccessStrategy;
 
-#endif   /* BUF_H */
+#endif                         /* BUF_H */
index ff99f6b5e205af28533c6542ab94b769f3e82607..b768b6fc962371d631ef847d3d7047bf3a4465f1 100644 (file)
  * Note: TAG_VALID essentially means that there is a buffer hashtable
  * entry associated with the buffer's tag.
  */
-#define BM_LOCKED              (1U << 22)      /* buffer header is locked */
-#define BM_DIRTY               (1U << 23)      /* data needs writing */
-#define BM_VALID               (1U << 24)      /* data is valid */
-#define BM_TAG_VALID           (1U << 25)      /* tag is assigned */
-#define BM_IO_IN_PROGRESS      (1U << 26)      /* read or write in progress */
-#define BM_IO_ERROR                (1U << 27)      /* previous I/O failed */
-#define BM_JUST_DIRTIED            (1U << 28)      /* dirtied since write started */
-#define BM_PIN_COUNT_WAITER        (1U << 29)      /* have waiter for sole pin */
-#define BM_CHECKPOINT_NEEDED   (1U << 30)      /* must write for checkpoint */
-#define BM_PERMANENT           (1U << 31)      /* permanent buffer (not
-                                                * unlogged, or init fork) */
+#define BM_LOCKED              (1U << 22)  /* buffer header is locked */
+#define BM_DIRTY               (1U << 23)  /* data needs writing */
+#define BM_VALID               (1U << 24)  /* data is valid */
+#define BM_TAG_VALID           (1U << 25)  /* tag is assigned */
+#define BM_IO_IN_PROGRESS      (1U << 26)  /* read or write in progress */
+#define BM_IO_ERROR                (1U << 27)  /* previous I/O failed */
+#define BM_JUST_DIRTIED            (1U << 28)  /* dirtied since write started */
+#define BM_PIN_COUNT_WAITER        (1U << 29)  /* have waiter for sole pin */
+#define BM_CHECKPOINT_NEEDED   (1U << 30)  /* must write for checkpoint */
+#define BM_PERMANENT           (1U << 31)  /* permanent buffer (not unlogged,
+                                            * or init fork) */
 /*
  * The maximum allowed value of usage_count represents a tradeoff between
  * accuracy and speed of the clock-sweep buffer management algorithm.  A
@@ -183,7 +183,7 @@ typedef struct BufferDesc
    /* state of the tag, containing flags, refcount and usagecount */
    pg_atomic_uint32 state;
 
-   int         wait_backend_pid;       /* backend PID of pin-count waiter */
+   int         wait_backend_pid;   /* backend PID of pin-count waiter */
    int         freeNext;       /* link in freelist chain */
 
    LWLock      content_lock;   /* to lock access to buffer contents */
@@ -337,4 +337,4 @@ extern void DropRelFileNodeLocalBuffers(RelFileNode rnode, ForkNumber forkNum,
 extern void DropRelFileNodeAllLocalBuffers(RelFileNode rnode);
 extern void AtEOXact_LocalBuffers(bool isCommit);
 
-#endif   /* BUFMGR_INTERNALS_H */
+#endif                         /* BUFMGR_INTERNALS_H */
index fe00bf0c31e71312b5a0f3ee114d5c79268f8184..fafcb3f0898127daa9e13b6d7914c832ed98506b 100644 (file)
@@ -42,4 +42,4 @@ extern int    BufFileSeek(BufFile *file, int fileno, off_t offset, int whence);
 extern void BufFileTell(BufFile *file, int *fileno, off_t *offset);
 extern int BufFileSeekBlock(BufFile *file, long blknum);
 
-#endif   /* BUFFILE_H */
+#endif                         /* BUFFILE_H */
index 07a32d6dfcf537d64baaa8bd1e1ce22b9ff9cff7..98b63fc5bacc528cbfc6fafa34c1d0db71ffa343 100644 (file)
@@ -79,7 +79,7 @@ extern PGDLLIMPORT int32 *LocalRefCount;
 #define MAX_IO_CONCURRENCY 1000
 
 /* special block number for ReadBuffer() */
-#define P_NEW  InvalidBlockNumber      /* grow the file to get a new page */
+#define P_NEW  InvalidBlockNumber  /* grow the file to get a new page */
 
 /*
  * Buffer content lock modes (mode argument for LockBuffer())
@@ -275,6 +275,6 @@ TestForOldSnapshot(Snapshot snapshot, Relation relation, Page page)
        TestForOldSnapshot_impl(snapshot, relation);
 }
 
-#endif   /* FRONTEND */
+#endif                         /* FRONTEND */
 
-#endif   /* BUFMGR_H */
+#endif                         /* BUFMGR_H */
index e956dc33860f289120d512642a5e9e4aba7f6f67..50c72a3c8d02638b52ed89e7ae0f87f08ebdf1e7 100644 (file)
@@ -173,13 +173,12 @@ typedef PageHeaderData *PageHeader;
  * page for its new tuple version; this suggests that a prune is needed.
  * Again, this is just a hint.
  */
-#define PD_HAS_FREE_LINES  0x0001      /* are there any unused line pointers? */
-#define PD_PAGE_FULL       0x0002      /* not enough free space for new
-                                        * tuple? */
-#define PD_ALL_VISIBLE     0x0004      /* all tuples on page are visible to
-                                        * everyone */
+#define PD_HAS_FREE_LINES  0x0001  /* are there any unused line pointers? */
+#define PD_PAGE_FULL       0x0002  /* not enough free space for new tuple? */
+#define PD_ALL_VISIBLE     0x0004  /* all tuples on page are visible to
+                                    * everyone */
 
-#define PD_VALID_FLAG_BITS 0x0007      /* OR of all valid pd_flags bits */
+#define PD_VALID_FLAG_BITS 0x0007  /* OR of all valid pd_flags bits */
 
 /*
  * Page layout version number 0 is for pre-7.3 Postgres releases.
@@ -436,4 +435,4 @@ extern bool PageIndexTupleOverwrite(Page page, OffsetNumber offnum,
 extern char *PageSetChecksumCopy(Page page, BlockNumber blkno);
 extern void PageSetChecksumInplace(Page page, BlockNumber blkno);
 
-#endif   /* BUFPAGE_H */
+#endif                         /* BUFPAGE_H */
index 682043f8e720582509c519c1df6c9eaee25cc43d..b85f714712d1af9855fc186172142653da51fbae 100644 (file)
@@ -21,4 +21,4 @@
  */
 extern uint16 pg_checksum_page(char *page, BlockNumber blkno);
 
-#endif   /* CHECKSUM_H */
+#endif                         /* CHECKSUM_H */
index 89f5d5804bd8881f3ebcfd0c3c4fd12f524328cf..f77c0b22adf5ed1785adb3094c0a3815bfefe1e0 100644 (file)
@@ -56,4 +56,4 @@ extern void ConditionVariablePrepareToSleep(ConditionVariable *);
 extern bool ConditionVariableSignal(ConditionVariable *);
 extern int ConditionVariableBroadcast(ConditionVariable *);
 
-#endif   /* CONDITION_VARIABLE_H */
+#endif                         /* CONDITION_VARIABLE_H */
index c3722b4033be3ca238a81a9add3b632c842baeea..f88a0445097a9edb4104c1ca161f12ee45144157 100644 (file)
@@ -16,4 +16,4 @@
 extern void copydir(char *fromdir, char *todir, bool recurse);
 extern void copy_file(char *fromfile, char *tofile);
 
-#endif   /* COPYDIR_H */
+#endif                         /* COPYDIR_H */
index 7d1250c1e05f374f2c15c350d167549e3739023c..31b1f4da9c2c378e9978b05eb2b39ceac42a96da 100644 (file)
@@ -60,4 +60,4 @@ extern void cancel_on_dsm_detach(dsm_segment *seg,
                     on_dsm_detach_callback function, Datum arg);
 extern void reset_on_dsm_detach(void);
 
-#endif   /* DSM_H */
+#endif                         /* DSM_H */
index 51c217899d8d1beb510bc866897899c80ea676c5..c2060431ba4315d63264f4e48f67e67ec2cb0c59 100644 (file)
@@ -77,4 +77,4 @@ extern void dsm_impl_pin_segment(dsm_handle handle, void *impl_private,
                     void **impl_private_pm_handle);
 extern void dsm_impl_unpin_segment(dsm_handle handle, void **impl_private);
 
-#endif   /* DSM_IMPL_H */
+#endif                         /* DSM_IMPL_H */
index 05680499e4e532c61e6e832815a2f41839ee184f..faef39e78d3b7a55be18f21b94a07eb398778d6e 100644 (file)
@@ -127,4 +127,4 @@ extern void SyncDataDirectory(void);
 #define PG_TEMP_FILES_DIR "pgsql_tmp"
 #define PG_TEMP_FILE_PREFIX "pgsql_tmp"
 
-#endif   /* FD_H */
+#endif                         /* FD_H */
index 9a5c9f4be429eed897e94139ccd8d9e3cfa698bd..d110f006af765d24e5bc85206db0625239716718 100644 (file)
@@ -37,4 +37,4 @@ extern void UpdateFreeSpaceMap(Relation rel,
                   BlockNumber endBlkNum,
                   Size freespace);
 
-#endif   /* FREESPACE_H_ */
+#endif                         /* FREESPACE_H_ */
index 4eb3fc12b1a007166eb8c50c730408856059c7e4..722e6491230cde4ff7bb4eb55401d20ce81724f9 100644 (file)
@@ -69,4 +69,4 @@ extern bool fsm_set_avail(Page page, int slot, uint8 value);
 extern bool fsm_truncate_avail(Page page, int nslots);
 extern bool fsm_rebuild_page(Page page);
 
-#endif   /* FSM_INTERNALS_H */
+#endif                         /* FSM_INTERNALS_H */
index b256ee6aeffe2c15c139a86f1f6ae17212b82af4..f8045f0df8eee07a1d9053f93c277252517fd1d7 100644 (file)
@@ -23,4 +23,4 @@ extern void RecordUsedIndexPage(Relation rel, BlockNumber page);
 
 extern void IndexFreeSpaceMapVacuum(Relation rel);
 
-#endif   /* INDEXFSM_H_ */
+#endif                         /* INDEXFSM_H_ */
index 8d5a6b2698885476dfcdce4cc45bbcb624ebd8ec..bde635f502a0bdc05b2b2d1efd3d8ec0d4af69af 100644 (file)
@@ -77,4 +77,4 @@ extern PGDLLIMPORT shmem_startup_hook_type shmem_startup_hook;
 
 extern void CreateSharedMemoryAndSemaphores(bool makePrivate, int port);
 
-#endif   /* IPC_H */
+#endif                         /* IPC_H */
index d19e19e01b69cf694c0f5511b01daee347d29cb9..72426a2d48ddf898fcafa125da8b71c015dfa51b 100644 (file)
@@ -16,4 +16,4 @@
 
 typedef Pointer Item;
 
-#endif   /* ITEM_H */
+#endif                         /* ITEM_H */
index af77852cc03c5bbe9fbd2cec6846aac8fdaed849..2ec86b57fc473aaedcffb50d5152c62cc8c1120b 100644 (file)
@@ -180,4 +180,4 @@ typedef uint16 ItemLength;
    (itemId)->lp_flags = LP_DEAD \
 )
 
-#endif   /* ITEMID_H */
+#endif                         /* ITEMID_H */
index 74b2f3cbf20f13ae2bee77e930b1f3622e295ecf..8f8e22444a1adb35147f0edee79b2aec31e41d9c 100644 (file)
@@ -162,4 +162,4 @@ typedef ItemPointerData *ItemPointer;
 extern bool ItemPointerEquals(ItemPointer pointer1, ItemPointer pointer2);
 extern int32 ItemPointerCompare(ItemPointer arg1, ItemPointer arg2);
 
-#endif   /* ITEMPTR_H */
+#endif                         /* ITEMPTR_H */
index fc55019b98802d1d701a3a674018e94ee5b05ad0..796a8fdeea732bf118ddd6ab51ef472a95ccdf5e 100644 (file)
@@ -94,4 +94,4 @@ extern int    inv_read(LargeObjectDesc *obj_desc, char *buf, int nbytes);
 extern int inv_write(LargeObjectDesc *obj_desc, const char *buf, int nbytes);
 extern void inv_truncate(LargeObjectDesc *obj_desc, int64 len);
 
-#endif   /* LARGE_OBJECT_H */
+#endif                         /* LARGE_OBJECT_H */
index 3158d7bec69fde712731409a8f7727a4ccb2ce46..73abfafec5642be73019d08584f997ec17de3de9 100644 (file)
@@ -176,4 +176,4 @@ extern void latch_sigusr1_handler(void);
 #define latch_sigusr1_handler()  ((void) 0)
 #endif
 
-#endif   /* LATCH_H */
+#endif                         /* LATCH_H */
index 2a1244c836c103f45c2cc6a645a270420fc52490..0b923227a223028fb8143b685edaa67cf686faa5 100644 (file)
@@ -106,4 +106,4 @@ extern void DescribeLockTag(StringInfo buf, const LOCKTAG *tag);
 
 extern const char *GetLockNameFromTagType(uint16 locktag_type);
 
-#endif   /* LMGR_H */
+#endif                         /* LMGR_H */
index ad257be9507306a4dc3722a6d936bbb0f96458d1..765431e2997935f03220a0f48b234804144f4bf5 100644 (file)
@@ -42,7 +42,7 @@ extern bool Trace_locks;
 extern bool Trace_userlocks;
 extern int Trace_lock_table;
 extern bool Debug_deadlocks;
-#endif   /* LOCK_DEBUG */
+#endif                         /* LOCK_DEBUG */
 
 
 /*
@@ -63,8 +63,7 @@ extern bool Debug_deadlocks;
 typedef struct
 {
    BackendId   backendId;      /* determined at backend startup */
-   LocalTransactionId localTransactionId;      /* backend-local transaction
-                                                * id */
+   LocalTransactionId localTransactionId;  /* backend-local transaction id */
 } VirtualTransactionId;
 
 #define InvalidLocalTransactionId      0
@@ -292,7 +291,7 @@ typedef struct LOCK
    LOCKMASK    waitMask;       /* bitmask for lock types awaited */
    SHM_QUEUE   procLocks;      /* list of PROCLOCK objects assoc. with lock */
    PROC_QUEUE  waitProcs;      /* list of PGPROC objects waiting on lock */
-   int         requested[MAX_LOCKMODES];       /* counts of requested locks */
+   int         requested[MAX_LOCKMODES];   /* counts of requested locks */
    int         nRequested;     /* total of requested[] array */
    int         granted[MAX_LOCKMODES]; /* counts of granted locks */
    int         nGranted;       /* total of granted[] array */
@@ -586,4 +585,4 @@ extern void VirtualXactLockTableInsert(VirtualTransactionId vxid);
 extern void VirtualXactLockTableCleanup(void);
 extern bool VirtualXactLock(VirtualTransactionId vxid, bool wait);
 
-#endif   /* LOCK_H */
+#endif                         /* LOCK_H */
index bfeb8779f7fd628012468209c2e8f7f4a273a4ab..fe9f7cb31097539538d37ed4f2714d9867467ef2 100644 (file)
@@ -33,18 +33,17 @@ typedef int LOCKMODE;
 /* NoLock is not a lock mode, but a flag value meaning "don't get a lock" */
 #define NoLock                 0
 
-#define AccessShareLock            1       /* SELECT */
-#define RowShareLock           2       /* SELECT FOR UPDATE/FOR SHARE */
-#define RowExclusiveLock       3       /* INSERT, UPDATE, DELETE */
-#define ShareUpdateExclusiveLock 4     /* VACUUM (non-FULL),ANALYZE, CREATE
-                                        * INDEX CONCURRENTLY */
-#define ShareLock              5       /* CREATE INDEX (WITHOUT CONCURRENTLY) */
-#define ShareRowExclusiveLock  6       /* like EXCLUSIVE MODE, but allows ROW
-                                        * SHARE */
-#define ExclusiveLock          7       /* blocks ROW SHARE/SELECT...FOR
-                                        * UPDATE */
-#define AccessExclusiveLock        8       /* ALTER TABLE, DROP TABLE, VACUUM
-                                        * FULL, and unqualified LOCK TABLE */
+#define AccessShareLock            1   /* SELECT */
+#define RowShareLock           2   /* SELECT FOR UPDATE/FOR SHARE */
+#define RowExclusiveLock       3   /* INSERT, UPDATE, DELETE */
+#define ShareUpdateExclusiveLock 4 /* VACUUM (non-FULL),ANALYZE, CREATE INDEX
+                                    * CONCURRENTLY */
+#define ShareLock              5   /* CREATE INDEX (WITHOUT CONCURRENTLY) */
+#define ShareRowExclusiveLock  6   /* like EXCLUSIVE MODE, but allows ROW
+                                    * SHARE */
+#define ExclusiveLock          7   /* blocks ROW SHARE/SELECT...FOR UPDATE */
+#define AccessExclusiveLock        8   /* ALTER TABLE, DROP TABLE, VACUUM FULL,
+                                    * and unqualified LOCK TABLE */
 
 typedef struct xl_standby_lock
 {
@@ -53,4 +52,4 @@ typedef struct xl_standby_lock
    Oid         relOid;
 } xl_standby_lock;
 
-#endif   /* LOCKDEF_H_ */
+#endif                         /* LOCKDEF_H_ */
index c53488800c358b0ca2dba6da3fd9768fe202ea0c..3d16132c88f4ec388dd5174c03fa4ecc3bd9e07a 100644 (file)
@@ -223,4 +223,4 @@ typedef enum BuiltinTrancheIds
  */
 typedef LWLock *LWLockId;
 
-#endif   /* LWLOCK_H */
+#endif                         /* LWLOCK_H */
index fe8638fe156c0526ea1f71fb4737dc7d84b91b7a..7228808b941b5d6e74b85a188f4785d30f09a683 100644 (file)
@@ -26,7 +26,7 @@ typedef uint16 OffsetNumber;
 #define InvalidOffsetNumber        ((OffsetNumber) 0)
 #define FirstOffsetNumber      ((OffsetNumber) 1)
 #define MaxOffsetNumber            ((OffsetNumber) (BLCKSZ / sizeof(ItemIdData)))
-#define OffsetNumberMask       (0xffff)        /* valid uint16 bits */
+#define OffsetNumberMask       (0xffff)    /* valid uint16 bits */
 
 /* ----------------
  *     support macros
@@ -55,4 +55,4 @@ typedef uint16 OffsetNumber;
 #define OffsetNumberPrev(offsetNumber) \
    ((OffsetNumber) (-1 + (offsetNumber)))
 
-#endif   /* OFF_H */
+#endif                         /* OFF_H */
index b819f41d1927265ff616502de317238f0564bf13..65db86f57816478bf2510a9d70c983e2237b8bae 100644 (file)
@@ -58,4 +58,4 @@ extern void PGSemaphoreUnlock(PGSemaphore sema);
 /* Lock a semaphore only if able to do so without blocking */
 extern bool PGSemaphoreTryLock(PGSemaphore sema);
 
-#endif   /* PG_SEMA_H */
+#endif                         /* PG_SEMA_H */
index 7a76c087874dda9984d14771d9baadeca8f660d9..e3ee096229e1b7704c7bf2b54b1128c02bc6944d 100644 (file)
@@ -69,4 +69,4 @@ extern PGShmemHeader *PGSharedMemoryCreate(Size size, bool makePrivate,
 extern bool PGSharedMemoryIsInUse(unsigned long id1, unsigned long id2);
 extern void PGSharedMemoryDetach(void);
 
-#endif   /* PG_SHMEM_H */
+#endif                         /* PG_SHMEM_H */
index 90ddfa3b311ecd901915d5ab897c11fb66b80c28..4b954d76145e38573f9c50bbe78f9bc0719080c1 100644 (file)
@@ -27,10 +27,10 @@ typedef enum
    PMSIGNAL_WAKEN_ARCHIVER,    /* send a NOTIFY signal to xlog archiver */
    PMSIGNAL_ROTATE_LOGFILE,    /* send SIGUSR1 to syslogger to rotate logfile */
    PMSIGNAL_START_AUTOVAC_LAUNCHER,    /* start an autovacuum launcher */
-   PMSIGNAL_START_AUTOVAC_WORKER,      /* start an autovacuum worker */
+   PMSIGNAL_START_AUTOVAC_WORKER,  /* start an autovacuum worker */
    PMSIGNAL_BACKGROUND_WORKER_CHANGE,  /* background worker state change */
    PMSIGNAL_START_WALRECEIVER, /* start a walreceiver */
-   PMSIGNAL_ADVANCE_STATE_MACHINE,     /* advance postmaster's state machine */
+   PMSIGNAL_ADVANCE_STATE_MACHINE, /* advance postmaster's state machine */
 
    NUM_PMSIGNALS               /* Must be last value of enum! */
 } PMSignalReason;
@@ -53,4 +53,4 @@ extern void MarkPostmasterChildInactive(void);
 extern void MarkPostmasterChildWalSender(void);
 extern bool PostmasterIsAlive(void);
 
-#endif   /* PMSIGNAL_H */
+#endif                         /* PMSIGNAL_H */
index 941ba7119ef1d2571ee6201e590fea78397c9255..06bcbf247194e58b47920e66b1b687e7259b9b4e 100644 (file)
@@ -74,4 +74,4 @@ extern void PredicateLockTwoPhaseFinish(TransactionId xid, bool isCommit);
 extern void predicatelock_twophase_recover(TransactionId xid, uint16 info,
                               void *recdata, uint32 len);
 
-#endif   /* PREDICATE_H */
+#endif                         /* PREDICATE_H */
index 48e6471ddcaf7e7dcbe34a9af3c0deab0204b322..89874a5c3b6e375ba0d13bd30c83578496b063c4 100644 (file)
@@ -78,10 +78,10 @@ typedef struct SERIALIZABLEXACT
    /* these values are not both interesting at the same time */
    union
    {
-       SerCommitSeqNo earliestOutConflictCommit;       /* when committed with
-                                                        * conflict out */
-       SerCommitSeqNo lastCommitBeforeSnapshot;        /* when not committed or
-                                                        * no conflict out */
+       SerCommitSeqNo earliestOutConflictCommit;   /* when committed with
+                                                    * conflict out */
+       SerCommitSeqNo lastCommitBeforeSnapshot;    /* when not committed or
+                                                    * no conflict out */
    }           SeqNo;
    SHM_QUEUE   outConflicts;   /* list of write transactions whose data we
                                 * couldn't read. */
@@ -99,18 +99,18 @@ typedef struct SERIALIZABLEXACT
 
    TransactionId topXid;       /* top level xid for the transaction, if one
                                 * exists; else invalid */
-   TransactionId finishedBefore;       /* invalid means still running; else
-                                        * the struct expires when no
-                                        * serializable xids are before this. */
+   TransactionId finishedBefore;   /* invalid means still running; else the
+                                    * struct expires when no serializable
+                                    * xids are before this. */
    TransactionId xmin;         /* the transaction's snapshot xmin */
    uint32      flags;          /* OR'd combination of values defined below */
    int         pid;            /* pid of associated process */
 } SERIALIZABLEXACT;
 
-#define SXACT_FLAG_COMMITTED           0x00000001      /* already committed */
-#define SXACT_FLAG_PREPARED                0x00000002      /* about to commit */
-#define SXACT_FLAG_ROLLED_BACK         0x00000004      /* already rolled back */
-#define SXACT_FLAG_DOOMED              0x00000008      /* will roll back */
+#define SXACT_FLAG_COMMITTED           0x00000001  /* already committed */
+#define SXACT_FLAG_PREPARED                0x00000002  /* about to commit */
+#define SXACT_FLAG_ROLLED_BACK         0x00000004  /* already rolled back */
+#define SXACT_FLAG_DOOMED              0x00000008  /* will roll back */
 /*
  * The following flag actually means that the flagged transaction has a
  * conflict out *to a transaction which committed ahead of it*.  It's hard
@@ -153,25 +153,24 @@ typedef struct PredXactListData
     * but are not needed outside the predicate.c source file. Protected by
     * SerializableXactHashLock.
     */
-   TransactionId SxactGlobalXmin;      /* global xmin for active serializable
-                                        * transactions */
+   TransactionId SxactGlobalXmin;  /* global xmin for active serializable
+                                    * transactions */
    int         SxactGlobalXminCount;   /* how many active serializable
                                         * transactions have this xmin */
-   int         WritableSxactCount;     /* how many non-read-only serializable
-                                        * transactions are active */
-   SerCommitSeqNo LastSxactCommitSeqNo;        /* a strictly monotonically
-                                                * increasing number for
-                                                * commits of serializable
-                                                * transactions */
+   int         WritableSxactCount; /* how many non-read-only serializable
+                                    * transactions are active */
+   SerCommitSeqNo LastSxactCommitSeqNo;    /* a strictly monotonically
+                                            * increasing number for commits
+                                            * of serializable transactions */
    /* Protected by SerializableXactHashLock. */
-   SerCommitSeqNo CanPartialClearThrough;      /* can clear predicate locks
-                                                * and inConflicts for
-                                                * committed transactions
-                                                * through this seq no */
+   SerCommitSeqNo CanPartialClearThrough;  /* can clear predicate locks and
+                                            * inConflicts for committed
+                                            * transactions through this seq
+                                            * no */
    /* Protected by SerializableFinishedListLock. */
    SerCommitSeqNo HavePartialClearedThrough;   /* have cleared through this
                                                 * seq no */
-   SERIALIZABLEXACT *OldCommittedSxact;        /* shared copy of dummy sxact */
+   SERIALIZABLEXACT *OldCommittedSxact;    /* shared copy of dummy sxact */
 
    PredXactListElement element;
 }          PredXactListData;
@@ -477,4 +476,4 @@ extern PredicateLockData *GetPredicateLockStatusData(void);
 extern int GetSafeSnapshotBlockingPids(int blocked_pid,
                            int *output, int output_size);
 
-#endif   /* PREDICATE_INTERNALS_H */
+#endif                         /* PREDICATE_INTERNALS_H */
index 2fbde36dad2d3491ce919d9c24631ac59a9509f7..7dbaa81a8ff9167c750aec86bedf8e6d072f5168 100644 (file)
@@ -113,7 +113,7 @@ struct PGPROC
    Oid         databaseId;     /* OID of database this backend is using */
    Oid         roleId;         /* OID of role using this backend */
 
-   bool        isBackgroundWorker;     /* true if background worker. */
+   bool        isBackgroundWorker; /* true if background worker. */
 
    /*
     * While in hot standby mode, shows that a conflict signal has been sent
@@ -176,7 +176,7 @@ struct PGPROC
 
    /* Lock manager data, recording fast-path locks taken by this backend. */
    uint64      fpLockBits;     /* lock modes held for each fast-path slot */
-   Oid         fpRelId[FP_LOCK_SLOTS_PER_BACKEND];     /* slots for rel oids */
+   Oid         fpRelId[FP_LOCK_SLOTS_PER_BACKEND]; /* slots for rel oids */
    bool        fpVXIDLock;     /* are we holding a fast-path VXID lock? */
    LocalTransactionId fpLocalTransactionId;    /* lxid for fast-path VXID
                                                 * lock */
@@ -186,7 +186,7 @@ struct PGPROC
     * leader to get the LWLock protecting these fields.
     */
    PGPROC     *lockGroupLeader;    /* lock group leader, if I'm a member */
-   dlist_head  lockGroupMembers;       /* list of members, if I'm a leader */
+   dlist_head  lockGroupMembers;   /* list of members, if I'm a leader */
    dlist_node  lockGroupLink;  /* my member link, if I'm a member */
 };
 
@@ -313,4 +313,4 @@ extern PGPROC *AuxiliaryPidGetProc(int pid);
 extern void BecomeLockGroupLeader(void);
 extern bool BecomeLockGroupMember(PGPROC *leader, int pid);
 
-#endif   /* PROC_H */
+#endif                         /* PROC_H */
index 5cf8ff753843745da59ff732c942233b1b439d43..8fa76eefb366eae11e8314e7d09b40501587833f 100644 (file)
  * to avoid forcing to include proc.h when including procarray.h. So if you modify
  * PROC_XXX flags, you need to modify these flags.
  */
-#define        PROCARRAY_VACUUM_FLAG           0x02        /* currently running
-                                                        * lazy vacuum */
-#define        PROCARRAY_ANALYZE_FLAG          0x04        /* currently running
-                                                        * analyze */
-#define        PROCARRAY_LOGICAL_DECODING_FLAG 0x10        /* currently doing
-                                                        * logical decoding
-                                                        * outside xact */
-
-#define        PROCARRAY_SLOTS_XMIN            0x20        /* replication slot
-                                                        * xmin, catalog_xmin */
+#define        PROCARRAY_VACUUM_FLAG           0x02    /* currently running lazy
+                                                    * vacuum */
+#define        PROCARRAY_ANALYZE_FLAG          0x04    /* currently running
+                                                    * analyze */
+#define        PROCARRAY_LOGICAL_DECODING_FLAG 0x10    /* currently doing logical
+                                                    * decoding outside xact */
+
+#define        PROCARRAY_SLOTS_XMIN            0x20    /* replication slot xmin,
+                                                    * catalog_xmin */
 /*
  * Only flags in PROCARRAY_PROC_FLAGS_MASK are considered when matching
  * PGXACT->vacuumFlags. Other flags are used for different purposes and
@@ -125,4 +124,4 @@ extern void ProcArraySetReplicationSlotXmin(TransactionId xmin,
 extern void ProcArrayGetReplicationSlotXmin(TransactionId *xmin,
                                TransactionId *catalog_xmin);
 
-#endif   /* PROCARRAY_H */
+#endif                         /* PROCARRAY_H */
index 8f0161bf77f206b9d5a274b0cefdab4844a16d5b..20bb05b177944c158b015183cc8e733c57eee2d9 100644 (file)
@@ -32,8 +32,7 @@ typedef enum
    PROCSIG_CATCHUP_INTERRUPT,  /* sinval catchup interrupt */
    PROCSIG_NOTIFY_INTERRUPT,   /* listen/notify interrupt */
    PROCSIG_PARALLEL_MESSAGE,   /* message from cooperating parallel backend */
-   PROCSIG_WALSND_INIT_STOPPING,       /* ask walsenders to prepare for
-                                        * shutdown  */
+   PROCSIG_WALSND_INIT_STOPPING,   /* ask walsenders to prepare for shutdown  */
 
    /* Recovery conflict reasons */
    PROCSIG_RECOVERY_CONFLICT_DATABASE,
@@ -58,4 +57,4 @@ extern int SendProcSignal(pid_t pid, ProcSignalReason reason,
 
 extern void procsignal_sigusr1_handler(SIGNAL_ARGS);
 
-#endif   /* PROCSIGNAL_H */
+#endif                         /* PROCSIGNAL_H */
index 8c1b178de426fddb5b682706f662364e94b579c1..90e494e9331463e4020eb7e5b60b3b5878c4b745 100644 (file)
@@ -20,4 +20,4 @@ extern void ResetUnloggedRelations(int op);
 #define UNLOGGED_RELATION_CLEANUP      0x0001
 #define UNLOGGED_RELATION_INIT         0x0002
 
-#endif   /* REINIT_H */
+#endif                         /* REINIT_H */
index 4dc04092d7f2a0035432cf89dc0aac734f65bcca..fb596e2ee7dd44198e593612e067140614157e70 100644 (file)
@@ -96,4 +96,4 @@ typedef struct RelFileNodeBackend
     (node1).backend == (node2).backend && \
     (node1).node.spcNode == (node2).node.spcNode)
 
-#endif   /* RELFILENODE_H */
+#endif                         /* RELFILENODE_H */
index 7a37535ab3bf42ca1bc3d3724a52b3fb08f0ea49..02a93e02222415b00539ec7e6a5b47246f03ec6c 100644 (file)
@@ -82,4 +82,4 @@ extern shm_mq_result shm_mq_wait_for_attach(shm_mq_handle *mqh);
 /* Smallest possible queue. */
 extern PGDLLIMPORT const Size shm_mq_minimum_size;
 
-#endif   /* SHM_MQ_H */
+#endif                         /* SHM_MQ_H */
index 9175a472d88b6272cd4a39e67579aa1c6c2d59f2..8ccd35d96b37fb1fa4b4c8c57f355dc43571e81e 100644 (file)
@@ -55,4 +55,4 @@ typedef struct
 
 extern Size shm_toc_estimate(shm_toc_estimator *e);
 
-#endif   /* SHM_TOC_H */
+#endif                         /* SHM_TOC_H */
index 1961832c0fd921af2e4a8db4c3afc9456d5f8e27..c6993387ffc7012d38a95ddf028b10ac7bdb09f2 100644 (file)
@@ -57,7 +57,7 @@ extern void RequestAddinShmemSpace(Size size);
 /* this is a hash bucket in the shmem index table */
 typedef struct
 {
-   char        key[SHMEM_INDEX_KEYSIZE];       /* string name */
+   char        key[SHMEM_INDEX_KEYSIZE];   /* string name */
    void       *location;       /* location in shared mem */
    Size        size;           /* # bytes allocated for the structure */
 } ShmemIndexEnt;
@@ -77,4 +77,4 @@ extern Pointer SHMQueuePrev(const SHM_QUEUE *queue, const SHM_QUEUE *curElem,
 extern bool SHMQueueEmpty(const SHM_QUEUE *queue);
 extern bool SHMQueueIsDetached(const SHM_QUEUE *queue);
 
-#endif   /* SHMEM_H */
+#endif                         /* SHMEM_H */
index 6a3db9580f742e69b5b54babbd494ab1d1c2f0b9..4e72c52d2167a37eac947dc7231246d8273a67fe 100644 (file)
@@ -151,4 +151,4 @@ extern void ProcessCommittedInvalidationMessages(SharedInvalidationMessage *msgs
 
 extern void LocalExecuteInvalidationMessage(SharedInvalidationMessage *msg);
 
-#endif   /* SINVAL_H */
+#endif                         /* SINVAL_H */
index 07ac2f8c85ad2e79d78f81197e09b76db0ca6eb1..751735fc9a80c652d71e8bfe99eb4ef96902ba3f 100644 (file)
@@ -40,4 +40,4 @@ extern void SICleanupQueue(bool callerHasWriteLock, int minFree);
 
 extern LocalTransactionId GetNextLocalTransactionId(void);
 
-#endif   /* SINVALADT_H */
+#endif                         /* SINVALADT_H */
index 9ce68296558cdc73fcf4d0d6f9ace3fbb20725c7..227913458853eacaa791fc448988917ba7ca7052 100644 (file)
@@ -40,7 +40,7 @@
 typedef struct SMgrRelationData
 {
    /* rnode is the hashtable lookup key, so it must be first! */
-   RelFileNodeBackend smgr_rnode;      /* relation physical identifier */
+   RelFileNodeBackend smgr_rnode;  /* relation physical identifier */
 
    /* pointer to owning pointer, or NULL if none */
    struct SMgrRelationData **smgr_owner;
@@ -53,7 +53,7 @@ typedef struct SMgrRelationData
     * happens.  In all three cases, InvalidBlockNumber means "unknown".
     */
    BlockNumber smgr_targblock; /* current insertion target block */
-   BlockNumber smgr_fsm_nblocks;       /* last known size of fsm fork */
+   BlockNumber smgr_fsm_nblocks;   /* last known size of fsm fork */
    BlockNumber smgr_vm_nblocks;    /* last known size of vm fork */
 
    /* additional public fields may someday exist here */
@@ -144,4 +144,4 @@ extern void RememberFsyncRequest(RelFileNode rnode, ForkNumber forknum,
 extern void ForgetRelationFsyncRequests(RelFileNode rnode, ForkNumber forknum);
 extern void ForgetDatabaseFsyncRequests(Oid dbid);
 
-#endif   /* SMGR_H */
+#endif                         /* SMGR_H */
index 8987c90537086eb2f3ad9550b2652c8684433dc4..66698645c2d2dab38ac8cdb02850f86895fd0391 100644 (file)
@@ -74,4 +74,4 @@ extern void SpinlockSemaInit(void);
 extern PGSemaphore *SpinlockSemaArray;
 #endif
 
-#endif   /* SPIN_H */
+#endif                         /* SPIN_H */
index 3ecc446083bb5b555dcadf7c37ed20a27a6f0d04..f5404b4c1f44eb2d804008ba18b6919b52756574 100644 (file)
@@ -73,7 +73,7 @@ typedef struct RunningTransactionsData
    int         subxcnt;        /* # of subxact ids in xids[] */
    bool        subxid_overflow;    /* snapshot overflowed, subxids missing */
    TransactionId nextXid;      /* copy of ShmemVariableCache->nextXid */
-   TransactionId oldestRunningXid;     /* *not* oldestXmin */
+   TransactionId oldestRunningXid; /* *not* oldestXmin */
    TransactionId latestCompletedXid;   /* so we can set xmax */
 
    TransactionId *xids;        /* array of (sub)xids still running */
@@ -88,4 +88,4 @@ extern XLogRecPtr LogStandbySnapshot(void);
 extern void LogStandbyInvalidations(int nmsgs, SharedInvalidationMessage *msgs,
                        bool relcacheInitFileInval);
 
-#endif   /* STANDBY_H */
+#endif                         /* STANDBY_H */
index f8444c787a3900b2edc8602d45d096d04af673d6..a0af6788e96beef942e653adad046e1cd9c09667 100644 (file)
@@ -50,7 +50,7 @@ typedef struct xl_running_xacts
    int         subxcnt;        /* # of subxact ids in xids[] */
    bool        subxid_overflow;    /* snapshot overflowed, subxids missing */
    TransactionId nextXid;      /* copy of ShmemVariableCache->nextXid */
-   TransactionId oldestRunningXid;     /* *not* oldestXmin */
+   TransactionId oldestRunningXid; /* *not* oldestXmin */
    TransactionId latestCompletedXid;   /* so we can set xmax */
 
    TransactionId xids[FLEXIBLE_ARRAY_MEMBER];
@@ -71,4 +71,4 @@ typedef struct xl_invalidations
 
 #define MinSizeOfInvalidations offsetof(xl_invalidations, msgs)
 
-#endif   /* STANDBYDEFS_H */
+#endif                         /* STANDBYDEFS_H */
index f0b25bea903a3eea89c982de2993c031402bb2ed..9c4e608934ff3b91a8315849b4e0f89256de2182 100644 (file)
@@ -102,4 +102,4 @@ typedef struct CollectedCommand
    }           d;
 } CollectedCommand;
 
-#endif   /* DEPARSE_UTILITY_H */
+#endif                         /* DEPARSE_UTILITY_H */
index a11cd92c0148be36b548cd97b6a054ffc39e5812..c990544a163e659609bcef5fd3af9b5ca466de27 100644 (file)
@@ -129,7 +129,7 @@ struct _DestReceiver
    /* Private fields might appear beyond this point... */
 };
 
-extern DestReceiver *None_Receiver;        /* permanent receiver for DestNone */
+extern DestReceiver *None_Receiver; /* permanent receiver for DestNone */
 
 /* The primary destination management functions */
 
@@ -142,4 +142,4 @@ extern void EndCommand(const char *commandTag, CommandDest dest);
 extern void NullCommand(CommandDest dest);
 extern void ReadyForQuery(CommandDest dest);
 
-#endif   /* DEST_H */
+#endif                         /* DEST_H */
index 81d94913db893e126da92fbbfb5213b3595f8992..4a7c35f1a9bfdd36c6a287abc3cd4cccdf3aed6f 100644 (file)
@@ -18,4 +18,4 @@
 extern int GetOldFunctionMessage(StringInfo buf);
 extern void HandleFunctionRequest(StringInfo msgBuf);
 
-#endif   /* FASTPATH_H */
+#endif                         /* FASTPATH_H */
index 12ff4588c61abff139c8f6e4683d615d9c89e48c..6abfe7b282fcd6e681575ff681472dd97ffd900a 100644 (file)
@@ -42,4 +42,4 @@ extern uint64 PortalRunFetch(Portal portal,
               long count,
               DestReceiver *dest);
 
-#endif   /* PQUERY_H */
+#endif                         /* PQUERY_H */
index f1a34a1c7248016f68d05c44d7db3d4ed86e7816..f8c535c91e34c2a10aeff5eeb7788cb3b05deeaf 100644 (file)
@@ -89,4 +89,4 @@ extern bool set_plan_disabling_options(const char *arg,
                           GucContext context, GucSource source);
 extern const char *get_stats_option_name(const char *arg);
 
-#endif   /* TCOPPROT_H */
+#endif                         /* TCOPPROT_H */
index 850d09b9f04105b2b5e423bae7ba6b5765ed6429..56d04dd1c6c368bd017b1ef60eaf15d90e7dcf01 100644 (file)
@@ -52,4 +52,4 @@ extern LogStmtLevel GetCommandLogLevel(Node *parsetree);
 
 extern bool CommandIsReadOnly(PlannedStmt *pstmt);
 
-#endif   /* UTILITY_H */
+#endif                         /* UTILITY_H */
index 80b8a079edc72b07c94c0160631c1fa210ad8974..abff0fdfccb9ed1f9e4d1c591ddfb6be7a28b299 100644 (file)
@@ -95,4 +95,4 @@ extern Oid    getTSCurrentConfig(bool emitError);
 extern bool check_TSCurrentConfig(char **newval, void **extra, GucSource source);
 extern void assign_TSCurrentConfig(const char *newval, void *extra);
 
-#endif   /* TS_CACHE_H */
+#endif                         /* TS_CACHE_H */
index afcf2b93de1e11931689769fa40d94ddfd1fd924..c32f0743aa68200302151bf3f72412a630b443f3 100644 (file)
@@ -61,7 +61,7 @@ extern int    t_isprint(const char *ptr);
 #define t_iseq(x,c)        (TOUCHAR(x) == (unsigned char) (c))
 
 #define COPYCHAR(d,s)  (*((unsigned char *) (d)) = TOUCHAR(s))
-#endif   /* USE_WIDE_UPPER_LOWER */
+#endif                         /* USE_WIDE_UPPER_LOWER */
 
 extern char *lowerstr(const char *str);
 extern char *lowerstr_with_len(const char *str, int len);
@@ -73,4 +73,4 @@ extern void tsearch_readline_end(tsearch_readline_state *stp);
 
 extern char *t_readline(FILE *fp);
 
-#endif   /* __TSLOCALE_H__ */
+#endif                         /* __TSLOCALE_H__ */
index 4c190b22e89a5d7854bf3c27e0793aac95ec7125..94ba7fcb2025d68fa1b3e3bc871e0057cc4b94b2 100644 (file)
@@ -129,4 +129,4 @@ typedef struct
                                 * getnext == true */
 } DictSubState;
 
-#endif   /* _PG_TS_PUBLIC_H_ */
+#endif                         /* _PG_TS_PUBLIC_H_ */
index 873e2e18565fe4f9b7748344b9d4d444b7b1ca54..2885bc01532e3398986c1158449fe0a65aa13500 100644 (file)
@@ -248,4 +248,4 @@ typedef TSQueryData *TSQuery;
 #define PG_GETARG_TSQUERY_COPY(n)  DatumGetTSQueryCopy(PG_GETARG_DATUM(n))
 #define PG_RETURN_TSQUERY(x)       return TSQueryGetDatum(x)
 
-#endif   /* _PG_TSTYPE_H_ */
+#endif                         /* _PG_TSTYPE_H_ */
index f44f683f27866b90d74ed83cac92de7557925940..33123530268a330b2358f4ceadc988d42d2a7c4e 100644 (file)
@@ -42,9 +42,8 @@ typedef struct TSQueryParserStateData *TSQueryParserState;
 
 typedef void (*PushFunction) (Datum opaque, TSQueryParserState state,
                              char *token, int tokenlen,
-                             int16 tokenweights,       /* bitmap as described
-                                                        * in QueryOperand
-                                                        * struct */
+                             int16 tokenweights,   /* bitmap as described in
+                                                    * QueryOperand struct */
                              bool prefix);
 
 extern TSQuery parse_tsquery(char *buf,
@@ -237,4 +236,4 @@ extern TSQuerySign makeTSQuerySign(TSQuery a);
 extern QTNode *findsubquery(QTNode *root, QTNode *ex, QTNode *subs,
             bool *isfind);
 
-#endif   /* _PG_TS_UTILS_H_ */
+#endif                         /* _PG_TS_UTILS_H_ */
index 2487020ec1e8e2dfd7623f4cd5e65267d612b3e1..ab630a80a481b164ee93f6f09db9da67bd836a9b 100644 (file)
@@ -127,11 +127,11 @@ typedef ArrayType Acl;
  * External representations of the privilege bits --- aclitemin/aclitemout
  * represent each possible privilege bit with a distinct 1-character code
  */
-#define ACL_INSERT_CHR         'a'     /* formerly known as "append" */
-#define ACL_SELECT_CHR         'r'     /* formerly known as "read" */
-#define ACL_UPDATE_CHR         'w'     /* formerly known as "write" */
+#define ACL_INSERT_CHR         'a' /* formerly known as "append" */
+#define ACL_SELECT_CHR         'r' /* formerly known as "read" */
+#define ACL_UPDATE_CHR         'w' /* formerly known as "write" */
 #define ACL_DELETE_CHR         'd'
-#define ACL_TRUNCATE_CHR       'D'     /* super-delete, as it were */
+#define ACL_TRUNCATE_CHR       'D' /* super-delete, as it were */
 #define ACL_REFERENCES_CHR     'x'
 #define ACL_TRIGGER_CHR            't'
 #define ACL_EXECUTE_CHR            'X'
@@ -331,4 +331,4 @@ extern bool pg_statistics_object_ownercheck(Oid stat_oid, Oid roleid);
 extern bool has_createrole_privilege(Oid roleid);
 extern bool has_bypassrls_privilege(Oid roleid);
 
-#endif   /* ACL_H */
+#endif                         /* ACL_H */
index 0e50f73aab00470e1bc3b6fceacf668766abf5ad..3374edb63880b7257da7ebdd3a38828f50f5c015 100644 (file)
@@ -42,4 +42,4 @@ typedef struct
 } InternalGrant;
 
 
-#endif   /* ACLCHK_INTERNAL_H */
+#endif                         /* ACLCHK_INTERNAL_H */
index 552c08f0d508590a95a5e11d30134c91cdd85122..61a67a21e36472a8720a4ab6324b74ed5cb072ac 100644 (file)
@@ -443,4 +443,4 @@ extern ExpandedArrayHeader *DatumGetExpandedArrayX(Datum d,
 extern AnyArrayType *DatumGetAnyArray(Datum d);
 extern void deconstruct_expanded_array(ExpandedArrayHeader *eah);
 
-#endif   /* ARRAY_H */
+#endif                         /* ARRAY_H */
index 6148bdf834046f5a4070efb083762b7c8e9aecc6..7655c80bedafe792ace2584ed981dafd4bd70e3c 100644 (file)
@@ -115,4 +115,4 @@ array_iter_next(array_iter *it, bool *isnull, int i,
    return ret;
 }
 
-#endif   /* ARRAYACCESS_H */
+#endif                         /* ARRAYACCESS_H */
index 3771e1acabb1a53ff12db552d8bdf060773a32de..d3b183f11f313b82b6aed4656410beb8608ee4a8 100644 (file)
@@ -13,4 +13,4 @@
 
 extern void ascii_safe_strlcpy(char *dest, const char *src, size_t destsiz);
 
-#endif   /* _ASCII_H_ */
+#endif                         /* _ASCII_H_ */
index 7f2334b4cdf8ffd9fab6d05a7125d73c982c0b6c..4eef793181a1e9cd96545913544b6a57e070d76c 100644 (file)
@@ -25,4 +25,4 @@ typedef struct AttributeOpts
 
 AttributeOpts *get_attribute_options(Oid spcid, int attnum);
 
-#endif   /* ATTOPTCACHE_H */
+#endif                         /* ATTOPTCACHE_H */
index 31602f250d41c67dd4409ef7806b971216eb819c..9781aea0acfb46da93e05cbbd237f8fac69a7e1b 100644 (file)
@@ -16,4 +16,4 @@ extern Size BackendRandomShmemSize(void);
 extern void BackendRandomShmemInit(void);
 extern bool pg_backend_random(char *dst, int len);
 
-#endif   /* BACKEND_RANDOM_H */
+#endif                         /* BACKEND_RANDOM_H */
index 1435a7b57a924d2dd673ea18a931585fb2965e76..762532f63692910528f04ff497e5ece69aaca33b 100644 (file)
@@ -121,4 +121,4 @@ extern int32 type_maximum_size(Oid type_oid, int32 typemod);
 /* quote.c */
 extern char *quote_literal_cstr(const char *rawstr);
 
-#endif   /* BUILTINS_H */
+#endif                         /* BUILTINS_H */
index 0cc543832838aa6dd47cdd84c9789a9e984ab088..d7bd30842e2ccdfc11d92964620c6a4a76b6396e 100644 (file)
@@ -25,4 +25,4 @@ typedef enum
 
 extern int bytea_output;       /* ByteaOutputType, but int for GUC enum */
 
-#endif   /* BYTEA_H */
+#endif                         /* BYTEA_H */
index 84083677e1ccee04729c313a5d97b6cfe057b5be..2e332d83b1c73d58e30182fb37ea57bf87e37264 100644 (file)
@@ -22,4 +22,4 @@ typedef int64 Cash;
 #define PG_GETARG_CASH(n)  DatumGetCash(PG_GETARG_DATUM(n))
 #define PG_RETURN_CASH(x)  return CashGetDatum(x)
 
-#endif   /* CASH_H */
+#endif                         /* CASH_H */
index 5add424e5ed1a4fe2dae6b188bf64f8cb00dd108..f8ebc903d321b6d1c438c21ea0fe5c2658e02514 100644 (file)
@@ -46,10 +46,10 @@ typedef struct catcache
    int         cc_ntup;        /* # of tuples currently in this cache */
    int         cc_nbuckets;    /* # of hash buckets in this cache */
    int         cc_nkeys;       /* # of keys (1..CATCACHE_MAXKEYS) */
-   int         cc_key[CATCACHE_MAXKEYS];       /* AttrNumber of each key */
+   int         cc_key[CATCACHE_MAXKEYS];   /* AttrNumber of each key */
    PGFunction  cc_hashfunc[CATCACHE_MAXKEYS];  /* hash function for each key */
-   ScanKeyData cc_skey[CATCACHE_MAXKEYS];      /* precomputed key info for
-                                                * heap scans */
+   ScanKeyData cc_skey[CATCACHE_MAXKEYS];  /* precomputed key info for heap
+                                            * scans */
    bool        cc_isname[CATCACHE_MAXKEYS];    /* flag "name" key columns */
    dlist_head  cc_lists;       /* list of CatCList structs */
    dlist_head *cc_bucket;      /* hash buckets */
@@ -199,4 +199,4 @@ extern void PrepareToInvalidateCacheTuple(Relation relation,
 extern void PrintCatCacheLeakWarning(HeapTuple tuple);
 extern void PrintCatCacheListLeakWarning(CatCList *list);
 
-#endif   /* CATCACHE_H */
+#endif                         /* CATCACHE_H */
index 1cb0e7427545046685b586daef7f6d85d4ee18ae..6d8be8bf0f38481a1898d8da140d401ed4b57400 100644 (file)
@@ -25,4 +25,4 @@ extern void RestoreComboCIDState(char *comboCIDstate);
 extern void SerializeComboCIDState(Size maxsize, char *start_address);
 extern Size EstimateComboCIDStateSpace(void);
 
-#endif   /* COMBOCID_H */
+#endif                         /* COMBOCID_H */
index 309a581853ea980003285165b6dbcf666370e68a..0736a7294656d0eca05b08df085842cb4d5eb0da 100644 (file)
@@ -74,4 +74,4 @@ extern DateADT GetSQLCurrentDate(void);
 extern TimeTzADT *GetSQLCurrentTime(int32 typmod);
 extern TimeADT GetSQLLocalTime(int32 typmod);
 
-#endif   /* DATE_H */
+#endif                         /* DATE_H */
index 15b558c63990b8ec77f11fdc2d7545e76447c5e2..7968569fdad78cc14ece9665d842c6f27a3a3c1c 100644 (file)
@@ -259,7 +259,7 @@ do { \
  * Include check for leap year.
  */
 
-extern const char *const months[];     /* months (3-char abbreviations) */
+extern const char *const months[]; /* months (3-char abbreviations) */
 extern const char *const days[];   /* days (full names) */
 extern const int day_tab[2][13];
 
@@ -338,4 +338,4 @@ extern TimeZoneAbbrevTable *ConvertTimeZoneAbbrevs(struct tzEntry *abbrevs,
                       int n);
 extern void InstallTimeZoneAbbrevs(TimeZoneAbbrevTable *tbl);
 
-#endif   /* DATETIME_H */
+#endif                         /* DATETIME_H */
index a8a9ea6d19bf0bf725e3fe9390b5dc08c62bfcef..d2f0f9ed51c7ff051c3c42fcc2cb0c3dd4a826a1 100644 (file)
@@ -56,4 +56,4 @@ extern void datumSerialize(Datum value, bool isnull, bool typByVal,
               int typLen, char **start_address);
 extern Datum datumRestore(char **start_address, bool *isnull);
 
-#endif   /* DATUM_H */
+#endif                         /* DATUM_H */
index f084443409555e2fc642da5b2063ad6d83ae0f95..516ef610f0135635d8ee24f3f13e15ef02fd54ff 100644 (file)
@@ -122,4 +122,4 @@ extern void *dsa_get_address(dsa_area *area, dsa_pointer dp);
 extern void dsa_trim(dsa_area *area);
 extern void dsa_dump(dsa_area *area);
 
-#endif   /* DSA_H */
+#endif                         /* DSA_H */
index eee5cce92873a13419c9693ce8a1998fe92b4064..8e03245a0385cfc6ed454a53ae0f59b2f91b2d74 100644 (file)
@@ -16,4 +16,4 @@
 
 extern int my_log2(long num);
 
-#endif   /* DYNAHASH_H */
+#endif                         /* DYNAHASH_H */
index 987f21a3625c3275ebb14fada18bab2495ebd39c..6c9287b61127cbbe986ea6d415d4958a4b11a4a9 100644 (file)
@@ -22,4 +22,4 @@ extern PGFunction pg_dlsym(void *handle, char *funcname);
 extern void pg_dlclose(void *handle);
 extern char *pg_dlerror(void);
 
-#endif   /* DYNAMIC_LOADER_H */
+#endif                         /* DYNAMIC_LOADER_H */
index 58dc92ee5d3b7cf667ba2503f799d3ed87e9d2fb..3492bafa5ef9c892ba1f26dfe0b910c9a27bd38d 100644 (file)
@@ -27,9 +27,9 @@
                                 * server log by default. */
 #define LOG_SERVER_ONLY 16     /* Same as LOG for server reporting, but never
                                 * sent to client. */
-#define COMMERROR  LOG_SERVER_ONLY     /* Client communication problems; same
-                                        * as LOG for server reporting, but
-                                        * never sent to client. */
+#define COMMERROR  LOG_SERVER_ONLY /* Client communication problems; same as
+                                    * LOG for server reporting, but never
+                                    * sent to client. */
 #define INFO       17          /* Messages specifically requested by user (eg
                                 * VACUUM VERBOSE output); always sent to
                                 * client regardless of client_min_messages,
        if (elevel_ >= ERROR) \
            pg_unreachable(); \
    } while(0)
-#endif   /* HAVE__BUILTIN_CONSTANT_P */
+#endif                         /* HAVE__BUILTIN_CONSTANT_P */
 
 #define ereport(elevel, rest)  \
    ereport_domain(elevel, TEXTDOMAIN, rest)
@@ -214,12 +214,12 @@ extern int    getinternalerrposition(void);
                pg_unreachable(); \
        } \
    } while(0)
-#endif   /* HAVE__BUILTIN_CONSTANT_P */
+#endif                         /* HAVE__BUILTIN_CONSTANT_P */
 #else                          /* !HAVE__VA_ARGS */
 #define elog  \
    elog_start(__FILE__, __LINE__, PG_FUNCNAME_MACRO), \
    elog_finish
-#endif   /* HAVE__VA_ARGS */
+#endif                         /* HAVE__VA_ARGS */
 
 extern void elog_start(const char *filename, int lineno, const char *funcname);
 extern void elog_finish(int elevel, const char *fmt,...) pg_attribute_printf(2, 3);
@@ -329,8 +329,8 @@ extern PGDLLIMPORT sigjmp_buf *PG_exception_stack;
 typedef struct ErrorData
 {
    int         elevel;         /* error level */
-   bool        output_to_server;       /* will report to server log? */
-   bool        output_to_client;       /* will report to client? */
+   bool        output_to_server;   /* will report to server log? */
+   bool        output_to_client;   /* will report to client? */
    bool        show_funcname;  /* true to force funcname inclusion */
    bool        hide_stmt;      /* true to prevent STATEMENT: inclusion */
    bool        hide_ctx;       /* true to prevent CONTEXT: inclusion */
@@ -413,4 +413,4 @@ extern void set_syslog_parameters(const char *ident, int facility);
  */
 extern void write_stderr(const char *fmt,...) pg_attribute_printf(1, 2);
 
-#endif   /* ELOG_H */
+#endif                         /* ELOG_H */
index f6ea163df3239565317965a28f16a210165a410d..9774eac5a63c7eacb247311fd0b92dabe63ff07c 100644 (file)
@@ -34,4 +34,4 @@ typedef struct
 
 extern List *EventCacheLookup(EventTriggerEvent event);
 
-#endif   /* EVTCACHE_H */
+#endif                         /* EVTCACHE_H */
index d9b598591a2accefeb426a2c03c930ed1b69bf71..7116b860cc48d87379026513eb8784c7117dbe76 100644 (file)
@@ -156,4 +156,4 @@ extern Datum MakeExpandedObjectReadOnlyInternal(Datum d);
 extern Datum TransferExpandedObject(Datum d, MemoryContext new_parent);
 extern void DeleteExpandedObject(Datum d);
 
-#endif   /* EXPANDEDDATUM_H */
+#endif                         /* EXPANDEDDATUM_H */
index 414cd039522eb096330bc4429713dae07706ee61..6130ef8f9c7418d78756adcaae4f7e68c546c6f5 100644 (file)
@@ -36,4 +36,4 @@ extern const FmgrBuiltin fmgr_builtins[];
 
 extern const int fmgr_nbuiltins;   /* number of entries in table */
 
-#endif   /* FMGRTAB_H */
+#endif                         /* FMGRTAB_H */
index 78caa5369b76ebc043d327c544936eee10f8c1b3..c370c733ee5ca4a97435dacf7e38c3cff3e2cd67 100644 (file)
@@ -96,4 +96,4 @@ extern void FreePageManagerPut(FreePageManager *fpm, Size first_page,
                   Size npages);
 extern char *FreePageManagerDump(FreePageManager *fpm);
 
-#endif   /* FREEPAGE_H */
+#endif                         /* FREEPAGE_H */
index 9b530dbe3dae090502da3d3d8c4a24c693752410..44c6381b855596bf502b0e6313853ad63013f5b7 100644 (file)
@@ -183,4 +183,4 @@ extern double point_dt(Point *pt1, Point *pt2);
 extern double point_sl(Point *pt1, Point *pt2);
 extern double pg_hypot(double x, double y);
 
-#endif   /* GEO_DECLS_H */
+#endif                         /* GEO_DECLS_H */
index ea11c837003b8eeeacc7b8eefdbb222d30099a9b..c1870d213014342f84888746eac23f71691e73e5 100644 (file)
@@ -212,8 +212,8 @@ typedef enum
 #define GUC_SUPERUSER_ONLY     0x0100  /* show only to superusers */
 #define GUC_IS_NAME                0x0200  /* limit string to NAMEDATALEN-1 */
 #define GUC_NOT_WHILE_SEC_REST 0x0400  /* can't set if security restricted */
-#define GUC_DISALLOW_IN_AUTO_FILE 0x0800       /* can't set in
-                                                * PG_AUTOCONF_FILENAME */
+#define GUC_DISALLOW_IN_AUTO_FILE 0x0800   /* can't set in
+                                            * PG_AUTOCONF_FILENAME */
 
 #define GUC_UNIT_KB                0x1000  /* value is in kilobytes */
 #define GUC_UNIT_BLOCKS            0x2000  /* value is in blocks */
@@ -432,4 +432,4 @@ extern void assign_search_path(const char *newval, void *extra);
 extern bool check_wal_buffers(int *newval, void **extra, GucSource source);
 extern void assign_xlog_sync_method(int new_sync_method, void *extra);
 
-#endif   /* GUC_H */
+#endif                         /* GUC_H */
index f28578b3351d5ffb882f46d7b46319d64911ee10..042f7a015280fa1e8b90d90e6b3f4603c7acd8eb 100644 (file)
@@ -164,7 +164,7 @@ struct config_generic
 };
 
 /* bit values in status field */
-#define GUC_IS_IN_FILE     0x0001      /* found it in config file */
+#define GUC_IS_IN_FILE     0x0001  /* found it in config file */
 /*
  * Caution: the GUC_IS_IN_FILE bit is transient state for ProcessConfigFile.
  * Do not assume that its value represents useful information elsewhere.
@@ -265,4 +265,4 @@ extern const char *config_enum_lookup_by_value(struct config_enum *record, int v
 extern bool config_enum_lookup_by_name(struct config_enum *record,
                           const char *value, int *retval);
 
-#endif   /* GUC_TABLES_H */
+#endif                         /* GUC_TABLES_H */
index 9b4bd7c02b1ca1a584319b394f966b99b7fb8581..bc5873ed20866589aa0b1432e7ad6c15bfc2a989 100644 (file)
@@ -157,4 +157,4 @@ extern int  bitmap_match(const void *key1, const void *key2, Size keysize);
 
 #define oid_hash uint32_hash   /* Remove me eventually */
 
-#endif   /* HSEARCH_H */
+#endif                         /* HSEARCH_H */
index 17d165ca6514a00f96a400b6bbf7c00edea3848b..24f2f3a86674139a7d735974d332e981b16e58f4 100644 (file)
@@ -71,4 +71,4 @@ extern void gincostestimate(struct PlannerInfo *root,
                double *indexCorrelation,
                double *indexPages);
 
-#endif   /* INDEX_SELFUNCS_H */
+#endif                         /* INDEX_SELFUNCS_H */
index 7dc179e2556e7dea7618b0286cd325d15cfcea62..f2aa864a357620d9465350ee68f0d91139906d74 100644 (file)
@@ -146,4 +146,4 @@ extern inet *cidr_set_masklen_internal(const inet *src, int bits);
 extern int bitncmp(const unsigned char *l, const unsigned char *r, int n);
 extern int bitncommon(const unsigned char *l, const unsigned char *r, int n);
 
-#endif   /* INET_H */
+#endif                         /* INET_H */
index c58ee048cff955583d21d748687866ff8cef95fb..8b78983feef338440c5faad9276606049109fcec 100644 (file)
@@ -22,4 +22,4 @@
 
 extern bool scanint8(const char *str, bool errorOK, int64 *result);
 
-#endif   /* INT8_H */
+#endif                         /* INT8_H */
index afbe354b4dadab984c6cee5b8fb4bc649eba57ea..361543f4127bb9f602ce9b7310a84a826a6ece3c 100644 (file)
@@ -63,4 +63,4 @@ extern void CacheRegisterRelcacheCallback(RelcacheCallbackFunction func,
 extern void CallSyscacheCallbacks(int cacheid, uint32 hashvalue);
 
 extern void InvalidateSystemCaches(void);
-#endif   /* INVAL_H */
+#endif                         /* INVAL_H */
index 0a749b90c8bf884e9b2a69f623ae66bc31ac61ac..e3ffe6fc44547712073c0e89fb96236b1023e0a9 100644 (file)
@@ -19,4 +19,4 @@
 /* functions in json.c */
 extern void escape_json(StringInfo buf, const char *str);
 
-#endif   /* JSON_H */
+#endif                         /* JSON_H */
index 44ee36931eba39dc3504c9b2bf0e880ca98ee56a..2508b16b5568f8a8b4dbc156186bc44a0018f3af 100644 (file)
@@ -147,4 +147,4 @@ extern Jsonb *transform_jsonb_string_values(Jsonb *jsonb, void *action_state,
 extern text *transform_json_string_values(text *json, void *action_state,
                           JsonTransformStringValuesAction transform_action);
 
-#endif   /* JSONAPI_H */
+#endif                         /* JSONAPI_H */
index 411e158d6c13c4d01b9f15f4ed6d37830560bb13..ea9dd17540dddf7bd179f603cef7c8e7fb1e5bae 100644 (file)
@@ -148,7 +148,7 @@ typedef uint32 JEntry;
 #define JENTRY_ISBOOL_FALSE        0x20000000
 #define JENTRY_ISBOOL_TRUE     0x30000000
 #define JENTRY_ISNULL          0x40000000
-#define JENTRY_ISCONTAINER     0x50000000      /* array or object */
+#define JENTRY_ISCONTAINER     0x50000000  /* array or object */
 
 /* Access macros.  Note possible multiple evaluations */
 #define JBE_OFFLENFLD(je_)     ((je_) & JENTRY_OFFLENMASK)
@@ -200,8 +200,8 @@ typedef struct JsonbContainer
 } JsonbContainer;
 
 /* flags for the header-field in JsonbContainer */
-#define JB_CMASK               0x0FFFFFFF      /* mask for count field */
-#define JB_FSCALAR             0x10000000      /* flag bits */
+#define JB_CMASK               0x0FFFFFFF  /* mask for count field */
+#define JB_FSCALAR             0x10000000  /* flag bits */
 #define JB_FOBJECT             0x20000000
 #define JB_FARRAY              0x40000000
 
@@ -263,7 +263,7 @@ struct JsonbValue
        {
            int         nElems;
            JsonbValue *elems;
-           bool        rawScalar;      /* Top-level "raw scalar" array? */
+           bool        rawScalar;  /* Top-level "raw scalar" array? */
        }           array;      /* Array container type */
 
        struct
@@ -378,4 +378,4 @@ extern char *JsonbToCStringIndent(StringInfo out, JsonbContainer *in,
                     int estimated_len);
 
 
-#endif   /* __JSONB_H__ */
+#endif                         /* __JSONB_H__ */
index e802c4b2132415b7544f6bbf887564e8f644e995..a1e869b80c109ecb3e534e93aea91cbea36025ff 100644 (file)
@@ -43,4 +43,4 @@ extern void LogicalTapeTell(LogicalTapeSet *lts, int tapenum,
                long *blocknum, int *offset);
 extern long LogicalTapeSetBlocks(LogicalTapeSet *lts);
 
-#endif   /* LOGTAPE_H */
+#endif                         /* LOGTAPE_H */
index 93588df9f74a894894c431e28df8553a643724b2..07208b56cef2d70905380484ef3244883e87b49e 100644 (file)
@@ -183,4 +183,4 @@ extern Oid  get_range_subtype(Oid rangeOid);
 
 #define TypeIsToastable(typid) (get_typstorage(typid) != 'p')
 
-#endif   /* LSYSCACHE_H */
+#endif                         /* LSYSCACHE_H */
index 206e6ce002849b6b136f834eef163360ccac709c..a73d505be870cea4e9975ba2ede0acfba71db7f0 100644 (file)
@@ -43,7 +43,7 @@ wipe_mem(void *ptr, size_t size)
    VALGRIND_MAKE_MEM_NOACCESS(ptr, size);
 }
 
-#endif   /* CLOBBER_FREED_MEMORY */
+#endif                         /* CLOBBER_FREED_MEMORY */
 
 #ifdef MEMORY_CONTEXT_CHECKING
 
@@ -70,13 +70,13 @@ sentinel_ok(const void *base, Size offset)
    return ret;
 }
 
-#endif   /* MEMORY_CONTEXT_CHECKING */
+#endif                         /* MEMORY_CONTEXT_CHECKING */
 
 #ifdef RANDOMIZE_ALLOCATED_MEMORY
 
 void       randomize_mem(char *ptr, size_t size);
 
-#endif   /* RANDOMIZE_ALLOCATED_MEMORY */
+#endif                         /* RANDOMIZE_ALLOCATED_MEMORY */
 
 
-#endif   /* MEMDEBUG_H */
+#endif                         /* MEMDEBUG_H */
index 58e816d8e97d1bdc6714e0f51340689934ad54c0..c55334906689bd35752f3bd5babf67cca0a64af5 100644 (file)
@@ -37,7 +37,7 @@
  * MemoryContextAllocHuge().  Both limits permit code to assume that it may
  * compute twice an allocation's size without overflow.
  */
-#define MaxAllocSize   ((Size) 0x3fffffff)     /* 1 gigabyte - 1 */
+#define MaxAllocSize   ((Size) 0x3fffffff) /* 1 gigabyte - 1 */
 
 #define AllocSizeIsValid(size) ((Size) (size) <= MaxAllocSize)
 
@@ -194,4 +194,4 @@ extern MemoryContext SlabContextCreate(MemoryContext parent,
 #define SLAB_DEFAULT_BLOCK_SIZE        (8 * 1024)
 #define SLAB_LARGE_BLOCK_SIZE      (8 * 1024 * 1024)
 
-#endif   /* MEMUTILS_H */
+#endif                         /* MEMUTILS_H */
index 994b197af075731a75b4379e2695f20c02532248..69133952d18205f9154c231b6cc9d3cf9afb4e04 100644 (file)
@@ -73,11 +73,11 @@ typedef TimeIntervalData *TimeInterval;
  * These were chosen as special 32-bit bit patterns,
  * so redefine them explicitly using these bit patterns. - tgl 97/02/24
  */
-#define INVALID_ABSTIME ((AbsoluteTime) 0x7FFFFFFE)        /* 2147483647 (2^31 - 1) */
-#define NOEND_ABSTIME  ((AbsoluteTime) 0x7FFFFFFC)     /* 2147483645 (2^31 - 3) */
-#define NOSTART_ABSTIME ((AbsoluteTime) INT_MIN)       /* -2147483648 */
+#define INVALID_ABSTIME ((AbsoluteTime) 0x7FFFFFFE) /* 2147483647 (2^31 - 1) */
+#define NOEND_ABSTIME  ((AbsoluteTime) 0x7FFFFFFC) /* 2147483645 (2^31 - 3) */
+#define NOSTART_ABSTIME ((AbsoluteTime) INT_MIN)   /* -2147483648 */
 
-#define INVALID_RELTIME ((RelativeTime) 0x7FFFFFFE)        /* 2147483647 (2^31 - 1) */
+#define INVALID_RELTIME ((RelativeTime) 0x7FFFFFFE) /* 2147483647 (2^31 - 1) */
 
 #define AbsoluteTimeIsValid(time) \
    ((bool) ((time) != INVALID_ABSTIME))
@@ -100,4 +100,4 @@ typedef TimeIntervalData *TimeInterval;
 extern AbsoluteTime GetCurrentAbsoluteTime(void);
 extern void abstime2tm(AbsoluteTime time, int *tzp, struct pg_tm *tm, char **tzn);
 
-#endif   /* NABSTIME_H */
+#endif                         /* NABSTIME_H */
index 0ab57d702521b6fabdd01fe0a7ebaeec6a6d40e1..3aa7fef9472531dc1b9103c6a1b38e33252b8800 100644 (file)
@@ -61,4 +61,4 @@ int32     numeric_maximum_size(int32 typmod);
 extern char *numeric_out_sci(Numeric num, int scale);
 extern char *numeric_normalize(Numeric num);
 
-#endif   /* _PG_NUMERIC_H_ */
+#endif                         /* _PG_NUMERIC_H_ */
index 2e07bd57ad41119203a457c02508f10af1caef3e..a7dc837724d34985358e37161c3243ded8121e41 100644 (file)
@@ -113,7 +113,7 @@ MemoryContextSwitchTo(MemoryContext context)
    CurrentMemoryContext = context;
    return old;
 }
-#endif   /* FRONTEND */
+#endif                         /* FRONTEND */
 
 /* Registration of memory context reset/delete callbacks */
 extern void MemoryContextRegisterResetCallback(MemoryContext context,
@@ -133,4 +133,4 @@ extern char *pchomp(const char *in);
 extern char *psprintf(const char *fmt,...) pg_attribute_printf(1, 2);
 extern size_t pvsnprintf(char *buf, size_t len, const char *fmt, va_list args) pg_attribute_printf(3, 0);
 
-#endif   /* PALLOC_H */
+#endif                         /* PALLOC_H */
index 2fe083850aaa0576e3bedbd4eae41b66cf044097..9ea0622321afb4b09584130face8157d527f9582 100644 (file)
@@ -104,4 +104,4 @@ do {                                                              \
  */
 extern PGDLLIMPORT const uint32 pg_crc32_table[256];
 
-#endif   /* PG_CRC_H */
+#endif                         /* PG_CRC_H */
index f0acc86b88aa59eec24b1a41d3934715199d1483..5e3711f00880a494f4c1bc0432a810e798a37217 100644 (file)
@@ -104,4 +104,4 @@ extern size_t char2wchar(wchar_t *to, size_t tolen,
           const char *from, size_t fromlen, pg_locale_t locale);
 #endif
 
-#endif   /* _PG_LOCALE_ */
+#endif                         /* _PG_LOCALE_ */
index 6f038e9e142f23ce607a09e49afb893986d79953..cc51b2a078e7278259ec3950e6b02cdd66df185f 100644 (file)
@@ -24,4 +24,4 @@
 #define PG_GETARG_LSN(n)    DatumGetLSN(PG_GETARG_DATUM(n))
 #define PG_RETURN_LSN(x)    return LSNGetDatum(x)
 
-#endif   /* PG_LSN_H */
+#endif                         /* PG_LSN_H */
index 48a74e90ba1532c314fb0767b95d9541d13c9b99..cea51f0cb257d35749f88a35acf2b503306e5f22 100644 (file)
@@ -34,4 +34,4 @@ typedef struct PGRUsage
 extern void pg_rusage_init(PGRUsage *ru0);
 extern const char *pg_rusage_show(const PGRUsage *ru0);
 
-#endif   /* PG_RUSAGE_H */
+#endif                         /* PG_RUSAGE_H */
index a129f2c652ddcad87b0c152cd729f40ea17c14c7..87fab19f3cbf82584095dce8fe0c3d9bab3e26c1 100644 (file)
@@ -80,7 +80,7 @@ struct RawStmt;
 typedef struct CachedPlanSource
 {
    int         magic;          /* should equal CACHEDPLANSOURCE_MAGIC */
-   struct RawStmt *raw_parse_tree;     /* output of raw_parser(), or NULL */
+   struct RawStmt *raw_parse_tree; /* output of raw_parser(), or NULL */
    const char *query_string;   /* source text of query */
    const char *commandTag;     /* command tag (a constant!), or NULL */
    Oid        *param_types;    /* array of parameter type OIDs, or NULL */
@@ -95,11 +95,11 @@ typedef struct CachedPlanSource
    List       *query_list;     /* list of Query nodes, or NIL if not valid */
    List       *relationOids;   /* OIDs of relations the queries depend on */
    List       *invalItems;     /* other dependencies, as PlanInvalItems */
-   struct OverrideSearchPath *search_path;     /* search_path used for
-                                                * parsing and planning */
+   struct OverrideSearchPath *search_path; /* search_path used for parsing
+                                            * and planning */
    MemoryContext query_context;    /* context holding the above, or NULL */
    Oid         rewriteRoleId;  /* Role ID we did rewriting for */
-   bool        rewriteRowSecurity;     /* row_security used during rewrite */
+   bool        rewriteRowSecurity; /* row_security used during rewrite */
    bool        dependsOnRLS;   /* is rewritten query specific to the above? */
    /* If we have a generic plan, this is a reference-counted link to it: */
    struct CachedPlan *gplan;   /* generic plan, or NULL if not valid */
@@ -110,11 +110,11 @@ typedef struct CachedPlanSource
    bool        is_valid;       /* is the query_list currently valid? */
    int         generation;     /* increments each time we create a plan */
    /* If CachedPlanSource has been saved, it is a member of a global list */
-   struct CachedPlanSource *next_saved;        /* list link, if so */
+   struct CachedPlanSource *next_saved;    /* list link, if so */
    /* State kept to help decide whether to use custom or generic plans: */
    double      generic_cost;   /* cost of generic plan, or -1 if not known */
-   double      total_custom_cost;      /* total cost of custom plans so far */
-   int         num_custom_plans;       /* number of plans included in total */
+   double      total_custom_cost;  /* total cost of custom plans so far */
+   int         num_custom_plans;   /* number of plans included in total */
 } CachedPlanSource;
 
 /*
@@ -182,4 +182,4 @@ extern CachedPlan *GetCachedPlan(CachedPlanSource *plansource,
              QueryEnvironment *queryEnv);
 extern void ReleaseCachedPlan(CachedPlan *plan, bool useResOwner);
 
-#endif   /* PLANCACHE_H */
+#endif                         /* PLANCACHE_H */
index 887e5990326de8ae62946dec945996130212a1d0..cb6f00081d5fd44553acc87489bfb456658254a5 100644 (file)
@@ -118,7 +118,7 @@ typedef struct PortalData
    const char *prepStmtName;   /* source prepared statement (NULL if none) */
    MemoryContext heap;         /* subsidiary memory for portal */
    ResourceOwner resowner;     /* resources owned by portal */
-   void        (*cleanup) (Portal portal);     /* cleanup hook */
+   void        (*cleanup) (Portal portal); /* cleanup hook */
 
    /*
     * State data for remembering which subtransaction(s) the portal was
@@ -127,8 +127,8 @@ typedef struct PortalData
     * createSubid is the creating subxact and activeSubid is the last subxact
     * in which we ran the portal.
     */
-   SubTransactionId createSubid;       /* the creating subxact */
-   SubTransactionId activeSubid;       /* the last subxact with activity */
+   SubTransactionId createSubid;   /* the creating subxact */
+   SubTransactionId activeSubid;   /* the last subxact with activity */
 
    /* The query or queries the portal will execute */
    const char *sourceText;     /* text of query (as of 8.4, never NULL) */
@@ -238,4 +238,4 @@ extern void PortalCreateHoldStore(Portal portal);
 extern void PortalHashTableDeleteAll(void);
 extern bool ThereAreNoReadyPortals(void);
 
-#endif   /* PORTAL_H */
+#endif                         /* PORTAL_H */
index 3f503cc1877d49a606fe03f8f7a6b578327a3a20..2ba5a0ea2eac8e2e878005b613ff994606d0deb0 100644 (file)
@@ -23,4 +23,4 @@ extern void set_ps_display(const char *activity, bool force);
 
 extern const char *get_ps_display(int *displen);
 
-#endif   /* PS_STATUS_H */
+#endif                         /* PS_STATUS_H */
index 291b6fdbc23118d9be159dbd02c329e3d4acb2ec..08e6051b4e22b1653b84a69dca5c5e70d5bf12eb 100644 (file)
@@ -71,4 +71,4 @@ extern void unregister_ENR(QueryEnvironment *queryEnv, const char *name);
 extern EphemeralNamedRelation get_ENR(QueryEnvironment *queryEnv, const char *name);
 extern TupleDesc ENRMetadataGetTupDesc(EphemeralNamedRelationMetadata enrmd);
 
-#endif   /* QUERYENVIRONMENT_H */
+#endif                         /* QUERYENVIRONMENT_H */
index fcc014adc274acd11dcf7217301cb0011f04673f..554488931703dfc78b85f10dd25093fa7372dd1f 100644 (file)
@@ -136,4 +136,4 @@ extern bool bounds_adjacent(TypeCacheEntry *typcache, RangeBound bound1,
                RangeBound bound2);
 extern RangeType *make_empty_range(TypeCacheEntry *typcache);
 
-#endif   /* RANGETYPES_H */
+#endif                         /* RANGETYPES_H */
index 895232e16e1126a8f294b6bd018e350dd05b9661..4bc61e53806b50c9f7d5f0efef7ef95daf3bbdbc 100644 (file)
@@ -126,9 +126,9 @@ typedef struct RelationData
    bool        rd_fkeyvalid;   /* true if list has been computed */
 
    MemoryContext rd_partkeycxt;    /* private memory cxt for the below */
-   struct PartitionKeyData *rd_partkey;        /* partition key, or NULL */
+   struct PartitionKeyData *rd_partkey;    /* partition key, or NULL */
    MemoryContext rd_pdcxt;     /* private context for partdesc */
-   struct PartitionDescData *rd_partdesc;      /* partitions, or NULL */
+   struct PartitionDescData *rd_partdesc;  /* partitions, or NULL */
    List       *rd_partcheck;   /* partition CHECK quals */
 
    /* data managed by RelationGetIndexList: */
@@ -158,7 +158,7 @@ typedef struct RelationData
    /* These are non-NULL only for an index relation: */
    Form_pg_index rd_index;     /* pg_index tuple describing this index */
    /* use "struct" here to avoid needing to include htup.h: */
-   struct HeapTupleData *rd_indextuple;        /* all of pg_index tuple */
+   struct HeapTupleData *rd_indextuple;    /* all of pg_index tuple */
 
    /*
     * index access support info (used only for an index relation)
@@ -178,7 +178,7 @@ typedef struct RelationData
    Oid         rd_amhandler;   /* OID of index AM's handler function */
    MemoryContext rd_indexcxt;  /* private memory cxt for this stuff */
    /* use "struct" here to avoid needing to include amapi.h: */
-   struct IndexAmRoutine *rd_amroutine;        /* index AM's API struct */
+   struct IndexAmRoutine *rd_amroutine;    /* index AM's API struct */
    Oid        *rd_opfamily;    /* OIDs of op families for each index col */
    Oid        *rd_opcintype;   /* OIDs of opclass declared input data types */
    RegProcedure *rd_support;   /* OIDs of support procedures */
@@ -215,7 +215,7 @@ typedef struct RelationData
    Oid         rd_toastoid;    /* Real TOAST table's OID, or InvalidOid */
 
    /* use "struct" here to avoid needing to include pgstat.h: */
-   struct PgStat_TableStatus *pgstat_info;     /* statistics collection area */
+   struct PgStat_TableStatus *pgstat_info; /* statistics collection area */
 } RelationData;
 
 
@@ -241,8 +241,8 @@ typedef struct ForeignKeyCacheInfo
    int         nkeys;          /* number of columns in the foreign key */
    /* these arrays each have nkeys valid entries: */
    AttrNumber  conkey[INDEX_MAX_KEYS]; /* cols in referencing table */
-   AttrNumber  confkey[INDEX_MAX_KEYS];        /* cols in referenced table */
-   Oid         conpfeqop[INDEX_MAX_KEYS];      /* PK = FK operator OIDs */
+   AttrNumber  confkey[INDEX_MAX_KEYS];    /* cols in referenced table */
+   Oid         conpfeqop[INDEX_MAX_KEYS];  /* PK = FK operator OIDs */
 } ForeignKeyCacheInfo;
 
 
@@ -278,9 +278,8 @@ typedef struct StdRdOptions
    int32       vl_len_;        /* varlena header (do not touch directly!) */
    int         fillfactor;     /* page fill factor in percent (0..100) */
    AutoVacOpts autovacuum;     /* autovacuum-related options */
-   bool        user_catalog_table;     /* use as an additional catalog
-                                        * relation */
-   int         parallel_workers;       /* max number of parallel workers */
+   bool        user_catalog_table; /* use as an additional catalog relation */
+   int         parallel_workers;   /* max number of parallel workers */
 } StdRdOptions;
 
 #define HEAP_MIN_FILLFACTOR            10
@@ -638,4 +637,4 @@ extern void RelationDecrementReferenceCount(Relation rel);
 extern bool RelationHasUnloggedIndex(Relation rel);
 extern List *RelationGetRepsetList(Relation rel);
 
-#endif   /* REL_H */
+#endif                         /* REL_H */
index 81af3aebb8de34e3a8e7a08d8268502a498524ae..3c53cefe4b4f440c68930c4875d190ac38692563 100644 (file)
@@ -135,4 +135,4 @@ extern bool criticalRelcachesBuilt;
 /* should be used only by relcache.c and postinit.c */
 extern bool criticalSharedRelcachesBuilt;
 
-#endif   /* RELCACHE_H */
+#endif                         /* RELCACHE_H */
index 0827ff3db891a8fc3d52d4877ed0a34eb26b4c27..b3ee555fb74afa852a7ee55d2acef052713d8ac6 100644 (file)
@@ -15,4 +15,4 @@
 
 extern Oid RelidByRelfilenode(Oid reltablespace, Oid relfilenode);
 
-#endif   /* RELFILENODEMAP_H */
+#endif                         /* RELFILENODEMAP_H */
index 8fb2879ff9c68e4b7e80e251207fba20d672afb4..7af69ba6cfa3d8a0cc8ff853855b216ee6a90056 100644 (file)
@@ -63,4 +63,4 @@ extern void relmap_redo(XLogReaderState *record);
 extern void relmap_desc(StringInfo buf, XLogReaderState *record);
 extern const char *relmap_identify(uint8 info);
 
-#endif   /* RELMAPPER_H */
+#endif                         /* RELMAPPER_H */
index 1e5e6221508aa789cdc7db397163ca993c44f5b3..06e592e0c646d4e3d8f0668095e688466e848859 100644 (file)
@@ -74,4 +74,4 @@
 #define relptr_copy(rp1, rp2) \
    ((rp1).relptr_off = (rp2).relptr_off)
 
-#endif   /* RELPTR_H */
+#endif                         /* RELPTR_H */
index 65d6ecb30ad6c16136e0d4f6b1a3d5be537c1423..2169b0306b9f5f607f458ac2b08078541bf59f79 100644 (file)
@@ -77,4 +77,4 @@ typedef struct TriggerDesc
    bool        trig_delete_old_table;
 } TriggerDesc;
 
-#endif   /* RELTRIGGER_H */
+#endif                         /* RELTRIGGER_H */
index bd9adb71d17f9fc6ce3be479225402d00b58c471..07d30d93bcd43126e1cf42e1b97a2add511dbd52 100644 (file)
@@ -79,4 +79,4 @@ extern void RegisterResourceReleaseCallback(ResourceReleaseCallback callback,
 extern void UnregisterResourceReleaseCallback(ResourceReleaseCallback callback,
                                  void *arg);
 
-#endif   /* RESOWNER_H */
+#endif                         /* RESOWNER_H */
index 411d08ff0b20bc9798f471154947e8011bf0deb8..2420b651b39b4c3a2d0cfcef9838fb1366d5756a 100644 (file)
@@ -88,4 +88,4 @@ extern void ResourceOwnerRememberDSM(ResourceOwner owner,
 extern void ResourceOwnerForgetDSM(ResourceOwner owner,
                       dsm_segment *);
 
-#endif   /* RESOWNER_PRIVATE_H */
+#endif                         /* RESOWNER_PRIVATE_H */
index fa2c44e160952ce26de2443734f759edecbb01b0..f9780ad0c09ba4dcb0282dca978eabf275391127 100644 (file)
@@ -47,4 +47,4 @@ enum CheckEnableRlsResult
 
 extern int check_enable_rls(Oid relid, Oid checkAsUser, bool noError);
 
-#endif   /* RLS_H */
+#endif                         /* RLS_H */
index 42fc872c4a054bc4f386bb6ceb4bab33be12b3a7..a2206cb7cd01cf613b24037762296a13bc923f89 100644 (file)
@@ -34,4 +34,4 @@ extern List *select_rtable_names_for_explain(List *rtable,
                                Bitmapset *rels_used);
 extern char *generate_collation_name(Oid collid);
 
-#endif   /* RULEUTILS_H */
+#endif                         /* RULEUTILS_H */
index 7edfc4a44d0e9759035d3ff2b5ea515c60df9523..f566e0b866516e667faa605588104fef228714a6 100644 (file)
@@ -32,7 +32,7 @@ typedef struct
    int         n;              /* desired sample size */
    BlockNumber t;              /* current block number */
    int         m;              /* blocks selected so far */
-   SamplerRandomState randstate;       /* random generator state */
+   SamplerRandomState randstate;   /* random generator state */
 } BlockSamplerData;
 
 typedef BlockSamplerData *BlockSampler;
@@ -47,7 +47,7 @@ extern BlockNumber BlockSampler_Next(BlockSampler bs);
 typedef struct
 {
    double      W;
-   SamplerRandomState randstate;       /* random generator state */
+   SamplerRandomState randstate;   /* random generator state */
 } ReservoirStateData;
 
 typedef ReservoirStateData *ReservoirState;
@@ -62,4 +62,4 @@ extern double anl_random_fract(void);
 extern double anl_init_selection_state(int n);
 extern double anl_get_next_S(double t, int n, double *stateptr);
 
-#endif   /* SAMPLING_H */
+#endif                         /* SAMPLING_H */
index d89a6e0e909bd3eba70b470d9d8f193d52773668..c7fdd540e8417a200c590d4853957796cf66b603 100644 (file)
@@ -126,10 +126,10 @@ typedef struct
 typedef struct
 {
    /* These are the values the cost estimator must return to the planner */
-   Cost        indexStartupCost;       /* index-related startup cost */
+   Cost        indexStartupCost;   /* index-related startup cost */
    Cost        indexTotalCost; /* total index-related scan cost */
-   Selectivity indexSelectivity;       /* selectivity of index */
-   double      indexCorrelation;       /* order correlation of index */
+   Selectivity indexSelectivity;   /* selectivity of index */
+   double      indexCorrelation;   /* order correlation of index */
 
    /* Intermediate values we obtain along the way */
    double      numIndexPages;  /* number of leaf pages visited */
@@ -222,4 +222,4 @@ extern Selectivity scalararraysel_containment(PlannerInfo *root,
                           Oid elemtype, bool isEquality, bool useOr,
                           int varRelid);
 
-#endif   /* SELFUNCS_H */
+#endif                         /* SELFUNCS_H */
index 2a3f8eca34f82f407ddd05af5e53783c49fd34b2..fc64153780461f6e822f3331d25d0c178a4bd323 100644 (file)
@@ -110,4 +110,4 @@ extern void SerializeSnapshot(Snapshot snapshot, char *start_address);
 extern Snapshot RestoreSnapshot(char *start_address);
 extern void RestoreTransactionSnapshot(Snapshot snapshot, void *master_pgproc);
 
-#endif   /* SNAPMGR_H */
+#endif                         /* SNAPMGR_H */
index d996049d11cbdb0913df5444f04c08cd0dd2ec33..074cc818649078068d5846bbab9581345baebfd7 100644 (file)
@@ -126,4 +126,4 @@ typedef enum
    HeapTupleWouldBlock         /* can be returned by heap_tuple_lock */
 } HTSU_Result;
 
-#endif   /* SNAPSHOT_H */
+#endif                         /* SNAPSHOT_H */
index 9ca8fe86aea43b16a2147c7b8c8878e439244172..6e8444b4fff5d113153f9b4d657ed456aad0c0b5 100644 (file)
@@ -72,7 +72,7 @@ typedef struct SortSupportData
     * sort support functions.
     */
    bool        ssup_reverse;   /* descending-order sort? */
-   bool        ssup_nulls_first;       /* sort nulls first? */
+   bool        ssup_nulls_first;   /* sort nulls first? */
 
    /*
     * These fields are workspace for callers, and should not be touched by
@@ -274,4 +274,4 @@ extern void PrepareSortSupportFromOrderingOp(Oid orderingOp, SortSupport ssup);
 extern void PrepareSortSupportFromIndexRel(Relation indexRel, int16 strategy,
                               SortSupport ssup);
 
-#endif   /* SORTSUPPORT_H */
+#endif                         /* SORTSUPPORT_H */
index 26f88da0b2d3e7e5199b51a296317e73f42bae17..7c45bb11ebd1bd2d23ea007c8d0da84fa88f1792 100644 (file)
@@ -17,4 +17,4 @@ void get_tablespace_page_costs(Oid spcid, float8 *spc_random_page_cost,
                          float8 *spc_seq_page_cost);
 int            get_tablespace_io_concurrency(Oid spcid);
 
-#endif   /* SPCCACHE_H */
+#endif                         /* SPCCACHE_H */
index 246601c90dbd05882f3d68512a5c6b92b0b0bc20..8352b40f4e27996e3f941485fb3084a19cf23eb7 100644 (file)
@@ -209,4 +209,4 @@ extern bool RelationSupportsSysCache(Oid relid);
 
 #define ReleaseSysCacheList(x) ReleaseCatCacheList(x)
 
-#endif   /* SYSCACHE_H */
+#endif                         /* SYSCACHE_H */
index aa816334c02a5d1187a0ec09833448324e28e2ea..5a2efc0dd94fc5daed3844408577f12b9ffa4f15 100644 (file)
@@ -84,4 +84,4 @@ extern bool get_timeout_indicator(TimeoutId id, bool reset_indicator);
 extern TimestampTz get_timeout_start_time(TimeoutId id);
 extern TimestampTz get_timeout_finish_time(TimeoutId id);
 
-#endif   /* TIMEOUT_H */
+#endif                         /* TIMEOUT_H */
index c15850445e4b6ce860721a9dad56e2e9cc27681a..3f2d31dec8d361b8052837317add54b2a1e0564e 100644 (file)
@@ -104,4 +104,4 @@ extern int  date2isoweek(int year, int mon, int mday);
 extern int date2isoyear(int year, int mon, int mday);
 extern int date2isoyearday(int year, int mon, int mday);
 
-#endif   /* TIMESTAMP_H */
+#endif                         /* TIMESTAMP_H */
index f39f21bb64120f3984ad976169500dca7e8536f1..036d9898d694e0a26826ea3a5b804954e0022cd1 100644 (file)
@@ -51,7 +51,7 @@ typedef enum
    HEAPTUPLE_DEAD,             /* tuple is dead and deletable */
    HEAPTUPLE_LIVE,             /* tuple is live (committed, no deleter) */
    HEAPTUPLE_RECENTLY_DEAD,    /* tuple is dead, but not deletable yet */
-   HEAPTUPLE_INSERT_IN_PROGRESS,       /* inserting xact is still in progress */
+   HEAPTUPLE_INSERT_IN_PROGRESS,   /* inserting xact is still in progress */
    HEAPTUPLE_DELETE_IN_PROGRESS    /* deleting xact is still in progress */
 } HTSV_Result;
 
@@ -109,4 +109,4 @@ extern bool ResolveCminCmaxDuringDecoding(struct HTAB *tuplecid_data,
     (snapshotdata).lsn = (l),                  \
     (snapshotdata).whenTaken = (w))
 
-#endif   /* TQUAL_H */
+#endif                         /* TQUAL_H */
index 14b9026fb7ffcb10555bcd60b31b31ef22b5825d..28c168a801e795653efe4bba4c12d7e788adace8 100644 (file)
@@ -123,4 +123,4 @@ extern void tuplesort_rescan(Tuplesortstate *state);
 extern void tuplesort_markpos(Tuplesortstate *state);
 extern void tuplesort_restorepos(Tuplesortstate *state);
 
-#endif   /* TUPLESORT_H */
+#endif                         /* TUPLESORT_H */
index b31ede882b93a40408d86b4b40471d2733aab8da..7f4e1e318fa5ca1c44aa4c72c3bcd8e561ad6f1c 100644 (file)
@@ -88,4 +88,4 @@ extern void tuplestore_clear(Tuplestorestate *state);
 
 extern void tuplestore_end(Tuplestorestate *state);
 
-#endif   /* TUPLESTORE_H */
+#endif                         /* TUPLESTORE_H */
index 1bf94e2548da0e6ac9b906dc48ed983534686b66..c12631dafe23dd8cadf03eb9faa298a2aafdcffc 100644 (file)
@@ -83,9 +83,9 @@ typedef struct TypeCacheEntry
     */
    struct TypeCacheEntry *rngelemtype; /* range's element type */
    Oid         rng_collation;  /* collation for comparisons, if any */
-   FmgrInfo    rng_cmp_proc_finfo;     /* comparison function */
+   FmgrInfo    rng_cmp_proc_finfo; /* comparison function */
    FmgrInfo    rng_canonical_finfo;    /* canonicalization function, if any */
-   FmgrInfo    rng_subdiff_finfo;      /* difference function, if any */
+   FmgrInfo    rng_subdiff_finfo;  /* difference function, if any */
 
    /*
     * Domain constraint data if it's a domain type.  NULL if not domain, or
@@ -136,7 +136,7 @@ typedef struct DomainConstraintRef
 
    /* Management data --- treat these fields as private to typcache.c */
    DomainConstraintCache *dcc; /* current constraints, or NULL if none */
-   MemoryContextCallback callback;     /* used to release refcount when done */
+   MemoryContextCallback callback; /* used to release refcount when done */
 } DomainConstraintRef;
 
 
@@ -160,4 +160,4 @@ extern void assign_record_type_typmod(TupleDesc tupDesc);
 
 extern int compare_values_of_enum(TypeCacheEntry *tcache, Oid arg1, Oid arg2);
 
-#endif   /* TYPCACHE_H */
+#endif                         /* TYPCACHE_H */
index c22467de1aded9fbc385bb64fdcab99949942e06..1e444e1159670d5e1ae2b34d2fa32de12d594ab0 100644 (file)
@@ -36,4 +36,4 @@ typedef struct tzEntry
 
 extern TimeZoneAbbrevTable *load_tzoffsets(const char *filename);
 
-#endif   /* TZPARSER_H */
+#endif                         /* TZPARSER_H */
index 9e62d81c3d6077eb2ea6b40bac063217f033bfc5..ed3ec28959c0a534edbd7788a1374096863ec7d5 100644 (file)
@@ -28,4 +28,4 @@ typedef struct pg_uuid_t
 #define DatumGetUUIDP(X)       ((pg_uuid_t *) DatumGetPointer(X))
 #define PG_GETARG_UUID_P(X)        DatumGetUUIDP(PG_GETARG_DATUM(X))
 
-#endif   /* UUID_H */
+#endif                         /* UUID_H */
index fd3a3fba0158c99835654c506159b0d519051df8..e6fa0e2051bea8117aae643947176415107af1f6 100644 (file)
@@ -40,7 +40,7 @@ typedef enum
 {
    PG_XML_STRICTNESS_LEGACY,   /* ignore errors unless function result
                                 * indicates error condition */
-   PG_XML_STRICTNESS_WELLFORMED,       /* ignore non-parser messages */
+   PG_XML_STRICTNESS_WELLFORMED,   /* ignore non-parser messages */
    PG_XML_STRICTNESS_ALL       /* report all notices/warnings/errors */
 } PgXmlStrictness;
 
@@ -81,4 +81,4 @@ extern int    xmloption;          /* XmlOptionType, but int for guc enum */
 
 extern const TableFuncRoutine XmlTableRoutine;
 
-#endif   /* XML_H */
+#endif                         /* XML_H */
index 481ebe06cf012f62777e2d9570c996eeead7e91b..0aa23ef2f556f7233fc2073c5d5e2e0dcaa2a177 100644 (file)
@@ -61,4 +61,4 @@ extern Datum WinGetFuncArgInFrame(WindowObject winobj, int argno,
 extern Datum WinGetFuncArgCurrent(WindowObject winobj, int argno,
                     bool *isnull);
 
-#endif   /* WINDOWAPI_H */
+#endif                         /* WINDOWAPI_H */
index 499a4c1780430f04c7a9081da7ada231dd77a566..b80e1d4c5b178cc15cf89058a5f2469353021131 100644 (file)
@@ -187,7 +187,7 @@ ecpg_get_data(const PGresult *results, int act_tuple, int act_field, int lineno,
        case ECPGt_unsigned_long_long:
            *((long long int *) (ind + ind_offset * act_tuple)) = value_for_indicator;
            break;
-#endif   /* HAVE_LONG_LONG_INT */
+#endif                         /* HAVE_LONG_LONG_INT */
        case ECPGt_NO_INDICATOR:
            if (value_for_indicator == -1)
            {
@@ -275,7 +275,7 @@ ecpg_get_data(const PGresult *results, int act_tuple, int act_field, int lineno,
                        case ECPGt_unsigned_long_long:
                            *((long long int *) (ind + ind_offset * act_tuple)) = size;
                            break;
-#endif   /* HAVE_LONG_LONG_INT */
+#endif                         /* HAVE_LONG_LONG_INT */
                        default:
                            break;
                    }
@@ -369,7 +369,7 @@ ecpg_get_data(const PGresult *results, int act_tuple, int act_field, int lineno,
                    pval = scan_length;
 
                    break;
-#endif   /* HAVE_STRTOLL */
+#endif                         /* HAVE_STRTOLL */
 #ifdef HAVE_STRTOULL
                case ECPGt_unsigned_long_long:
                    *((unsigned long long int *) (var + offset * act_tuple)) = strtoull(pval, &scan_length, 10);
@@ -381,8 +381,8 @@ ecpg_get_data(const PGresult *results, int act_tuple, int act_field, int lineno,
                    pval = scan_length;
 
                    break;
-#endif   /* HAVE_STRTOULL */
-#endif   /* HAVE_LONG_LONG_INT */
+#endif                         /* HAVE_STRTOULL */
+#endif                         /* HAVE_LONG_LONG_INT */
 
                case ECPGt_float:
                case ECPGt_double:
@@ -496,7 +496,7 @@ ecpg_get_data(const PGresult *results, int act_tuple, int act_field, int lineno,
                                    case ECPGt_unsigned_long_long:
                                        *((long long int *) (ind + ind_offset * act_tuple)) = size;
                                        break;
-#endif   /* HAVE_LONG_LONG_INT */
+#endif                         /* HAVE_LONG_LONG_INT */
                                    default:
                                        break;
                                }
@@ -541,7 +541,7 @@ ecpg_get_data(const PGresult *results, int act_tuple, int act_field, int lineno,
                                    case ECPGt_unsigned_long_long:
                                        *((long long int *) (ind + ind_offset * act_tuple)) = variable->len;
                                        break;
-#endif   /* HAVE_LONG_LONG_INT */
+#endif                         /* HAVE_LONG_LONG_INT */
                                    default:
                                        break;
                                }
index 1baa3ed17578ab8d4c501255acfee2c0fb4b8b02..1fa00b892f4def2a16449fb435f7c97fcbe1f171 100644 (file)
@@ -141,7 +141,7 @@ get_int_item(int lineno, void *var, enum ECPGttype vartype, int value)
        case ECPGt_unsigned_long_long:
            *(unsigned long long int *) var = (unsigned long long int) value;
            break;
-#endif   /* HAVE_LONG_LONG_INT */
+#endif                         /* HAVE_LONG_LONG_INT */
        case ECPGt_float:
            *(float *) var = (float) value;
            break;
@@ -186,7 +186,7 @@ set_int_item(int lineno, int *target, const void *var, enum ECPGttype vartype)
        case ECPGt_unsigned_long_long:
            *target = *(const unsigned long long int *) var;
            break;
-#endif   /* HAVE_LONG_LONG_INT */
+#endif                         /* HAVE_LONG_LONG_INT */
        case ECPGt_float:
            *target = *(const float *) var;
            break;
@@ -753,7 +753,7 @@ descriptor_deallocate_all(struct descriptor *list)
        list = next;
    }
 }
-#endif   /* ENABLE_THREAD_SAFETY */
+#endif                         /* ENABLE_THREAD_SAFETY */
 
 bool
 ECPGallocate_desc(int line, const char *name)
@@ -855,7 +855,7 @@ ECPGdescribe(int line, int compat, bool input, const char *connection_name, cons
 
        /* rest of variable parameters */
        ptr = va_arg(args, void *);
-       (void) va_arg(args, long);      /* skip args */
+       (void) va_arg(args, long);  /* skip args */
        (void) va_arg(args, long);
        (void) va_arg(args, long);
 
index 3c4cc74c311fb08b3df60920d512db5648845b08..92b74f432c49a6b8e9dcb22df272020ac92c2aaf 100644 (file)
@@ -364,7 +364,7 @@ ecpg_store_result(const PGresult *results, int act_field,
                        /* special mode for handling char**foo=0 */
                        for (act_tuple = 0; act_tuple < ntuples; act_tuple++)
                            len += strlen(PQgetvalue(results, act_tuple, act_field)) + 1;
-                       len *= var->offset;     /* should be 1, but YMNK */
+                       len *= var->offset; /* should be 1, but YMNK */
                        len += (ntuples + 1) * sizeof(char *);
                    }
                    else
@@ -534,7 +534,7 @@ ecpg_store_input(const int lineno, const bool force_indicator, const struct vari
            if (*(long long int *) var->ind_value < (long long) 0)
                *tobeinserted_p = NULL;
            break;
-#endif   /* HAVE_LONG_LONG_INT */
+#endif                         /* HAVE_LONG_LONG_INT */
        case ECPGt_NO_INDICATOR:
            if (force_indicator == false)
            {
@@ -704,7 +704,7 @@ ecpg_store_input(const int lineno, const bool force_indicator, const struct vari
 
                *tobeinserted_p = mallocedval;
                break;
-#endif   /* HAVE_LONG_LONG_INT */
+#endif                         /* HAVE_LONG_LONG_INT */
            case ECPGt_float:
                if (!(mallocedval = ecpg_alloc(asize * 25, lineno)))
                    return false;
@@ -1361,8 +1361,8 @@ ecpg_build_params(struct statement *stmt)
            if (stmt->command[position] == '?')
            {
                /* yes, replace with new style */
-               int         buffersize = sizeof(int) * CHAR_BIT * 10 / 3;       /* a rough guess of the
-                                                                                * size we need */
+               int         buffersize = sizeof(int) * CHAR_BIT * 10 / 3;   /* a rough guess of the
+                                                                            * size we need */
 
                if (!(tobeinserted = (char *) ecpg_alloc(buffersize, stmt->lineno)))
                {
index 2040bc163e9a4e18237bf1d44e0a76b21c307958..94810c07b7b3420bdab78067ab2288382e47264f 100644 (file)
@@ -220,4 +220,4 @@ void        ecpg_set_native_sqlda(int, struct sqlda_struct **, const PGresult *, int,
 #define ECPG_SQLSTATE_ECPG_INTERNAL_ERROR  "YE000"
 #define ECPG_SQLSTATE_ECPG_OUT_OF_MEMORY   "YE001"
 
-#endif   /* _ECPG_LIB_EXTERN_H */
+#endif                         /* _ECPG_LIB_EXTERN_H */
index f8ad5d733c98e86eb3ca53ae9f5228120cfb5ab5..edd7302d546fa1293cb04accf07869041852767f 100644 (file)
@@ -23,9 +23,9 @@
 #define LONG_LONG_MIN LLONG_MIN
 #else
 #define LONG_LONG_MIN LONGLONG_MIN
-#endif   /* LLONG_MIN */
-#endif   /* LONG_LONG_MIN */
-#endif   /* HAVE_LONG_LONG_INT */
+#endif                         /* LLONG_MIN */
+#endif                         /* LONG_LONG_MIN */
+#endif                         /* HAVE_LONG_LONG_INT */
 
 bool       ecpg_internal_regression_mode = false;
 
@@ -344,7 +344,7 @@ ECPGset_noind_null(enum ECPGttype type, void *ptr)
        case ECPGt_unsigned_long_long:
            *((long long *) ptr) = LONG_LONG_MIN;
            break;
-#endif   /* HAVE_LONG_LONG_INT */
+#endif                         /* HAVE_LONG_LONG_INT */
        case ECPGt_float:
            memset((char *) ptr, 0xff, sizeof(float));
            break;
@@ -417,7 +417,7 @@ ECPGis_noind_null(enum ECPGttype type, void *ptr)
            if (*((long long *) ptr) == LONG_LONG_MIN)
                return true;
            break;
-#endif   /* HAVE_LONG_LONG_INT */
+#endif                         /* HAVE_LONG_LONG_INT */
        case ECPGt_float:
            return (_check(ptr, sizeof(float)));
            break;
@@ -481,8 +481,8 @@ win32_pthread_once(volatile pthread_once_t *once, void (*fn) (void))
        pthread_mutex_unlock(&win32_pthread_once_lock);
    }
 }
-#endif   /* ENABLE_THREAD_SAFETY */
-#endif   /* WIN32 */
+#endif                         /* ENABLE_THREAD_SAFETY */
+#endif                         /* WIN32 */
 
 #ifdef ENABLE_NLS
 
@@ -516,7 +516,7 @@ ecpg_gettext(const char *msgid)
 
    return dgettext(PG_TEXTDOMAIN("ecpglib"), msgid);
 }
-#endif   /* ENABLE_NLS */
+#endif                         /* ENABLE_NLS */
 
 struct var_list *ivlist = NULL;
 
index 48ae4801290c117012db07fd73fcc0404959fe86..94d2d9287b447f2fb33df26f46c798c2de6db0b5 100644 (file)
@@ -76,4 +76,4 @@
 #define JSONBOID 3802
 #define INT4RANGEOID       3904
 
-#endif   /* PG_TYPE_H */
+#endif                         /* PG_TYPE_H */
index e26ab3532ff6087257955fb7b64f384f661dced8..f05d0c0dc4d12e4523f974220ff131abe9e01316 100644 (file)
@@ -23,8 +23,8 @@ typedef struct
 } stmtCacheEntry;
 
 static int nextStmtID = 1;
-static const int stmtCacheNBuckets = 2039;     /* # buckets - a prime # */
-static const int stmtCacheEntPerBucket = 8;        /* # entries/bucket     */
+static const int stmtCacheNBuckets = 2039; /* # buckets - a prime # */
+static const int stmtCacheEntPerBucket = 8; /* # entries/bucket        */
 static stmtCacheEntry stmtCacheEntries[16384] = {{0, {0}, 0, 0, 0}};
 
 static bool deallocate_one(int lineno, enum COMPAT_MODE c, struct connection *con,
@@ -380,7 +380,7 @@ SearchStmtCache(const char *ecpgQuery)
  *  OR  negative error code
  */
 static int
-ecpg_freeStmtCacheEntry(int lineno, int compat, int entNo)     /* entry # to free */
+ecpg_freeStmtCacheEntry(int lineno, int compat, int entNo) /* entry # to free */
 {
    stmtCacheEntry *entry;
    struct connection *con;
@@ -416,7 +416,7 @@ ecpg_freeStmtCacheEntry(int lineno, int compat, int entNo)      /* entry # to free *
  */
 static int
 AddStmtToCache(int lineno,     /* line # of statement      */
-              const char *stmtID,      /* statement ID             */
+              const char *stmtID,  /* statement ID             */
               const char *connection,  /* connection               */
               int compat,      /* compatibility level */
               const char *ecpgQuery)   /* query                    */
index f90279cf81a2143836a6613341295e4aff5599e2..48587e49c7624d40439598ca8828b0363be635d2 100644 (file)
@@ -75,19 +75,19 @@ ecpg_dynamic_type(Oid type)
        case BOOLOID:
            return SQL3_BOOLEAN;    /* bool */
        case INT2OID:
-           return SQL3_SMALLINT;       /* int2 */
+           return SQL3_SMALLINT;   /* int2 */
        case INT4OID:
            return SQL3_INTEGER;    /* int4 */
        case TEXTOID:
-           return SQL3_CHARACTER;      /* text */
+           return SQL3_CHARACTER;  /* text */
        case FLOAT4OID:
            return SQL3_REAL;   /* float4 */
        case FLOAT8OID:
-           return SQL3_DOUBLE_PRECISION;       /* float8 */
+           return SQL3_DOUBLE_PRECISION;   /* float8 */
        case BPCHAROID:
-           return SQL3_CHARACTER;      /* bpchar */
+           return SQL3_CHARACTER;  /* bpchar */
        case VARCHAROID:
-           return SQL3_CHARACTER_VARYING;      /* varchar */
+           return SQL3_CHARACTER_VARYING;  /* varchar */
        case DATEOID:
            return SQL3_DATE_TIME_TIMESTAMP;    /* date */
        case TIMEOID:
index 9394a129f1b725520ec8c83d6b88f6388055b736..44b24227e55a5b477fa454892d088e70a9227c74 100644 (file)
@@ -9,6 +9,6 @@
 #ifndef _ECPGLIB_H
 typedef timestamp dtime_t;
 typedef interval intrvl_t;
-#endif   /* ndef _ECPGLIB_H */
+#endif                         /* ndef _ECPGLIB_H */
 
-#endif   /* ndef _ECPG_DATETIME_H */
+#endif                         /* ndef _ECPG_DATETIME_H */
index 11b02de8aef006cf47e31683d99f6232fe37866b..6ac296253043600ca5b03165c62a9a3e1ede9b46 100644 (file)
@@ -8,6 +8,6 @@
 /* source created by ecpg which defines this */
 #ifndef _ECPGLIB_H
 typedef decimal dec_t;
-#endif   /* ndef _ECPGLIB_H */
+#endif                         /* ndef _ECPGLIB_H */
 
-#endif   /* ndef _ECPG_DECIMAL_H */
+#endif                         /* ndef _ECPG_DECIMAL_H */
index 7e59357a38ebc8ccb95c3816518ca3c4dc3c7747..33c897b633c57eda24c2e9dc32eec7f7ffc18a0c 100644 (file)
@@ -52,7 +52,7 @@ void      win32_pthread_once(volatile pthread_once_t *once, void (*fn) (void));
        if (!*(once)) \
            win32_pthread_once((once), (fn)); \
    } while(0)
-#endif   /* WIN32 */
-#endif   /* ENABLE_THREAD_SAFETY */
+#endif                         /* WIN32 */
+#endif                         /* ENABLE_THREAD_SAFETY */
 
-#endif   /* _ECPG_PTHREAD_WIN32_H */
+#endif                         /* _ECPG_PTHREAD_WIN32_H */
index c3c847d854bed6fa73e4913b9cee4cd1de7da6a4..dd6258152ae02bfaee9ba8c9d2bc5c2a6f81be01 100644 (file)
@@ -87,4 +87,4 @@ extern int    dtcvfmtasc(char *, char *, timestamp *);
 }
 #endif
 
-#endif   /* ndef _ECPG_INFORMIX_H */
+#endif                         /* ndef _ECPG_INFORMIX_H */
index 36b15b7a6168fa40e789b0144f13a6915a317821..c4bc526463d99b44bcb221e52b0eeb4ab295f438 100644 (file)
@@ -76,4 +76,4 @@
  /* WARNING:  BlankPortalAssignName: portal * already exists */
 #define ECPG_WARNING_PORTAL_EXISTS    -605
 
-#endif   /* !_ECPG_ERRNO_H */
+#endif                         /* !_ECPG_ERRNO_H */
index 755fdaaf0c1e382f6d7f1c8ea7fe492f8362ce18..536b7506ffa1b607a9b082607009a7ce9f6d9d69 100644 (file)
@@ -21,23 +21,23 @@ extern char *ecpg_gettext(const char *msgid) pg_attribute_format_arg(1);
 #ifndef __cplusplus
 #ifndef bool
 #define bool char
-#endif   /* ndef bool */
+#endif                         /* ndef bool */
 
 #ifndef true
 #define true   ((bool) 1)
-#endif   /* ndef true */
+#endif                         /* ndef true */
 #ifndef false
 #define false  ((bool) 0)
-#endif   /* ndef false */
-#endif   /* not C++ */
+#endif                         /* ndef false */
+#endif                         /* not C++ */
 
 #ifndef TRUE
 #define TRUE   1
-#endif   /* TRUE */
+#endif                         /* TRUE */
 
 #ifndef FALSE
 #define FALSE  0
-#endif   /* FALSE */
+#endif                         /* FALSE */
 
 #ifdef __cplusplus
 extern "C"
@@ -97,4 +97,4 @@ void      ecpg_pthreads_init(void);
 }
 #endif
 
-#endif   /* _ECPGLIB_H */
+#endif                         /* _ECPGLIB_H */
index 236d028154d0990f303ad380586f75fdbdaa4cad..38fb3b6eaf5a4b0f42afd568337d76d466573b58 100644 (file)
@@ -103,4 +103,4 @@ enum ECPG_statement_type
 }
 #endif
 
-#endif   /* _ECPGTYPE_H */
+#endif                         /* _ECPGTYPE_H */
index 463cf769a7d3e38d8234167edf4f5e859e7dddea..3d1a181b2b70c4f88665c3f570c173ae309f0950 100644 (file)
@@ -28,4 +28,4 @@ extern int    PGTYPESdate_fmt_asc(date, const char *, char *);
 }
 #endif
 
-#endif   /* PGTYPES_DATETIME */
+#endif                         /* PGTYPES_DATETIME */
index e1b089d862821e962c51723701eba5d33b349138..5747736fe16922dc0e19131624814c8822a21b24 100644 (file)
@@ -21,7 +21,7 @@ typedef long long int int64;
 #endif
 
 #define HAVE_INT64_TIMESTAMP
-#endif   /* C_H */
+#endif                         /* C_H */
 
 typedef struct
 {
@@ -44,4 +44,4 @@ extern int    PGTYPESinterval_copy(interval *, interval *);
 }
 #endif
 
-#endif   /* PGTYPES_INTERVAL */
+#endif                         /* PGTYPES_INTERVAL */
index 38b8fdcc4b3895ffc4ac723a02d1c68464f643ce..56c46ea2729be8626616165dcbefddc72ddff062 100644 (file)
@@ -31,7 +31,7 @@ typedef struct
    int         rscale;         /* result scale */
    int         dscale;         /* display scale */
    int         sign;           /* NUMERIC_POS, NUMERIC_NEG, or NUMERIC_NAN */
-   NumericDigit digits[DECSIZE];       /* decimal digits */
+   NumericDigit digits[DECSIZE];   /* decimal digits */
 } decimal;
 
 #ifdef __cplusplus
@@ -64,4 +64,4 @@ int           PGTYPESnumeric_from_decimal(decimal *, numeric *);
 }
 #endif
 
-#endif   /* PGTYPES_NUMERIC */
+#endif                         /* PGTYPES_NUMERIC */
index 9d185f21fe035b8694c0b98ad1ad9077d0d7da8f..283ecca25eb37dece4e3f08d07accfa652881b80 100644 (file)
@@ -27,4 +27,4 @@ extern int    PGTYPEStimestamp_sub_interval(timestamp * tin, interval * span, times
 }
 #endif
 
-#endif   /* PGTYPES_TIMESTAMP */
+#endif                         /* PGTYPES_TIMESTAMP */
index b9db452dace41cd8636064218183237337a889b5..644b616cf877cc0b086de12f9cb21172920589f3 100644 (file)
@@ -40,4 +40,4 @@ enum
                                 * standard) */
 };
 
-#endif   /* !_ECPG_SQL3TYPES_H */
+#endif                         /* !_ECPG_SQL3TYPES_H */
index b4ab93fa3b47fca42029618286541fd45da67bbe..c5f107dd33c3b5c81d6e53e66b825e4d8bc9c241 100644 (file)
@@ -6,8 +6,8 @@
 #define PGDLLIMPORT __declspec (dllimport)
 #else
 #define PGDLLIMPORT
-#endif   /* __CYGWIN__ */
-#endif   /* PGDLLIMPORT */
+#endif                         /* __CYGWIN__ */
+#endif                         /* PGDLLIMPORT */
 
 #define SQLERRMC_LEN   150
 
index 2c4e07c5f1b0754de80c5b352366990119fe1a95..7393182aa9510274c7bf2afc87aa54b4572aaff7 100644 (file)
@@ -40,8 +40,8 @@ struct sqlda_compat
    struct sqlvar_compat *sqlvar;
    char        desc_name[19];  /* descriptor name              */
    short       desc_occ;       /* size of sqlda structure      */
-   struct sqlda_compat *desc_next;     /* pointer to next sqlda struct */
+   struct sqlda_compat *desc_next; /* pointer to next sqlda struct */
    void       *reserved;       /* reserved for future use */
 };
 
-#endif   /* ECPG_SQLDA_COMPAT_H */
+#endif                         /* ECPG_SQLDA_COMPAT_H */
index acb314cd1724c622db9b76ac1c2811442f0915fb..67d3c7b4e45e97e2183c7ca69361e8306a5652ad 100644 (file)
@@ -40,4 +40,4 @@ struct sqlda_struct
    struct sqlvar_struct sqlvar[1];
 };
 
-#endif   /* ECPG_SQLDA_NATIVE_H */
+#endif                         /* ECPG_SQLDA_NATIVE_H */
index c265beb66cc5a10bce55ad755a017a8c8356199d..d810e739e207ac99c87c6867c4b2410a5c78b006 100644 (file)
@@ -15,4 +15,4 @@ typedef struct sqlda_struct sqlda_t;
 
 #endif
 
-#endif   /* ECPG_SQLDA_H */
+#endif                         /* ECPG_SQLDA_H */
index 797cb5b1be4f6514841a334fce9027f77250df95..e7cbfa479567de6324fc68b24278416663f77dee 100644 (file)
@@ -54,4 +54,4 @@
 #define SQLSERIAL8 ECPGt_long
 #endif
 
-#endif   /* ndef ECPG_SQLTYPES_H */
+#endif                         /* ndef ECPG_SQLTYPES_H */
index 2a93eb68578fc33f6a74592384ae67262b7b81e3..33c9011a71fc3706186a85796b0faa4a3d003df3 100644 (file)
@@ -156,8 +156,8 @@ PGTYPESdate_today(date * d)
    return;
 }
 
-#define PGTYPES_DATE_NUM_MAX_DIGITS        20      /* should suffice for most
-                                                * years... */
+#define PGTYPES_DATE_NUM_MAX_DIGITS        20  /* should suffice for most
+                                            * years... */
 
 #define PGTYPES_FMTDATE_DAY_DIGITS_LZ      1   /* LZ means "leading zeroes" */
 #define PGTYPES_FMTDATE_DOW_LITERAL_SHORT  2
index f70181380b2b8b5c262fe23e75c792fb7026137a..5a192ddc4533900dd0b997fd694a6b76b997fecc 100644 (file)
@@ -338,4 +338,4 @@ extern char *months[];
 extern char *days[];
 extern int day_tab[2][13];
 
-#endif   /* DT_H */
+#endif                         /* DT_H */
index a88e1b94ab138dcd97817f8c87fdbba5c2b6974f..9bbe5c501bac42292b8cc0dfd81c9d53c902b1e2 100644 (file)
@@ -30,7 +30,7 @@ static datetkn datetktbl[] = {
    {"ahst", TZ, -36000},       /* Alaska-Hawaii Std Time */
    {"akdt", DTZ, -28800},      /* Alaska Daylight Time */
    {"akst", DTZ, -32400},      /* Alaska Standard Time */
-   {"allballs", RESERV, DTK_ZULU},     /* 00:00:00 */
+   {"allballs", RESERV, DTK_ZULU}, /* 00:00:00 */
    {"almst", TZ, 25200},       /* Almaty Savings Time */
    {"almt", TZ, 21600},        /* Almaty Time */
    {"am", AMPM, AM},
@@ -201,12 +201,12 @@ static datetkn datetktbl[] = {
    idt                         /* Israeli, Iran, Indian Daylight Time */
 #endif
    {LATE, RESERV, DTK_LATE},   /* "infinity" reserved for "late time" */
-   {INVALID, RESERV, DTK_INVALID},     /* "invalid" reserved for bad time */
+   {INVALID, RESERV, DTK_INVALID}, /* "invalid" reserved for bad time */
    {"iot", TZ, 18000},         /* Indian Chagos Time */
    {"irkst", DTZ, 32400},      /* Irkutsk Summer Time */
    {"irkt", TZ, 28800},        /* Irkutsk Time */
    {"irt", TZ, 12600},         /* Iran Time */
-   {"isodow", UNITS, DTK_ISODOW},      /* ISO day of week, Sunday == 7 */
+   {"isodow", UNITS, DTK_ISODOW},  /* ISO day of week, Sunday == 7 */
 #if 0
    isst
 #endif
@@ -425,33 +425,33 @@ static datetkn deltatktbl[] = {
    {"@", IGNORE_DTF, 0},       /* postgres relative prefix */
    {DAGO, AGO, 0},             /* "ago" indicates negative time offset */
    {"c", UNITS, DTK_CENTURY},  /* "century" relative */
-   {"cent", UNITS, DTK_CENTURY},       /* "century" relative */
+   {"cent", UNITS, DTK_CENTURY},   /* "century" relative */
    {"centuries", UNITS, DTK_CENTURY},  /* "centuries" relative */
-   {DCENTURY, UNITS, DTK_CENTURY},     /* "century" relative */
+   {DCENTURY, UNITS, DTK_CENTURY}, /* "century" relative */
    {"d", UNITS, DTK_DAY},      /* "day" relative */
    {DDAY, UNITS, DTK_DAY},     /* "day" relative */
    {"days", UNITS, DTK_DAY},   /* "days" relative */
    {"dec", UNITS, DTK_DECADE}, /* "decade" relative */
-   {DDECADE, UNITS, DTK_DECADE},       /* "decade" relative */
-   {"decades", UNITS, DTK_DECADE},     /* "decades" relative */
+   {DDECADE, UNITS, DTK_DECADE},   /* "decade" relative */
+   {"decades", UNITS, DTK_DECADE}, /* "decades" relative */
    {"decs", UNITS, DTK_DECADE},    /* "decades" relative */
    {"h", UNITS, DTK_HOUR},     /* "hour" relative */
    {DHOUR, UNITS, DTK_HOUR},   /* "hour" relative */
    {"hours", UNITS, DTK_HOUR}, /* "hours" relative */
    {"hr", UNITS, DTK_HOUR},    /* "hour" relative */
    {"hrs", UNITS, DTK_HOUR},   /* "hours" relative */
-   {INVALID, RESERV, DTK_INVALID},     /* reserved for invalid time */
+   {INVALID, RESERV, DTK_INVALID}, /* reserved for invalid time */
    {"m", UNITS, DTK_MINUTE},   /* "minute" relative */
-   {"microsecon", UNITS, DTK_MICROSEC},        /* "microsecond" relative */
-   {"mil", UNITS, DTK_MILLENNIUM},     /* "millennium" relative */
-   {"millennia", UNITS, DTK_MILLENNIUM},       /* "millennia" relative */
-   {DMILLENNIUM, UNITS, DTK_MILLENNIUM},       /* "millennium" relative */
-   {"millisecon", UNITS, DTK_MILLISEC},        /* relative */
+   {"microsecon", UNITS, DTK_MICROSEC},    /* "microsecond" relative */
+   {"mil", UNITS, DTK_MILLENNIUM}, /* "millennium" relative */
+   {"millennia", UNITS, DTK_MILLENNIUM},   /* "millennia" relative */
+   {DMILLENNIUM, UNITS, DTK_MILLENNIUM},   /* "millennium" relative */
+   {"millisecon", UNITS, DTK_MILLISEC},    /* relative */
    {"mils", UNITS, DTK_MILLENNIUM},    /* "millennia" relative */
    {"min", UNITS, DTK_MINUTE}, /* "minute" relative */
    {"mins", UNITS, DTK_MINUTE},    /* "minutes" relative */
-   {DMINUTE, UNITS, DTK_MINUTE},       /* "minute" relative */
-   {"minutes", UNITS, DTK_MINUTE},     /* "minutes" relative */
+   {DMINUTE, UNITS, DTK_MINUTE},   /* "minute" relative */
+   {"minutes", UNITS, DTK_MINUTE}, /* "minutes" relative */
    {"mon", UNITS, DTK_MONTH},  /* "months" relative */
    {"mons", UNITS, DTK_MONTH}, /* "months" relative */
    {DMONTH, UNITS, DTK_MONTH}, /* "month" relative */
@@ -462,7 +462,7 @@ static datetkn deltatktbl[] = {
    {"mseconds", UNITS, DTK_MILLISEC},
    {"msecs", UNITS, DTK_MILLISEC},
    {"qtr", UNITS, DTK_QUARTER},    /* "quarter" relative */
-   {DQUARTER, UNITS, DTK_QUARTER},     /* "quarter" relative */
+   {DQUARTER, UNITS, DTK_QUARTER}, /* "quarter" relative */
    {"s", UNITS, DTK_SECOND},
    {"sec", UNITS, DTK_SECOND},
    {DSECOND, UNITS, DTK_SECOND},
@@ -470,13 +470,13 @@ static datetkn deltatktbl[] = {
    {"secs", UNITS, DTK_SECOND},
    {DTIMEZONE, UNITS, DTK_TZ}, /* "timezone" time offset */
    {"timezone_h", UNITS, DTK_TZ_HOUR}, /* timezone hour units */
-   {"timezone_m", UNITS, DTK_TZ_MINUTE},       /* timezone minutes units */
+   {"timezone_m", UNITS, DTK_TZ_MINUTE},   /* timezone minutes units */
    {"undefined", RESERV, DTK_INVALID}, /* pre-v6.1 invalid time */
    {"us", UNITS, DTK_MICROSEC},    /* "microsecond" relative */
-   {"usec", UNITS, DTK_MICROSEC},      /* "microsecond" relative */
+   {"usec", UNITS, DTK_MICROSEC},  /* "microsecond" relative */
    {DMICROSEC, UNITS, DTK_MICROSEC},   /* "microsecond" relative */
    {"useconds", UNITS, DTK_MICROSEC},  /* "microseconds" relative */
-   {"usecs", UNITS, DTK_MICROSEC},     /* "microseconds" relative */
+   {"usecs", UNITS, DTK_MICROSEC}, /* "microseconds" relative */
    {"w", UNITS, DTK_WEEK},     /* "week" relative */
    {DWEEK, UNITS, DTK_WEEK},   /* "week" relative */
    {"weeks", UNITS, DTK_WEEK}, /* "weeks" relative */
index 88b2fb0775942d7bfd28fb58aeb621fc053db4b8..9df800ea1d531eb5c363fc19510181b6d6873bf7 100644 (file)
 #define PGTYPES_TYPE_STRING_MALLOCED       1
 #define PGTYPES_TYPE_STRING_CONSTANT       2
 #define PGTYPES_TYPE_CHAR          3
-#define PGTYPES_TYPE_DOUBLE_NF         4       /* no fractional part */
+#define PGTYPES_TYPE_DOUBLE_NF         4   /* no fractional part */
 #define PGTYPES_TYPE_INT64         5
 #define PGTYPES_TYPE_UINT          6
-#define PGTYPES_TYPE_UINT_2_LZ         7       /* 2 digits, pad with leading
-                                                * zero */
-#define PGTYPES_TYPE_UINT_2_LS         8       /* 2 digits, pad with leading
-                                                * space */
+#define PGTYPES_TYPE_UINT_2_LZ         7   /* 2 digits, pad with leading zero */
+#define PGTYPES_TYPE_UINT_2_LS         8   /* 2 digits, pad with leading
+                                            * space */
 #define PGTYPES_TYPE_UINT_3_LZ         9
 #define PGTYPES_TYPE_UINT_4_LZ         10
 #define PGTYPES_TYPE_UINT_LONG         11
@@ -41,14 +40,14 @@ char       *pgtypes_strdup(const char *);
 
 #ifndef bool
 #define bool char
-#endif   /* ndef bool */
+#endif                         /* ndef bool */
 
 #ifndef FALSE
 #define FALSE  0
-#endif   /* FALSE */
+#endif                         /* FALSE */
 
 #ifndef TRUE
 #define TRUE      1
-#endif   /* TRUE */
+#endif                         /* TRUE */
 
-#endif   /* __PGTYPES_COMMON_H__ */
+#endif                         /* __PGTYPES_COMMON_H__ */
index 4a740d159d807cf2fe1d4a0060542f39aefcaaf7..30f2ccbcb7776e2d69b4121ead8a9edcf08c6fa7 100644 (file)
@@ -335,7 +335,7 @@ DecodeISO8601Interval(char *str,
  * * Assert wasn't available so removed it.
  */
 int
-DecodeInterval(char **field, int *ftype, int nf,       /* int range, */
+DecodeInterval(char **field, int *ftype, int nf,   /* int range, */
               int *dtype, struct /* pg_ */ tm *tm, fsec_t *fsec)
 {
    int         IntervalStyle = INTSTYLE_POSTGRES_VERBOSE;
index 4b4df9dfc6b9962c8bdfe1673e861e5c3b95f2d5..78931399e69e2e7f285f8a28ba00e8fe61ae18f4 100644 (file)
@@ -152,7 +152,7 @@ timestamp2tm(timestamp dt, int *tzp, struct tm *tm, fsec_t *fsec, const char **t
            tm->tm_gmtoff = tx->tm_gmtoff;
            tm->tm_zone = tx->tm_zone;
 
-           *tzp = -tm->tm_gmtoff;      /* tm_gmtoff is Sun/DEC-ism */
+           *tzp = -tm->tm_gmtoff;  /* tm_gmtoff is Sun/DEC-ism */
            if (tzn != NULL)
                *tzn = tm->tm_zone;
 #elif defined(HAVE_INT_TIMEZONE)
index 07d8311806dea3165946651d1bd6e9f96f5fd815..2c35426b7fb126d6654965244f8b9fe001089f9a 100644 (file)
@@ -128,4 +128,4 @@ extern enum COMPAT_MODE compat;
 
 #define INFORMIX_MODE  (compat == ECPG_COMPAT_INFORMIX || compat == ECPG_COMPAT_INFORMIX_SE)
 
-#endif   /* _ECPG_PREPROC_EXTERN_H */
+#endif                         /* _ECPG_PREPROC_EXTERN_H */
index 7cdded53dbf0d4d6f8241923c937ba1c80621eae..0479c93c99149baceb6bb5cd6e08f3de9408def4 100644 (file)
@@ -228,8 +228,8 @@ output_escaped_str(char *str, bool quoted)
                j++;
            } while (str[j] == ' ' || str[j] == '\t');
 
-           if ((str[j] != '\n') && (str[j] != '\r' || str[j + 1] != '\n'))     /* not followed by a
-                                                                                * newline */
+           if ((str[j] != '\n') && (str[j] != '\r' || str[j + 1] != '\n')) /* not followed by a
+                                                                            * newline */
                fputs("\\\\", base_yyout);
        }
        else if (str[i] == '\r' && str[i + 1] == '\n')
index 4ed822b8bbed10b801e96d39558c2edaad6aa2cc..0d240d9df47fca0e794503049713cdd1b682a845 100644 (file)
@@ -178,7 +178,7 @@ get_type(enum ECPGttype type)
        case ECPGt_NO_INDICATOR:    /* no indicator */
            return ("ECPGt_NO_INDICATOR");
            break;
-       case ECPGt_char_variable:       /* string that should not be quoted */
+       case ECPGt_char_variable:   /* string that should not be quoted */
            return ("ECPGt_char_variable");
            break;
        case ECPGt_const:       /* constant string quoted */
index cd0d1da8c4a1a641acd9f6b6b7dfa88e7241394d..4b93336480714068ce74db3f3ebf1fa9d7a8729b 100644 (file)
@@ -25,10 +25,9 @@ struct ECPGtype
                                 * string */
    union
    {
-       struct ECPGtype *element;       /* For an array this is the type of
-                                        * the element */
-       struct ECPGstruct_member *members;      /* A pointer to a list of
-                                                * members. */
+       struct ECPGtype *element;   /* For an array this is the type of the
+                                    * element */
+       struct ECPGstruct_member *members;  /* A pointer to a list of members. */
    }           u;
    int         counter;
 };
@@ -195,4 +194,4 @@ struct fetch_desc
    char       *name;
 };
 
-#endif   /* _ECPG_PREPROC_TYPE_H */
+#endif                         /* _ECPG_PREPROC_TYPE_H */
index d1632e280c14b7c21be08d3007b51d4a3f98cc38..1b5aae0df7a903faee459d0b0c45bbdda893e459 100644 (file)
@@ -41,7 +41,7 @@ typedef struct sqlda_struct sqlda_t;
 
 #endif
 
-#endif   /* ECPG_SQLDA_H */
+#endif                         /* ECPG_SQLDA_H */
 
 #line 5 "describe.pgc"
 
index 1f316fbd7c6002fc9557e14a88fdd57752645c1d..1df87f83ef065084c01fbf4b4fc9b3f70c4bb59b 100644 (file)
@@ -43,7 +43,7 @@ typedef struct sqlda_struct sqlda_t;
 
 #endif
 
-#endif   /* ECPG_SQLDA_H */
+#endif                         /* ECPG_SQLDA_H */
 
 #line 7 "sqlda.pgc"
 
@@ -105,7 +105,7 @@ typedef struct sqlda_struct sqlda_t;
 #define SQLSERIAL8 ECPGt_long
 #endif
 
-#endif   /* ndef ECPG_SQLTYPES_H */
+#endif                         /* ndef ECPG_SQLTYPES_H */
 
 #line 8 "sqlda.pgc"
 
index 98246f47345547c8205cf6cc300957e97b1310ed..4e372a5799162aed6dec848f0e5690c6117d1842 100644 (file)
@@ -23,8 +23,8 @@
 #define PGDLLIMPORT __declspec (dllimport)
 #else
 #define PGDLLIMPORT
-#endif   /* __CYGWIN__ */
-#endif   /* PGDLLIMPORT */
+#endif                         /* __CYGWIN__ */
+#endif                         /* PGDLLIMPORT */
 
 #define SQLERRMC_LEN   150
 
index 6ca8d5590149b58877331958beaa190624106bb6..ca23d348d6ef07e921149336c81a3fe62f63e242 100644 (file)
@@ -17,8 +17,8 @@
 #define PGDLLIMPORT __declspec (dllimport)
 #else
 #define PGDLLIMPORT
-#endif   /* __CYGWIN__ */
-#endif   /* PGDLLIMPORT */
+#endif                         /* __CYGWIN__ */
+#endif                         /* PGDLLIMPORT */
 
 #define SQLERRMC_LEN   150
 
index 70809c450d05a5cd9cb495920200129a750a221c..b3deb221d74969aedee369bfdba4d3d95c2ec83f 100644 (file)
@@ -58,7 +58,7 @@ typedef struct
    int         rscale;         /* result scale */
    int         dscale;         /* display scale */
    int         sign;           /* NUMERIC_POS, NUMERIC_NEG, or NUMERIC_NAN */
-   NumericDigit digits[DECSIZE];       /* decimal digits */
+   NumericDigit digits[DECSIZE];   /* decimal digits */
 } decimal;
 
 #ifdef __cplusplus
@@ -91,7 +91,7 @@ int           PGTYPESnumeric_from_decimal(decimal *, numeric *);
 }
 #endif
 
-#endif   /* PGTYPES_NUMERIC */
+#endif                         /* PGTYPES_NUMERIC */
 
 #line 8 "outofscope.pgc"
 
index 4b0a0418f73bdd8fea990c6406bbc2335bfe6e12..781c4267718e05fcb5c18e17c2da68a58585637e 100644 (file)
@@ -30,8 +30,8 @@
 #define PGDLLIMPORT __declspec (dllimport)
 #else
 #define PGDLLIMPORT
-#endif   /* __CYGWIN__ */
-#endif   /* PGDLLIMPORT */
+#endif                         /* __CYGWIN__ */
+#endif                         /* PGDLLIMPORT */
 
 #define SQLERRMC_LEN   150
 
index 4338f7ed2d36cc0bb1413b31db1fccaeaffb2a73..4c85530a17afaa18e610fc0f4517870c7d1935a1 100644 (file)
@@ -17,8 +17,8 @@
 #define PGDLLIMPORT __declspec (dllimport)
 #else
 #define PGDLLIMPORT
-#endif   /* __CYGWIN__ */
-#endif   /* PGDLLIMPORT */
+#endif                         /* __CYGWIN__ */
+#endif                         /* PGDLLIMPORT */
 
 #define SQLERRMC_LEN   150
 
index a1e75958731794123180d2ed02d951b91beee0a5..d2599fb0e939841ec056ea4a4a7834fe9bdeb66f 100644 (file)
@@ -19,8 +19,8 @@
 #define PGDLLIMPORT __declspec (dllimport)
 #else
 #define PGDLLIMPORT
-#endif   /* __CYGWIN__ */
-#endif   /* PGDLLIMPORT */
+#endif                         /* __CYGWIN__ */
+#endif                         /* PGDLLIMPORT */
 
 #define SQLERRMC_LEN   150
 
index 9c9931f443895a9cdb75f1acbbe24f9e2ca1c391..29583ecd741121157672191577dd2144e8071b23 100644 (file)
@@ -17,8 +17,8 @@
 #define PGDLLIMPORT __declspec (dllimport)
 #else
 #define PGDLLIMPORT
-#endif   /* __CYGWIN__ */
-#endif   /* PGDLLIMPORT */
+#endif                         /* __CYGWIN__ */
+#endif                         /* PGDLLIMPORT */
 
 #define SQLERRMC_LEN   150
 
index b5e2d7427fced2ce916a3e9d52b7ab38080b958e..155e206f29d75f7fbc6ab341a7038a37b5bc01a2 100644 (file)
@@ -39,7 +39,7 @@ typedef struct sqlda_struct sqlda_t;
 
 #endif
 
-#endif   /* ECPG_SQLDA_H */
+#endif                         /* ECPG_SQLDA_H */
 
 #line 5 "describe.pgc"
 
index d2051e6996ad46182e579014c2f6b8167536c3b3..a95dddf15d60b15e403aef63b2179eaf2578fc70 100644 (file)
@@ -18,8 +18,8 @@
 #define PGDLLIMPORT __declspec (dllimport)
 #else
 #define PGDLLIMPORT
-#endif   /* __CYGWIN__ */
-#endif   /* PGDLLIMPORT */
+#endif                         /* __CYGWIN__ */
+#endif                         /* PGDLLIMPORT */
 
 #define SQLERRMC_LEN   150
 
index 2d25149cbbc1a00bc38fc32eeee53521f0091f29..711857706ae6f041f9fd19e23dfaadb2243c95e7 100644 (file)
@@ -18,8 +18,8 @@
 #define PGDLLIMPORT __declspec (dllimport)
 #else
 #define PGDLLIMPORT
-#endif   /* __CYGWIN__ */
-#endif   /* PGDLLIMPORT */
+#endif                         /* __CYGWIN__ */
+#endif                         /* PGDLLIMPORT */
 
 #define SQLERRMC_LEN   150
 
index ea0d859bd7ea09f0333c529d9311f2a18e86fd51..513d44c63045c2d18c2a0cde0a0d3621fc080d6b 100644 (file)
@@ -57,7 +57,7 @@ enum
                                 * standard) */
 };
 
-#endif   /* !_ECPG_SQL3TYPES_H */
+#endif                         /* !_ECPG_SQL3TYPES_H */
 
 #line 7 "dyntest.pgc"
 
@@ -71,8 +71,8 @@ enum
 #define PGDLLIMPORT __declspec (dllimport)
 #else
 #define PGDLLIMPORT
-#endif   /* __CYGWIN__ */
-#endif   /* PGDLLIMPORT */
+#endif                         /* __CYGWIN__ */
+#endif                         /* PGDLLIMPORT */
 
 #define SQLERRMC_LEN   150
 
index 454fba0dba814485d310cf74e3d85da0578fcaf1..7cf43ad6228cfe69d92218049ca96a2823b8e3e7 100644 (file)
@@ -19,8 +19,8 @@
 #define PGDLLIMPORT __declspec (dllimport)
 #else
 #define PGDLLIMPORT
-#endif   /* __CYGWIN__ */
-#endif   /* PGDLLIMPORT */
+#endif                         /* __CYGWIN__ */
+#endif                         /* PGDLLIMPORT */
 
 #define SQLERRMC_LEN   150
 
index b6c35ab1a3a948b2ffee12daf2bd58e7c51204f6..15c81c6b126a686dafc8e727fdc64ac33ee294b4 100644 (file)
@@ -41,7 +41,7 @@ typedef struct sqlda_struct sqlda_t;
 
 #endif
 
-#endif   /* ECPG_SQLDA_H */
+#endif                         /* ECPG_SQLDA_H */
 
 #line 7 "sqlda.pgc"
 
@@ -80,7 +80,7 @@ typedef struct
    int         rscale;         /* result scale */
    int         dscale;         /* display scale */
    int         sign;           /* NUMERIC_POS, NUMERIC_NEG, or NUMERIC_NAN */
-   NumericDigit digits[DECSIZE];       /* decimal digits */
+   NumericDigit digits[DECSIZE];   /* decimal digits */
 } decimal;
 
 #ifdef __cplusplus
@@ -113,7 +113,7 @@ int         PGTYPESnumeric_from_decimal(decimal *, numeric *);
 }
 #endif
 
-#endif   /* PGTYPES_NUMERIC */
+#endif                         /* PGTYPES_NUMERIC */
 
 #line 8 "sqlda.pgc"
 
index 57ef2bcc63b0d346231f1506b3238e67ccab1ff4..9f8ac594304f7ce3102291be14b1a907a40bceab 100644 (file)
@@ -40,8 +40,8 @@ main(void)
 #define PGDLLIMPORT __declspec (dllimport)
 #else
 #define PGDLLIMPORT
-#endif   /* __CYGWIN__ */
-#endif   /* PGDLLIMPORT */
+#endif                         /* __CYGWIN__ */
+#endif                         /* PGDLLIMPORT */
 
 #define SQLERRMC_LEN   150
 
index 50a7a31da434059c7e548299792ab950f890b097..607df7ce242655763832adb5cc1d5ea53f69c369 100644 (file)
@@ -31,8 +31,8 @@
 #define PGDLLIMPORT __declspec (dllimport)
 #else
 #define PGDLLIMPORT
-#endif   /* __CYGWIN__ */
-#endif   /* PGDLLIMPORT */
+#endif                         /* __CYGWIN__ */
+#endif                         /* PGDLLIMPORT */
 
 #define SQLERRMC_LEN   150
 
index 382e2148799182ccee47d04ec7063836785abc56..72ca568151d96640bac53f55c811fc49fc2fdd5a 100644 (file)
@@ -40,8 +40,8 @@ main(void)
 #define PGDLLIMPORT __declspec (dllimport)
 #else
 #define PGDLLIMPORT
-#endif   /* __CYGWIN__ */
-#endif   /* PGDLLIMPORT */
+#endif                         /* __CYGWIN__ */
+#endif                         /* PGDLLIMPORT */
 
 #define SQLERRMC_LEN   150
 
index 181eeea8351c0e30c48efbdaf155513dc1520ae4..92c289b9e82ca1c1a9809fdfc7b6cc5caa2db9bf 100644 (file)
@@ -251,7 +251,7 @@ pg_GSS_startup(PGconn *conn, int payloadlen)
 
    return pg_GSS_continue(conn, payloadlen);
 }
-#endif   /* ENABLE_GSS */
+#endif                         /* ENABLE_GSS */
 
 
 #ifdef ENABLE_SSPI
@@ -477,7 +477,7 @@ pg_SSPI_startup(PGconn *conn, int use_negotiate, int payloadlen)
 
    return pg_SSPI_continue(conn, payloadlen);
 }
-#endif   /* ENABLE_SSPI */
+#endif                         /* ENABLE_SSPI */
 
 /*
  * Initialize SASL authentication exchange.
@@ -901,7 +901,7 @@ pg_fe_sendauth(AuthRequest areq, int payloadlen, PGconn *conn)
            printfPQExpBuffer(&conn->errorMessage,
                     libpq_gettext("GSSAPI authentication not supported\n"));
            return STATUS_ERROR;
-#endif   /* defined(ENABLE_GSS) || defined(ENABLE_SSPI) */
+#endif                         /* defined(ENABLE_GSS) || defined(ENABLE_SSPI) */
 
 #ifdef ENABLE_SSPI
        case AUTH_REQ_SSPI:
@@ -933,8 +933,8 @@ pg_fe_sendauth(AuthRequest areq, int payloadlen, PGconn *conn)
            printfPQExpBuffer(&conn->errorMessage,
                       libpq_gettext("SSPI authentication not supported\n"));
            return STATUS_ERROR;
-#endif   /* !define(ENABLE_GSSAPI) */
-#endif   /* ENABLE_SSPI */
+#endif                         /* !define(ENABLE_GSSAPI) */
+#endif                         /* ENABLE_SSPI */
 
 
        case AUTH_REQ_CRYPT:
index 9f4c2a50d8dd40932d2e6d9c99f1500954da75d7..5dc6bb5341d4f06d4ce2d9c3473be2ef17843e67 100644 (file)
@@ -30,4 +30,4 @@ extern void pg_fe_scram_exchange(void *opaq, char *input, int inputlen,
                     bool *done, bool *success, PQExpBuffer errorMessage);
 extern char *pg_fe_scram_build_verifier(const char *password);
 
-#endif   /* FE_AUTH_H */
+#endif                         /* FE_AUTH_H */
index 3d5966586d31f55ab41d81127d9f58794902d116..c6d17ed9210d5e5448b339b288e61dd5a472a89e 100644 (file)
@@ -184,7 +184,7 @@ static const internalPQconninfoOption PQconninfoOptions[] = {
    offsetof(struct pg_conn, pgpassfile)},
 
    {"connect_timeout", "PGCONNECT_TIMEOUT", NULL, NULL,
-       "Connect-timeout", "", 10,      /* strlen(INT32_MAX) == 10 */
+       "Connect-timeout", "", 10,  /* strlen(INT32_MAX) == 10 */
    offsetof(struct pg_conn, connect_timeout)},
 
    {"dbname", "PGDATABASE", NULL, NULL,
@@ -236,7 +236,7 @@ static const internalPQconninfoOption PQconninfoOptions[] = {
    offsetof(struct pg_conn, keepalives_idle)},
 
    {"keepalives_interval", NULL, NULL, NULL,
-       "TCP-Keepalives-Interval", "", 10,      /* strlen(INT32_MAX) == 10 */
+       "TCP-Keepalives-Interval", "", 10,  /* strlen(INT32_MAX) == 10 */
    offsetof(struct pg_conn, keepalives_interval)},
 
    {"keepalives_count", NULL, NULL, NULL,
@@ -1369,7 +1369,7 @@ connectFailureMessage(PGconn *conn, int errorno)
                          service);
    }
    else
-#endif   /* HAVE_UNIX_SOCKETS */
+#endif                         /* HAVE_UNIX_SOCKETS */
    {
        char        host_addr[NI_MAXHOST];
        const char *displayed_host;
@@ -1608,8 +1608,8 @@ setKeepalivesWin32(PGconn *conn)
    }
    return 1;
 }
-#endif   /* SIO_KEEPALIVE_VALS */
-#endif   /* WIN32 */
+#endif                         /* SIO_KEEPALIVE_VALS */
+#endif                         /* WIN32 */
 
 /* ----------
  * connectDBStart -
@@ -2086,7 +2086,7 @@ keep_going:                       /* We will come back to here until there is
                        conn->addr_cur = addr_cur->ai_next;
                        continue;
                    }
-#endif   /* F_SETFD */
+#endif                         /* F_SETFD */
 
                    if (!IS_AF_UNIX(addr_cur->ai_family))
                    {
@@ -2124,8 +2124,8 @@ keep_going:                       /* We will come back to here until there is
 #ifdef SIO_KEEPALIVE_VALS
                        else if (!setKeepalivesWin32(conn))
                            err = 1;
-#endif   /* SIO_KEEPALIVE_VALS */
-#endif   /* WIN32 */
+#endif                         /* SIO_KEEPALIVE_VALS */
+#endif                         /* WIN32 */
 
                        if (err)
                        {
@@ -2163,7 +2163,7 @@ keep_going:                       /* We will come back to here until there is
                    conn->sigpipe_flag = true;
 #else
                    conn->sigpipe_flag = false;
-#endif   /* MSG_NOSIGNAL */
+#endif                         /* MSG_NOSIGNAL */
 
 #ifdef SO_NOSIGPIPE
                    optval = 1;
@@ -2173,7 +2173,7 @@ keep_going:                       /* We will come back to here until there is
                        conn->sigpipe_so = true;
                        conn->sigpipe_flag = false;
                    }
-#endif   /* SO_NOSIGPIPE */
+#endif                         /* SO_NOSIGPIPE */
 
                    /*
                     * Start/make connection.  This should not block, since we
@@ -2357,7 +2357,7 @@ keep_going:                       /* We will come back to here until there is
                        goto error_return;
                    }
                }
-#endif   /* HAVE_UNIX_SOCKETS */
+#endif                         /* HAVE_UNIX_SOCKETS */
 
 #ifdef USE_SSL
 
@@ -2394,7 +2394,7 @@ keep_going:                       /* We will come back to here until there is
                    conn->status = CONNECTION_SSL_STARTUP;
                    return PGRES_POLLING_READING;
                }
-#endif   /* USE_SSL */
+#endif                         /* USE_SSL */
 
                /*
                 * Build the startup packet.
@@ -2559,7 +2559,7 @@ keep_going:                       /* We will come back to here until there is
 #else                          /* !USE_SSL */
                /* can't get here */
                goto error_return;
-#endif   /* USE_SSL */
+#endif                         /* USE_SSL */
            }
 
            /*
@@ -2962,11 +2962,11 @@ keep_going:                     /* We will come back to here until there is
                case PGRES_POLLING_OK:  /* Success */
                    break;
 
-               case PGRES_POLLING_READING:     /* Still going */
+               case PGRES_POLLING_READING: /* Still going */
                    conn->status = CONNECTION_SETENV;
                    return PGRES_POLLING_READING;
 
-               case PGRES_POLLING_WRITING:     /* Still going */
+               case PGRES_POLLING_WRITING: /* Still going */
                    conn->status = CONNECTION_SETENV;
                    return PGRES_POLLING_WRITING;
 
@@ -3510,8 +3510,7 @@ closePGconn(PGconn *conn)
     * Close the connection, reset all transient state, flush I/O buffers.
     */
    pqDropConnection(conn, true);
-   conn->status = CONNECTION_BAD;      /* Well, not really _bad_ - just
-                                        * absent */
+   conn->status = CONNECTION_BAD;  /* Well, not really _bad_ - just absent */
    conn->asyncStatus = PGASYNC_IDLE;
    pqClearAsyncResult(conn);   /* deallocate result */
    resetPQExpBuffer(&conn->errorMessage);
@@ -4158,7 +4157,7 @@ ldapServiceLookup(const char *purl, PQconninfoOption *options,
        ldap_unbind(ld);
        return 3;
    }
-#endif   /* WIN32 */
+#endif                         /* WIN32 */
 
    /* search */
    res = NULL;
@@ -4383,7 +4382,7 @@ ldapServiceLookup(const char *purl, PQconninfoOption *options,
    return 0;
 }
 
-#endif   /* USE_LDAP */
+#endif                         /* USE_LDAP */
 
 #define MAXBUFSIZE 256
 
@@ -5412,7 +5411,7 @@ conninfo_uri_parse_options(PQconninfoOption *options, const char *uri,
 
        if (prevchar == ':')
        {
-           const char *port = ++p;     /* advance past host terminator */
+           const char *port = ++p; /* advance past host terminator */
 
            while (*p && *p != '/' && *p != '?' && *p != ',')
                ++p;
@@ -5444,7 +5443,7 @@ conninfo_uri_parse_options(PQconninfoOption *options, const char *uri,
 
    if (prevchar && prevchar != '?')
    {
-       const char *dbname = ++p;       /* advance past host terminator */
+       const char *dbname = ++p;   /* advance past host terminator */
 
        /* Look for query parameters */
        while (*p && *p != '?')
index 4391d8c05b7c2d1c21deaaf08c6a1c9e7e9b2da4..e825e6b757785cba4270fa1d4800fc87e898797c 100644 (file)
@@ -125,7 +125,7 @@ static int  check_field_number(const PGresult *res, int field_num);
  */
 
 #define PGRESULT_DATA_BLOCKSIZE        2048
-#define PGRESULT_ALIGN_BOUNDARY        MAXIMUM_ALIGNOF     /* from configure */
+#define PGRESULT_ALIGN_BOUNDARY        MAXIMUM_ALIGNOF /* from configure */
 #define PGRESULT_BLOCK_OVERHEAD        Max(sizeof(PGresult_data), PGRESULT_ALIGN_BOUNDARY)
 #define PGRESULT_SEP_ALLOC_THRESHOLD   (PGRESULT_DATA_BLOCKSIZE / 2)
 
@@ -3026,7 +3026,7 @@ PQcmdTuples(PGresult *res)
        while (*p && *p != ' ')
            p++;
        if (*p == 0)
-           goto interpret_error;       /* no space? */
+           goto interpret_error;   /* no space? */
        p++;
    }
    else if (strncmp(res->cmdStatus, "SELECT ", 7) == 0 ||
index 1d6ea93a0a9d3debe5d18fed464eefec57d49c67..c8fd1af750db98b6512c2aaae8c6a4e9566164db 100644 (file)
@@ -814,7 +814,7 @@ definitelyEOF:
 definitelyFailed:
    /* Do *not* drop any already-read data; caller still wants it */
    pqDropConnection(conn, false);
-   conn->status = CONNECTION_BAD;      /* No more connection to backend */
+   conn->status = CONNECTION_BAD;  /* No more connection to backend */
    return -1;
 }
 
@@ -1165,7 +1165,7 @@ pqSocketPoll(int sock, int forRead, int forWrite, time_t end_time)
 
    return select(sock + 1, &input_mask, &output_mask,
                  &except_mask, ptr_timeout);
-#endif   /* HAVE_POLL */
+#endif                         /* HAVE_POLL */
 }
 
 
@@ -1259,4 +1259,4 @@ libpq_ngettext(const char *msgid, const char *msgid_plural, unsigned long n)
    return dngettext(PG_TEXTDOMAIN("libpq"), msgid, msgid_plural, n);
 }
 
-#endif   /* ENABLE_NLS */
+#endif                         /* ENABLE_NLS */
index d7a7414901f65e1759233a42339d1544184a9da7..7e319eabe0d81a0e6b462a9a5f6d774d7463a0c4 100644 (file)
@@ -177,7 +177,7 @@ PQprint(FILE *fout, const PGresult *res, const PQprintOpt *po)
                  (1 + (po->standard != 0)) >= screen_size.ws_row -
                  (po->header != 0) *
                  (total_line_length / screen_size.ws_col + 1) * 2
-                 - (po->header != 0) * 2       /* row count and newline */
+                 - (po->header != 0) * 2   /* row count and newline */
                  )))
            {
                fout = popen(pagerenv, "w");
@@ -190,8 +190,8 @@ PQprint(FILE *fout, const PGresult *res, const PQprintOpt *po)
                        sigpipe_masked = true;
 #else
                    oldsigpipehandler = pqsignal(SIGPIPE, SIG_IGN);
-#endif   /* ENABLE_THREAD_SAFETY */
-#endif   /* WIN32 */
+#endif                         /* ENABLE_THREAD_SAFETY */
+#endif                         /* WIN32 */
                }
                else
                    fout = stdout;
@@ -313,8 +313,8 @@ PQprint(FILE *fout, const PGresult *res, const PQprintOpt *po)
                pq_reset_sigpipe(&osigset, sigpipe_pending, true);
 #else
            pqsignal(SIGPIPE, oldsigpipehandler);
-#endif   /* ENABLE_THREAD_SAFETY */
-#endif   /* WIN32 */
+#endif                         /* ENABLE_THREAD_SAFETY */
+#endif                         /* WIN32 */
        }
        if (po->html3 && !po->expanded)
            fputs("\n", fout);
index 3b0500fa5238a5811e4b5f62bb2cafcaa06029a2..af4ae9f937a941a0a16e52142bb2a57694c623aa 100644 (file)
@@ -1099,7 +1099,7 @@ checkXactStatus(PGconn *conn, const char *cmdTag)
     * However, if we see one of these tags then we know for sure the server
     * is in abort state ...
     */
-   else if (strcmp(cmdTag, "*ABORT STATE*") == 0)      /* pre-7.3 only */
+   else if (strcmp(cmdTag, "*ABORT STATE*") == 0)  /* pre-7.3 only */
        conn->xactStatus = PQTRANS_INERROR;
 }
 
@@ -1526,7 +1526,7 @@ pqFunctionCall2(PGconn *conn, Oid fnid,
                                       conn))
                            continue;
                    }
-                   if (pqGetc(&id, conn))      /* get the last '0' */
+                   if (pqGetc(&id, conn))  /* get the last '0' */
                        continue;
                }
                if (id == '0')
index 53776e27b521a445dc89325f845a4d129f33acdf..92f1a00f3f3016655b4169ac2de351349972fb6c 100644 (file)
@@ -458,7 +458,7 @@ handleSyncLoss(PGconn *conn, char id, int msgLength)
    conn->asyncStatus = PGASYNC_READY;  /* drop out of GetResult wait loop */
    /* flush input data since we're giving up on processing it */
    pqDropConnection(conn, true);
-   conn->status = CONNECTION_BAD;      /* No more connection to backend */
+   conn->status = CONNECTION_BAD;  /* No more connection to backend */
 }
 
 /*
@@ -1679,7 +1679,7 @@ pqGetCopyData3(PGconn *conn, char **buffer, int async)
                return -2;
            }
            memcpy(*buffer, &conn->inBuffer[conn->inCursor], msgLength);
-           (*buffer)[msgLength] = '\0';        /* Add terminating null */
+           (*buffer)[msgLength] = '\0';    /* Add terminating null */
 
            /* Mark message consumed */
            conn->inStart = conn->inCursor + msgLength;
@@ -1915,8 +1915,8 @@ pqFunctionCall3(PGconn *conn, Oid fnid,
 
    if (pqPutMsgStart('F', false, conn) < 0 ||  /* function call msg */
        pqPutInt(fnid, 4, conn) < 0 ||  /* function id */
-       pqPutInt(1, 2, conn) < 0 ||     /* # of format codes */
-       pqPutInt(1, 2, conn) < 0 ||     /* format code: BINARY */
+       pqPutInt(1, 2, conn) < 0 || /* # of format codes */
+       pqPutInt(1, 2, conn) < 0 || /* format code: BINARY */
        pqPutInt(nargs, 2, conn) < 0)   /* # of args */
    {
        pqHandleSendFailure(conn);
@@ -1951,7 +1951,7 @@ pqFunctionCall3(PGconn *conn, Oid fnid,
        }
    }
 
-   if (pqPutInt(1, 2, conn) < 0)       /* result format code: BINARY */
+   if (pqPutInt(1, 2, conn) < 0)   /* result format code: BINARY */
    {
        pqHandleSendFailure(conn);
        return NULL;
index e21bb5ad7d54471a395a434821492c98027771dc..7c078a9baef95b5adfbbe7cb0f570befafff558d 100644 (file)
@@ -91,7 +91,7 @@ static pthread_mutex_t ssl_config_mutex = PTHREAD_MUTEX_INITIALIZER;
 static pthread_mutex_t ssl_config_mutex = NULL;
 static long win32_ssl_create_mutex = 0;
 #endif
-#endif   /* ENABLE_THREAD_SAFETY */
+#endif                         /* ENABLE_THREAD_SAFETY */
 
 
 /* ------------------------------------------------------------ */
@@ -730,7 +730,7 @@ pq_lockingcallback(int mode, int n, const char *file, int line)
            PGTHREAD_ERROR("failed to unlock mutex");
    }
 }
-#endif   /* ENABLE_THREAD_SAFETY && HAVE_CRYPTO_LOCK */
+#endif                         /* ENABLE_THREAD_SAFETY && HAVE_CRYPTO_LOCK */
 
 /*
  * Initialize SSL library.
@@ -809,8 +809,8 @@ pgtls_init(PGconn *conn)
                CRYPTO_set_locking_callback(pq_lockingcallback);
        }
    }
-#endif   /* HAVE_CRYPTO_LOCK */
-#endif   /* ENABLE_THREAD_SAFETY */
+#endif                         /* HAVE_CRYPTO_LOCK */
+#endif                         /* ENABLE_THREAD_SAFETY */
 
    if (!ssl_lib_initialized)
    {
@@ -1142,7 +1142,7 @@ initialize_SSL(PGconn *conn)
            /* cannot return NULL because we already checked before strdup */
            engine_colon = strchr(engine_str, ':');
 
-           *engine_colon = '\0';       /* engine_str now has engine name */
+           *engine_colon = '\0';   /* engine_str now has engine name */
            engine_colon++;     /* engine_colon now has key name */
 
            conn->engine = ENGINE_by_id(engine_str);
@@ -1209,7 +1209,7 @@ initialize_SSL(PGconn *conn)
                                 * file */
        }
        else
-#endif   /* USE_SSL_ENGINE */
+#endif                         /* USE_SSL_ENGINE */
        {
            /* PGSSLKEY is not an engine, treat it as a filename */
            strlcpy(fnbuf, conn->sslkey, sizeof(fnbuf));
index 8f0d892a3400d2bb3e290a93ca5dae434a7fdb93..24afaa60bcf5fa7b76f50720c99c3adaf324c82e 100644 (file)
@@ -115,14 +115,14 @@ struct sigpipe_info
        if (!SIGPIPE_MASKED(conn)) \
            pqsignal(SIGPIPE, spinfo); \
    } while (0)
-#endif   /* ENABLE_THREAD_SAFETY */
+#endif                         /* ENABLE_THREAD_SAFETY */
 #else                          /* WIN32 */
 
 #define DECLARE_SIGPIPE_INFO(spinfo)
 #define DISABLE_SIGPIPE(conn, spinfo, failaction)
 #define REMEMBER_EPIPE(spinfo, cond)
 #define RESTORE_SIGPIPE(conn, spinfo)
-#endif   /* WIN32 */
+#endif                         /* WIN32 */
 
 /* ------------------------------------------------------------ */
 /*          Procedures common to all secure sessions           */
@@ -312,7 +312,7 @@ pqsecure_raw_write(PGconn *conn, const void *ptr, size_t len)
        flags |= MSG_NOSIGNAL;
 
 retry_masked:
-#endif   /* MSG_NOSIGNAL */
+#endif                         /* MSG_NOSIGNAL */
 
    DISABLE_SIGPIPE(conn, spinfo, return -1);
 
@@ -334,7 +334,7 @@ retry_masked:
            flags = 0;
            goto retry_masked;
        }
-#endif   /* MSG_NOSIGNAL */
+#endif                         /* MSG_NOSIGNAL */
 
        /* Set error message if appropriate */
        switch (result_errno)
@@ -415,7 +415,7 @@ PQsslAttributeNames(PGconn *conn)
 
    return result;
 }
-#endif   /* USE_SSL */
+#endif                         /* USE_SSL */
 
 
 #if defined(ENABLE_THREAD_SAFETY) && !defined(WIN32)
@@ -502,4 +502,4 @@ pq_reset_sigpipe(sigset_t *osigset, bool sigpipe_pending, bool got_epipe)
    SOCK_ERRNO_SET(save_errno);
 }
 
-#endif   /* ENABLE_THREAD_SAFETY && !WIN32 */
+#endif                         /* ENABLE_THREAD_SAFETY && !WIN32 */
index b08419a0f6c48b047389fc1e69c00e0f417d446c..20af1ffe6dae0d363b3b2d739cd04aa638a4d17b 100644 (file)
@@ -91,4 +91,4 @@ extern int    PQfireResultCreateEvents(PGconn *conn, PGresult *res);
 }
 #endif
 
-#endif   /* LIBPQ_EVENTS_H */
+#endif                         /* LIBPQ_EVENTS_H */
index 3d55a3da29126970da8a275f85c442a77bf58867..1d915e791510c36c65ffd649a2a7d7e4e230c3e8 100644 (file)
@@ -56,8 +56,8 @@ typedef enum
     */
    CONNECTION_STARTED,         /* Waiting for connection to be made.  */
    CONNECTION_MADE,            /* Connection OK; waiting to send.     */
-   CONNECTION_AWAITING_RESPONSE,       /* Waiting for a response from the
-                                        * postmaster.        */
+   CONNECTION_AWAITING_RESPONSE,   /* Waiting for a response from the
+                                    * postmaster.        */
    CONNECTION_AUTH_OK,         /* Received authentication; waiting for
                                 * backend startup. */
    CONNECTION_SETENV,          /* Negotiating environment. */
@@ -609,4 +609,4 @@ extern int  pg_valid_server_encoding_id(int encoding);
 }
 #endif
 
-#endif   /* LIBPQ_FE_H */
+#endif                         /* LIBPQ_FE_H */
index 335568b790a21f92a23defad34b5bae7ebfcabb8..ff5020fc0c55e895643e951aadbc1cab6b62667b 100644 (file)
@@ -69,7 +69,7 @@ typedef struct
    int         length;
 } gss_buffer_desc;
 #endif
-#endif   /* ENABLE_SSPI */
+#endif                         /* ENABLE_SSPI */
 
 #ifdef USE_OPENSSL
 #include 
@@ -78,7 +78,7 @@ typedef struct
 #ifndef OPENSSL_NO_ENGINE
 #define USE_SSL_ENGINE
 #endif
-#endif   /* USE_OPENSSL */
+#endif                         /* USE_OPENSSL */
 
 /*
  * POSTGRES backend dependent Constants.
@@ -143,7 +143,7 @@ typedef struct pgMessageField
 {
    struct pgMessageField *next;    /* list link */
    char        code;           /* field code */
-   char        contents[FLEXIBLE_ARRAY_MEMBER];        /* value, nul-terminated */
+   char        contents[FLEXIBLE_ARRAY_MEMBER];    /* value, nul-terminated */
 } PGMessageField;
 
 /* Fields needed for notice handling */
@@ -151,7 +151,7 @@ typedef struct
 {
    PQnoticeReceiver noticeRec; /* notice message receiver */
    void       *noticeRecArg;
-   PQnoticeProcessor noticeProc;       /* notice message processor */
+   PQnoticeProcessor noticeProc;   /* notice message processor */
    void       *noticeProcArg;
 } PGNoticeHooks;
 
@@ -161,7 +161,7 @@ typedef struct PGEvent
    char       *name;           /* used only for error messages */
    void       *passThrough;    /* pointer supplied at registration time */
    void       *data;           /* optional state (instance) data */
-   bool        resultInitialized;      /* T if RESULTCREATE/COPY succeeded */
+   bool        resultInitialized;  /* T if RESULTCREATE/COPY succeeded */
 } PGEvent;
 
 struct pg_result
@@ -175,7 +175,7 @@ struct pg_result
    int         numParameters;
    PGresParamDesc *paramDescs;
    ExecStatusType resultStatus;
-   char        cmdStatus[CMDSTATUS_LEN];       /* cmd status from the query */
+   char        cmdStatus[CMDSTATUS_LEN];   /* cmd status from the query */
    int         binary;         /* binary tuple values if binary == 1,
                                 * otherwise text */
 
@@ -255,7 +255,7 @@ typedef struct PQEnvironmentOption
 /* Typedef for parameter-status list entries */
 typedef struct pgParameterStatus
 {
-   struct pgParameterStatus *next;     /* list link */
+   struct pgParameterStatus *next; /* list link */
    char       *name;           /* parameter name */
    char       *value;          /* parameter value */
    /* Note: name and value are stored in same malloc block as struct is */
@@ -274,7 +274,7 @@ typedef struct pgLobjfuncs
    Oid         fn_lo_tell;     /* OID of backend function lo_tell      */
    Oid         fn_lo_tell64;   /* OID of backend function lo_tell64    */
    Oid         fn_lo_truncate; /* OID of backend function lo_truncate  */
-   Oid         fn_lo_truncate64;       /* OID of function lo_truncate64 */
+   Oid         fn_lo_truncate64;   /* OID of function lo_truncate64 */
    Oid         fn_lo_read;     /* OID of backend function LOread       */
    Oid         fn_lo_write;    /* OID of backend function LOwrite      */
 } PGlobjfuncs;
@@ -333,7 +333,7 @@ struct pg_conn
    char       *pgtty;          /* tty on which the backend messages is
                                 * displayed (OBSOLETE, NOT USED) */
    char       *connect_timeout;    /* connection timeout (numeric string) */
-   char       *client_encoding_initial;        /* encoding to use */
+   char       *client_encoding_initial;    /* encoding to use */
    char       *pgoptions;      /* options to start the backend with */
    char       *appname;        /* application name */
    char       *fbappname;      /* fallback application name */
@@ -346,8 +346,8 @@ struct pg_conn
    char       *keepalives_idle;    /* time between TCP keepalives */
    char       *keepalives_interval;    /* time between TCP keepalive
                                         * retransmits */
-   char       *keepalives_count;       /* maximum number of TCP keepalive
-                                        * retransmits */
+   char       *keepalives_count;   /* maximum number of TCP keepalive
+                                    * retransmits */
    char       *sslmode;        /* SSL mode (require,prefer,allow,disable) */
    char       *sslcompression; /* SSL compression (0 or 1) */
    char       *sslkey;         /* client key filename */
@@ -380,14 +380,13 @@ struct pg_conn
    PGTransactionStatusType xactStatus; /* never changes to ACTIVE */
    PGQueryClass queryclass;
    char       *last_query;     /* last SQL command, or NULL if unknown */
-   char        last_sqlstate[6];       /* last reported SQLSTATE */
+   char        last_sqlstate[6];   /* last reported SQLSTATE */
    bool        options_valid;  /* true if OK to attempt connection */
    bool        nonblocking;    /* whether this connection is using nonblock
                                 * sending semantics */
    bool        singleRowMode;  /* return current query result row-by-row? */
    char        copy_is_binary; /* 1 = copy binary, 0 = copy text */
-   int         copy_already_done;      /* # bytes already returned in COPY
-                                        * OUT */
+   int         copy_already_done;  /* # bytes already returned in COPY OUT */
    PGnotify   *notifyHead;     /* oldest unreported Notify msg */
    PGnotify   *notifyTail;     /* newest unreported Notify msg */
 
@@ -403,8 +402,7 @@ struct pg_conn
    SockAddr    raddr;          /* Remote address */
    ProtocolVersion pversion;   /* FE/BE protocol version in use */
    int         sversion;       /* server version, e.g. 70401 for 7.4.1 */
-   bool        auth_req_received;      /* true if any type of auth req
-                                        * received */
+   bool        auth_req_received;  /* true if any type of auth req received */
    bool        password_needed;    /* true if server demanded a password */
    bool        pgpassfile_used;    /* true if password is from pgpassfile */
    bool        sigpipe_so;     /* have we masked SIGPIPE via SO_NOSIGPIPE? */
@@ -468,8 +466,8 @@ struct pg_conn
    void       *engine;         /* dummy field to keep struct the same if
                                 * OpenSSL version changes */
 #endif
-#endif   /* USE_OPENSSL */
-#endif   /* USE_SSL */
+#endif                         /* USE_OPENSSL */
+#endif                         /* USE_SSL */
 
 #ifdef ENABLE_GSS
    gss_ctx_id_t gctx;          /* GSS context */
@@ -489,7 +487,7 @@ struct pg_conn
 #endif
 
    /* Buffer for current error message */
-   PQExpBufferData errorMessage;       /* expansible string */
+   PQExpBufferData errorMessage;   /* expansible string */
 
    /* Buffer for receiving various parts of messages */
    PQExpBufferData workBuffer; /* expansible string */
@@ -528,7 +526,7 @@ extern char *const pgresStatus[];
 #define ROOT_CRL_FILE      "root.crl"
 #endif
 
-#endif   /* USE_SSL */
+#endif                         /* USE_SSL */
 
 /* ----------------
  * Internal functions of libpq
@@ -698,4 +696,4 @@ extern char *libpq_ngettext(const char *msgid, const char *msgid_plural, unsigne
 #define SOCK_ERRNO_SET(e) (errno = (e))
 #endif
 
-#endif   /* LIBPQ_INT_H */
+#endif                         /* LIBPQ_INT_H */
index fd62cde99f14f8032cdb8734c47acd2821c1bb11..f4aa7c9cef92d1576796520bcf126bed21a447f0 100644 (file)
@@ -91,7 +91,7 @@ initPQExpBuffer(PQExpBuffer str)
    str->data = (char *) malloc(INITIAL_EXPBUFFER_SIZE);
    if (str->data == NULL)
    {
-       str->data = (char *) oom_buffer;        /* see comment above */
+       str->data = (char *) oom_buffer;    /* see comment above */
        str->maxlen = 0;
        str->len = 0;
    }
index 239def42b7f28f0448e0c6e7dd2d4ec0d4e64d82..19633f9b7958c803979f3baccbe54be5d7201558 100644 (file)
@@ -179,4 +179,4 @@ extern void appendPQExpBufferChar(PQExpBuffer str, char ch);
 extern void appendBinaryPQExpBuffer(PQExpBuffer str,
                        const char *data, size_t datalen);
 
-#endif   /* PQEXPBUFFER_H */
+#endif                         /* PQEXPBUFFER_H */
index 5b0d5aa8e832cb63d17d0afe7e98c7d1f1ea7fad..02ce6703469ecd54905963b5f637b09eb7eb4f47 100644 (file)
@@ -739,7 +739,7 @@ plperl_init_interp(void)
    STMT_START { \
        if (saved != NULL) { setlocale_perl(name, saved); pfree(saved); } \
    } STMT_END
-#endif   /* WIN32 */
+#endif                         /* WIN32 */
 
    if (plperl_on_init && *plperl_on_init)
    {
@@ -2956,7 +2956,7 @@ plperl_hash_from_tuple(HeapTuple tuple, TupleDesc tupdesc)
    check_stack_depth();
 
    hv = newHV();
-   hv_ksplit(hv, tupdesc->natts);      /* pre-grow the hash */
+   hv_ksplit(hv, tupdesc->natts);  /* pre-grow the hash */
 
    for (i = 0; i < tupdesc->natts; i++)
    {
@@ -3933,7 +3933,7 @@ setlocale_perl(int category, char *locale)
                newctype = RETVAL;
            new_ctype(newctype);
        }
-#endif   /* USE_LOCALE_CTYPE */
+#endif                         /* USE_LOCALE_CTYPE */
 #ifdef USE_LOCALE_COLLATE
        if (category == LC_COLLATE
 #ifdef LC_ALL
@@ -3951,7 +3951,7 @@ setlocale_perl(int category, char *locale)
                newcoll = RETVAL;
            new_collate(newcoll);
        }
-#endif   /* USE_LOCALE_COLLATE */
+#endif                         /* USE_LOCALE_COLLATE */
 
 #ifdef USE_LOCALE_NUMERIC
        if (category == LC_NUMERIC
@@ -3970,7 +3970,7 @@ setlocale_perl(int category, char *locale)
                newnum = RETVAL;
            new_numeric(newnum);
        }
-#endif   /* USE_LOCALE_NUMERIC */
+#endif                         /* USE_LOCALE_NUMERIC */
    }
 
    return RETVAL;
index ae367b0fc15f611a28728820a1c34c1ebb365a36..eecd1928024d0195f65fd7dffb32efd397a0f4eb 100644 (file)
@@ -62,8 +62,8 @@
 #else
 #define vsnprintf      pg_vsnprintf
 #define snprintf       pg_snprintf
-#endif   /* __GNUC__ */
-#endif   /* USE_REPL_SNPRINTF */
+#endif                         /* __GNUC__ */
+#endif                         /* USE_REPL_SNPRINTF */
 
 /* perl version and platform portability */
 #define NEED_eval_pv
@@ -107,4 +107,4 @@ void        plperl_spi_freeplan(char *);
 void       plperl_spi_cursor_close(char *);
 char      *plperl_sv_to_literal(SV *, char *);
 
-#endif   /* PL_PERL_H */
+#endif                         /* PL_PERL_H */
index f8aa06835ce5cf4ddc104ca9c50dd799d60b69a6..76124edc07826869c41a2ea52864cbf1af90abbc 100644 (file)
@@ -158,7 +158,7 @@ croak_cstr(const char *str)
    sv_setsv(errsv, ssv);
 
    croak(NULL);
-#endif   /* croak_sv */
+#endif                         /* croak_sv */
 }
 
-#endif   /* PL_PERL_HELPERS_H */
+#endif                         /* PL_PERL_HELPERS_H */
index aeb8e4dfe729778a195ccf79e18f433ce379aca4..41cac84867b69ee58b025dfb5c7edd9c741fa14c 100644 (file)
@@ -352,7 +352,7 @@ do_compile(FunctionCallInfo fcinfo,
    function->fn_tid = procTup->t_self;
    function->fn_input_collation = fcinfo->fncollation;
    function->fn_cxt = func_cxt;
-   function->out_param_varno = -1;     /* set up for no OUT param */
+   function->out_param_varno = -1; /* set up for no OUT param */
    function->resolve_option = plpgsql_variable_conflict;
    function->print_strict_params = plpgsql_print_strict_params;
    /* only promote extra warnings and errors at CREATE FUNCTION time */
@@ -838,7 +838,7 @@ plpgsql_compile_inline(char *proc_source)
    function->fn_is_trigger = PLPGSQL_NOT_TRIGGER;
    function->fn_input_collation = InvalidOid;
    function->fn_cxt = func_cxt;
-   function->out_param_varno = -1;     /* set up for no OUT param */
+   function->out_param_varno = -1; /* set up for no OUT param */
    function->resolve_option = plpgsql_variable_conflict;
    function->print_strict_params = plpgsql_print_strict_params;
 
@@ -1439,7 +1439,7 @@ plpgsql_parse_dblword(char *word1, char *word2,
                    /* Block-qualified reference to scalar variable. */
                    wdatum->datum = plpgsql_Datums[ns->itemno];
                    wdatum->ident = NULL;
-                   wdatum->quoted = false;     /* not used */
+                   wdatum->quoted = false; /* not used */
                    wdatum->idents = idents;
                    return true;
 
@@ -1469,7 +1469,7 @@ plpgsql_parse_dblword(char *word1, char *word2,
                        wdatum->datum = plpgsql_Datums[ns->itemno];
                    }
                    wdatum->ident = NULL;
-                   wdatum->quoted = false;     /* not used */
+                   wdatum->quoted = false; /* not used */
                    wdatum->idents = idents;
                    return true;
 
index da86702bdd6a6f2e233ed09ab3ce27c2e0d0c4fe..20ad7eea0dec9bb0e29607af63716378254746c0 100644 (file)
@@ -81,8 +81,8 @@ typedef struct
 typedef struct SimpleEcontextStackEntry
 {
    ExprContext *stack_econtext;    /* a stacked econtext */
-   SubTransactionId xact_subxid;       /* ID for current subxact */
-   struct SimpleEcontextStackEntry *next;      /* next stack entry up */
+   SubTransactionId xact_subxid;   /* ID for current subxact */
+   struct SimpleEcontextStackEntry *next;  /* next stack entry up */
 } SimpleEcontextStackEntry;
 
 static EState *shared_simple_eval_estate = NULL;
@@ -543,7 +543,7 @@ plpgsql_exec_function(PLpgSQL_function *func, FunctionCallInfo fcinfo,
                     * the generated result type, instead.
                     */
                    tupdesc = estate.rettupdesc;
-                   if (tupdesc == NULL)        /* shouldn't happen */
+                   if (tupdesc == NULL)    /* shouldn't happen */
                        elog(ERROR, "return type must be a row type");
                    break;
                default:
@@ -2726,7 +2726,7 @@ exec_stmt_return(PLpgSQL_execstate *estate, PLpgSQL_stmt_return *stmt)
                        if (!row->rowtupdesc)   /* should not happen */
                            elog(ERROR, "row variable has no tupdesc");
                        tup = make_tuple_from_row(estate, row, row->rowtupdesc);
-                       if (tup == NULL)        /* should not happen */
+                       if (tup == NULL)    /* should not happen */
                            elog(ERROR, "row not compatible with its own tupdesc");
                        estate->retval = PointerGetDatum(tup);
                        estate->rettupdesc = row->rowtupdesc;
@@ -3441,7 +3441,7 @@ plpgsql_estate_setup(PLpgSQL_execstate *estate,
    estate->paramLI->paramFetch = plpgsql_param_fetch;
    estate->paramLI->paramFetchArg = (void *) estate;
    estate->paramLI->parserSetup = (ParserSetupHook) plpgsql_parser_setup;
-   estate->paramLI->parserSetupArg = NULL;     /* filled during use */
+   estate->paramLI->parserSetupArg = NULL; /* filled during use */
    estate->paramLI->numParams = estate->ndatums;
    estate->paramLI->paramMask = NULL;
    estate->params_dirty = false;
@@ -3456,7 +3456,7 @@ plpgsql_estate_setup(PLpgSQL_execstate *estate,
        ctl.entrysize = sizeof(plpgsql_CastHashEntry);
        ctl.hcxt = CurrentMemoryContext;
        estate->cast_hash = hash_create("PLpgSQL private cast cache",
-                                       16,     /* start small and extend */
+                                       16, /* start small and extend */
                                        &ctl,
                                      HASH_ELEM | HASH_BLOBS | HASH_CONTEXT);
        estate->cast_hash_context = CurrentMemoryContext;
@@ -4765,7 +4765,7 @@ exec_assign_value(PLpgSQL_execstate *estate,
                 * array, either, so that's a no-op too.  This is all ugly but
                 * corresponds to the current behavior of execExpr*.c.
                 */
-               if (arrayelem->arraytyplen > 0 &&       /* fixed-length array? */
+               if (arrayelem->arraytyplen > 0 &&   /* fixed-length array? */
                    (oldarrayisnull || isNull))
                    return;
 
@@ -5102,7 +5102,7 @@ plpgsql_exec_get_datum_type_info(PLpgSQL_execstate *estate,
 
        default:
            elog(ERROR, "unrecognized dtype: %d", datum->dtype);
-           *typeid = InvalidOid;       /* keep compiler quiet */
+           *typeid = InvalidOid;   /* keep compiler quiet */
            *typmod = -1;
            *collation = InvalidOid;
            break;
index 0f790ee536dd20050b792d7d5d6077b103cd6534..2b19948562479cf3947b8bf7d2f149c04f632415 100644 (file)
@@ -232,10 +232,10 @@ typedef struct PLpgSQL_expr
    struct PLpgSQL_nsitem *ns;
 
    /* fields for "simple expression" fast-path execution: */
-   Expr       *expr_simple_expr;       /* NULL means not a simple expr */
+   Expr       *expr_simple_expr;   /* NULL means not a simple expr */
    int         expr_simple_generation; /* plancache generation we checked */
-   Oid         expr_simple_type;       /* result type Oid, if simple */
-   int32       expr_simple_typmod;     /* result typmod, if simple */
+   Oid         expr_simple_type;   /* result type Oid, if simple */
+   int32       expr_simple_typmod; /* result typmod, if simple */
 
    /*
     * if expr is simple AND prepared in current transaction,
@@ -243,8 +243,8 @@ typedef struct PLpgSQL_expr
     * seeing if expr_simple_lxid matches current LXID.  (If not,
     * expr_simple_state probably points at garbage!)
     */
-   ExprState  *expr_simple_state;      /* eval tree for expr_simple_expr */
-   bool        expr_simple_in_use;     /* true if eval tree is active */
+   ExprState  *expr_simple_state;  /* eval tree for expr_simple_expr */
+   bool        expr_simple_in_use; /* true if eval tree is active */
    LocalTransactionId expr_simple_lxid;
 } PLpgSQL_expr;
 
@@ -865,7 +865,7 @@ typedef struct PLpgSQL_function
    /* the datums representing the function's local variables */
    int         ndatums;
    PLpgSQL_datum **datums;
-   Bitmapset  *resettable_datums;      /* dnos of non-simple vars */
+   Bitmapset  *resettable_datums;  /* dnos of non-simple vars */
 
    /* function body parsetree */
    PLpgSQL_stmt_block *action;
@@ -897,7 +897,7 @@ typedef struct PLpgSQL_execstate
                                 * CONTINUE stmt, if any */
    ErrorData  *cur_error;      /* current exception handler's error */
 
-   Tuplestorestate *tuple_store;       /* SRFs accumulate results here */
+   Tuplestorestate *tuple_store;   /* SRFs accumulate results here */
    MemoryContext tuple_store_cxt;
    ResourceOwner tuple_store_owner;
    ReturnSetInfo *rsi;
@@ -1153,4 +1153,4 @@ extern void plpgsql_scanner_finish(void);
  */
 extern int plpgsql_yyparse(void);
 
-#endif   /* PLPGSQL_H */
+#endif                         /* PLPGSQL_H */
index ef23865dd2cdda4321ae193457f9871528775051..018b169cbf2d90d3b578befa4b70486cf4d1c80d 100644 (file)
@@ -21,4 +21,4 @@ extern void PLy_cursor_init_type(void);
 extern PyObject *PLy_cursor(PyObject *self, PyObject *args);
 extern PyObject *PLy_cursor_plan(PyObject *ob, PyObject *args);
 
-#endif   /* PLPY_CURSOROBJECT_H */
+#endif                         /* PLPY_CURSOROBJECT_H */
index 5dd4ef7a1465a585673053fedec91bb93aae55f0..6bc50fd227db96a3ce8ddb1285882e3527dc6d7f 100644 (file)
@@ -19,4 +19,4 @@ extern void PLy_exception_set_plural(PyObject *exc, const char *fmt_singular, co
 
 extern void PLy_exception_set_with_details(PyObject *excclass, ErrorData *edata);
 
-#endif   /* PLPY_ELOG_H */
+#endif                         /* PLPY_ELOG_H */
index a1ecc6d2a460a5ddbd7b131c1648e55f7bf651ed..e59d076695be8c4b55474a54d56e277500745de1 100644 (file)
@@ -31,7 +31,7 @@ typedef struct PLySRFState
 {
    PyObject   *iter;           /* Python iterator producing results */
    PLySavedArgs *savedargs;    /* function argument values */
-   MemoryContextCallback callback;     /* for releasing refcounts when done */
+   MemoryContextCallback callback; /* for releasing refcounts when done */
 } PLySRFState;
 
 static PyObject *PLy_function_build_args(FunctionCallInfo fcinfo, PLyProcedure *proc);
index 439a1d801f6942994ae74dfa6db4b6eaeef83a3d..68da1ffcb2ef12c33fb3f7476a476a1dea2ee9f8 100644 (file)
@@ -10,4 +10,4 @@
 extern Datum PLy_exec_function(FunctionCallInfo fcinfo, PLyProcedure *proc);
 extern HeapTuple PLy_exec_trigger(FunctionCallInfo fcinfo, PLyProcedure *proc);
 
-#endif   /* PLPY_EXEC_H */
+#endif                         /* PLPY_EXEC_H */
index 860b804e5455d432ba861e7fb9fef4278b0d2cfa..7df50c09c82bd5dc57640a6f24e00f5e3a5be18f 100644 (file)
@@ -214,7 +214,7 @@ plpython2_validator(PG_FUNCTION_ARGS)
    /* call plpython validator with our fcinfo so it gets our oid */
    return plpython_validator(fcinfo);
 }
-#endif   /* PY_MAJOR_VERSION < 3 */
+#endif                         /* PY_MAJOR_VERSION < 3 */
 
 Datum
 plpython_call_handler(PG_FUNCTION_ARGS)
@@ -288,7 +288,7 @@ plpython2_call_handler(PG_FUNCTION_ARGS)
 {
    return plpython_call_handler(fcinfo);
 }
-#endif   /* PY_MAJOR_VERSION < 3 */
+#endif                         /* PY_MAJOR_VERSION < 3 */
 
 Datum
 plpython_inline_handler(PG_FUNCTION_ARGS)
@@ -368,7 +368,7 @@ plpython2_inline_handler(PG_FUNCTION_ARGS)
 {
    return plpython_inline_handler(fcinfo);
 }
-#endif   /* PY_MAJOR_VERSION < 3 */
+#endif                         /* PY_MAJOR_VERSION < 3 */
 
 static bool
 PLy_procedure_is_trigger(Form_pg_proc procStruct)
index 10426c43236b9c52274b9280352039446cd20cce..e8c97c24d7f541580449b5f7139f4cc21fbb4cd5 100644 (file)
@@ -28,4 +28,4 @@ extern PLyExecutionContext *PLy_current_execution_context(void);
 /* Get the scratch memory context for specified execution context */
 extern MemoryContext PLy_get_scratch_context(PLyExecutionContext *context);
 
-#endif   /* PLPY_MAIN_H */
+#endif                         /* PLPY_MAIN_H */
index c67559266ec5a71b99532197399b27205591a61b..5adc957053f0b56a0b181f799fedd7c56086e022 100644 (file)
@@ -24,4 +24,4 @@ extern void PLy_plan_init_type(void);
 extern PyObject *PLy_plan_new(void);
 extern bool is_PLyPlanObject(PyObject *ob);
 
-#endif   /* PLPY_PLANOBJECT_H */
+#endif                         /* PLPY_PLANOBJECT_H */
index ad160aeec36e3807c4d4742a49908c06049e22a0..619c471903e6a94ead46b892adb43c8c21bc3b11 100644 (file)
@@ -140,7 +140,7 @@ PyInit_plpy(void)
 
    return m;
 }
-#endif   /* PY_MAJOR_VERSION >= 3 */
+#endif                         /* PY_MAJOR_VERSION >= 3 */
 
 void
 PLy_init_plpy(void)
index ee089b78a167078b3a85c92407d4221cf89812c0..54d78101ceb3f3920d9252e8d37c83c3515c8405 100644 (file)
@@ -16,4 +16,4 @@ PyMODINIT_FUNC PyInit_plpy(void);
 #endif
 extern void PLy_init_plpy(void);
 
-#endif   /* PLPY_PLPYMODULE_H */
+#endif                         /* PLPY_PLPYMODULE_H */
index 8ffa38e06866d50587d5751156c73034f027bf23..d05944fc39851e9a605c7d430b531eb2fe318309 100644 (file)
@@ -17,7 +17,7 @@ typedef struct PLySavedArgs
    struct PLySavedArgs *next;  /* linked-list pointer */
    PyObject   *args;           /* "args" element of globals dict */
    int         nargs;          /* length of namedargs array */
-   PyObject   *namedargs[FLEXIBLE_ARRAY_MEMBER];       /* named args */
+   PyObject   *namedargs[FLEXIBLE_ARRAY_MEMBER];   /* named args */
 } PLySavedArgs;
 
 /* cached procedure data */
@@ -66,4 +66,4 @@ extern PLyProcedure *PLy_procedure_get(Oid fn_oid, Oid fn_rel, bool is_trigger);
 extern void PLy_procedure_compile(PLyProcedure *proc, const char *src);
 extern void PLy_procedure_delete(PLyProcedure *proc);
 
-#endif   /* PLPY_PROCEDURE_H */
+#endif                         /* PLPY_PROCEDURE_H */
index 314510c40fffacd1aa3ec2151aaa90806297ff1e..bbaca0dd00f74706c9b042e9db754025a0034fc8 100644 (file)
@@ -22,4 +22,4 @@ typedef struct PLyResultObject
 extern void PLy_result_init_type(void);
 extern PyObject *PLy_result_new(void);
 
-#endif   /* PLPY_RESULTOBJECT_H */
+#endif                         /* PLPY_RESULTOBJECT_H */
index 817a7584e79a29e0dafaffdaf880a5ac0de986de..d6b0a4707bc57fd6eb0e0c2a760a9e6505d2b85d 100644 (file)
@@ -23,4 +23,4 @@ extern void PLy_spi_subtransaction_begin(MemoryContext oldcontext, ResourceOwner
 extern void PLy_spi_subtransaction_commit(MemoryContext oldcontext, ResourceOwner oldowner);
 extern void PLy_spi_subtransaction_abort(MemoryContext oldcontext, ResourceOwner oldowner);
 
-#endif   /* PLPY_SPI_H */
+#endif                         /* PLPY_SPI_H */
index d9c3929234dd08f9cb20840ba2a3ce3eb2458287..92a9e635f3a4ae7d20d24f4d3b2613abd8c6edc1 100644 (file)
@@ -29,4 +29,4 @@ typedef struct PLySubtransactionData
 extern void PLy_subtransaction_init_type(void);
 extern PyObject *PLy_subtransaction_new(PyObject *self, PyObject *unused);
 
-#endif   /* PLPY_SUBXACTOBJECT */
+#endif                         /* PLPY_SUBXACTOBJECT */
index e04722c47a503911b6ee2c9e3f5ec925e904eb38..95f84d8341818ad9ba20fa56384f1c680600a3e7 100644 (file)
@@ -119,4 +119,4 @@ extern PyObject *PLyDict_FromTuple(PLyTypeInfo *info, HeapTuple tuple, TupleDesc
 /* conversion from Python objects to C strings */
 extern char *PLyObject_AsString(PyObject *plrv);
 
-#endif   /* PLPY_TYPEIO_H */
+#endif                         /* PLPY_TYPEIO_H */
index f2d59491376d83c1d3e688173ecb00d6cc271527..35d57a9e80de3bc999a05bdb1884f7bf29cfdef7 100644 (file)
@@ -132,4 +132,4 @@ PLyUnicode_FromString(const char *s)
    return PLyUnicode_FromStringAndSize(s, strlen(s));
 }
 
-#endif   /* PY_MAJOR_VERSION >= 3 */
+#endif                         /* PY_MAJOR_VERSION >= 3 */
index 66c5ccf8ac3dcac7809d3db669ab7a871ea1c86b..f990bb089089d9e919aced4058e5362a19fd0a70 100644 (file)
@@ -14,4 +14,4 @@ extern PyObject *PLyUnicode_FromString(const char *s);
 extern PyObject *PLyUnicode_FromStringAndSize(const char *s, Py_ssize_t size);
 #endif
 
-#endif   /* PLPY_UTIL_H */
+#endif                         /* PLPY_UTIL_H */
index d687860ab28056009d5b988a77b0df2b59733961..9a8e8f246da66c1f4594ef24859aa6f8d65dc33f 100644 (file)
@@ -138,8 +138,8 @@ typedef int Py_ssize_t;
 #else
 #define vsnprintf              pg_vsnprintf
 #define snprintf               pg_snprintf
-#endif   /* __GNUC__ */
-#endif   /* USE_REPL_SNPRINTF */
+#endif                         /* __GNUC__ */
+#endif                         /* USE_REPL_SNPRINTF */
 
 /*
  * Used throughout, and also by the Python 2/3 porting layer, so it's easier to
@@ -147,4 +147,4 @@ typedef int Py_ssize_t;
  */
 #include "plpy_util.h"
 
-#endif   /* PLPYTHON_H */
+#endif                         /* PLPYTHON_H */
index 89bb46fb4a9b05be4e9035c19aff6449385e92b6..ca4b4b551e77eb1a1739f1b4b1673f0b3353d75b 100644 (file)
@@ -135,16 +135,16 @@ typedef struct pltcl_interp_desc
 typedef struct pltcl_proc_desc
 {
    char       *user_proname;   /* user's name (from pg_proc.proname) */
-   char       *internal_proname;       /* Tcl name (based on function OID) */
+   char       *internal_proname;   /* Tcl name (based on function OID) */
    MemoryContext fn_cxt;       /* memory context for this procedure */
    unsigned long fn_refcount;  /* number of active references */
    TransactionId fn_xmin;      /* xmin of pg_proc row */
    ItemPointerData fn_tid;     /* TID of pg_proc row */
    bool        fn_readonly;    /* is function readonly? */
    bool        lanpltrusted;   /* is it pltcl (vs. pltclu)? */
-   pltcl_interp_desc *interp_desc;     /* interpreter to use */
+   pltcl_interp_desc *interp_desc; /* interpreter to use */
    FmgrInfo    result_in_func; /* input function for fn's result type */
-   Oid         result_typioparam;      /* param to pass to same */
+   Oid         result_typioparam;  /* param to pass to same */
    bool        fn_retisset;    /* true if function returns a set */
    bool        fn_retistuple;  /* true if function returns composite */
    int         nargs;          /* number of arguments */
@@ -221,8 +221,8 @@ typedef struct pltcl_call_state
    AttInMetadata *attinmeta;   /* metadata for building tuples of that type */
 
    ReturnSetInfo *rsi;         /* passed-in ReturnSetInfo, if any */
-   Tuplestorestate *tuple_store;       /* SRFs accumulate result here */
-   MemoryContext tuple_store_cxt;      /* context and resowner for tuplestore */
+   Tuplestorestate *tuple_store;   /* SRFs accumulate result here */
+   MemoryContext tuple_store_cxt;  /* context and resowner for tuplestore */
    ResourceOwner tuple_store_owner;
 } pltcl_call_state;
 
@@ -1054,7 +1054,7 @@ pltcl_trigger_handler(PG_FUNCTION_ARGS, pltcl_call_state *call_state,
    /* Find or compile the function */
    prodesc = compile_pltcl_function(fcinfo->flinfo->fn_oid,
                                     RelationGetRelid(trigdata->tg_relation),
-                                    false,     /* not an event trigger */
+                                    false, /* not an event trigger */
                                     pltrusted);
 
    call_state->prodesc = prodesc;
index c6ec929702fdf771d6bcf266cae6025b5ae8ee17..c357fed6dca7bb40993573a702035c8080566796 100644 (file)
@@ -290,7 +290,7 @@ pg_codepage_to_encoding(UINT cp)
    return -1;
 }
 #endif
-#endif   /* WIN32 */
+#endif                         /* WIN32 */
 
 #if (defined(HAVE_LANGINFO_H) && defined(CODESET)) || defined(WIN32)
 
@@ -435,4 +435,4 @@ pg_get_encoding_from_locale(const char *ctype, bool write_message)
    return PG_SQL_ASCII;
 }
 
-#endif   /* (HAVE_LANGINFO_H && CODESET) || WIN32 */
+#endif                         /* (HAVE_LANGINFO_H && CODESET) || WIN32 */
index 9fc7abe10a4429e6d1a6451913b79346196c3a88..786161ff3519a3a67024303703b876970ff99f1b 100644 (file)
@@ -39,7 +39,7 @@ static char sccsid[] = "@(#)crypt.c   8.1.1.1 (Berkeley) 8/18/93";
 #else
 __RCSID("$NetBSD: crypt.c,v 1.18 2001/03/01 14:37:35 wiz Exp $");
 #endif
-#endif   /* not lint */
+#endif                         /* not lint */
 
 #include "c.h"
 
@@ -287,7 +287,7 @@ typedef union
    { C_block tblk; permute(cpp,&tblk,p,8); LOAD (d,d0,d1,tblk); }
 #define PERM3264(d,d0,d1,cpp,p)                \
    { C_block tblk; permute(cpp,&tblk,p,4); LOAD (d,d0,d1,tblk); }
-#endif   /* LARGEDATA */
+#endif                         /* LARGEDATA */
 
 STATIC     init_des(void);
 STATIC     init_perm(C_block[64 / CHUNKBITS][1 << CHUNKBITS], unsigned char[64], int, int);
@@ -326,12 +326,12 @@ int           chars_in;
    } while (--chars_in > 0);
    STORE(D, D0, D1, *out);
 }
-#endif   /* LARGEDATA */
+#endif                         /* LARGEDATA */
 
 
 /* =====  (mostly) Standard DES Tables ==================== */
 
-static const unsigned char IP[] = {        /* initial permutation */
+static const unsigned char IP[] = { /* initial permutation */
    58, 50, 42, 34, 26, 18, 10, 2,
    60, 52, 44, 36, 28, 20, 12, 4,
    62, 54, 46, 38, 30, 22, 14, 6,
@@ -344,7 +344,7 @@ static const unsigned char IP[] = {     /* initial permutation */
 
 /* The final permutation is the inverse of IP - no table is necessary */
 
-static const unsigned char ExpandTr[] = {      /* expansion operation */
+static const unsigned char ExpandTr[] = {  /* expansion operation */
    32, 1, 2, 3, 4, 5,
    4, 5, 6, 7, 8, 9,
    8, 9, 10, 11, 12, 13,
@@ -367,7 +367,7 @@ static const unsigned char PC1[] = {    /* permuted choice table 1 */
    21, 13, 5, 28, 20, 12, 4,
 };
 
-static const unsigned char Rotates[] = {       /* PC1 rotation schedule */
+static const unsigned char Rotates[] = {   /* PC1 rotation schedule */
    1, 1, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 1,
 };
 
@@ -457,7 +457,7 @@ static const unsigned char itoa64[] =   /* 0..63 => ascii-64 */
 /* =====  Tables that are initialized at run time  ==================== */
 
 
-static unsigned char a64toi[128];      /* ascii-64 => 0..63 */
+static unsigned char a64toi[128];  /* ascii-64 => 0..63 */
 
 /* Initial key schedule permutation */
 static C_block PC1ROT[64 / CHUNKBITS][1 << CHUNKBITS];
@@ -482,7 +482,7 @@ static C_block constdatablock;  /* encryption constant */
 static char cryptresult[1 + 4 + 4 + 11 + 1];   /* encrypted result */
 
 extern char *__md5crypt(const char *, const char *);   /* XXX */
-extern char *__bcrypt(const char *, const char *);     /* XXX */
+extern char *__bcrypt(const char *, const char *); /* XXX */
 
 
 /*
@@ -524,7 +524,7 @@ const char *setting;
            key++;
        keyblock.b[i] = t;
    }
-   if (des_setkey((char *) keyblock.b))        /* also initializes "a64toi" */
+   if (des_setkey((char *) keyblock.b))    /* also initializes "a64toi" */
        return (NULL);
 
    encp = &cryptresult[0];
@@ -715,7 +715,7 @@ int         num_iter;
    R1 = (R1 >> 1) & 0x55555555L;
    L1 = R0 | R1;               /* L1 is the odd-numbered input bits */
    STORE(L, L0, L1, B);
-   PERM3264(L, L0, L1, B.b, (C_block *) IE3264);       /* even bits */
+   PERM3264(L, L0, L1, B.b, (C_block *) IE3264);   /* even bits */
    PERM3264(R, R0, R1, B.b + 4, (C_block *) IE3264);   /* odd bits */
 
    if (num_iter >= 0)
index 269f7429f851a4d120b390f03d3b8afbd4b72e7b..2bab7938a0d317f0ea2f611911416889ea56ff20 100644 (file)
@@ -64,8 +64,7 @@ opendir(const char *dirname)
    strcpy(d->dirname, dirname);
    if (d->dirname[strlen(d->dirname) - 1] != '/' &&
        d->dirname[strlen(d->dirname) - 1] != '\\')
-       strcat(d->dirname, "\\");       /* Append backslash if not already
-                                        * there */
+       strcat(d->dirname, "\\");   /* Append backslash if not already there */
    strcat(d->dirname, "*");    /* Search for entries named anything */
    d->handle = INVALID_HANDLE_VALUE;
    d->ret.d_ino = 0;           /* no inodes on win32 */
@@ -102,8 +101,7 @@ readdir(DIR *d)
            return NULL;
        }
    }
-   strcpy(d->ret.d_name, fd.cFileName);        /* Both strings are MAX_PATH
-                                                * long */
+   strcpy(d->ret.d_name, fd.cFileName);    /* Both strings are MAX_PATH long */
    d->ret.d_namlen = strlen(d->ret.d_name);
 
    return &d->ret;
index 98e74f25b0e3989c24a7d33c3bda15195713bc86..4ce8cce005648dea91719b5e84099c20c06e0197 100644 (file)
@@ -121,10 +121,10 @@ pgunlink(const char *path)
 /* We undefined these above; now redefine for possible use below */
 #define rename(from, to)       pgrename(from, to)
 #define unlink(path)           pgunlink(path)
-#endif   /* defined(WIN32) || defined(__CYGWIN__) */
+#endif                         /* defined(WIN32) || defined(__CYGWIN__) */
 
 
-#if defined(WIN32) && !defined(__CYGWIN__)     /* Cygwin has its own symlinks */
+#if defined(WIN32) && !defined(__CYGWIN__) /* Cygwin has its own symlinks */
 
 /*
  * pgsymlink support:
@@ -352,7 +352,7 @@ pgwin32_is_junction(const char *path)
    }
    return ((attr & FILE_ATTRIBUTE_REPARSE_POINT) == FILE_ATTRIBUTE_REPARSE_POINT);
 }
-#endif   /* defined(WIN32) && !defined(__CYGWIN__) */
+#endif                         /* defined(WIN32) && !defined(__CYGWIN__) */
 
 
 #if defined(WIN32) && !defined(__CYGWIN__)
index ff85db4b5415f57715be2df447e07076d77f561b..4de989152e442f16418a5a1ee2122624b2573082 100644 (file)
@@ -328,7 +328,7 @@ gai_strerror(int errcode)
        case EAI_MEMORY:
            return "Not enough memory";
 #endif
-#if defined(EAI_NODATA) && EAI_NODATA != EAI_NONAME        /* MSVC/WIN64 duplicate */
+#if defined(EAI_NODATA) && EAI_NODATA != EAI_NONAME /* MSVC/WIN64 duplicate */
        case EAI_NODATA:
            return "No host data of that type was found";
 #endif
@@ -343,7 +343,7 @@ gai_strerror(int errcode)
        default:
            return "Unknown server error";
    }
-#endif   /* HAVE_HSTRERROR */
+#endif                         /* HAVE_HSTRERROR */
 }
 
 /*
index 54c46ea366eaed428ae692ac6320f4947024f02f..10f4228d7c923d5fd460d6539063adaf48d38b1c 100644 (file)
@@ -36,7 +36,7 @@
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static char sccsid[] = "@(#)getopt.c   8.3 (Berkeley) 4/27/95";
-#endif   /* LIBC_SCCS and not lint */
+#endif                         /* LIBC_SCCS and not lint */
 
 
 /*
index 2ef7e0996725a9087ef355f9661c601d20934a6a..d029fc2c766af2ce41eacdb973e646d4ba58b9fc 100644 (file)
@@ -104,7 +104,7 @@ getrusage(int who, struct rusage *rusage)
    rusage->ru_utime.tv_usec = TICK_TO_USEC(u, tick_rate);
    rusage->ru_stime.tv_sec = TICK_TO_SEC(s, tick_rate);
    rusage->ru_stime.tv_usec = TICK_TO_USEC(u, tick_rate);
-#endif   /* WIN32 */
+#endif                         /* WIN32 */
 
    return 0;
 }
index 0aafb0d687e5fa6292154e747c212f423991dc93..54844cb2f50cf927f260c4f80fa0736e45bd08be 100644 (file)
@@ -66,7 +66,7 @@ static char sccsid[] = "@(#)mktemp.c  8.1 (Berkeley) 6/4/93";
 #else
 __RCSID("$NetBSD: gettemp.c,v 1.17 2014/01/21 19:09:48 seanb Exp $");
 #endif
-#endif   /* LIBC_SCCS and not lint */
+#endif                         /* LIBC_SCCS and not lint */
 #endif
 
 #include 
@@ -215,7 +215,7 @@ GETTEMP(char *path, int *doopen, int domkdir)
    /* NOTREACHED */
 }
 
-#endif   /* !HAVE_NBTOOL_CONFIG_H || !HAVE_MKSTEMP ||
+#endif                         /* !HAVE_NBTOOL_CONFIG_H || !HAVE_MKSTEMP ||
                                 * !HAVE_MKDTEMP */
 
 
@@ -265,7 +265,7 @@ static char sccsid[] = "@(#)mktemp.c    8.1 (Berkeley) 6/4/93";
 #else
 __RCSID("$NetBSD: mkdtemp.c,v 1.11 2012/03/15 18:22:30 christos Exp $");
 #endif
-#endif   /* LIBC_SCCS and not lint */
+#endif                         /* LIBC_SCCS and not lint */
 
 #if HAVE_NBTOOL_CONFIG_H
 #define GETTEMP        __nbcompat_gettemp
@@ -290,4 +290,4 @@ mkdtemp(char *path)
    return GETTEMP(path, NULL, 1) ? path : NULL;
 }
 
-#endif   /* !HAVE_NBTOOL_CONFIG_H || !HAVE_MKDTEMP */
+#endif                         /* !HAVE_NBTOOL_CONFIG_H || !HAVE_MKDTEMP */
index eff704320267d9feb4b7f3f24c54b7a5de2647ad..dfd6cd9f49d7c1dee53e387d279d77b2f5210d3b 100644 (file)
@@ -1165,5 +1165,5 @@ static const uint32 pg_crc32c_table[8][256] = {
        0xA1354CE5, 0x864870AC, 0xEFCF3477, 0xC8B2083E,
        0xCCB751C4, 0xEBCA6D8D, 0x824D2956, 0xA530151F
    }
-#endif   /* WORDS_BIGENDIAN */
+#endif                         /* WORDS_BIGENDIAN */
 };
index 75b4d96c69830edc83d59a2c5d65033619fd1134..d698124121a43daa5e4b18dd750cba8bbbc7b99c 100644 (file)
@@ -55,7 +55,7 @@ pg_comp_crc32c_sse42(pg_crc32c crc, const void *data, size_t len)
        crc = _mm_crc32_u32(crc, *((const unsigned int *) p));
        p += 4;
    }
-#endif   /* __x86_64__ */
+#endif                         /* __x86_64__ */
 
    /* Process any remaining bytes one at a time. */
    while (p < pend)
index 9f01b73b0f7a610c5835231ebe6049f162f3b6f5..f2db68a33d46ce2232d074f6b7f6aa459bea13aa 100644 (file)
@@ -60,4 +60,4 @@ pg_usleep(long microsec)
    }
 }
 
-#endif   /* defined(FRONTEND) || !defined(WIN32) */
+#endif                         /* defined(FRONTEND) || !defined(WIN32) */
index e7e445101c221e662fd5eec32dadac6bd5015d5c..f176387ca201f580f7dd1f4ae74118ade9d28a06 100644 (file)
@@ -85,6 +85,6 @@ pqsignal_no_restart(int signo, pqsigfunc func)
    return oact.sa_handler;
 }
 
-#endif   /* !WIN32 */
+#endif                         /* !WIN32 */
 
-#endif   /* !defined(WIN32) || defined(FRONTEND) */
+#endif                         /* !defined(WIN32) || defined(FRONTEND) */
index 62b23b0c1f3fc9aa55ed9a951a7def1b24091a2d..231e5d6bdb427ccb570e55b5f5661dbf2b04574c 100644 (file)
@@ -364,7 +364,7 @@ nextch1:
                goto nextch1;
            case '*':
                if (afterstar)
-                   have_non_dollar = true;     /* multiple stars */
+                   have_non_dollar = true; /* multiple stars */
                afterstar = true;
                accum = 0;
                goto nextch1;
index a15d5be8970fb06e422b2435ca47ce88965fc86b..1f28272d650857691f6c1fcf2bcd73707442e3a8 100644 (file)
@@ -60,4 +60,4 @@ extern int    spec_yyparse(void);
 extern int spec_yylex(void);
 extern void spec_yyerror(const char *str);
 
-#endif   /* ISOLATIONTESTER_H */
+#endif                         /* ISOLATIONTESTER_H */
index b685aeb1fa6922f654fa89a0db033a3dba59e81d..832a138da566f54d83a885757ba2e4260f515df1 100644 (file)
@@ -357,7 +357,7 @@ make_temp_sockdir(void)
 
    return temp_sockdir;
 }
-#endif   /* HAVE_UNIX_SOCKETS */
+#endif                         /* HAVE_UNIX_SOCKETS */
 
 /*
  * Check whether string matches pattern
@@ -1520,7 +1520,7 @@ wait_for_tests(PID_TYPE * pids, int *statuses, char **names, int num_tests)
        p = active_pids[r - WAIT_OBJECT_0];
        /* compact the active_pids array */
        active_pids[r - WAIT_OBJECT_0] = active_pids[tests_left - 1];
-#endif   /* WIN32 */
+#endif                         /* WIN32 */
 
        for (i = 0; i < num_tests; i++)
        {
@@ -1747,8 +1747,8 @@ run_schedule(const char *schedule, test_function tfunc)
                bool        newdiff;
 
                if (tl)
-                   tl = tl->next;      /* tl has the same length as rl and el
-                                        * if it exists */
+                   tl = tl->next;  /* tl has the same length as rl and el if
+                                    * it exists */
 
                newdiff = results_differ(tests[i], rl->str, el->str);
                if (newdiff && tl)
index e408e5ea4cf36b11f69504ab2b26a092a9a477d1..d2a821f3d5dc1102dfdeebba86b5314e5befb001 100644 (file)
@@ -550,7 +550,7 @@ ttdummy(PG_FUNCTION_ARGS)
            return PointerGetDatum(NULL);
        }
    }
-   else if (oldoff != TTDUMMY_INFINITY)        /* DELETE */
+   else if (oldoff != TTDUMMY_INFINITY)    /* DELETE */
    {
        pfree(relname);
        return PointerGetDatum(NULL);
@@ -579,7 +579,7 @@ ttdummy(PG_FUNCTION_ARGS)
    {
        cvals[attnum[0] - 1] = newoff;  /* start_date eq current date */
        cnulls[attnum[0] - 1] = ' ';
-       cvals[attnum[1] - 1] = TTDUMMY_INFINITY;        /* stop_date eq INFINITY */
+       cvals[attnum[1] - 1] = TTDUMMY_INFINITY;    /* stop_date eq INFINITY */
        cnulls[attnum[1] - 1] = ' ';
    }
    else
@@ -708,8 +708,7 @@ Datum
 int44out(PG_FUNCTION_ARGS)
 {
    int32      *an_array = (int32 *) PG_GETARG_POINTER(0);
-   char       *result = (char *) palloc(16 * 4);       /* Allow 14 digits +
-                                                        * sign */
+   char       *result = (char *) palloc(16 * 4);   /* Allow 14 digits + sign */
    int         i;
    char       *walk;
 
@@ -896,7 +895,7 @@ test_atomic_flag(void)
 
    pg_atomic_clear_flag(&flag);
 }
-#endif   /* PG_HAVE_ATOMIC_FLAG_SIMULATION */
+#endif                         /* PG_HAVE_ATOMIC_FLAG_SIMULATION */
 
 static void
 test_atomic_uint32(void)
index cb93bcc5ab71cf77f60b014def2a9dcb12d134c1..32ce80e57f9cbc77b15897aeaab8e37448e1883a 100644 (file)
@@ -466,4 +466,4 @@ func_call_2(void)
    pthread_mutex_unlock(&init_mutex);
 }
 
-#endif   /* !ENABLE_THREAD_SAFETY && !IN_CONFIGURE */
+#endif                         /* !ENABLE_THREAD_SAFETY && !IN_CONFIGURE */
index 76d96ff63146f7660deb1189f085a98e1262e80e..08642d12363abe6a96c1dbd2c061b16694708c0c 100644 (file)
@@ -44,7 +44,7 @@
  * that tzname[0] has the "normal" length of three characters).
  */
 #define WILDABBR   "   "
-#endif   /* !defined WILDABBR */
+#endif                         /* !defined WILDABBR */
 
 static const char wildabbr[] = WILDABBR;
 
@@ -270,7 +270,7 @@ tzloadbody(char const *name, char *canonname, struct state *sp, bool doextend,
            return EINVAL;
        if (nread
            < (tzheadsize       /* struct tzhead */
-              + timecnt * stored       /* ats */
+              + timecnt * stored   /* ats */
               + timecnt        /* types */
               + typecnt * 6    /* ttinfos */
               + charcnt        /* chars */
@@ -788,7 +788,7 @@ getrule(const char *strp, struct rule *rulep)
        strp = getoffset(strp, &rulep->r_time);
    }
    else
-       rulep->r_time = 2 * SECSPERHOUR;        /* default = 2:00:00 */
+       rulep->r_time = 2 * SECSPERHOUR;    /* default = 2:00:00 */
    return strp;
 }
 
@@ -921,7 +921,7 @@ tzparse(const char *name, struct state *sp, bool lastditch)
            stdlen = (sizeof sp->chars) - 1;
        charcnt = stdlen + 1;
        stdoffset = 0;
-       sp->goback = sp->goahead = false;       /* simulate failed tzload() */
+       sp->goback = sp->goahead = false;   /* simulate failed tzload() */
        load_ok = false;
    }
    else
index f5aec6e529636630b1c9dbd270f2e7ea510344ee..3d89ba00a70dde89766e461db8b87596f00b2e59 100644 (file)
@@ -72,4 +72,4 @@ extern int tzload(const char *name, char *canonname, struct state *sp,
       bool doextend);
 extern bool tzparse(const char *name, struct state *sp, bool lastditch);
 
-#endif   /* _PGTZ_H */
+#endif                         /* _PGTZ_H */
index f031b17b7eff0ecab9c55ad04a962679f8c072c3..c141fb61314501629ddbfd17c2f48ab2e7ba617e 100644 (file)
 
 #ifndef WIFEXITED
 #define WIFEXITED(status)  (((status) & 0xff) == 0)
-#endif   /* !defined WIFEXITED */
+#endif                         /* !defined WIFEXITED */
 #ifndef WEXITSTATUS
 #define WEXITSTATUS(status) (((status) >> 8) & 0xff)
-#endif   /* !defined WEXITSTATUS */
+#endif                         /* !defined WEXITSTATUS */
 
 /* Unlike 's isdigit, this also works if c < 0 | c > UCHAR_MAX. */
 #define is_digit(c) ((unsigned)(c) - '0' <= 9)
@@ -60,7 +60,7 @@
 extern int unlink(const char *filename);
 
 #define remove unlink
-#endif   /* !defined remove */
+#endif                         /* !defined remove */
 
 
 /*
@@ -166,4 +166,4 @@ extern int  unlink(const char *filename);
   ((int64) YEARSPERREPEAT * (int64) AVGSECSPERYEAR)
 #define SECSPERREPEAT_BITS 34  /* ceil(log2(SECSPERREPEAT)) */
 
-#endif   /* !defined PRIVATE_H */
+#endif                         /* !defined PRIVATE_H */
index 9c9baee0b1ee1da781349046c51f814ad271437c..7cbafc9d834465ffe02f7506f3c29a813435b6fd 100644 (file)
@@ -245,7 +245,7 @@ _fmt(const char *format, const struct pg_tm *t, char *pt, const char *ptlim,
                     */
                    pt = _add("kitchen sink", pt, ptlim);
                    continue;
-#endif   /* defined KITCHEN_SINK */
+#endif                         /* defined KITCHEN_SINK */
                case 'l':
 
                    /*
index 56a5b43472760a127e7e49b296adaf225ad2f5a4..2843833e4947eee70c44a1512b42cff0bf2cc15a 100644 (file)
@@ -34,9 +34,9 @@ struct tzhead
 {
    char        tzh_magic[4];   /* TZ_MAGIC */
    char        tzh_version[1]; /* '\0' or '2' or '3' as of 2013 */
-   char        tzh_reserved[15];       /* reserved; must be zero */
-   char        tzh_ttisgmtcnt[4];      /* coded number of trans. time flags */
-   char        tzh_ttisstdcnt[4];      /* coded number of trans. time flags */
+   char        tzh_reserved[15];   /* reserved; must be zero */
+   char        tzh_ttisgmtcnt[4];  /* coded number of trans. time flags */
+   char        tzh_ttisstdcnt[4];  /* coded number of trans. time flags */
    char        tzh_leapcnt[4]; /* coded number of leap seconds */
    char        tzh_timecnt[4]; /* coded number of transition times */
    char        tzh_typecnt[4]; /* coded number of local time types */
@@ -100,4 +100,4 @@ struct tzhead
 
 #define TZ_MAX_LEAPS   50      /* Maximum number of leap second corrections */
 
-#endif   /* !defined TZFILE_H */
+#endif                         /* !defined TZFILE_H */
index a38cadff588f0f8b2781cce993b3ee641b89f9ce..27c841be9e788b32edd46b8a6d9d5b5f61e61b6e 100644 (file)
@@ -27,7 +27,7 @@ typedef int64 zic_t;
 
 #ifndef ZIC_MAX_ABBR_LEN_WO_WARN
 #define ZIC_MAX_ABBR_LEN_WO_WARN     6
-#endif   /* !defined ZIC_MAX_ABBR_LEN_WO_WARN */
+#endif                         /* !defined ZIC_MAX_ABBR_LEN_WO_WARN */
 
 #ifndef WIN32
 #ifdef S_IRUSR
@@ -83,9 +83,9 @@ struct rule
  * r_dycode        r_dayofmonth    r_wday
  */
 
-#define DC_DOM     0   /* 1..31 */     /* unused */
-#define DC_DOWGEQ  1   /* 1..31 */     /* 0..6 (Sun..Sat) */
-#define DC_DOWLEQ  2   /* 1..31 */     /* 0..6 (Sun..Sat) */
+#define DC_DOM     0   /* 1..31 */ /* unused */
+#define DC_DOWGEQ  1   /* 1..31 */ /* 0..6 (Sun..Sat) */
+#define DC_DOWLEQ  2   /* 1..31 */ /* 0..6 (Sun..Sat) */
 
 struct zone
 {
@@ -572,7 +572,7 @@ main(int argc, char *argv[])
 
 #ifndef WIN32
    umask(umask(S_IWGRP | S_IWOTH) | (S_IWGRP | S_IWOTH));
-#endif   /* !WIN32 */
+#endif                         /* !WIN32 */
    progname = argv[0];
    if (TYPE_BIT(zic_t) <64)
    {
@@ -852,7 +852,7 @@ relname(char const *from, char const *to)
    }
    return result;
 }
-#endif   /* HAVE_SYMLINK */
+#endif                         /* HAVE_SYMLINK */
 
 /* Hard link FROM to TO, following any symbolic links.
    Return 0 if successful, an error number otherwise.  */
@@ -920,7 +920,7 @@ dolink(char const *fromfield, char const *tofield, bool staysymlink)
                        strerror(link_errno));
        }
        else
-#endif   /* HAVE_SYMLINK */
+#endif                         /* HAVE_SYMLINK */
        {
            FILE       *fp,
                       *tp;
@@ -2140,7 +2140,7 @@ writezone(const char *const name, const char *const string, char version)
                writetype[type] = true;
            }
        }
-#endif   /* !defined
+#endif                         /* !defined
                                 * LEAVE_SOME_PRE_2011_SYSTEMS_IN_THE_LURCH */
        thistypecnt = 0;
        for (i = 0; i < typecnt; ++i)
index b98aa151954fb417a2d276c7e674d52c62d3313c..c8c702d69ef4fea3a81e069f8e86714b914dd728 100755 (executable)
@@ -235,11 +235,6 @@ sub post_indent
    # Fix run-together comments to have a tab between them
    $source =~ s!\*/(/\*.*\*/)$!*/\t$1!gm;
 
-   # cpp conditionals
-
-   # Reduce whitespace between #endif and comments to one tab
-   $source =~ s!^\#endif[ \t]+/\*!#endif   /*!gm;
-
    ## Functions
 
    # Use a single space before '*' in function return types
index 3c78f336fc081d0391c9c50865dbb0e4f1e4718b..721c0c87fcd7440d803e03423d5accad1977872e 100644 (file)
@@ -25,7 +25,7 @@ float8       *add_one_float8(float8 *arg);
 Point     *makepoint(Point *pointx, Point *pointy);
 text      *copytext(text *t);
 text      *concat_text(text *arg1, text *arg2);
-bool c_overpaid(HeapTupleHeader t,         /* the current instance of EMP */
+bool c_overpaid(HeapTupleHeader t,     /* the current instance of EMP */
           int32 limit);
 
 
@@ -75,9 +75,9 @@ copytext(text *t)
    /*
     * VARDATA is a pointer to the data region of the struct.
     */
-   memcpy((void *) VARDATA(new_t),     /* destination */
+   memcpy((void *) VARDATA(new_t), /* destination */
           (void *) VARDATA(t), /* source */
-          VARSIZE(t) - VARHDRSZ);      /* how many bytes */
+          VARSIZE(t) - VARHDRSZ);  /* how many bytes */
    return new_t;
 }
 
index 2e09f8de6e76c7e34a889dd4c88fb66c41de30e7..091ca639cf12bd0d373b07828038999328d18999 100644 (file)
@@ -81,9 +81,9 @@ copytext(PG_FUNCTION_ARGS)
     * VARDATA is a pointer to the data region of the new struct.  The source
     * could be a short datum, so retrieve its data through VARDATA_ANY.
     */
-   memcpy((void *) VARDATA(new_t),     /* destination */
-          (void *) VARDATA_ANY(t),     /* source */
-          VARSIZE_ANY_EXHDR(t));       /* how many bytes */
+   memcpy((void *) VARDATA(new_t), /* destination */
+          (void *) VARDATA_ANY(t), /* source */
+          VARSIZE_ANY_EXHDR(t));   /* how many bytes */
    PG_RETURN_TEXT_P(new_t);
 }