Phase 2 pgindent run for v12.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 22 May 2019 17:04:48 +0000 (13:04 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 22 May 2019 17:04:48 +0000 (13:04 -0400)
Switch to 2.1 version of pg_bsd_indent.  This formats
multiline function declarations "correctly", that is with
additional lines of parameter declarations indented to match
where the first line's left parenthesis is.

Discussion: https://postgr.es/m/CAEepm=0P3FeTXRcU5B2W3jv3PgRVZ-kGUXLGfd42FFhUROO3ug@mail.gmail.com

712 files changed:
contrib/amcheck/verify_nbtree.c
contrib/auto_explain/auto_explain.c
contrib/bloom/bloom.h
contrib/btree_gist/btree_utils_num.h
contrib/btree_gist/btree_utils_var.h
contrib/dblink/dblink.c
contrib/file_fdw/file_fdw.c
contrib/intarray/_int_selfuncs.c
contrib/jsonb_plpython/jsonb_plpython.c
contrib/ltree/lquery_op.c
contrib/ltree/ltree.h
contrib/pageinspect/brinfuncs.c
contrib/pageinspect/rawpage.c
contrib/pg_stat_statements/pg_stat_statements.c
contrib/pg_trgm/trgm.h
contrib/pg_trgm/trgm_regexp.c
contrib/pg_visibility/pg_visibility.c
contrib/pgcrypto/imath.c
contrib/pgcrypto/mbuf.h
contrib/pgcrypto/pgp-decrypt.c
contrib/pgcrypto/pgp.h
contrib/pgcrypto/px-crypt.h
contrib/pgstattuple/pgstattuple.c
contrib/postgres_fdw/connection.c
contrib/postgres_fdw/deparse.c
contrib/postgres_fdw/postgres_fdw.c
contrib/postgres_fdw/postgres_fdw.h
contrib/sepgsql/sepgsql.h
contrib/tablefunc/tablefunc.c
contrib/test_decoding/test_decoding.c
contrib/tsm_system_rows/tsm_system_rows.c
contrib/tsm_system_time/tsm_system_time.c
contrib/xml2/xpath.c
src/backend/access/brin/brin.c
src/backend/access/brin/brin_inclusion.c
src/backend/access/brin/brin_minmax.c
src/backend/access/brin/brin_pageops.c
src/backend/access/brin/brin_revmap.c
src/backend/access/brin/brin_tuple.c
src/backend/access/common/printtup.c
src/backend/access/common/reloptions.c
src/backend/access/gin/ginbtree.c
src/backend/access/gin/gindatapage.c
src/backend/access/gin/ginentrypage.c
src/backend/access/gist/gist.c
src/backend/access/gist/gistbuild.c
src/backend/access/gist/gistbuildbuffers.c
src/backend/access/gist/gistproc.c
src/backend/access/gist/gistvacuum.c
src/backend/access/hash/hash.c
src/backend/access/hash/hashinsert.c
src/backend/access/hash/hashpage.c
src/backend/access/hash/hashsearch.c
src/backend/access/heap/heapam.c
src/backend/access/heap/heapam_handler.c
src/backend/access/heap/pruneheap.c
src/backend/access/heap/syncscan.c
src/backend/access/heap/tuptoaster.c
src/backend/access/heap/vacuumlazy.c
src/backend/access/index/indexam.c
src/backend/access/nbtree/nbtinsert.c
src/backend/access/nbtree/nbtpage.c
src/backend/access/nbtree/nbtree.c
src/backend/access/nbtree/nbtsearch.c
src/backend/access/nbtree/nbtsort.c
src/backend/access/nbtree/nbtsplitloc.c
src/backend/access/nbtree/nbtutils.c
src/backend/access/tablesample/bernoulli.c
src/backend/access/tablesample/system.c
src/backend/access/transam/clog.c
src/backend/access/transam/commit_ts.c
src/backend/access/transam/generic_xlog.c
src/backend/access/transam/multixact.c
src/backend/access/transam/slru.c
src/backend/access/transam/twophase.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/catalog/aclchk.c
src/backend/catalog/dependency.c
src/backend/catalog/heap.c
src/backend/catalog/index.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_operator.c
src/backend/catalog/pg_proc.c
src/backend/catalog/pg_shdepend.c
src/backend/catalog/toasting.c
src/backend/commands/analyze.c
src/backend/commands/async.c
src/backend/commands/cluster.c
src/backend/commands/copy.c
src/backend/commands/dbcommands.c
src/backend/commands/dropcmds.c
src/backend/commands/event_trigger.c
src/backend/commands/explain.c
src/backend/commands/extension.c
src/backend/commands/indexcmds.c
src/backend/commands/lockcmds.c
src/backend/commands/matview.c
src/backend/commands/opclasscmds.c
src/backend/commands/policy.c
src/backend/commands/prepare.c
src/backend/commands/proclang.c
src/backend/commands/publicationcmds.c
src/backend/commands/sequence.c
src/backend/commands/statscmds.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/vacuum.c
src/backend/executor/execCurrent.c
src/backend/executor/execExpr.c
src/backend/executor/execExprInterp.c
src/backend/executor/execIndexing.c
src/backend/executor/execMain.c
src/backend/executor/execParallel.c
src/backend/executor/execPartition.c
src/backend/executor/execSRF.c
src/backend/executor/execTuples.c
src/backend/executor/functions.c
src/backend/executor/instrument.c
src/backend/executor/nodeAgg.c
src/backend/executor/nodeBitmapHeapscan.c
src/backend/executor/nodeGatherMerge.c
src/backend/executor/nodeHash.c
src/backend/executor/nodeHashjoin.c
src/backend/executor/nodeIndexonlyscan.c
src/backend/executor/nodeIndexscan.c
src/backend/executor/nodeModifyTable.c
src/backend/executor/nodeSubplan.c
src/backend/executor/nodeWindowAgg.c
src/backend/executor/spi.c
src/backend/jit/llvm/llvmjit_expr.c
src/backend/lib/bloomfilter.c
src/backend/lib/dshash.c
src/backend/lib/integerset.c
src/backend/lib/pairingheap.c
src/backend/libpq/auth-scram.c
src/backend/libpq/auth.c
src/backend/libpq/be-gssapi-common.h
src/backend/libpq/be-secure-openssl.c
src/backend/libpq/hba.c
src/backend/libpq/ifaddr.c
src/backend/nodes/nodeFuncs.c
src/backend/nodes/tidbitmap.c
src/backend/optimizer/geqo/geqo_eval.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/joinrels.c
src/backend/optimizer/path/pathkeys.c
src/backend/optimizer/plan/analyzejoins.c
src/backend/optimizer/plan/createplan.c
src/backend/optimizer/plan/initsplan.c
src/backend/optimizer/plan/planagg.c
src/backend/optimizer/plan/planner.c
src/backend/optimizer/plan/setrefs.c
src/backend/optimizer/plan/subselect.c
src/backend/optimizer/prep/prepjointree.c
src/backend/optimizer/prep/preptlist.c
src/backend/optimizer/prep/prepunion.c
src/backend/optimizer/util/appendinfo.c
src/backend/optimizer/util/clauses.c
src/backend/optimizer/util/inherit.c
src/backend/optimizer/util/orclauses.c
src/backend/optimizer/util/pathnode.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_expr.c
src/backend/parser/parse_func.c
src/backend/parser/parse_oper.c
src/backend/parser/parse_param.c
src/backend/parser/parse_relation.c
src/backend/parser/parse_target.c
src/backend/parser/parse_type.c
src/backend/parser/parse_utilcmd.c
src/backend/partitioning/partbounds.c
src/backend/partitioning/partprune.c
src/backend/port/sysv_sema.c
src/backend/port/sysv_shmem.c
src/backend/postmaster/autovacuum.c
src/backend/postmaster/pgstat.c
src/backend/postmaster/postmaster.c
src/backend/postmaster/syslogger.c
src/backend/regex/regcomp.c
src/backend/regex/regprefix.c
src/backend/replication/basebackup.c
src/backend/replication/libpqwalreceiver/libpqwalreceiver.c
src/backend/replication/logical/decode.c
src/backend/replication/logical/logical.c
src/backend/replication/logical/proto.c
src/backend/replication/logical/reorderbuffer.c
src/backend/replication/pgoutput/pgoutput.c
src/backend/replication/syncrep.c
src/backend/rewrite/rewriteDefine.c
src/backend/rewrite/rewriteHandler.c
src/backend/rewrite/rewriteManip.c
src/backend/rewrite/rowsecurity.c
src/backend/statistics/dependencies.c
src/backend/statistics/extended_stats.c
src/backend/statistics/mcv.c
src/backend/statistics/mvdistinct.c
src/backend/storage/buffer/bufmgr.c
src/backend/storage/buffer/freelist.c
src/backend/storage/file/fd.c
src/backend/storage/file/reinit.c
src/backend/storage/freespace/freespace.c
src/backend/storage/ipc/dsm.c
src/backend/storage/ipc/dsm_impl.c
src/backend/storage/ipc/latch.c
src/backend/storage/ipc/procarray.c
src/backend/storage/ipc/shm_mq.c
src/backend/storage/ipc/standby.c
src/backend/storage/lmgr/deadlock.c
src/backend/storage/lmgr/lock.c
src/backend/storage/lmgr/predicate.c
src/backend/storage/smgr/md.c
src/backend/tcop/fastpath.c
src/backend/tcop/pquery.c
src/backend/tcop/utility.c
src/backend/tsearch/ts_selfuncs.c
src/backend/tsearch/ts_typanalyze.c
src/backend/utils/adt/acl.c
src/backend/utils/adt/array_expanded.c
src/backend/utils/adt/array_selfuncs.c
src/backend/utils/adt/array_typanalyze.c
src/backend/utils/adt/arrayfuncs.c
src/backend/utils/adt/ascii.c
src/backend/utils/adt/datetime.c
src/backend/utils/adt/expandedrecord.c
src/backend/utils/adt/formatting.c
src/backend/utils/adt/geo_ops.c
src/backend/utils/adt/inet_cidr_ntop.c
src/backend/utils/adt/json.c
src/backend/utils/adt/jsonb.c
src/backend/utils/adt/jsonb_gin.c
src/backend/utils/adt/jsonb_util.c
src/backend/utils/adt/jsonfuncs.c
src/backend/utils/adt/jsonpath.c
src/backend/utils/adt/jsonpath_exec.c
src/backend/utils/adt/like.c
src/backend/utils/adt/like_support.c
src/backend/utils/adt/network.c
src/backend/utils/adt/network_selfuncs.c
src/backend/utils/adt/network_spgist.c
src/backend/utils/adt/numeric.c
src/backend/utils/adt/oracle_compat.c
src/backend/utils/adt/rangetypes.c
src/backend/utils/adt/rangetypes_gist.c
src/backend/utils/adt/rangetypes_selfuncs.c
src/backend/utils/adt/rangetypes_spgist.c
src/backend/utils/adt/rangetypes_typanalyze.c
src/backend/utils/adt/regexp.c
src/backend/utils/adt/regproc.c
src/backend/utils/adt/ri_triggers.c
src/backend/utils/adt/ruleutils.c
src/backend/utils/adt/selfuncs.c
src/backend/utils/adt/varbit.c
src/backend/utils/adt/varlena.c
src/backend/utils/adt/windowfuncs.c
src/backend/utils/adt/xml.c
src/backend/utils/cache/catcache.c
src/backend/utils/cache/evtcache.c
src/backend/utils/cache/plancache.c
src/backend/utils/cache/relcache.c
src/backend/utils/cache/relmapper.c
src/backend/utils/cache/typcache.c
src/backend/utils/fmgr/dfmgr.c
src/backend/utils/fmgr/fmgr.c
src/backend/utils/fmgr/funcapi.c
src/backend/utils/mb/mbutils.c
src/backend/utils/misc/guc.c
src/backend/utils/misc/tzparser.c
src/backend/utils/mmgr/aset.c
src/backend/utils/mmgr/dsa.c
src/backend/utils/mmgr/freepage.c
src/backend/utils/mmgr/generation.c
src/backend/utils/mmgr/mcxt.c
src/backend/utils/mmgr/slab.c
src/backend/utils/resowner/resowner.c
src/backend/utils/sort/logtape.c
src/backend/utils/sort/sharedtuplestore.c
src/backend/utils/sort/tuplesort.c
src/backend/utils/sort/tuplestore.c
src/backend/utils/time/snapmgr.c
src/bin/initdb/findtimezone.c
src/bin/initdb/initdb.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_basebackup/walmethods.h
src/bin/pg_dump/common.c
src/bin/pg_dump/compress_io.c
src/bin/pg_dump/compress_io.h
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_db.h
src/bin/pg_dump/pg_backup_directory.c
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_dump/pg_dumpall.c
src/bin/pg_rewind/copy_fetch.c
src/bin/pg_rewind/filemap.c
src/bin/pg_rewind/filemap.h
src/bin/pg_rewind/parsexlog.c
src/bin/pg_rewind/pg_rewind.c
src/bin/pg_rewind/pg_rewind.h
src/bin/pg_upgrade/info.c
src/bin/pg_upgrade/option.c
src/bin/pg_upgrade/pg_upgrade.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.h
src/bin/psql/copy.h
src/bin/psql/crosstabview.c
src/bin/psql/describe.c
src/bin/psql/startup.c
src/bin/psql/stringutils.h
src/bin/psql/tab-complete.c
src/bin/psql/variables.h
src/bin/scripts/clusterdb.c
src/bin/scripts/common.h
src/bin/scripts/reindexdb.c
src/bin/scripts/vacuumdb.c
src/common/file_utils.c
src/common/ip.c
src/fe_utils/print.c
src/include/access/amvalidate.h
src/include/access/brin_internal.h
src/include/access/brin_pageops.h
src/include/access/brin_revmap.h
src/include/access/brin_tuple.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/gist_private.h
src/include/access/gistscan.h
src/include/access/hash.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/parallel.h
src/include/access/printsimple.h
src/include/access/printtup.h
src/include/access/relation.h
src/include/access/reloptions.h
src/include/access/rewriteheap.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/table.h
src/include/access/tableam.h
src/include/access/timeline.h
src/include/access/transam.h
src/include/access/tupconvert.h
src/include/access/tupdesc.h
src/include/access/tuptoaster.h
src/include/access/twophase.h
src/include/access/twophase_rmgr.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/xloginsert.h
src/include/access/xlogreader.h
src/include/access/xlogutils.h
src/include/bootstrap/bootstrap.h
src/include/c.h
src/include/catalog/catalog.h
src/include/catalog/dependency.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/partition.h
src/include/catalog/pg_aggregate.h
src/include/catalog/pg_collation.h
src/include/catalog/pg_constraint.h
src/include/catalog/pg_conversion.h
src/include/catalog/pg_db_role_setting.h
src/include/catalog/pg_enum.h
src/include/catalog/pg_inherits.h
src/include/catalog/pg_operator.h
src/include/catalog/pg_proc.h
src/include/catalog/pg_publication.h
src/include/catalog/pg_range.h
src/include/catalog/pg_subscription_rel.h
src/include/catalog/pg_type.h
src/include/catalog/storage.h
src/include/catalog/toasting.h
src/include/commands/alter.h
src/include/commands/async.h
src/include/commands/cluster.h
src/include/commands/copy.h
src/include/commands/createas.h
src/include/commands/defrem.h
src/include/commands/event_trigger.h
src/include/commands/explain.h
src/include/commands/extension.h
src/include/commands/matview.h
src/include/commands/policy.h
src/include/commands/portalcmds.h
src/include/commands/prepare.h
src/include/commands/schemacmds.h
src/include/commands/seclabel.h
src/include/commands/subscriptioncmds.h
src/include/commands/tablecmds.h
src/include/commands/trigger.h
src/include/commands/typecmds.h
src/include/commands/vacuum.h
src/include/commands/view.h
src/include/common/config_info.h
src/include/common/controldata_utils.h
src/include/common/ip.h
src/include/common/md5.h
src/include/common/pg_lzcompress.h
src/include/common/relpath.h
src/include/common/scram-common.h
src/include/common/sha2.h
src/include/common/string.h
src/include/executor/execExpr.h
src/include/executor/execParallel.h
src/include/executor/execPartition.h
src/include/executor/execdesc.h
src/include/executor/executor.h
src/include/executor/functions.h
src/include/executor/nodeBitmapHeapscan.h
src/include/executor/nodeCustom.h
src/include/executor/nodeForeignscan.h
src/include/executor/nodeGatherMerge.h
src/include/executor/nodeHash.h
src/include/executor/nodeHashjoin.h
src/include/executor/nodeIndexonlyscan.h
src/include/executor/nodeIndexscan.h
src/include/executor/nodeSeqscan.h
src/include/executor/spi.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/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/bloomfilter.h
src/include/lib/dshash.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/be-fsstubs.h
src/include/libpq/crypt.h
src/include/libpq/hba.h
src/include/libpq/ifaddr.h
src/include/libpq/libpq.h
src/include/libpq/pqformat.h
src/include/libpq/scram.h
src/include/mb/pg_wchar.h
src/include/miscadmin.h
src/include/nodes/extensible.h
src/include/nodes/makefuncs.h
src/include/nodes/nodeFuncs.h
src/include/nodes/nodes.h
src/include/nodes/print.h
src/include/nodes/tidbitmap.h
src/include/optimizer/appendinfo.h
src/include/optimizer/clauses.h
src/include/optimizer/cost.h
src/include/optimizer/geqo.h
src/include/optimizer/geqo_recombination.h
src/include/optimizer/geqo_selection.h
src/include/optimizer/inherit.h
src/include/optimizer/joininfo.h
src/include/optimizer/optimizer.h
src/include/optimizer/paramassign.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/restrictinfo.h
src/include/optimizer/subselect.h
src/include/optimizer/tlist.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_cte.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/parsetree.h
src/include/parser/scanner.h
src/include/parser/scansup.h
src/include/partitioning/partbounds.h
src/include/partitioning/partdesc.h
src/include/partitioning/partprune.h
src/include/pgstat.h
src/include/pgtar.h
src/include/pgtime.h
src/include/port.h
src/include/postmaster/autovacuum.h
src/include/postmaster/bgworker.h
src/include/regex/regex.h
src/include/regex/regexport.h
src/include/replication/decode.h
src/include/replication/logical.h
src/include/replication/logicalfuncs.h
src/include/replication/logicalproto.h
src/include/replication/logicalrelation.h
src/include/replication/message.h
src/include/replication/origin.h
src/include/replication/reorderbuffer.h
src/include/replication/slot.h
src/include/replication/snapbuild.h
src/include/replication/walreceiver.h
src/include/replication/worker_internal.h
src/include/rewrite/rewriteDefine.h
src/include/rewrite/rewriteHandler.h
src/include/rewrite/rewriteManip.h
src/include/rewrite/rowsecurity.h
src/include/statistics/extended_stats_internal.h
src/include/statistics/statistics.h
src/include/storage/buf_internals.h
src/include/storage/bufmgr.h
src/include/storage/bufpage.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/itemptr.h
src/include/storage/latch.h
src/include/storage/lmgr.h
src/include/storage/lock.h
src/include/storage/md.h
src/include/storage/pg_shmem.h
src/include/storage/predicate.h
src/include/storage/predicate_internals.h
src/include/storage/procarray.h
src/include/storage/procsignal.h
src/include/storage/reinit.h
src/include/storage/sharedfileset.h
src/include/storage/shm_mq.h
src/include/storage/shmem.h
src/include/storage/sinval.h
src/include/storage/smgr.h
src/include/storage/standby.h
src/include/storage/standbydefs.h
src/include/storage/sync.h
src/include/tcop/pquery.h
src/include/tcop/tcopprot.h
src/include/tcop/utility.h
src/include/tsearch/ts_locale.h
src/include/tsearch/ts_public.h
src/include/tsearch/ts_utils.h
src/include/utils/acl.h
src/include/utils/array.h
src/include/utils/builtins.h
src/include/utils/catcache.h
src/include/utils/datetime.h
src/include/utils/datum.h
src/include/utils/dsa.h
src/include/utils/elog.h
src/include/utils/expandeddatum.h
src/include/utils/expandedrecord.h
src/include/utils/float.h
src/include/utils/freepage.h
src/include/utils/guc.h
src/include/utils/guc_tables.h
src/include/utils/hashutils.h
src/include/utils/hsearch.h
src/include/utils/index_selfuncs.h
src/include/utils/inval.h
src/include/utils/jsonapi.h
src/include/utils/jsonb.h
src/include/utils/jsonpath.h
src/include/utils/logtape.h
src/include/utils/lsyscache.h
src/include/utils/memutils.h
src/include/utils/numeric.h
src/include/utils/palloc.h
src/include/utils/pg_locale.h
src/include/utils/plancache.h
src/include/utils/portal.h
src/include/utils/ps_status.h
src/include/utils/rangetypes.h
src/include/utils/regproc.h
src/include/utils/relcache.h
src/include/utils/relmapper.h
src/include/utils/resowner.h
src/include/utils/resowner_private.h
src/include/utils/ruleutils.h
src/include/utils/sampling.h
src/include/utils/selfuncs.h
src/include/utils/sharedtuplestore.h
src/include/utils/snapmgr.h
src/include/utils/sortsupport.h
src/include/utils/spccache.h
src/include/utils/syscache.h
src/include/utils/timestamp.h
src/include/utils/tuplesort.h
src/include/utils/tuplestore.h
src/include/utils/typcache.h
src/include/utils/varlena.h
src/include/utils/xml.h
src/include/windowapi.h
src/interfaces/ecpg/ecpglib/ecpglib_extern.h
src/interfaces/ecpg/ecpglib/prepare.c
src/interfaces/ecpg/pgtypeslib/dt.h
src/interfaces/ecpg/preproc/type.c
src/interfaces/ecpg/preproc/type.h
src/interfaces/libpq/fe-auth-scram.c
src/interfaces/libpq/fe-auth.h
src/interfaces/libpq/fe-connect.c
src/interfaces/libpq/fe-exec.c
src/interfaces/libpq/fe-gssapi-common.h
src/interfaces/libpq/fe-misc.c
src/interfaces/libpq/fe-print.c
src/interfaces/libpq/fe-protocol3.c
src/interfaces/libpq/fe-secure-common.h
src/interfaces/libpq/fe-secure-openssl.c
src/interfaces/libpq/libpq-events.h
src/interfaces/libpq/libpq-fe.h
src/interfaces/libpq/libpq-int.h
src/interfaces/libpq/pqexpbuffer.h
src/pl/plperl/plperl.c
src/pl/plpgsql/src/pl_comp.c
src/pl/plpgsql/src/pl_exec.c
src/pl/plpgsql/src/plpgsql.h
src/pl/plpython/plpy_elog.c
src/pl/plpython/plpy_elog.h
src/pl/plpython/plpy_exec.c
src/pl/plpython/plpy_plpymodule.c
src/pl/plpython/plpy_spi.c
src/pl/plpython/plpy_typeio.c
src/pl/plpython/plpy_typeio.h
src/pl/tcl/pltcl.c
src/port/inet_net_ntop.c
src/port/path.c
src/port/qsort.c
src/port/qsort_arg.c
src/port/snprintf.c
src/test/isolation/isolationtester.c
src/test/modules/test_shm_mq/setup.c
src/test/modules/test_shm_mq/test.c
src/test/modules/test_shm_mq/test_shm_mq.h
src/test/modules/test_shm_mq/worker.c
src/test/regress/pg_regress.h
src/timezone/localtime.c
src/timezone/pgtz.c
src/timezone/pgtz.h
src/timezone/strftime.c
src/timezone/zic.c
src/tools/pgindent/pgindent
src/tutorial/funcs.c

index c935abc7e09619601ab8d835324c9ae7cba81912..de0a98f6d952752031abb20a45cb0cbcce375813 100644 (file)
@@ -126,45 +126,45 @@ PG_FUNCTION_INFO_V1(bt_index_check);
 PG_FUNCTION_INFO_V1(bt_index_parent_check);
 
 static void bt_index_check_internal(Oid indrelid, bool parentcheck,
-                                               bool heapallindexed, bool rootdescend);
+                                                                       bool heapallindexed, bool rootdescend);
 static inline void btree_index_checkable(Relation rel);
 static void bt_check_every_level(Relation rel, Relation heaprel,
-                                        bool heapkeyspace, bool readonly, bool heapallindexed,
-                                        bool rootdescend);
+                                                                bool heapkeyspace, bool readonly, bool heapallindexed,
+                                                                bool rootdescend);
 static BtreeLevel bt_check_level_from_leftmost(BtreeCheckState *state,
-                                                        BtreeLevel level);
+                                                                                          BtreeLevel level);
 static void bt_target_page_check(BtreeCheckState *state);
 static BTScanInsert bt_right_page_check_scankey(BtreeCheckState *state);
 static void bt_downlink_check(BtreeCheckState *state, BTScanInsert targetkey,
-                                 BlockNumber childblock);
+                                                         BlockNumber childblock);
 static void bt_downlink_missing_check(BtreeCheckState *state);
 static void bt_tuple_present_callback(Relation index, HeapTuple htup,
-                                                 Datum *values, bool *isnull,
-                                                 bool tupleIsAlive, void *checkstate);
+                                                                         Datum *values, bool *isnull,
+                                                                         bool tupleIsAlive, void *checkstate);
 static IndexTuple bt_normalize_tuple(BtreeCheckState *state,
-                                  IndexTuple itup);
+                                                                        IndexTuple itup);
 static bool bt_rootdescend(BtreeCheckState *state, IndexTuple itup);
 static inline bool offset_is_negative_infinity(BTPageOpaque opaque,
-                                                       OffsetNumber offset);
+                                                                                          OffsetNumber offset);
 static inline bool invariant_l_offset(BtreeCheckState *state, BTScanInsert key,
-                                  OffsetNumber upperbound);
+                                                                         OffsetNumber upperbound);
 static inline bool invariant_leq_offset(BtreeCheckState *state,
-                                        BTScanInsert key,
-                                        OffsetNumber upperbound);
+                                                                               BTScanInsert key,
+                                                                               OffsetNumber upperbound);
 static inline bool invariant_g_offset(BtreeCheckState *state, BTScanInsert key,
-                                  OffsetNumber lowerbound);
+                                                                         OffsetNumber lowerbound);
 static inline bool invariant_l_nontarget_offset(BtreeCheckState *state,
-                                                        BTScanInsert key,
-                                                        BlockNumber nontargetblock,
-                                                        Page nontarget,
-                                                        OffsetNumber upperbound);
+                                                                                               BTScanInsert key,
+                                                                                               BlockNumber nontargetblock,
+                                                                                               Page nontarget,
+                                                                                               OffsetNumber upperbound);
 static Page palloc_btree_page(BtreeCheckState *state, BlockNumber blocknum);
 static inline BTScanInsert bt_mkscankey_pivotsearch(Relation rel,
-                                                IndexTuple itup);
+                                                                                                       IndexTuple itup);
 static ItemId PageGetItemIdCareful(BtreeCheckState *state, BlockNumber block,
-                                        Page page, OffsetNumber offset);
+                                                                  Page page, OffsetNumber offset);
 static inline ItemPointer BTreeTupleGetHeapTIDCareful(BtreeCheckState *state,
-                                                       IndexTuple itup, bool nonpivot);
+                                                                                                         IndexTuple itup, bool nonpivot);
 
 /*
  * bt_index_check(index regclass, heapallindexed boolean)
index edc50f9368f2474688ed3ba2aba9f608c0aa747a..c810a41a7991757b43ea5de092e4bf4d31ddad36 100644 (file)
@@ -77,8 +77,8 @@ void          _PG_fini(void);
 
 static void explain_ExecutorStart(QueryDesc *queryDesc, int eflags);
 static void explain_ExecutorRun(QueryDesc *queryDesc,
-                                       ScanDirection direction,
-                                       uint64 count, bool execute_once);
+                                                               ScanDirection direction,
+                                                               uint64 count, bool execute_once);
 static void explain_ExecutorFinish(QueryDesc *queryDesc);
 static void explain_ExecutorEnd(QueryDesc *queryDesc);
 
index 7c18eaa50866193f4b882e27169d3f1e7ecca459..010148eb032bab798c76c5055f1c87170003014b 100644 (file)
@@ -189,26 +189,26 @@ extern bool blvalidate(Oid opclassoid);
 
 /* index access method interface functions */
 extern bool blinsert(Relation index, Datum *values, bool *isnull,
-                ItemPointer ht_ctid, Relation heapRel,
-                IndexUniqueCheck checkUnique,
-                struct IndexInfo *indexInfo);
+                                        ItemPointer ht_ctid, Relation heapRel,
+                                        IndexUniqueCheck checkUnique,
+                                        struct IndexInfo *indexInfo);
 extern IndexScanDesc blbeginscan(Relation r, int nkeys, int norderbys);
 extern int64 blgetbitmap(IndexScanDesc scan, TIDBitmap *tbm);
 extern void blrescan(IndexScanDesc scan, ScanKey scankey, int nscankeys,
-                ScanKey orderbys, int norderbys);
+                                        ScanKey orderbys, int norderbys);
 extern void blendscan(IndexScanDesc scan);
 extern IndexBuildResult *blbuild(Relation heap, Relation index,
-               struct IndexInfo *indexInfo);
+                                                                struct IndexInfo *indexInfo);
 extern void blbuildempty(Relation index);
 extern IndexBulkDeleteResult *blbulkdelete(IndexVacuumInfo *info,
-                        IndexBulkDeleteResult *stats, IndexBulkDeleteCallback callback,
-                        void *callback_state);
+                                                                                  IndexBulkDeleteResult *stats, IndexBulkDeleteCallback callback,
+                                                                                  void *callback_state);
 extern IndexBulkDeleteResult *blvacuumcleanup(IndexVacuumInfo *info,
-                               IndexBulkDeleteResult *stats);
+                                                                                         IndexBulkDeleteResult *stats);
 extern bytea *bloptions(Datum reloptions, bool validate);
 extern void blcostestimate(PlannerInfo *root, IndexPath *path,
-                          double loop_count, Cost *indexStartupCost,
-                          Cost *indexTotalCost, Selectivity *indexSelectivity,
-                          double *indexCorrelation, double *indexPages);
+                                                  double loop_count, Cost *indexStartupCost,
+                                                  Cost *indexTotalCost, Selectivity *indexSelectivity,
+                                                  double *indexCorrelation, double *indexPages);
 
 #endif
index d7945f856c89bfc168fd94ccfeaa145b8b077392..50907b3b5c67a9b0826a6248c5e7fffb9af7c88d 100644 (file)
@@ -110,26 +110,26 @@ do {                                                                                                                      \
 extern Interval *abs_interval(Interval *a);
 
 extern bool gbt_num_consistent(const GBT_NUMKEY_R *key, const void *query,
-                                  const StrategyNumber *strategy, bool is_leaf,
-                                  const gbtree_ninfo *tinfo, FmgrInfo *flinfo);
+                                                          const StrategyNumber *strategy, bool is_leaf,
+                                                          const gbtree_ninfo *tinfo, FmgrInfo *flinfo);
 
 extern float8 gbt_num_distance(const GBT_NUMKEY_R *key, const void *query,
-                                bool is_leaf, const gbtree_ninfo *tinfo, FmgrInfo *flinfo);
+                                                          bool is_leaf, const gbtree_ninfo *tinfo, FmgrInfo *flinfo);
 
 extern GIST_SPLITVEC *gbt_num_picksplit(const GistEntryVector *entryvec, GIST_SPLITVEC *v,
-                                 const gbtree_ninfo *tinfo, FmgrInfo *flinfo);
+                                                                               const gbtree_ninfo *tinfo, FmgrInfo *flinfo);
 
 extern GISTENTRY *gbt_num_compress(GISTENTRY *entry, const gbtree_ninfo *tinfo);
 
 extern GISTENTRY *gbt_num_fetch(GISTENTRY *entry, const gbtree_ninfo *tinfo);
 
 extern void *gbt_num_union(GBT_NUMKEY *out, const GistEntryVector *entryvec,
-                         const gbtree_ninfo *tinfo, FmgrInfo *flinfo);
+                                                  const gbtree_ninfo *tinfo, FmgrInfo *flinfo);
 
 extern bool gbt_num_same(const GBT_NUMKEY *a, const GBT_NUMKEY *b,
-                        const gbtree_ninfo *tinfo, FmgrInfo *flinfo);
+                                                const gbtree_ninfo *tinfo, FmgrInfo *flinfo);
 
 extern void gbt_num_bin_union(Datum *u, GBT_NUMKEY *e,
-                                 const gbtree_ninfo *tinfo, FmgrInfo *flinfo);
+                                                         const gbtree_ninfo *tinfo, FmgrInfo *flinfo);
 
 #endif
index 15d847c139456f7ff32d8dc066dccfde9fdc1127..1f2ca43e6bc0f992d769a7bb11291e0b3f8bc5ff 100644 (file)
@@ -52,22 +52,22 @@ extern GBT_VARKEY *gbt_var_key_copy(const GBT_VARKEY_R *u);
 extern GISTENTRY *gbt_var_compress(GISTENTRY *entry, const gbtree_vinfo *tinfo);
 
 extern GBT_VARKEY *gbt_var_union(const GistEntryVector *entryvec, int32 *size,
-                         Oid collation, const gbtree_vinfo *tinfo, FmgrInfo *flinfo);
+                                                                Oid collation, const gbtree_vinfo *tinfo, FmgrInfo *flinfo);
 
 extern bool gbt_var_same(Datum d1, Datum d2, Oid collation,
-                        const gbtree_vinfo *tinfo, FmgrInfo *flinfo);
+                                                const gbtree_vinfo *tinfo, FmgrInfo *flinfo);
 
 extern float *gbt_var_penalty(float *res, const GISTENTRY *o, const GISTENTRY *n,
-                               Oid collation, const gbtree_vinfo *tinfo, FmgrInfo *flinfo);
+                                                         Oid collation, const gbtree_vinfo *tinfo, FmgrInfo *flinfo);
 
 extern bool gbt_var_consistent(GBT_VARKEY_R *key, const void *query,
-                                  StrategyNumber strategy, Oid collation, bool is_leaf,
-                                  const gbtree_vinfo *tinfo, FmgrInfo *flinfo);
+                                                          StrategyNumber strategy, Oid collation, bool is_leaf,
+                                                          const gbtree_vinfo *tinfo, FmgrInfo *flinfo);
 
 extern GIST_SPLITVEC *gbt_var_picksplit(const GistEntryVector *entryvec, GIST_SPLITVEC *v,
-                                 Oid collation, const gbtree_vinfo *tinfo, FmgrInfo *flinfo);
+                                                                               Oid collation, const gbtree_vinfo *tinfo, FmgrInfo *flinfo);
 
 extern void gbt_var_bin_union(Datum *u, GBT_VARKEY *e, Oid collation,
-                                 const gbtree_vinfo *tinfo, FmgrInfo *flinfo);
+                                                         const gbtree_vinfo *tinfo, FmgrInfo *flinfo);
 
 #endif
index d35e5ba3d88c8df2942a23e79d49a24ba9f7db50..e432457e2d534e6124f4dd7d7920b5e4855463b3 100644 (file)
@@ -89,12 +89,12 @@ typedef struct storeInfo
 static Datum dblink_record_internal(FunctionCallInfo fcinfo, bool is_async);
 static void prepTuplestoreResult(FunctionCallInfo fcinfo);
 static void materializeResult(FunctionCallInfo fcinfo, PGconn *conn,
-                                 PGresult *res);
+                                                         PGresult *res);
 static void materializeQueryResult(FunctionCallInfo fcinfo,
-                                          PGconn *conn,
-                                          const char *conname,
-                                          const char *sql,
-                                          bool fail);
+                                                                  PGconn *conn,
+                                                                  const char *conname,
+                                                                  const char *sql,
+                                                                  bool fail);
 static PGresult *storeQueryResult(volatile storeInfo *sinfo, PGconn *conn, const char *sql);
 static void storeRow(volatile storeInfo *sinfo, PGresult *res, bool first);
 static remoteConn *getConnectionByName(const char *name);
@@ -114,14 +114,14 @@ static char *generate_relation_name(Relation rel);
 static void dblink_connstr_check(const char *connstr);
 static void dblink_security_check(PGconn *conn, remoteConn *rconn);
 static void dblink_res_error(PGconn *conn, const char *conname, PGresult *res,
-                                bool fail, const char *fmt,...) pg_attribute_printf(5, 6);
+                                                        bool fail, const char *fmt,...) pg_attribute_printf(5, 6);
 static char *get_connect_string(const char *servername);
 static char *escape_param_str(const char *from);
 static void validate_pkattnums(Relation rel,
-                                  int2vector *pkattnums_arg, int32 pknumatts_arg,
-                                  int **pkattnums, int *pknumatts);
+                                                          int2vector *pkattnums_arg, int32 pknumatts_arg,
+                                                          int **pkattnums, int *pknumatts);
 static bool is_valid_dblink_option(const PQconninfoOption *options,
-                                          const char *option, Oid context);
+                                                                  const char *option, Oid context);
 static int     applyRemoteGucs(PGconn *conn);
 static void restoreLocalGucs(int nestlevel);
 
index 99baa496bd1e13e6fc8e3fc491208c7f945eb8da..412dcabe55e270fde8e96914ef3fa5e4d6ffd2bd 100644 (file)
@@ -117,49 +117,49 @@ PG_FUNCTION_INFO_V1(file_fdw_validator);
  * FDW callback routines
  */
 static void fileGetForeignRelSize(PlannerInfo *root,
-                                         RelOptInfo *baserel,
-                                         Oid foreigntableid);
+                                                                 RelOptInfo *baserel,
+                                                                 Oid foreigntableid);
 static void fileGetForeignPaths(PlannerInfo *root,
-                                       RelOptInfo *baserel,
-                                       Oid foreigntableid);
+                                                               RelOptInfo *baserel,
+                                                               Oid foreigntableid);
 static ForeignScan *fileGetForeignPlan(PlannerInfo *root,
-                                  RelOptInfo *baserel,
-                                  Oid foreigntableid,
-                                  ForeignPath *best_path,
-                                  List *tlist,
-                                  List *scan_clauses,
-                                  Plan *outer_plan);
+                                                                          RelOptInfo *baserel,
+                                                                          Oid foreigntableid,
+                                                                          ForeignPath *best_path,
+                                                                          List *tlist,
+                                                                          List *scan_clauses,
+                                                                          Plan *outer_plan);
 static void fileExplainForeignScan(ForeignScanState *node, ExplainState *es);
 static void fileBeginForeignScan(ForeignScanState *node, int eflags);
 static TupleTableSlot *fileIterateForeignScan(ForeignScanState *node);
 static void fileReScanForeignScan(ForeignScanState *node);
 static void fileEndForeignScan(ForeignScanState *node);
 static bool fileAnalyzeForeignTable(Relation relation,
-                                               AcquireSampleRowsFunc *func,
-                                               BlockNumber *totalpages);
+                                                                       AcquireSampleRowsFunc *func,
+                                                                       BlockNumber *totalpages);
 static bool fileIsForeignScanParallelSafe(PlannerInfo *root, RelOptInfo *rel,
-                                                         RangeTblEntry *rte);
+                                                                                 RangeTblEntry *rte);
 
 /*
  * Helper functions
  */
 static bool is_valid_option(const char *option, Oid context);
 static void fileGetOptions(Oid foreigntableid,
-                          char **filename,
-                          bool *is_program,
-                          List **other_options);
+                                                  char **filename,
+                                                  bool *is_program,
+                                                  List **other_options);
 static List *get_file_fdw_attribute_options(Oid relid);
 static bool check_selective_binary_conversion(RelOptInfo *baserel,
-                                                                 Oid foreigntableid,
-                                                                 List **columns);
+                                                                                         Oid foreigntableid,
+                                                                                         List **columns);
 static void estimate_size(PlannerInfo *root, RelOptInfo *baserel,
-                         FileFdwPlanState *fdw_private);
+                                                 FileFdwPlanState *fdw_private);
 static void estimate_costs(PlannerInfo *root, RelOptInfo *baserel,
-                          FileFdwPlanState *fdw_private,
-                          Cost *startup_cost, Cost *total_cost);
-static int file_acquire_sample_rows(Relation onerel, int elevel,
-                                                HeapTuple *rows, int targrows,
-                                                double *totalrows, double *totaldeadrows);
+                                                  FileFdwPlanState *fdw_private,
+                                                  Cost *startup_cost, Cost *total_cost);
+static int     file_acquire_sample_rows(Relation onerel, int elevel,
+                                                                        HeapTuple *rows, int targrows,
+                                                                        double *totalrows, double *totaldeadrows);
 
 
 /*
index 6ebe0ab9a89ea28b020ad315debf609837f082ce..b3e63df72c656bbfb4a420965a8765270ddb4ed3 100644 (file)
@@ -35,7 +35,7 @@ PG_FUNCTION_INFO_V1(_int_matchsel);
 
 
 static Selectivity int_query_opr_selec(ITEM *item, Datum *values, float4 *freqs,
-                                       int nmncelems, float4 minfreq);
+                                                                          int nmncelems, float4 minfreq);
 static int     compare_val_int4(const void *a, const void *b);
 
 /*
index 24e7c6559d63fb9b77141c427625df835f261330..ea8fd5b3e68d3a9dcbda92352b6ef2525ca62fe0 100644 (file)
@@ -26,7 +26,7 @@ static PyObject *decimal_constructor;
 
 static PyObject *PLyObject_FromJsonbContainer(JsonbContainer *jsonb);
 static JsonbValue *PLyObject_ToJsonbValue(PyObject *obj,
-                                          JsonbParseState **jsonb_state, bool is_elem);
+                                                                                 JsonbParseState **jsonb_state, bool is_elem);
 
 #if PY_MAJOR_VERSION >= 3
 typedef PyObject *(*PLyUnicode_FromStringAndSize_t)
index b6d2deb1af4b9d67cb8f97042502ac31e1b11570..62172d5ea148f8647cb8ff8030a1f3458dc57264 100644 (file)
@@ -50,7 +50,7 @@ getlexeme(char *start, char *end, int *len)
 }
 
 bool
-                       compare_subnode(ltree_level *t, char *qn, int len, int (*cmpptr) (const char *, const char *, size_t), bool anyend)
+compare_subnode(ltree_level *t, char *qn, int len, int (*cmpptr) (const char *, const char *, size_t), bool anyend)
 {
        char       *endt = t->name + t->len;
        char       *endq = qn + len;
index e4b8c84fa621e78615b11cde10c9e833c30efeca..366e58004c7243db557a266e80dede26d681e9dd 100644 (file)
@@ -155,13 +155,13 @@ Datum             ltree_textadd(PG_FUNCTION_ARGS);
 /* Util function */
 Datum          ltree_in(PG_FUNCTION_ARGS);
 
-bool ltree_execute(ITEM *curitem, void *checkval,
-                         bool calcnot, bool (*chkcond) (void *checkval, ITEM *val));
+bool           ltree_execute(ITEM *curitem, void *checkval,
+                                                 bool calcnot, bool (*chkcond) (void *checkval, ITEM *val));
 
 int                    ltree_compare(const ltree *a, const ltree *b);
 bool           inner_isparent(const ltree *c, const ltree *p);
-bool compare_subnode(ltree_level *t, char *q, int len,
-                               int (*cmpptr) (const char *, const char *, size_t), bool anyend);
+bool           compare_subnode(ltree_level *t, char *q, int len,
+                                                       int (*cmpptr) (const char *, const char *, size_t), bool anyend);
 ltree     *lca_inner(ltree **a, int len);
 int                    ltree_strncasecmp(const char *a, const char *b, size_t s);
 
index f93690f3a82c13fe8c9940c2ff71a3ea345ebb8b..04140eccb84087db4839f69b37806845253bc8d8 100644 (file)
@@ -41,7 +41,7 @@ typedef struct brin_column_state
 
 
 static Page verify_brin_page(bytea *raw_page, uint16 type,
-                                const char *strtype);
+                                                        const char *strtype);
 
 Datum
 brin_page_type(PG_FUNCTION_ARGS)
index 03d6670d1fa6bf3bdb5d2526d786da4652443833..f08f62f72da43dc063181e0e683ffdfa073398be 100644 (file)
@@ -33,7 +33,7 @@
 PG_MODULE_MAGIC;
 
 static bytea *get_raw_page_internal(text *relname, ForkNumber forknum,
-                                         BlockNumber blkno);
+                                                                       BlockNumber blkno);
 
 
 /*
index 64df24039692359ae023b4d4f441de75de15f871..26610b34b61ae4e093518aa976090e1c9c1acee1 100644 (file)
@@ -300,45 +300,45 @@ static void pgss_shmem_shutdown(int code, Datum arg);
 static void pgss_post_parse_analyze(ParseState *pstate, Query *query);
 static void pgss_ExecutorStart(QueryDesc *queryDesc, int eflags);
 static void pgss_ExecutorRun(QueryDesc *queryDesc,
-                                ScanDirection direction,
-                                uint64 count, bool execute_once);
+                                                        ScanDirection direction,
+                                                        uint64 count, bool execute_once);
 static void pgss_ExecutorFinish(QueryDesc *queryDesc);
 static void pgss_ExecutorEnd(QueryDesc *queryDesc);
 static void pgss_ProcessUtility(PlannedStmt *pstmt, const char *queryString,
-                                       ProcessUtilityContext context, ParamListInfo params,
-                                       QueryEnvironment *queryEnv,
-                                       DestReceiver *dest, char *completionTag);
+                                                               ProcessUtilityContext context, ParamListInfo params,
+                                                               QueryEnvironment *queryEnv,
+                                                               DestReceiver *dest, char *completionTag);
 static uint64 pgss_hash_string(const char *str, int len);
 static void pgss_store(const char *query, uint64 queryId,
-                  int query_location, int query_len,
-                  double total_time, uint64 rows,
-                  const BufferUsage *bufusage,
-                  pgssJumbleState *jstate);
+                                          int query_location, int query_len,
+                                          double total_time, uint64 rows,
+                                          const BufferUsage *bufusage,
+                                          pgssJumbleState *jstate);
 static void pg_stat_statements_internal(FunctionCallInfo fcinfo,
-                                                       pgssVersion api_version,
-                                                       bool showtext);
+                                                                               pgssVersion api_version,
+                                                                               bool showtext);
 static Size pgss_memsize(void);
 static pgssEntry *entry_alloc(pgssHashKey *key, Size query_offset, int query_len,
-                       int encoding, bool sticky);
+                                                         int encoding, bool sticky);
 static void entry_dealloc(void);
 static bool qtext_store(const char *query, int query_len,
-                       Size *query_offset, int *gc_count);
+                                               Size *query_offset, int *gc_count);
 static char *qtext_load_file(Size *buffer_size);
 static char *qtext_fetch(Size query_offset, int query_len,
-                       char *buffer, Size buffer_size);
+                                                char *buffer, Size buffer_size);
 static bool need_gc_qtexts(void);
 static void gc_qtexts(void);
 static void entry_reset(Oid userid, Oid dbid, uint64 queryid);
 static void AppendJumble(pgssJumbleState *jstate,
-                        const unsigned char *item, Size size);
+                                                const unsigned char *item, Size size);
 static void JumbleQuery(pgssJumbleState *jstate, Query *query);
 static void JumbleRangeTable(pgssJumbleState *jstate, List *rtable);
 static void JumbleExpr(pgssJumbleState *jstate, Node *node);
 static void RecordConstLocation(pgssJumbleState *jstate, int location);
 static char *generate_normalized_query(pgssJumbleState *jstate, const char *query,
-                                                 int query_loc, int *query_len_p, int encoding);
+                                                                          int query_loc, int *query_len_p, int encoding);
 static void fill_in_constant_lengths(pgssJumbleState *jstate, const char *query,
-                                                int query_loc);
+                                                                        int query_loc);
 static int     comp_location(const void *a, const void *b);
 
 
index f0ab50dd05ca485831d0f88b19e680e2b2906b9a..0fd600d58104f1708a2709164be3ebd8a3788a58 100644 (file)
@@ -134,7 +134,7 @@ extern float4 cnt_sml(TRGM *trg1, TRGM *trg2, bool inexact);
 extern bool trgm_contained_by(TRGM *trg1, TRGM *trg2);
 extern bool *trgm_presence_map(TRGM *query, TRGM *key);
 extern TRGM *createTrgmNFA(text *text_re, Oid collation,
-                         TrgmPackedGraph **graph, MemoryContext rcontext);
+                                                  TrgmPackedGraph **graph, MemoryContext rcontext);
 extern bool trigramsMatchGraph(TrgmPackedGraph *graph, bool *check);
 
 #endif                                                 /* __TRGM_H__ */
index 50e413506c088e9cffba099e3bba4043169f39cf..d6420a5f87a7997c5382b05ff73ddfc6e69411c6 100644 (file)
@@ -478,9 +478,9 @@ typedef struct
 
 /* prototypes for private functions */
 static TRGM *createTrgmNFAInternal(regex_t *regex, TrgmPackedGraph **graph,
-                                         MemoryContext rcontext);
+                                                                  MemoryContext rcontext);
 static void RE_compile(regex_t *regex, text *text_re,
-                  int cflags, Oid collation);
+                                          int cflags, Oid collation);
 static void getColorInfo(regex_t *regex, TrgmNFA *trgmNFA);
 static bool convertPgWchar(pg_wchar c, trgm_mb_char *result);
 static void transformGraph(TrgmNFA *trgmNFA);
@@ -489,7 +489,7 @@ static void addKey(TrgmNFA *trgmNFA, TrgmState *state, TrgmStateKey *key);
 static void addKeyToQueue(TrgmNFA *trgmNFA, TrgmStateKey *key);
 static void addArcs(TrgmNFA *trgmNFA, TrgmState *state);
 static void addArc(TrgmNFA *trgmNFA, TrgmState *state, TrgmStateKey *key,
-          TrgmColor co, TrgmStateKey *destKey);
+                                  TrgmColor co, TrgmStateKey *destKey);
 static bool validArcLabel(TrgmStateKey *key, TrgmColor co);
 static TrgmState *getState(TrgmNFA *trgmNFA, TrgmStateKey *key);
 static bool prefixContains(TrgmPrefix *prefix1, TrgmPrefix *prefix2);
index 3282742b807b1014890398e6b3bf186f3beaf9f0..1372bb638fd0c21efa986f42d94864ea7c62cc75 100644 (file)
@@ -51,10 +51,10 @@ PG_FUNCTION_INFO_V1(pg_truncate_visibility_map);
 static TupleDesc pg_visibility_tupdesc(bool include_blkno, bool include_pd);
 static vbits *collect_visibility_data(Oid relid, bool include_pd);
 static corrupt_items *collect_corrupt_items(Oid relid, bool all_visible,
-                                         bool all_frozen);
+                                                                                       bool all_frozen);
 static void record_corrupt_item(corrupt_items *items, ItemPointer tid);
 static bool tuple_all_visible(HeapTuple tup, TransactionId OldestXmin,
-                                 Buffer buffer);
+                                                         Buffer buffer);
 static void check_relation_relkind(Relation rel);
 
 /*
index 62e68b00e7c3f826390419dd332bf621d9517b36..6936d2cdcaf04e004f0c8bcfe9bdf41db99a6a10 100644 (file)
@@ -335,19 +335,19 @@ static int        s_uvcmp(mp_int a, mp_usmall uv);
 /* Unsigned magnitude addition; assumes dc is big enough.
    Carry out is returned (no memory allocated). */
 static mp_digit s_uadd(mp_digit *da, mp_digit *db, mp_digit *dc, mp_size size_a,
-          mp_size size_b);
+                                          mp_size size_b);
 
 /* Unsigned magnitude subtraction.  Assumes dc is big enough. */
 static void s_usub(mp_digit *da, mp_digit *db, mp_digit *dc, mp_size size_a,
-          mp_size size_b);
+                                  mp_size size_b);
 
 /* Unsigned recursive multiplication.  Assumes dc is big enough. */
-static int s_kmul(mp_digit *da, mp_digit *db, mp_digit *dc, mp_size size_a,
-          mp_size size_b);
+static int     s_kmul(mp_digit *da, mp_digit *db, mp_digit *dc, mp_size size_a,
+                                  mp_size size_b);
 
 /* Unsigned magnitude multiplication.  Assumes dc is big enough. */
 static void s_umul(mp_digit *da, mp_digit *db, mp_digit *dc, mp_size size_a,
-          mp_size size_b);
+                                  mp_size size_b);
 
 /* Unsigned recursive squaring.  Assumes dc is big enough. */
 static int     s_ksqr(mp_digit *da, mp_digit *dc, mp_size size_a);
index 50a989f059d9ad46792a509af9c7fd05016da5e0..e6d754e8695ce85fc6b9826585db17e8eee99c68 100644 (file)
@@ -90,8 +90,8 @@ int                   mbuf_free(MBuf *mbuf);
 /*
  * Push filter
  */
-int pushf_create(PushFilter **res, const PushFilterOps *ops, void *init_arg,
-                        PushFilter *next);
+int                    pushf_create(PushFilter **res, const PushFilterOps *ops, void *init_arg,
+                                                PushFilter *next);
 int                    pushf_write(PushFilter *mp, const uint8 *data, int len);
 void           pushf_free_all(PushFilter *mp);
 void           pushf_free(PushFilter *mp);
@@ -102,11 +102,11 @@ int                       pushf_create_mbuf_writer(PushFilter **mp_p, MBuf *mbuf);
 /*
  * Pull filter
  */
-int pullf_create(PullFilter **res, const PullFilterOps *ops,
-                        void *init_arg, PullFilter *src);
+int                    pullf_create(PullFilter **res, const PullFilterOps *ops,
+                                                void *init_arg, PullFilter *src);
 int                    pullf_read(PullFilter *mp, int len, uint8 **data_p);
-int pullf_read_max(PullFilter *mp, int len,
-                          uint8 **data_p, uint8 *tmpbuf);
+int                    pullf_read_max(PullFilter *mp, int len,
+                                                  uint8 **data_p, uint8 *tmpbuf);
 void           pullf_free(PullFilter *mp);
 int                    pullf_read_fixed(PullFilter *src, int len, uint8 *dst);
 
index 96c344c30b786e5db17ab5f599094f55934078c8..7d8951cda4161c797184eda05e17d34adbd122e7 100644 (file)
@@ -811,8 +811,8 @@ parse_literal_data(PGP_Context *ctx, MBuf *dst, PullFilter *pkt)
 }
 
 /* process_data_packets and parse_compressed_data call each other */
-static int process_data_packets(PGP_Context *ctx, MBuf *dst,
-                                        PullFilter *src, int allow_compr, int need_mdc);
+static int     process_data_packets(PGP_Context *ctx, MBuf *dst,
+                                                                PullFilter *src, int allow_compr, int need_mdc);
 
 static int
 parse_compressed_data(PGP_Context *ctx, MBuf *dst, PullFilter *pkt)
index 1b6ea4c9eaf8d34e596b883fd2e08dd44a17ae39..7c97fa398fa72d36f7b82d161ae08c56e43111cd 100644 (file)
@@ -261,8 +261,8 @@ int                 pgp_set_unicode_mode(PGP_Context *ctx, int mode);
 int                    pgp_get_unicode_mode(PGP_Context *ctx);
 
 int                    pgp_set_symkey(PGP_Context *ctx, const uint8 *key, int klen);
-int pgp_set_pubkey(PGP_Context *ctx, MBuf *keypkt,
-                          const uint8 *key, int klen, int pubtype);
+int                    pgp_set_pubkey(PGP_Context *ctx, MBuf *keypkt,
+                                                  const uint8 *key, int klen, int pubtype);
 
 int                    pgp_get_keyid(MBuf *pgp_data, char *dst);
 
@@ -278,17 +278,17 @@ int                       pgp_s2k_read(PullFilter *src, PGP_S2K *s2k);
 int                    pgp_s2k_process(PGP_S2K *s2k, int cipher, const uint8 *key, int klen);
 
 typedef struct PGP_CFB PGP_CFB;
-int pgp_cfb_create(PGP_CFB **ctx_p, int algo,
-                          const uint8 *key, int key_len, int recync, uint8 *iv);
+int                    pgp_cfb_create(PGP_CFB **ctx_p, int algo,
+                                                  const uint8 *key, int key_len, int recync, uint8 *iv);
 void           pgp_cfb_free(PGP_CFB *ctx);
 int                    pgp_cfb_encrypt(PGP_CFB *ctx, const uint8 *data, int len, uint8 *dst);
 int                    pgp_cfb_decrypt(PGP_CFB *ctx, const uint8 *data, int len, uint8 *dst);
 
-void pgp_armor_encode(const uint8 *src, unsigned len, StringInfo dst,
-                                int num_headers, char **keys, char **values);
+void           pgp_armor_encode(const uint8 *src, unsigned len, StringInfo dst,
+                                                        int num_headers, char **keys, char **values);
 int                    pgp_armor_decode(const uint8 *src, int len, StringInfo dst);
-int pgp_extract_armor_headers(const uint8 *src, unsigned len,
-                                                 int *nheaders, char ***keys, char ***values);
+int                    pgp_extract_armor_headers(const uint8 *src, unsigned len,
+                                                                         int *nheaders, char ***keys, char ***values);
 
 int                    pgp_compress_filter(PushFilter **res, PGP_Context *ctx, PushFilter *dst);
 int                    pgp_decompress_filter(PullFilter **res, PGP_Context *ctx, PullFilter *src);
@@ -298,10 +298,10 @@ void              pgp_key_free(PGP_PubKey *pk);
 int                    _pgp_read_public_key(PullFilter *pkt, PGP_PubKey **pk_p);
 
 int                    pgp_parse_pubenc_sesskey(PGP_Context *ctx, PullFilter *pkt);
-int pgp_create_pkt_reader(PullFilter **pf_p, PullFilter *src, int len,
-                                         int pkttype, PGP_Context *ctx);
-int pgp_parse_pkt_hdr(PullFilter *src, uint8 *tag, int *len_p,
-                                 int allow_ctx);
+int                    pgp_create_pkt_reader(PullFilter **pf_p, PullFilter *src, int len,
+                                                                 int pkttype, PGP_Context *ctx);
+int                    pgp_parse_pkt_hdr(PullFilter *src, uint8 *tag, int *len_p,
+                                                         int allow_ctx);
 
 int                    pgp_skip_packet(PullFilter *pkt);
 int                    pgp_expect_packet_end(PullFilter *pkt);
@@ -317,10 +317,10 @@ int                       pgp_mpi_write(PushFilter *dst, PGP_MPI *n);
 int                    pgp_mpi_hash(PX_MD *md, PGP_MPI *n);
 unsigned       pgp_mpi_cksum(unsigned cksum, PGP_MPI *n);
 
-int pgp_elgamal_encrypt(PGP_PubKey *pk, PGP_MPI *m,
-                                       PGP_MPI **c1, PGP_MPI **c2);
-int pgp_elgamal_decrypt(PGP_PubKey *pk, PGP_MPI *c1, PGP_MPI *c2,
-                                       PGP_MPI **m);
+int                    pgp_elgamal_encrypt(PGP_PubKey *pk, PGP_MPI *m,
+                                                               PGP_MPI **c1, PGP_MPI **c2);
+int                    pgp_elgamal_decrypt(PGP_PubKey *pk, PGP_MPI *c1, PGP_MPI *c2,
+                                                               PGP_MPI **m);
 int                    pgp_rsa_encrypt(PGP_PubKey *pk, PGP_MPI *m, PGP_MPI **c);
 int                    pgp_rsa_decrypt(PGP_PubKey *pk, PGP_MPI *c, PGP_MPI **m);
 
index 696902a17c3c71d91146e29b8d6bdcb9d5bc8e19..08001a81f5e53cde0ed0582cebc911c57f450c77 100644 (file)
@@ -56,27 +56,27 @@ int                 px_gen_salt(const char *salt_type, char *dst, int rounds);
  */
 
 /* crypt-gensalt.c */
-char *_crypt_gensalt_traditional_rn(unsigned long count,
-                                                         const char *input, int size, char *output, int output_size);
-char *_crypt_gensalt_extended_rn(unsigned long count,
-                                                  const char *input, int size, char *output, int output_size);
-char *_crypt_gensalt_md5_rn(unsigned long count,
-                                         const char *input, int size, char *output, int output_size);
-char *_crypt_gensalt_blowfish_rn(unsigned long count,
-                                                  const char *input, int size, char *output, int output_size);
+char      *_crypt_gensalt_traditional_rn(unsigned long count,
+                                                                                 const char *input, int size, char *output, int output_size);
+char      *_crypt_gensalt_extended_rn(unsigned long count,
+                                                                          const char *input, int size, char *output, int output_size);
+char      *_crypt_gensalt_md5_rn(unsigned long count,
+                                                                 const char *input, int size, char *output, int output_size);
+char      *_crypt_gensalt_blowfish_rn(unsigned long count,
+                                                                          const char *input, int size, char *output, int output_size);
 
 /* disable 'extended DES crypt' */
 /* #define DISABLE_XDES */
 
 /* crypt-blowfish.c */
-char *_crypt_blowfish_rn(const char *key, const char *setting,
-                                  char *output, int size);
+char      *_crypt_blowfish_rn(const char *key, const char *setting,
+                                                          char *output, int size);
 
 /* crypt-des.c */
 char      *px_crypt_des(const char *key, const char *setting);
 
 /* crypt-md5.c */
-char *px_crypt_md5(const char *pw, const char *salt,
-                        char *dst, unsigned dstlen);
+char      *px_crypt_md5(const char *pw, const char *salt,
+                                                char *dst, unsigned dstlen);
 
 #endif                                                 /* _PX_CRYPT_H */
index e1df60bb3535a44484ec03b3780d9c8f5e36d053..70af43ebd5a6bdf67c109b4e1d7774e1fbc15f51 100644 (file)
@@ -66,22 +66,22 @@ typedef void (*pgstat_page) (pgstattuple_type *, Relation, BlockNumber,
                                                         BufferAccessStrategy);
 
 static Datum build_pgstattuple_type(pgstattuple_type *stat,
-                                          FunctionCallInfo fcinfo);
+                                                                       FunctionCallInfo fcinfo);
 static Datum pgstat_relation(Relation rel, FunctionCallInfo fcinfo);
 static Datum pgstat_heap(Relation rel, FunctionCallInfo fcinfo);
 static void pgstat_btree_page(pgstattuple_type *stat,
-                                 Relation rel, BlockNumber blkno,
-                                 BufferAccessStrategy bstrategy);
+                                                         Relation rel, BlockNumber blkno,
+                                                         BufferAccessStrategy bstrategy);
 static void pgstat_hash_page(pgstattuple_type *stat,
-                                Relation rel, BlockNumber blkno,
-                                BufferAccessStrategy bstrategy);
+                                                        Relation rel, BlockNumber blkno,
+                                                        BufferAccessStrategy bstrategy);
 static void pgstat_gist_page(pgstattuple_type *stat,
-                                Relation rel, BlockNumber blkno,
-                                BufferAccessStrategy bstrategy);
+                                                        Relation rel, BlockNumber blkno,
+                                                        BufferAccessStrategy bstrategy);
 static Datum pgstat_index(Relation rel, BlockNumber start,
-                        pgstat_page pagefn, FunctionCallInfo fcinfo);
+                                                 pgstat_page pagefn, FunctionCallInfo fcinfo);
 static void pgstat_index_page(pgstattuple_type *stat, Page page,
-                                 OffsetNumber minoff, OffsetNumber maxoff);
+                                                         OffsetNumber minoff, OffsetNumber maxoff);
 
 /*
  * build_pgstattuple_type -- build a pgstattuple_type tuple
index 239d220c249b1a2ce655a540ee4467b501c7fe63..5dfdadcc2fc61520b9625716c34a374a3df56350 100644 (file)
@@ -81,16 +81,16 @@ static void do_sql_command(PGconn *conn, const char *sql);
 static void begin_remote_xact(ConnCacheEntry *entry);
 static void pgfdw_xact_callback(XactEvent event, void *arg);
 static void pgfdw_subxact_callback(SubXactEvent event,
-                                          SubTransactionId mySubid,
-                                          SubTransactionId parentSubid,
-                                          void *arg);
+                                                                  SubTransactionId mySubid,
+                                                                  SubTransactionId parentSubid,
+                                                                  void *arg);
 static void pgfdw_inval_callback(Datum arg, int cacheid, uint32 hashvalue);
 static void pgfdw_reject_incomplete_xact_state_change(ConnCacheEntry *entry);
 static bool pgfdw_cancel_query(PGconn *conn);
 static bool pgfdw_exec_cleanup_query(PGconn *conn, const char *query,
-                                                bool ignore_errors);
+                                                                        bool ignore_errors);
 static bool pgfdw_get_cleanup_result(PGconn *conn, TimestampTz endtime,
-                                                PGresult **result);
+                                                                        PGresult **result);
 
 
 /*
index c4e331166f9b4ccc3ac2b75e510962bf4c39d265..6da4c834bf8cc97e6dd447663575692b8afa438a 100644 (file)
@@ -116,34 +116,34 @@ typedef struct deparse_expr_cxt
  * remote server.
  */
 static bool foreign_expr_walker(Node *node,
-                                       foreign_glob_cxt *glob_cxt,
-                                       foreign_loc_cxt *outer_cxt);
+                                                               foreign_glob_cxt *glob_cxt,
+                                                               foreign_loc_cxt *outer_cxt);
 static char *deparse_type_name(Oid type_oid, int32 typemod);
 
 /*
  * Functions to construct string representation of a node tree.
  */
 static void deparseTargetList(StringInfo buf,
-                                 RangeTblEntry *rte,
-                                 Index rtindex,
-                                 Relation rel,
-                                 bool is_returning,
-                                 Bitmapset *attrs_used,
-                                 bool qualify_col,
-                                 List **retrieved_attrs);
+                                                         RangeTblEntry *rte,
+                                                         Index rtindex,
+                                                         Relation rel,
+                                                         bool is_returning,
+                                                         Bitmapset *attrs_used,
+                                                         bool qualify_col,
+                                                         List **retrieved_attrs);
 static void deparseExplicitTargetList(List *tlist,
-                                                 bool is_returning,
-                                                 List **retrieved_attrs,
-                                                 deparse_expr_cxt *context);
+                                                                         bool is_returning,
+                                                                         List **retrieved_attrs,
+                                                                         deparse_expr_cxt *context);
 static void deparseSubqueryTargetList(deparse_expr_cxt *context);
 static void deparseReturningList(StringInfo buf, RangeTblEntry *rte,
-                                        Index rtindex, Relation rel,
-                                        bool trig_after_row,
-                                        List *withCheckOptionList,
-                                        List *returningList,
-                                        List **retrieved_attrs);
+                                                                Index rtindex, Relation rel,
+                                                                bool trig_after_row,
+                                                                List *withCheckOptionList,
+                                                                List *returningList,
+                                                                List **retrieved_attrs);
 static void deparseColumnRef(StringInfo buf, int varno, int varattno,
-                                RangeTblEntry *rte, bool qualify_col);
+                                                        RangeTblEntry *rte, bool qualify_col);
 static void deparseRelation(StringInfo buf, Relation rel);
 static void deparseExpr(Expr *expr, deparse_expr_cxt *context);
 static void deparseVar(Var *node, deparse_expr_cxt *context);
@@ -155,45 +155,45 @@ static void deparseOpExpr(OpExpr *node, deparse_expr_cxt *context);
 static void deparseOperatorName(StringInfo buf, Form_pg_operator opform);
 static void deparseDistinctExpr(DistinctExpr *node, deparse_expr_cxt *context);
 static void deparseScalarArrayOpExpr(ScalarArrayOpExpr *node,
-                                                deparse_expr_cxt *context);
+                                                                        deparse_expr_cxt *context);
 static void deparseRelabelType(RelabelType *node, deparse_expr_cxt *context);
 static void deparseBoolExpr(BoolExpr *node, deparse_expr_cxt *context);
 static void deparseNullTest(NullTest *node, deparse_expr_cxt *context);
 static void deparseArrayExpr(ArrayExpr *node, deparse_expr_cxt *context);
 static void printRemoteParam(int paramindex, Oid paramtype, int32 paramtypmod,
-                                deparse_expr_cxt *context);
+                                                        deparse_expr_cxt *context);
 static void printRemotePlaceholder(Oid paramtype, int32 paramtypmod,
-                                          deparse_expr_cxt *context);
+                                                                  deparse_expr_cxt *context);
 static void deparseSelectSql(List *tlist, bool is_subquery, List **retrieved_attrs,
-                                deparse_expr_cxt *context);
+                                                        deparse_expr_cxt *context);
 static void deparseLockingClause(deparse_expr_cxt *context);
 static void appendOrderByClause(List *pathkeys, bool has_final_sort,
-                                       deparse_expr_cxt *context);
+                                                               deparse_expr_cxt *context);
 static void appendLimitClause(deparse_expr_cxt *context);
 static void appendConditions(List *exprs, deparse_expr_cxt *context);
 static void deparseFromExprForRel(StringInfo buf, PlannerInfo *root,
-                                         RelOptInfo *foreignrel, bool use_alias,
-                                         Index ignore_rel, List **ignore_conds,
-                                         List **params_list);
+                                                                 RelOptInfo *foreignrel, bool use_alias,
+                                                                 Index ignore_rel, List **ignore_conds,
+                                                                 List **params_list);
 static void deparseFromExpr(List *quals, deparse_expr_cxt *context);
 static void deparseRangeTblRef(StringInfo buf, PlannerInfo *root,
-                                  RelOptInfo *foreignrel, bool make_subquery,
-                                  Index ignore_rel, List **ignore_conds, List **params_list);
+                                                          RelOptInfo *foreignrel, bool make_subquery,
+                                                          Index ignore_rel, List **ignore_conds, List **params_list);
 static void deparseAggref(Aggref *node, deparse_expr_cxt *context);
 static void appendGroupByClause(List *tlist, deparse_expr_cxt *context);
 static void appendAggOrderBy(List *orderList, List *targetList,
-                                deparse_expr_cxt *context);
+                                                        deparse_expr_cxt *context);
 static void appendFunctionName(Oid funcid, deparse_expr_cxt *context);
 static Node *deparseSortGroupClause(Index ref, List *tlist, bool force_colno,
-                                          deparse_expr_cxt *context);
+                                                                       deparse_expr_cxt *context);
 
 /*
  * Helper functions
  */
 static bool is_subquery_var(Var *node, RelOptInfo *foreignrel,
-                               int *relno, int *colno);
+                                                       int *relno, int *colno);
 static void get_relation_column_alias_ids(Var *node, RelOptInfo *foreignrel,
-                                                         int *relno, int *colno);
+                                                                                 int *relno, int *colno);
 
 
 /*
index 04dcd40f2e7df8d1e3396ca287a7ffcc5e0c7653..02c81ce7a9584e96f26b1fd0cdfe385b5d1d780b 100644 (file)
@@ -309,199 +309,199 @@ PG_FUNCTION_INFO_V1(postgres_fdw_handler);
  * FDW callback routines
  */
 static void postgresGetForeignRelSize(PlannerInfo *root,
-                                                 RelOptInfo *baserel,
-                                                 Oid foreigntableid);
+                                                                         RelOptInfo *baserel,
+                                                                         Oid foreigntableid);
 static void postgresGetForeignPaths(PlannerInfo *root,
-                                               RelOptInfo *baserel,
-                                               Oid foreigntableid);
+                                                                       RelOptInfo *baserel,
+                                                                       Oid foreigntableid);
 static ForeignScan *postgresGetForeignPlan(PlannerInfo *root,
-                                          RelOptInfo *foreignrel,
-                                          Oid foreigntableid,
-                                          ForeignPath *best_path,
-                                          List *tlist,
-                                          List *scan_clauses,
-                                          Plan *outer_plan);
+                                                                                  RelOptInfo *foreignrel,
+                                                                                  Oid foreigntableid,
+                                                                                  ForeignPath *best_path,
+                                                                                  List *tlist,
+                                                                                  List *scan_clauses,
+                                                                                  Plan *outer_plan);
 static void postgresBeginForeignScan(ForeignScanState *node, int eflags);
 static TupleTableSlot *postgresIterateForeignScan(ForeignScanState *node);
 static void postgresReScanForeignScan(ForeignScanState *node);
 static void postgresEndForeignScan(ForeignScanState *node);
 static void postgresAddForeignUpdateTargets(Query *parsetree,
-                                                               RangeTblEntry *target_rte,
-                                                               Relation target_relation);
+                                                                                       RangeTblEntry *target_rte,
+                                                                                       Relation target_relation);
 static List *postgresPlanForeignModify(PlannerInfo *root,
-                                                 ModifyTable *plan,
-                                                 Index resultRelation,
-                                                 int subplan_index);
+                                                                          ModifyTable *plan,
+                                                                          Index resultRelation,
+                                                                          int subplan_index);
 static void postgresBeginForeignModify(ModifyTableState *mtstate,
-                                                  ResultRelInfo *resultRelInfo,
-                                                  List *fdw_private,
-                                                  int subplan_index,
-                                                  int eflags);
+                                                                          ResultRelInfo *resultRelInfo,
+                                                                          List *fdw_private,
+                                                                          int subplan_index,
+                                                                          int eflags);
 static TupleTableSlot *postgresExecForeignInsert(EState *estate,
-                                                 ResultRelInfo *resultRelInfo,
-                                                 TupleTableSlot *slot,
-                                                 TupleTableSlot *planSlot);
+                                                                                                ResultRelInfo *resultRelInfo,
+                                                                                                TupleTableSlot *slot,
+                                                                                                TupleTableSlot *planSlot);
 static TupleTableSlot *postgresExecForeignUpdate(EState *estate,
-                                                 ResultRelInfo *resultRelInfo,
-                                                 TupleTableSlot *slot,
-                                                 TupleTableSlot *planSlot);
+                                                                                                ResultRelInfo *resultRelInfo,
+                                                                                                TupleTableSlot *slot,
+                                                                                                TupleTableSlot *planSlot);
 static TupleTableSlot *postgresExecForeignDelete(EState *estate,
-                                                 ResultRelInfo *resultRelInfo,
-                                                 TupleTableSlot *slot,
-                                                 TupleTableSlot *planSlot);
+                                                                                                ResultRelInfo *resultRelInfo,
+                                                                                                TupleTableSlot *slot,
+                                                                                                TupleTableSlot *planSlot);
 static void postgresEndForeignModify(EState *estate,
-                                                ResultRelInfo *resultRelInfo);
+                                                                        ResultRelInfo *resultRelInfo);
 static void postgresBeginForeignInsert(ModifyTableState *mtstate,
-                                                  ResultRelInfo *resultRelInfo);
+                                                                          ResultRelInfo *resultRelInfo);
 static void postgresEndForeignInsert(EState *estate,
-                                                ResultRelInfo *resultRelInfo);
+                                                                        ResultRelInfo *resultRelInfo);
 static int     postgresIsForeignRelUpdatable(Relation rel);
 static bool postgresPlanDirectModify(PlannerInfo *root,
-                                                ModifyTable *plan,
-                                                Index resultRelation,
-                                                int subplan_index);
+                                                                        ModifyTable *plan,
+                                                                        Index resultRelation,
+                                                                        int subplan_index);
 static void postgresBeginDirectModify(ForeignScanState *node, int eflags);
 static TupleTableSlot *postgresIterateDirectModify(ForeignScanState *node);
 static void postgresEndDirectModify(ForeignScanState *node);
 static void postgresExplainForeignScan(ForeignScanState *node,
-                                                  ExplainState *es);
+                                                                          ExplainState *es);
 static void postgresExplainForeignModify(ModifyTableState *mtstate,
-                                                        ResultRelInfo *rinfo,
-                                                        List *fdw_private,
-                                                        int subplan_index,
-                                                        ExplainState *es);
+                                                                                ResultRelInfo *rinfo,
+                                                                                List *fdw_private,
+                                                                                int subplan_index,
+                                                                                ExplainState *es);
 static void postgresExplainDirectModify(ForeignScanState *node,
-                                                       ExplainState *es);
+                                                                               ExplainState *es);
 static bool postgresAnalyzeForeignTable(Relation relation,
-                                                       AcquireSampleRowsFunc *func,
-                                                       BlockNumber *totalpages);
+                                                                               AcquireSampleRowsFunc *func,
+                                                                               BlockNumber *totalpages);
 static List *postgresImportForeignSchema(ImportForeignSchemaStmt *stmt,
-                                                       Oid serverOid);
+                                                                                Oid serverOid);
 static void postgresGetForeignJoinPaths(PlannerInfo *root,
-                                                       RelOptInfo *joinrel,
-                                                       RelOptInfo *outerrel,
-                                                       RelOptInfo *innerrel,
-                                                       JoinType jointype,
-                                                       JoinPathExtraData *extra);
+                                                                               RelOptInfo *joinrel,
+                                                                               RelOptInfo *outerrel,
+                                                                               RelOptInfo *innerrel,
+                                                                               JoinType jointype,
+                                                                               JoinPathExtraData *extra);
 static bool postgresRecheckForeignScan(ForeignScanState *node,
-                                                  TupleTableSlot *slot);
+                                                                          TupleTableSlot *slot);
 static void postgresGetForeignUpperPaths(PlannerInfo *root,
-                                                        UpperRelationKind stage,
-                                                        RelOptInfo *input_rel,
-                                                        RelOptInfo *output_rel,
-                                                        void *extra);
+                                                                                UpperRelationKind stage,
+                                                                                RelOptInfo *input_rel,
+                                                                                RelOptInfo *output_rel,
+                                                                                void *extra);
 
 /*
  * Helper functions
  */
 static void estimate_path_cost_size(PlannerInfo *root,
-                                               RelOptInfo *foreignrel,
-                                               List *param_join_conds,
-                                               List *pathkeys,
-                                               PgFdwPathExtraData *fpextra,
-                                               double *p_rows, int *p_width,
-                                               Cost *p_startup_cost, Cost *p_total_cost);
+                                                                       RelOptInfo *foreignrel,
+                                                                       List *param_join_conds,
+                                                                       List *pathkeys,
+                                                                       PgFdwPathExtraData *fpextra,
+                                                                       double *p_rows, int *p_width,
+                                                                       Cost *p_startup_cost, Cost *p_total_cost);
 static void get_remote_estimate(const char *sql,
-                                       PGconn *conn,
-                                       double *rows,
-                                       int *width,
-                                       Cost *startup_cost,
-                                       Cost *total_cost);
+                                                               PGconn *conn,
+                                                               double *rows,
+                                                               int *width,
+                                                               Cost *startup_cost,
+                                                               Cost *total_cost);
 static void adjust_foreign_grouping_path_cost(PlannerInfo *root,
-                                                                 List *pathkeys,
-                                                                 double retrieved_rows,
-                                                                 double width,
-                                                                 double limit_tuples,
-                                                                 Cost *p_startup_cost,
-                                                                 Cost *p_run_cost);
+                                                                                         List *pathkeys,
+                                                                                         double retrieved_rows,
+                                                                                         double width,
+                                                                                         double limit_tuples,
+                                                                                         Cost *p_startup_cost,
+                                                                                         Cost *p_run_cost);
 static bool ec_member_matches_foreign(PlannerInfo *root, RelOptInfo *rel,
-                                                 EquivalenceClass *ec, EquivalenceMember *em,
-                                                 void *arg);
+                                                                         EquivalenceClass *ec, EquivalenceMember *em,
+                                                                         void *arg);
 static void create_cursor(ForeignScanState *node);
 static void fetch_more_data(ForeignScanState *node);
 static void close_cursor(PGconn *conn, unsigned int cursor_number);
 static PgFdwModifyState *create_foreign_modify(EState *estate,
-                                         RangeTblEntry *rte,
-                                         ResultRelInfo *resultRelInfo,
-                                         CmdType operation,
-                                         Plan *subplan,
-                                         char *query,
-                                         List *target_attrs,
-                                         bool has_returning,
-                                         List *retrieved_attrs);
+                                                                                          RangeTblEntry *rte,
+                                                                                          ResultRelInfo *resultRelInfo,
+                                                                                          CmdType operation,
+                                                                                          Plan *subplan,
+                                                                                          char *query,
+                                                                                          List *target_attrs,
+                                                                                          bool has_returning,
+                                                                                          List *retrieved_attrs);
 static TupleTableSlot *execute_foreign_modify(EState *estate,
-                                          ResultRelInfo *resultRelInfo,
-                                          CmdType operation,
-                                          TupleTableSlot *slot,
-                                          TupleTableSlot *planSlot);
+                                                                                         ResultRelInfo *resultRelInfo,
+                                                                                         CmdType operation,
+                                                                                         TupleTableSlot *slot,
+                                                                                         TupleTableSlot *planSlot);
 static void prepare_foreign_modify(PgFdwModifyState *fmstate);
 static const char **convert_prep_stmt_params(PgFdwModifyState *fmstate,
-                                                ItemPointer tupleid,
-                                                TupleTableSlot *slot);
+                                                                                        ItemPointer tupleid,
+                                                                                        TupleTableSlot *slot);
 static void store_returning_result(PgFdwModifyState *fmstate,
-                                          TupleTableSlot *slot, PGresult *res);
+                                                                  TupleTableSlot *slot, PGresult *res);
 static void finish_foreign_modify(PgFdwModifyState *fmstate);
 static List *build_remote_returning(Index rtindex, Relation rel,
-                                          List *returningList);
+                                                                       List *returningList);
 static void rebuild_fdw_scan_tlist(ForeignScan *fscan, List *tlist);
 static void execute_dml_stmt(ForeignScanState *node);
 static TupleTableSlot *get_returning_data(ForeignScanState *node);
 static void init_returning_filter(PgFdwDirectModifyState *dmstate,
-                                         List *fdw_scan_tlist,
-                                         Index rtindex);
+                                                                 List *fdw_scan_tlist,
+                                                                 Index rtindex);
 static TupleTableSlot *apply_returning_filter(PgFdwDirectModifyState *dmstate,
-                                          TupleTableSlot *slot,
-                                          EState *estate);
+                                                                                         TupleTableSlot *slot,
+                                                                                         EState *estate);
 static void prepare_query_params(PlanState *node,
-                                        List *fdw_exprs,
-                                        int numParams,
-                                        FmgrInfo **param_flinfo,
-                                        List **param_exprs,
-                                        const char ***param_values);
+                                                                List *fdw_exprs,
+                                                                int numParams,
+                                                                FmgrInfo **param_flinfo,
+                                                                List **param_exprs,
+                                                                const char ***param_values);
 static void process_query_params(ExprContext *econtext,
-                                        FmgrInfo *param_flinfo,
-                                        List *param_exprs,
-                                        const char **param_values);
-static int postgresAcquireSampleRowsFunc(Relation relation, int elevel,
-                                                         HeapTuple *rows, int targrows,
-                                                         double *totalrows,
-                                                         double *totaldeadrows);
+                                                                FmgrInfo *param_flinfo,
+                                                                List *param_exprs,
+                                                                const char **param_values);
+static int     postgresAcquireSampleRowsFunc(Relation relation, int elevel,
+                                                                                 HeapTuple *rows, int targrows,
+                                                                                 double *totalrows,
+                                                                                 double *totaldeadrows);
 static void analyze_row_processor(PGresult *res, int row,
-                                         PgFdwAnalyzeState *astate);
+                                                                 PgFdwAnalyzeState *astate);
 static HeapTuple make_tuple_from_result_row(PGresult *res,
-                                                  int row,
-                                                  Relation rel,
-                                                  AttInMetadata *attinmeta,
-                                                  List *retrieved_attrs,
-                                                  ForeignScanState *fsstate,
-                                                  MemoryContext temp_context);
+                                                                                       int row,
+                                                                                       Relation rel,
+                                                                                       AttInMetadata *attinmeta,
+                                                                                       List *retrieved_attrs,
+                                                                                       ForeignScanState *fsstate,
+                                                                                       MemoryContext temp_context);
 static void conversion_error_callback(void *arg);
 static bool foreign_join_ok(PlannerInfo *root, RelOptInfo *joinrel,
-                               JoinType jointype, RelOptInfo *outerrel, RelOptInfo *innerrel,
-                               JoinPathExtraData *extra);
+                                                       JoinType jointype, RelOptInfo *outerrel, RelOptInfo *innerrel,
+                                                       JoinPathExtraData *extra);
 static bool foreign_grouping_ok(PlannerInfo *root, RelOptInfo *grouped_rel,
-                                       Node *havingQual);
+                                                               Node *havingQual);
 static List *get_useful_pathkeys_for_relation(PlannerInfo *root,
-                                                                RelOptInfo *rel);
+                                                                                         RelOptInfo *rel);
 static List *get_useful_ecs_for_relation(PlannerInfo *root, RelOptInfo *rel);
 static void add_paths_with_pathkeys_for_rel(PlannerInfo *root, RelOptInfo *rel,
-                                                               Path *epq_path);
+                                                                                       Path *epq_path);
 static void add_foreign_grouping_paths(PlannerInfo *root,
-                                                  RelOptInfo *input_rel,
-                                                  RelOptInfo *grouped_rel,
-                                                  GroupPathExtraData *extra);
+                                                                          RelOptInfo *input_rel,
+                                                                          RelOptInfo *grouped_rel,
+                                                                          GroupPathExtraData *extra);
 static void add_foreign_ordered_paths(PlannerInfo *root,
-                                                 RelOptInfo *input_rel,
-                                                 RelOptInfo *ordered_rel);
+                                                                         RelOptInfo *input_rel,
+                                                                         RelOptInfo *ordered_rel);
 static void add_foreign_final_paths(PlannerInfo *root,
-                                               RelOptInfo *input_rel,
-                                               RelOptInfo *final_rel,
-                                               FinalPathExtraData *extra);
+                                                                       RelOptInfo *input_rel,
+                                                                       RelOptInfo *final_rel,
+                                                                       FinalPathExtraData *extra);
 static void apply_server_options(PgFdwRelationInfo *fpinfo);
 static void apply_table_options(PgFdwRelationInfo *fpinfo);
 static void merge_fdw_options(PgFdwRelationInfo *fpinfo,
-                                 const PgFdwRelationInfo *fpinfo_o,
-                                 const PgFdwRelationInfo *fpinfo_i);
+                                                         const PgFdwRelationInfo *fpinfo_o,
+                                                         const PgFdwRelationInfo *fpinfo_i);
 
 
 /*
index 3e4603d718e7991ef3198cf8360127101c98ca9b..30b6502bc05b4c540ecaa957046f673e46c307f7 100644 (file)
@@ -128,72 +128,72 @@ extern unsigned int GetPrepStmtNumber(PGconn *conn);
 extern PGresult *pgfdw_get_result(PGconn *conn, const char *query);
 extern PGresult *pgfdw_exec_query(PGconn *conn, const char *query);
 extern void pgfdw_report_error(int elevel, PGresult *res, PGconn *conn,
-                                  bool clear, const char *sql);
+                                                          bool clear, const char *sql);
 
 /* in option.c */
-extern int ExtractConnectionOptions(List *defelems,
-                                                const char **keywords,
-                                                const char **values);
+extern int     ExtractConnectionOptions(List *defelems,
+                                                                        const char **keywords,
+                                                                        const char **values);
 extern List *ExtractExtensionList(const char *extensionsString,
-                                        bool warnOnMissing);
+                                                                 bool warnOnMissing);
 
 /* in deparse.c */
 extern void classifyConditions(PlannerInfo *root,
-                                  RelOptInfo *baserel,
-                                  List *input_conds,
-                                  List **remote_conds,
-                                  List **local_conds);
+                                                          RelOptInfo *baserel,
+                                                          List *input_conds,
+                                                          List **remote_conds,
+                                                          List **local_conds);
 extern bool is_foreign_expr(PlannerInfo *root,
-                               RelOptInfo *baserel,
-                               Expr *expr);
+                                                       RelOptInfo *baserel,
+                                                       Expr *expr);
 extern bool is_foreign_param(PlannerInfo *root,
-                                RelOptInfo *baserel,
-                                Expr *expr);
+                                                        RelOptInfo *baserel,
+                                                        Expr *expr);
 extern void deparseInsertSql(StringInfo buf, RangeTblEntry *rte,
-                                Index rtindex, Relation rel,
-                                List *targetAttrs, bool doNothing,
-                                List *withCheckOptionList, List *returningList,
-                                List **retrieved_attrs);
+                                                        Index rtindex, Relation rel,
+                                                        List *targetAttrs, bool doNothing,
+                                                        List *withCheckOptionList, List *returningList,
+                                                        List **retrieved_attrs);
 extern void deparseUpdateSql(StringInfo buf, RangeTblEntry *rte,
-                                Index rtindex, Relation rel,
-                                List *targetAttrs,
-                                List *withCheckOptionList, List *returningList,
-                                List **retrieved_attrs);
+                                                        Index rtindex, Relation rel,
+                                                        List *targetAttrs,
+                                                        List *withCheckOptionList, List *returningList,
+                                                        List **retrieved_attrs);
 extern void deparseDirectUpdateSql(StringInfo buf, PlannerInfo *root,
-                                          Index rtindex, Relation rel,
-                                          RelOptInfo *foreignrel,
-                                          List *targetlist,
-                                          List *targetAttrs,
-                                          List *remote_conds,
-                                          List **params_list,
-                                          List *returningList,
-                                          List **retrieved_attrs);
+                                                                  Index rtindex, Relation rel,
+                                                                  RelOptInfo *foreignrel,
+                                                                  List *targetlist,
+                                                                  List *targetAttrs,
+                                                                  List *remote_conds,
+                                                                  List **params_list,
+                                                                  List *returningList,
+                                                                  List **retrieved_attrs);
 extern void deparseDeleteSql(StringInfo buf, RangeTblEntry *rte,
-                                Index rtindex, Relation rel,
-                                List *returningList,
-                                List **retrieved_attrs);
+                                                        Index rtindex, Relation rel,
+                                                        List *returningList,
+                                                        List **retrieved_attrs);
 extern void deparseDirectDeleteSql(StringInfo buf, PlannerInfo *root,
-                                          Index rtindex, Relation rel,
-                                          RelOptInfo *foreignrel,
-                                          List *remote_conds,
-                                          List **params_list,
-                                          List *returningList,
-                                          List **retrieved_attrs);
+                                                                  Index rtindex, Relation rel,
+                                                                  RelOptInfo *foreignrel,
+                                                                  List *remote_conds,
+                                                                  List **params_list,
+                                                                  List *returningList,
+                                                                  List **retrieved_attrs);
 extern void deparseAnalyzeSizeSql(StringInfo buf, Relation rel);
 extern void deparseAnalyzeSql(StringInfo buf, Relation rel,
-                                 List **retrieved_attrs);
+                                                         List **retrieved_attrs);
 extern void deparseStringLiteral(StringInfo buf, const char *val);
 extern Expr *find_em_expr_for_rel(EquivalenceClass *ec, RelOptInfo *rel);
 extern Expr *find_em_expr_for_input_target(PlannerInfo *root,
-                                                         EquivalenceClass *ec,
-                                                         PathTarget *target);
+                                                                                  EquivalenceClass *ec,
+                                                                                  PathTarget *target);
 extern List *build_tlist_to_deparse(RelOptInfo *foreignrel);
 extern void deparseSelectStmtForRel(StringInfo buf, PlannerInfo *root,
-                                               RelOptInfo *foreignrel, List *tlist,
-                                               List *remote_conds, List *pathkeys,
-                                               bool has_final_sort, bool has_limit,
-                                               bool is_subquery,
-                                               List **retrieved_attrs, List **params_list);
+                                                                       RelOptInfo *foreignrel, List *tlist,
+                                                                       List *remote_conds, List *pathkeys,
+                                                                       bool has_final_sort, bool has_limit,
+                                                                       bool is_subquery,
+                                                                       List **retrieved_attrs, List **params_list);
 extern const char *get_jointype_name(JoinType jointype);
 
 /* in shippable.c */
index a2d48d37c529a49f98c9ac01e28a7121d2d76fef..7197e3cdf030726e38652ee310823bc44394b413 100644 (file)
@@ -226,43 +226,43 @@ extern int        sepgsql_set_mode(int new_mode);
 extern bool sepgsql_getenforce(void);
 
 extern void sepgsql_audit_log(bool denied,
-                                 const char *scontext,
-                                 const char *tcontext,
-                                 uint16 tclass,
-                                 uint32 audited,
-                                 const char *audit_name);
+                                                         const char *scontext,
+                                                         const char *tcontext,
+                                                         uint16 tclass,
+                                                         uint32 audited,
+                                                         const char *audit_name);
 
 extern void sepgsql_compute_avd(const char *scontext,
-                                       const char *tcontext,
-                                       uint16 tclass,
-                                       struct av_decision *avd);
+                                                               const char *tcontext,
+                                                               uint16 tclass,
+                                                               struct av_decision *avd);
 
 extern char *sepgsql_compute_create(const char *scontext,
-                                          const char *tcontext,
-                                          uint16 tclass,
-                                          const char *objname);
+                                                                       const char *tcontext,
+                                                                       uint16 tclass,
+                                                                       const char *objname);
 
 extern bool sepgsql_check_perms(const char *scontext,
-                                       const char *tcontext,
-                                       uint16 tclass,
-                                       uint32 required,
-                                       const char *audit_name,
-                                       bool abort_on_violation);
+                                                               const char *tcontext,
+                                                               uint16 tclass,
+                                                               uint32 required,
+                                                               const char *audit_name,
+                                                               bool abort_on_violation);
 
 /*
  * uavc.c
  */
 #define SEPGSQL_AVC_NOAUDIT                    ((void *)(-1))
 extern bool sepgsql_avc_check_perms_label(const char *tcontext,
-                                                         uint16 tclass,
-                                                         uint32 required,
-                                                         const char *audit_name,
-                                                         bool abort_on_violation);
+                                                                                 uint16 tclass,
+                                                                                 uint32 required,
+                                                                                 const char *audit_name,
+                                                                                 bool abort_on_violation);
 extern bool sepgsql_avc_check_perms(const ObjectAddress *tobject,
-                                               uint16 tclass,
-                                               uint32 required,
-                                               const char *audit_name,
-                                               bool abort_on_violation);
+                                                                       uint16 tclass,
+                                                                       uint32 required,
+                                                                       const char *audit_name,
+                                                                       bool abort_on_violation);
 extern char *sepgsql_avc_trusted_proc(Oid functionId);
 extern void sepgsql_avc_init(void);
 
@@ -274,7 +274,7 @@ extern void sepgsql_init_client_label(void);
 extern char *sepgsql_get_label(Oid relOid, Oid objOid, int32 subId);
 
 extern void sepgsql_object_relabel(const ObjectAddress *object,
-                                          const char *seclabel);
+                                                                  const char *seclabel);
 
 /*
  * dml.c
@@ -285,7 +285,7 @@ extern bool sepgsql_dml_privileges(List *rangeTabls, bool abort_on_violation);
  * database.c
  */
 extern void sepgsql_database_post_create(Oid databaseId,
-                                                        const char *dtemplate);
+                                                                                const char *dtemplate);
 extern void sepgsql_database_drop(Oid databaseId);
 extern void sepgsql_database_relabel(Oid databaseId, const char *seclabel);
 extern void sepgsql_database_setattr(Oid databaseId);
@@ -308,7 +308,7 @@ extern void sepgsql_schema_rename(Oid namespaceId);
 extern void sepgsql_attribute_post_create(Oid relOid, AttrNumber attnum);
 extern void sepgsql_attribute_drop(Oid relOid, AttrNumber attnum);
 extern void sepgsql_attribute_relabel(Oid relOid, AttrNumber attnum,
-                                                 const char *seclabel);
+                                                                         const char *seclabel);
 extern void sepgsql_attribute_setattr(Oid relOid, AttrNumber attnum);
 extern void sepgsql_relation_post_create(Oid relOid);
 extern void sepgsql_relation_drop(Oid relOid);
index cd02495c451e84e771e20c129721034d5462ac5b..e31be80828e3a1e0397785c8f2a87c59719d7ee4 100644 (file)
@@ -48,41 +48,41 @@ PG_MODULE_MAGIC;
 
 static HTAB *load_categories_hash(char *cats_sql, MemoryContext per_query_ctx);
 static Tuplestorestate *get_crosstab_tuplestore(char *sql,
-                                               HTAB *crosstab_hash,
-                                               TupleDesc tupdesc,
-                                               MemoryContext per_query_ctx,
-                                               bool randomAccess);
+                                                                                               HTAB *crosstab_hash,
+                                                                                               TupleDesc tupdesc,
+                                                                                               MemoryContext per_query_ctx,
+                                                                                               bool randomAccess);
 static void validateConnectbyTupleDesc(TupleDesc tupdesc, bool show_branch, bool show_serial);
 static bool compatCrosstabTupleDescs(TupleDesc tupdesc1, TupleDesc tupdesc2);
 static void compatConnectbyTupleDescs(TupleDesc tupdesc1, TupleDesc tupdesc2);
 static void get_normal_pair(float8 *x1, float8 *x2);
 static Tuplestorestate *connectby(char *relname,
-                 char *key_fld,
-                 char *parent_key_fld,
-                 char *orderby_fld,
-                 char *branch_delim,
-                 char *start_with,
-                 int max_depth,
-                 bool show_branch,
-                 bool show_serial,
-                 MemoryContext per_query_ctx,
-                 bool randomAccess,
-                 AttInMetadata *attinmeta);
+                                                                 char *key_fld,
+                                                                 char *parent_key_fld,
+                                                                 char *orderby_fld,
+                                                                 char *branch_delim,
+                                                                 char *start_with,
+                                                                 int max_depth,
+                                                                 bool show_branch,
+                                                                 bool show_serial,
+                                                                 MemoryContext per_query_ctx,
+                                                                 bool randomAccess,
+                                                                 AttInMetadata *attinmeta);
 static void build_tuplestore_recursively(char *key_fld,
-                                                        char *parent_key_fld,
-                                                        char *relname,
-                                                        char *orderby_fld,
-                                                        char *branch_delim,
-                                                        char *start_with,
-                                                        char *branch,
-                                                        int level,
-                                                        int *serial,
-                                                        int max_depth,
-                                                        bool show_branch,
-                                                        bool show_serial,
-                                                        MemoryContext per_query_ctx,
-                                                        AttInMetadata *attinmeta,
-                                                        Tuplestorestate *tupstore);
+                                                                                char *parent_key_fld,
+                                                                                char *relname,
+                                                                                char *orderby_fld,
+                                                                                char *branch_delim,
+                                                                                char *start_with,
+                                                                                char *branch,
+                                                                                int level,
+                                                                                int *serial,
+                                                                                int max_depth,
+                                                                                bool show_branch,
+                                                                                bool show_serial,
+                                                                                MemoryContext per_query_ctx,
+                                                                                AttInMetadata *attinmeta,
+                                                                                Tuplestorestate *tupstore);
 
 typedef struct
 {
index e3f394f51205205cb5be99dc738e062004b4b1b3..33955a478edb8104aad50c47410c72debd55d99b 100644 (file)
@@ -39,29 +39,29 @@ typedef struct
 } TestDecodingData;
 
 static void pg_decode_startup(LogicalDecodingContext *ctx, OutputPluginOptions *opt,
-                                 bool is_init);
+                                                         bool is_init);
 static void pg_decode_shutdown(LogicalDecodingContext *ctx);
 static void pg_decode_begin_txn(LogicalDecodingContext *ctx,
-                                       ReorderBufferTXN *txn);
+                                                               ReorderBufferTXN *txn);
 static void pg_output_begin(LogicalDecodingContext *ctx,
-                               TestDecodingData *data,
-                               ReorderBufferTXN *txn,
-                               bool last_write);
+                                                       TestDecodingData *data,
+                                                       ReorderBufferTXN *txn,
+                                                       bool last_write);
 static void pg_decode_commit_txn(LogicalDecodingContext *ctx,
-                                        ReorderBufferTXN *txn, XLogRecPtr commit_lsn);
+                                                                ReorderBufferTXN *txn, XLogRecPtr commit_lsn);
 static void pg_decode_change(LogicalDecodingContext *ctx,
-                                ReorderBufferTXN *txn, Relation rel,
-                                ReorderBufferChange *change);
+                                                        ReorderBufferTXN *txn, Relation rel,
+                                                        ReorderBufferChange *change);
 static void pg_decode_truncate(LogicalDecodingContext *ctx,
-                                  ReorderBufferTXN *txn,
-                                  int nrelations, Relation relations[],
-                                  ReorderBufferChange *change);
+                                                          ReorderBufferTXN *txn,
+                                                          int nrelations, Relation relations[],
+                                                          ReorderBufferChange *change);
 static bool pg_decode_filter(LogicalDecodingContext *ctx,
-                                RepOriginId origin_id);
+                                                        RepOriginId origin_id);
 static void pg_decode_message(LogicalDecodingContext *ctx,
-                                 ReorderBufferTXN *txn, XLogRecPtr message_lsn,
-                                 bool transactional, const char *prefix,
-                                 Size sz, const char *message);
+                                                         ReorderBufferTXN *txn, XLogRecPtr message_lsn,
+                                                         bool transactional, const char *prefix,
+                                                         Size sz, const char *message);
 
 void
 _PG_init(void)
index 3611d0583315eb983b2f9afac8e6c17f37f164a2..e6dbf6bc0dc842f2a06c28fac4a52d6174498b9a 100644 (file)
@@ -55,20 +55,20 @@ typedef struct
 } SystemRowsSamplerData;
 
 static void system_rows_samplescangetsamplesize(PlannerInfo *root,
-                                                                       RelOptInfo *baserel,
-                                                                       List *paramexprs,
-                                                                       BlockNumber *pages,
-                                                                       double *tuples);
+                                                                                               RelOptInfo *baserel,
+                                                                                               List *paramexprs,
+                                                                                               BlockNumber *pages,
+                                                                                               double *tuples);
 static void system_rows_initsamplescan(SampleScanState *node,
-                                                  int eflags);
+                                                                          int eflags);
 static void system_rows_beginsamplescan(SampleScanState *node,
-                                                       Datum *params,
-                                                       int nparams,
-                                                       uint32 seed);
+                                                                               Datum *params,
+                                                                               int nparams,
+                                                                               uint32 seed);
 static BlockNumber system_rows_nextsampleblock(SampleScanState *node, BlockNumber nblocks);
 static OffsetNumber system_rows_nextsampletuple(SampleScanState *node,
-                                                       BlockNumber blockno,
-                                                       OffsetNumber maxoffset);
+                                                                                               BlockNumber blockno,
+                                                                                               OffsetNumber maxoffset);
 static uint32 random_relative_prime(uint32 n, SamplerRandomState randstate);
 
 
index ab9f685f0afb4ae19c70fdfb22732f03667568f9..ed486c4696b28700219667f94d167f9a16a02026 100644 (file)
@@ -55,20 +55,20 @@ typedef struct
 } SystemTimeSamplerData;
 
 static void system_time_samplescangetsamplesize(PlannerInfo *root,
-                                                                       RelOptInfo *baserel,
-                                                                       List *paramexprs,
-                                                                       BlockNumber *pages,
-                                                                       double *tuples);
+                                                                                               RelOptInfo *baserel,
+                                                                                               List *paramexprs,
+                                                                                               BlockNumber *pages,
+                                                                                               double *tuples);
 static void system_time_initsamplescan(SampleScanState *node,
-                                                  int eflags);
+                                                                          int eflags);
 static void system_time_beginsamplescan(SampleScanState *node,
-                                                       Datum *params,
-                                                       int nparams,
-                                                       uint32 seed);
+                                                                               Datum *params,
+                                                                               int nparams,
+                                                                               uint32 seed);
 static BlockNumber system_time_nextsampleblock(SampleScanState *node, BlockNumber nblocks);
 static OffsetNumber system_time_nextsampletuple(SampleScanState *node,
-                                                       BlockNumber blockno,
-                                                       OffsetNumber maxoffset);
+                                                                                               BlockNumber blockno,
+                                                                                               OffsetNumber maxoffset);
 static uint32 random_relative_prime(uint32 n, SamplerRandomState randstate);
 
 
index 95e580df0886e726058ec40bb03a0e680c253801..1e5b71d9a02001a4523449b2eba40289284147ca 100644 (file)
@@ -41,16 +41,16 @@ typedef struct
 /* local declarations */
 
 static xmlChar *pgxmlNodeSetToText(xmlNodeSetPtr nodeset,
-                                  xmlChar *toptagname, xmlChar *septagname,
-                                  xmlChar *plainsep);
+                                                                  xmlChar *toptagname, xmlChar *septagname,
+                                                                  xmlChar *plainsep);
 
 static text *pgxml_result_to_text(xmlXPathObjectPtr res, xmlChar *toptag,
-                                        xmlChar *septag, xmlChar *plainsep);
+                                                                 xmlChar *septag, xmlChar *plainsep);
 
 static xmlChar *pgxml_texttoxmlchar(text *textstring);
 
 static xmlXPathObjectPtr pgxml_xpath(text *document, xmlChar *xpath,
-                       xpath_workspace *workspace);
+                                                                        xpath_workspace *workspace);
 
 static void cleanup_workspace(xpath_workspace *workspace);
 
index aba234c0af896e226e641ed78fa36e71044e9bd4..ae7b729edd97acc711ae471d5345e6ddb8aec6fd 100644 (file)
@@ -67,13 +67,13 @@ typedef struct BrinOpaque
 #define BRIN_ALL_BLOCKRANGES   InvalidBlockNumber
 
 static BrinBuildState *initialize_brin_buildstate(Relation idxRel,
-                                                  BrinRevmap *revmap, BlockNumber pagesPerRange);
+                                                                                                 BrinRevmap *revmap, BlockNumber pagesPerRange);
 static void terminate_brin_buildstate(BrinBuildState *state);
 static void brinsummarize(Relation index, Relation heapRel, BlockNumber pageRange,
-                         bool include_partial, double *numSummarized, double *numExisting);
+                                                 bool include_partial, double *numSummarized, double *numExisting);
 static void form_and_insert_tuple(BrinBuildState *state);
 static void union_tuples(BrinDesc *bdesc, BrinMemTuple *a,
-                        BrinTuple *b);
+                                                BrinTuple *b);
 static void brin_vacuum_scan(Relation idxrel, BufferAccessStrategy strategy);
 
 
index 60f857f02dffe96286cf221228635a35a679ccf3..332a854af6ad9c8b2272367899d138f359fadcd0 100644 (file)
@@ -82,9 +82,9 @@ typedef struct InclusionOpaque
 } InclusionOpaque;
 
 static FmgrInfo *inclusion_get_procinfo(BrinDesc *bdesc, uint16 attno,
-                                          uint16 procnum);
+                                                                               uint16 procnum);
 static FmgrInfo *inclusion_get_strategy_procinfo(BrinDesc *bdesc, uint16 attno,
-                                                               Oid subtype, uint16 strategynum);
+                                                                                                Oid subtype, uint16 strategynum);
 
 
 /*
index a10c2062314f735b4d269dcecf03fe5d3c67eed6..ad0d18ed39fc3d99191fd3f0be0c2b237a62182f 100644 (file)
@@ -30,7 +30,7 @@ typedef struct MinmaxOpaque
 } MinmaxOpaque;
 
 static FmgrInfo *minmax_get_strategy_procinfo(BrinDesc *bdesc, uint16 attno,
-                                                        Oid subtype, uint16 strategynum);
+                                                                                         Oid subtype, uint16 strategynum);
 
 
 Datum
index fcc468ced99484088b1f22c5d22c24908df433e8..f907b4bc297e70c55d6f91422586c17dc713b89b 100644 (file)
@@ -34,7 +34,7 @@
                                   MAXALIGN(sizeof(BrinSpecialSpace))))
 
 static Buffer brin_getinsertbuffer(Relation irel, Buffer oldbuf, Size itemsz,
-                                        bool *extended);
+                                                                  bool *extended);
 static Size br_page_get_freespace(Page page);
 static void brin_initialize_empty_new_buffer(Relation idxrel, Buffer buffer);
 
index 1bf36d6f5cde103c3d45ec6ee5e6e7cf46071454..e2bfbf8a680e1b9c998349cd658e4a3be8baa818 100644 (file)
@@ -57,10 +57,10 @@ struct BrinRevmap
 
 
 static BlockNumber revmap_get_blkno(BrinRevmap *revmap,
-                                BlockNumber heapBlk);
+                                                                       BlockNumber heapBlk);
 static Buffer revmap_get_buffer(BrinRevmap *revmap, BlockNumber heapBlk);
 static BlockNumber revmap_extend_and_get_blkno(BrinRevmap *revmap,
-                                                       BlockNumber heapBlk);
+                                                                                          BlockNumber heapBlk);
 static void revmap_physical_extend(BrinRevmap *revmap);
 
 /*
index a5bc6f5749f3f1d0c72e9e74d17a93117e537c6b..5abb472ee45ea67f35ca263560d982cdd2c8317e 100644 (file)
@@ -40,8 +40,8 @@
 
 
 static inline void brin_deconstruct_tuple(BrinDesc *brdesc,
-                                          char *tp, bits8 *nullbits, bool nulls,
-                                          Datum *values, bool *allnulls, bool *hasnulls);
+                                                                                 char *tp, bits8 *nullbits, bool nulls,
+                                                                                 Datum *values, bool *allnulls, bool *hasnulls);
 
 
 /*
index 44add482d3ec1ec6b9ab924217f1146db30b7426..24d6cd024923d8ff1f80d717ea6bc1965683ed05 100644 (file)
@@ -25,7 +25,7 @@
 
 
 static void printtup_startup(DestReceiver *self, int operation,
-                                TupleDesc typeinfo);
+                                                        TupleDesc typeinfo);
 static bool printtup(TupleTableSlot *slot, DestReceiver *self);
 static bool printtup_20(TupleTableSlot *slot, DestReceiver *self);
 static bool printtup_internal_20(TupleTableSlot *slot, DestReceiver *self);
@@ -33,9 +33,9 @@ static void printtup_shutdown(DestReceiver *self);
 static void printtup_destroy(DestReceiver *self);
 
 static void SendRowDescriptionCols_2(StringInfo buf, TupleDesc typeinfo,
-                                                List *targetlist, int16 *formats);
+                                                                        List *targetlist, int16 *formats);
 static void SendRowDescriptionCols_3(StringInfo buf, TupleDesc typeinfo,
-                                                List *targetlist, int16 *formats);
+                                                                        List *targetlist, int16 *formats);
 
 /* ----------------------------------------------------------------
  *             printtup / debugtup support
index cfbabb52650b9f49c9b87b8146b2326dd8191730..4d0d24be0ba62c3101658949672123389f51e68f 100644 (file)
@@ -475,7 +475,7 @@ static bool need_initialization = true;
 
 static void initialize_reloptions(void);
 static void parse_one_reloption(relopt_value *option, char *text_str,
-                                       int text_len, bool validate);
+                                                               int text_len, bool validate);
 
 /*
  * initialize_reloptions
index 9f82eef8c391ca528e2d5d9ce0621458e05311ff..11a8ed7bbc29512b77f15fc9f2524eb78eb5cabc 100644 (file)
 
 static void ginFindParents(GinBtree btree, GinBtreeStack *stack);
 static bool ginPlaceToPage(GinBtree btree, GinBtreeStack *stack,
-                          void *insertdata, BlockNumber updateblkno,
-                          Buffer childbuf, GinStatsData *buildStats);
+                                                  void *insertdata, BlockNumber updateblkno,
+                                                  Buffer childbuf, GinStatsData *buildStats);
 static void ginFinishSplit(GinBtree btree, GinBtreeStack *stack,
-                          bool freestack, GinStatsData *buildStats);
+                                                  bool freestack, GinStatsData *buildStats);
 
 /*
  * Lock buffer by needed method for search.
index fb085c7dd84a3167d079d88fb30e72c6566a09ce..57c3b830d85b4704141936f333b08a4ff9bc59c7 100644 (file)
@@ -104,20 +104,20 @@ typedef struct
 
 static ItemPointer dataLeafPageGetUncompressed(Page page, int *nitems);
 static void dataSplitPageInternal(GinBtree btree, Buffer origbuf,
-                                         GinBtreeStack *stack,
-                                         void *insertdata, BlockNumber updateblkno,
-                                         Page *newlpage, Page *newrpage);
+                                                                 GinBtreeStack *stack,
+                                                                 void *insertdata, BlockNumber updateblkno,
+                                                                 Page *newlpage, Page *newrpage);
 
 static disassembledLeaf *disassembleLeaf(Page page);
 static bool leafRepackItems(disassembledLeaf *leaf, ItemPointer remaining);
 static bool addItemsToLeaf(disassembledLeaf *leaf, ItemPointer newItems,
-                          int nNewItems);
+                                                  int nNewItems);
 
 static void computeLeafRecompressWALData(disassembledLeaf *leaf);
 static void dataPlaceToPageLeafRecompress(Buffer buf, disassembledLeaf *leaf);
 static void dataPlaceToPageLeafSplit(disassembledLeaf *leaf,
-                                                ItemPointerData lbound, ItemPointerData rbound,
-                                                Page lpage, Page rpage);
+                                                                        ItemPointerData lbound, ItemPointerData rbound,
+                                                                        Page lpage, Page rpage);
 
 /*
  * Read TIDs from leaf data page to single uncompressed array. The TIDs are
index 1f5ba33d5124c957dd6e06e24d5af83aeee45ea4..b87ff26f9c4e122647e39714ddb6042a231de43b 100644 (file)
 #include "utils/rel.h"
 
 static void entrySplitPage(GinBtree btree, Buffer origbuf,
-                          GinBtreeStack *stack,
-                          GinBtreeEntryInsertData *insertData,
-                          BlockNumber updateblkno,
-                          Page *newlpage, Page *newrpage);
+                                                  GinBtreeStack *stack,
+                                                  GinBtreeEntryInsertData *insertData,
+                                                  BlockNumber updateblkno,
+                                                  Page *newlpage, Page *newrpage);
 
 /*
  * Form a tuple for entry tree.
index d70a138f54dbfccf01e5d830f521a19228359f07..45c00aaa87a65b9a5b95c3ce77fbcaf40e176369 100644 (file)
 /* non-export function prototypes */
 static void gistfixsplit(GISTInsertState *state, GISTSTATE *giststate);
 static bool gistinserttuple(GISTInsertState *state, GISTInsertStack *stack,
-                               GISTSTATE *giststate, IndexTuple tuple, OffsetNumber oldoffnum);
+                                                       GISTSTATE *giststate, IndexTuple tuple, OffsetNumber oldoffnum);
 static bool gistinserttuples(GISTInsertState *state, GISTInsertStack *stack,
-                                GISTSTATE *giststate,
-                                IndexTuple *tuples, int ntup, OffsetNumber oldoffnum,
-                                Buffer leftchild, Buffer rightchild,
-                                bool unlockbuf, bool unlockleftchild);
+                                                        GISTSTATE *giststate,
+                                                        IndexTuple *tuples, int ntup, OffsetNumber oldoffnum,
+                                                        Buffer leftchild, Buffer rightchild,
+                                                        bool unlockbuf, bool unlockleftchild);
 static void gistfinishsplit(GISTInsertState *state, GISTInsertStack *stack,
-                               GISTSTATE *giststate, List *splitinfo, bool releasebuf);
+                                                       GISTSTATE *giststate, List *splitinfo, bool releasebuf);
 static void gistprunepage(Relation rel, Page page, Buffer buffer,
-                         Relation heapRel);
+                                                 Relation heapRel);
 
 
 #define ROTATEDIST(d) do { \
index 8e81eda5176c4c336f600d47114dae650cc5955f..ecef0ff0724ae2ce0d9e6b41060631cee55bf93e 100644 (file)
@@ -80,30 +80,30 @@ typedef struct
 static void gistInitBuffering(GISTBuildState *buildstate);
 static int     calculatePagesPerBuffer(GISTBuildState *buildstate, int levelStep);
 static void gistBuildCallback(Relation index,
-                                 HeapTuple htup,
-                                 Datum *values,
-                                 bool *isnull,
-                                 bool tupleIsAlive,
-                                 void *state);
+                                                         HeapTuple htup,
+                                                         Datum *values,
+                                                         bool *isnull,
+                                                         bool tupleIsAlive,
+                                                         void *state);
 static void gistBufferingBuildInsert(GISTBuildState *buildstate,
-                                                IndexTuple itup);
+                                                                        IndexTuple itup);
 static bool gistProcessItup(GISTBuildState *buildstate, IndexTuple itup,
-                               BlockNumber startblkno, int startlevel);
+                                                       BlockNumber startblkno, int startlevel);
 static BlockNumber gistbufferinginserttuples(GISTBuildState *buildstate,
-                                                 Buffer buffer, int level,
-                                                 IndexTuple *itup, int ntup, OffsetNumber oldoffnum,
-                                                 BlockNumber parentblk, OffsetNumber downlinkoffnum);
+                                                                                        Buffer buffer, int level,
+                                                                                        IndexTuple *itup, int ntup, OffsetNumber oldoffnum,
+                                                                                        BlockNumber parentblk, OffsetNumber downlinkoffnum);
 static Buffer gistBufferingFindCorrectParent(GISTBuildState *buildstate,
-                                                          BlockNumber childblkno, int level,
-                                                          BlockNumber *parentblk,
-                                                          OffsetNumber *downlinkoffnum);
+                                                                                        BlockNumber childblkno, int level,
+                                                                                        BlockNumber *parentblk,
+                                                                                        OffsetNumber *downlinkoffnum);
 static void gistProcessEmptyingQueue(GISTBuildState *buildstate);
 static void gistEmptyAllBuffers(GISTBuildState *buildstate);
 static int     gistGetMaxLevel(Relation index);
 
 static void gistInitParentMap(GISTBuildState *buildstate);
 static void gistMemorizeParent(GISTBuildState *buildstate, BlockNumber child,
-                                  BlockNumber parent);
+                                                          BlockNumber parent);
 static void gistMemorizeAllDownlinks(GISTBuildState *buildstate, Buffer parent);
 static BlockNumber gistGetParent(GISTBuildState *buildstate, BlockNumber child);
 
index 4f2363e21e4be54b461c2aa37d5ddb40e778cb64..d71354140ed3bcfaaeddfee760ed4fa487c86e57 100644 (file)
 
 static GISTNodeBufferPage *gistAllocateNewPageBuffer(GISTBuildBuffers *gfbb);
 static void gistAddLoadedBuffer(GISTBuildBuffers *gfbb,
-                                       GISTNodeBuffer *nodeBuffer);
+                                                               GISTNodeBuffer *nodeBuffer);
 static void gistLoadNodeBuffer(GISTBuildBuffers *gfbb,
-                                  GISTNodeBuffer *nodeBuffer);
+                                                          GISTNodeBuffer *nodeBuffer);
 static void gistUnloadNodeBuffer(GISTBuildBuffers *gfbb,
-                                        GISTNodeBuffer *nodeBuffer);
+                                                                GISTNodeBuffer *nodeBuffer);
 static void gistPlaceItupToPage(GISTNodeBufferPage *pageBuffer,
-                                       IndexTuple item);
+                                                               IndexTuple item);
 static void gistGetItupFromPage(GISTNodeBufferPage *pageBuffer,
-                                       IndexTuple *item);
+                                                               IndexTuple *item);
 static long gistBuffersGetFreeBlock(GISTBuildBuffers *gfbb);
 static void gistBuffersReleaseBlock(GISTBuildBuffers *gfbb, long blocknum);
 
index c9da2307be88c8c128b5511bb343408c09e06f5e..1826b51bbb4bc3762583df03d5e63ef90a92286d 100644 (file)
@@ -27,9 +27,9 @@
 
 
 static bool gist_box_leaf_consistent(BOX *key, BOX *query,
-                                                StrategyNumber strategy);
+                                                                        StrategyNumber strategy);
 static bool rtree_internal_consistent(BOX *key, BOX *query,
-                                                 StrategyNumber strategy);
+                                                                         StrategyNumber strategy);
 
 /* Minimum accepted ratio of split */
 #define LIMIT_RATIO 0.3
index e2029d842c03b42ec6d60141c0f966a36691ea7a..4270226eee2926f2e8882502c93b4e2ef50fbc7a 100644 (file)
@@ -52,14 +52,14 @@ typedef struct
 } GistVacState;
 
 static void gistvacuumscan(IndexVacuumInfo *info, GistBulkDeleteResult *stats,
-                          IndexBulkDeleteCallback callback, void *callback_state);
+                                                  IndexBulkDeleteCallback callback, void *callback_state);
 static void gistvacuumpage(GistVacState *vstate, BlockNumber blkno,
-                          BlockNumber orig_blkno);
+                                                  BlockNumber orig_blkno);
 static void gistvacuum_delete_empty_pages(IndexVacuumInfo *info,
-                                                         GistBulkDeleteResult *stats);
+                                                                                 GistBulkDeleteResult *stats);
 static bool gistdeletepage(IndexVacuumInfo *info, GistBulkDeleteResult *stats,
-                          Buffer buffer, OffsetNumber downlink,
-                          Buffer leafBuffer);
+                                                  Buffer buffer, OffsetNumber downlink,
+                                                  Buffer leafBuffer);
 
 /* allocate the 'stats' struct that's kept over vacuum stages */
 static GistBulkDeleteResult *
index 048e40e46faf5c3eda581ae1124f428d612946d1..e9f2c84af1af59f27266f7aaefe254e79e5a1b93 100644 (file)
@@ -43,11 +43,11 @@ typedef struct
 } HashBuildState;
 
 static void hashbuildCallback(Relation index,
-                                 HeapTuple htup,
-                                 Datum *values,
-                                 bool *isnull,
-                                 bool tupleIsAlive,
-                                 void *state);
+                                                         HeapTuple htup,
+                                                         Datum *values,
+                                                         bool *isnull,
+                                                         bool tupleIsAlive,
+                                                         void *state);
 
 
 /*
index e17f01718f26185cb337fb785f6d271044fe6512..5321762d5ea9993ead629eb3c5eacfd50ec8882e 100644 (file)
@@ -24,7 +24,7 @@
 #include "storage/predicate.h"
 
 static void _hash_vacuum_one_page(Relation rel, Relation hrel,
-                                         Buffer metabuf, Buffer buf);
+                                                                 Buffer metabuf, Buffer buf);
 
 /*
  *     _hash_doinsert() -- Handle insertion of a single index tuple.
index b7adfdb826e49e22c732bb3b2e74853acb9dce5b..376ee2a63b524e065e4b041225e7fc7dc7bc2eda 100644 (file)
 
 
 static bool _hash_alloc_buckets(Relation rel, BlockNumber firstblock,
-                                       uint32 nblocks);
+                                                               uint32 nblocks);
 static void _hash_splitbucket(Relation rel, Buffer metabuf,
-                                 Bucket obucket, Bucket nbucket,
-                                 Buffer obuf,
-                                 Buffer nbuf,
-                                 HTAB *htab,
-                                 uint32 maxbucket,
-                                 uint32 highmask, uint32 lowmask);
+                                                         Bucket obucket, Bucket nbucket,
+                                                         Buffer obuf,
+                                                         Buffer nbuf,
+                                                         HTAB *htab,
+                                                         uint32 maxbucket,
+                                                         uint32 highmask, uint32 lowmask);
 static void log_split_page(Relation rel, Buffer buf);
 
 
index 61c90e6bb781bcdcb75b5f50f5d92b3476744c0d..79ae499198d29d607093f123d3229057be18622d 100644 (file)
 #include "storage/predicate.h"
 
 static bool _hash_readpage(IndexScanDesc scan, Buffer *bufP,
-                          ScanDirection dir);
-static int _hash_load_qualified_items(IndexScanDesc scan, Page page,
-                                                  OffsetNumber offnum, ScanDirection dir);
+                                                  ScanDirection dir);
+static int     _hash_load_qualified_items(IndexScanDesc scan, Page page,
+                                                                          OffsetNumber offnum, ScanDirection dir);
 static inline void _hash_saveitem(HashScanOpaque so, int itemIndex,
-                          OffsetNumber offnum, IndexTuple itup);
+                                                                 OffsetNumber offnum, IndexTuple itup);
 static void _hash_readnext(IndexScanDesc scan, Buffer *bufp,
-                          Page *pagep, HashPageOpaque *opaquep);
+                                                  Page *pagep, HashPageOpaque *opaquep);
 
 /*
  *     _hash_next() -- Get the next item in a scan.
index 723e153705df663f7a9816e72cd23d847a47d0fa..6c342635e84085eb62de56f232dfc71e62c6d9d9 100644 (file)
 
 
 static HeapTuple heap_prepare_insert(Relation relation, HeapTuple tup,
-                                       TransactionId xid, CommandId cid, int options);
+                                                                        TransactionId xid, CommandId cid, int options);
 static XLogRecPtr log_heap_update(Relation reln, Buffer oldbuf,
-                               Buffer newbuf, HeapTuple oldtup,
-                               HeapTuple newtup, HeapTuple old_key_tup,
-                               bool all_visible_cleared, bool new_all_visible_cleared);
+                                                                 Buffer newbuf, HeapTuple oldtup,
+                                                                 HeapTuple newtup, HeapTuple old_key_tup,
+                                                                 bool all_visible_cleared, bool new_all_visible_cleared);
 static Bitmapset *HeapDetermineModifiedColumns(Relation relation,
-                                                        Bitmapset *interesting_cols,
-                                                        HeapTuple oldtup, HeapTuple newtup);
+                                                                                          Bitmapset *interesting_cols,
+                                                                                          HeapTuple oldtup, HeapTuple newtup);
 static bool heap_acquire_tuplock(Relation relation, ItemPointer tid,
-                                        LockTupleMode mode, LockWaitPolicy wait_policy,
-                                        bool *have_tuple_lock);
+                                                                LockTupleMode mode, LockWaitPolicy wait_policy,
+                                                                bool *have_tuple_lock);
 static void compute_new_xmax_infomask(TransactionId xmax, uint16 old_infomask,
-                                                 uint16 old_infomask2, TransactionId add_to_xmax,
-                                                 LockTupleMode mode, bool is_update,
-                                                 TransactionId *result_xmax, uint16 *result_infomask,
-                                                 uint16 *result_infomask2);
+                                                                         uint16 old_infomask2, TransactionId add_to_xmax,
+                                                                         LockTupleMode mode, bool is_update,
+                                                                         TransactionId *result_xmax, uint16 *result_infomask,
+                                                                         uint16 *result_infomask2);
 static TM_Result heap_lock_updated_tuple(Relation rel, HeapTuple tuple,
-                                               ItemPointer ctid, TransactionId xid,
-                                               LockTupleMode mode);
+                                                                                ItemPointer ctid, TransactionId xid,
+                                                                                LockTupleMode mode);
 static void GetMultiXactIdHintBits(MultiXactId multi, uint16 *new_infomask,
-                                          uint16 *new_infomask2);
+                                                                  uint16 *new_infomask2);
 static TransactionId MultiXactIdGetUpdateXid(TransactionId xmax,
-                                               uint16 t_infomask);
+                                                                                        uint16 t_infomask);
 static bool DoesMultiXactIdConflict(MultiXactId multi, uint16 infomask,
-                                               LockTupleMode lockmode);
+                                                                       LockTupleMode lockmode);
 static void MultiXactIdWait(MultiXactId multi, MultiXactStatus status, uint16 infomask,
-                               Relation rel, ItemPointer ctid, XLTW_Oper oper,
-                               int *remaining);
+                                                       Relation rel, ItemPointer ctid, XLTW_Oper oper,
+                                                       int *remaining);
 static bool ConditionalMultiXactIdWait(MultiXactId multi, MultiXactStatus status,
-                                                  uint16 infomask, Relation rel, int *remaining);
+                                                                          uint16 infomask, Relation rel, int *remaining);
 static XLogRecPtr log_heap_new_cid(Relation relation, HeapTuple tup);
 static HeapTuple ExtractReplicaIdentity(Relation rel, HeapTuple tup, bool key_modified,
-                                          bool *copy);
+                                                                               bool *copy);
 
 
 /*
index 674c1d3a818e1bb47ef84ebe27ccce52cd4082c2..a4a28e88ec99c363142b74d46cce1b35292e3f36 100644 (file)
 
 
 static void reform_and_rewrite_tuple(HeapTuple tuple,
-                                                Relation OldHeap, Relation NewHeap,
-                                                Datum *values, bool *isnull, RewriteState rwstate);
+                                                                        Relation OldHeap, Relation NewHeap,
+                                                                        Datum *values, bool *isnull, RewriteState rwstate);
 
 static bool SampleHeapTupleVisible(TableScanDesc scan, Buffer buffer,
-                                          HeapTuple tuple,
-                                          OffsetNumber tupoffset);
+                                                                  HeapTuple tuple,
+                                                                  OffsetNumber tupoffset);
 
 static BlockNumber heapam_scan_get_blocks_done(HeapScanDesc hscan);
 
index 417a2bf8e6ea77cff43e64eb93441acda92e3079..0efe3ce999540e9e442d1bfba7471e74014e7a57 100644 (file)
@@ -43,13 +43,13 @@ typedef struct
 } PruneState;
 
 /* Local functions */
-static int heap_prune_chain(Relation relation, Buffer buffer,
-                                OffsetNumber rootoffnum,
-                                TransactionId OldestXmin,
-                                PruneState *prstate);
+static int     heap_prune_chain(Relation relation, Buffer buffer,
+                                                        OffsetNumber rootoffnum,
+                                                        TransactionId OldestXmin,
+                                                        PruneState *prstate);
 static void heap_prune_record_prunable(PruneState *prstate, TransactionId xid);
 static void heap_prune_record_redirect(PruneState *prstate,
-                                                  OffsetNumber offnum, OffsetNumber rdoffnum);
+                                                                          OffsetNumber offnum, OffsetNumber rdoffnum);
 static void heap_prune_record_dead(PruneState *prstate, OffsetNumber offnum);
 static void heap_prune_record_unused(PruneState *prstate, OffsetNumber offnum);
 
index c0a45dc75a94c4cff8e414e7da0c6950d5e2c596..b615940ed3ea9e4009dff88249b966ce5c4762fd 100644 (file)
@@ -116,7 +116,7 @@ static ss_scan_locations_t *scan_locations;
 
 /* prototypes for internal functions */
 static BlockNumber ss_search(RelFileNode relfilenode,
-                 BlockNumber location, bool set);
+                                                        BlockNumber location, bool set);
 
 
 /*
index e10715a7755273c5deeacd2b9eac4dc09bb44d6c..55d6e91d1c3882f48e13c2b422758ae6e9a636c5 100644 (file)
@@ -68,20 +68,20 @@ typedef struct toast_compress_header
 
 static void toast_delete_datum(Relation rel, Datum value, bool is_speculative);
 static Datum toast_save_datum(Relation rel, Datum value,
-                                struct varlena *oldexternal, int options);
+                                                         struct varlena *oldexternal, int options);
 static bool toastrel_valueid_exists(Relation toastrel, Oid valueid);
 static bool toastid_valueid_exists(Oid toastrelid, Oid valueid);
 static struct varlena *toast_fetch_datum(struct varlena *attr);
 static struct varlena *toast_fetch_datum_slice(struct varlena *attr,
-                                               int32 sliceoffset, int32 length);
+                                                                                          int32 sliceoffset, int32 length);
 static struct varlena *toast_decompress_datum(struct varlena *attr);
 static struct varlena *toast_decompress_datum_slice(struct varlena *attr, int32 slicelength);
-static int toast_open_indexes(Relation toastrel,
-                                  LOCKMODE lock,
-                                  Relation **toastidxs,
-                                  int *num_indexes);
+static int     toast_open_indexes(Relation toastrel,
+                                                          LOCKMODE lock,
+                                                          Relation **toastidxs,
+                                                          int *num_indexes);
 static void toast_close_indexes(Relation *toastidxs, int num_indexes,
-                                       LOCKMODE lock);
+                                                               LOCKMODE lock);
 static void init_toast_snapshot(Snapshot toast_snapshot);
 
 
index 637e47c08ce12067906e5f20be61716f6bfb3219..a3c4a1df3b4b28953ab1dfcd43f3d566eecac555 100644 (file)
@@ -151,30 +151,30 @@ static BufferAccessStrategy vac_strategy;
 
 /* non-export function prototypes */
 static void lazy_scan_heap(Relation onerel, VacuumParams *params,
-                          LVRelStats *vacrelstats, Relation *Irel, int nindexes,
-                          bool aggressive);
+                                                  LVRelStats *vacrelstats, Relation *Irel, int nindexes,
+                                                  bool aggressive);
 static void lazy_vacuum_heap(Relation onerel, LVRelStats *vacrelstats);
 static bool lazy_check_needs_freeze(Buffer buf, bool *hastup);
 static void lazy_vacuum_index(Relation indrel,
-                                 IndexBulkDeleteResult **stats,
-                                 LVRelStats *vacrelstats);
+                                                         IndexBulkDeleteResult **stats,
+                                                         LVRelStats *vacrelstats);
 static void lazy_cleanup_index(Relation indrel,
-                                  IndexBulkDeleteResult *stats,
-                                  LVRelStats *vacrelstats);
-static int lazy_vacuum_page(Relation onerel, BlockNumber blkno, Buffer buffer,
-                                int tupindex, LVRelStats *vacrelstats, Buffer *vmbuffer);
+                                                          IndexBulkDeleteResult *stats,
+                                                          LVRelStats *vacrelstats);
+static int     lazy_vacuum_page(Relation onerel, BlockNumber blkno, Buffer buffer,
+                                                        int tupindex, LVRelStats *vacrelstats, Buffer *vmbuffer);
 static bool should_attempt_truncation(VacuumParams *params,
-                                                 LVRelStats *vacrelstats);
+                                                                         LVRelStats *vacrelstats);
 static void lazy_truncate_heap(Relation onerel, LVRelStats *vacrelstats);
 static BlockNumber count_nondeletable_pages(Relation onerel,
-                                                LVRelStats *vacrelstats);
+                                                                                       LVRelStats *vacrelstats);
 static void lazy_space_alloc(LVRelStats *vacrelstats, BlockNumber relblocks);
 static void lazy_record_dead_tuple(LVRelStats *vacrelstats,
-                                          ItemPointer itemptr);
+                                                                  ItemPointer itemptr);
 static bool lazy_tid_reaped(ItemPointer itemptr, void *state);
 static int     vac_cmp_itemptr(const void *left, const void *right);
 static bool heap_page_is_all_visible(Relation rel, Buffer buf,
-                                                TransactionId *visibility_cutoff_xid, bool *all_frozen);
+                                                                        TransactionId *visibility_cutoff_xid, bool *all_frozen);
 
 
 /*
index 0fc9139badb67b0f38c0c57e562605662d34d3c7..aefdd2916de08a854c690df7dc7636041fc097db 100644 (file)
@@ -99,8 +99,8 @@ do { \
 } while(0)
 
 static IndexScanDesc index_beginscan_internal(Relation indexRelation,
-                                                int nkeys, int norderbys, Snapshot snapshot,
-                                                ParallelIndexScanDesc pscan, bool temp_snap);
+                                                                                         int nkeys, int norderbys, Snapshot snapshot,
+                                                                                         ParallelIndexScanDesc pscan, bool temp_snap);
 
 
 /* ----------------------------------------------------------------
index 36a570045ac1fdb6c7cf76f6f4a12fba839e3fde..2eccc9902364d068dce86e4ca4aebb6b41fdfab6 100644 (file)
 static Buffer _bt_newroot(Relation rel, Buffer lbuf, Buffer rbuf);
 
 static TransactionId _bt_check_unique(Relation rel, BTInsertState insertstate,
-                                Relation heapRel,
-                                IndexUniqueCheck checkUnique, bool *is_unique,
-                                uint32 *speculativeToken);
+                                                                         Relation heapRel,
+                                                                         IndexUniqueCheck checkUnique, bool *is_unique,
+                                                                         uint32 *speculativeToken);
 static OffsetNumber _bt_findinsertloc(Relation rel,
-                                 BTInsertState insertstate,
-                                 bool checkingunique,
-                                 BTStack stack,
-                                 Relation heapRel);
+                                                                         BTInsertState insertstate,
+                                                                         bool checkingunique,
+                                                                         BTStack stack,
+                                                                         Relation heapRel);
 static void _bt_stepright(Relation rel, BTInsertState insertstate, BTStack stack);
 static void _bt_insertonpg(Relation rel, BTScanInsert itup_key,
-                          Buffer buf,
-                          Buffer cbuf,
-                          BTStack stack,
-                          IndexTuple itup,
-                          OffsetNumber newitemoff,
-                          bool split_only_page);
+                                                  Buffer buf,
+                                                  Buffer cbuf,
+                                                  BTStack stack,
+                                                  IndexTuple itup,
+                                                  OffsetNumber newitemoff,
+                                                  bool split_only_page);
 static Buffer _bt_split(Relation rel, BTScanInsert itup_key, Buffer buf,
-                 Buffer cbuf, OffsetNumber newitemoff, Size newitemsz,
-                 IndexTuple newitem);
+                                               Buffer cbuf, OffsetNumber newitemoff, Size newitemsz,
+                                               IndexTuple newitem);
 static void _bt_insert_parent(Relation rel, Buffer buf, Buffer rbuf,
-                                 BTStack stack, bool is_root, bool is_only);
+                                                         BTStack stack, bool is_root, bool is_only);
 static bool _bt_pgaddtup(Page page, Size itemsize, IndexTuple itup,
-                        OffsetNumber itup_off);
+                                                OffsetNumber itup_off);
 static void _bt_vacuum_one_page(Relation rel, Buffer buffer, Relation heapRel);
 
 /*
index e7c40cba973d348b28d29e95781b344c44388a6d..de4d4efc46a62fe81db58af3d0554765755f6825 100644 (file)
@@ -37,12 +37,12 @@ static void _bt_cachemetadata(Relation rel, BTMetaPageData *input);
 static BTMetaPageData *_bt_getmeta(Relation rel, Buffer metabuf);
 static bool _bt_mark_page_halfdead(Relation rel, Buffer buf, BTStack stack);
 static bool _bt_unlink_halfdead_page(Relation rel, Buffer leafbuf,
-                                                bool *rightsib_empty);
+                                                                        bool *rightsib_empty);
 static bool _bt_lock_branch_parent(Relation rel, BlockNumber child,
-                                          BTStack stack, Buffer *topparent, OffsetNumber *topoff,
-                                          BlockNumber *target, BlockNumber *rightsib);
+                                                                  BTStack stack, Buffer *topparent, OffsetNumber *topoff,
+                                                                  BlockNumber *target, BlockNumber *rightsib);
 static void _bt_log_reuse_page(Relation rel, BlockNumber blkno,
-                                  TransactionId latestRemovedXid);
+                                                          TransactionId latestRemovedXid);
 
 /*
  *     _bt_initmetapage() -- Fill a page buffer with a correct metapage image
index 02fb352b94a85482af06d6beebb348a4f3e02eb8..85e54ac44b8e7a904f7d61e64045c9b73d9f1d28 100644 (file)
@@ -93,10 +93,10 @@ typedef struct BTParallelScanDescData *BTParallelScanDesc;
 
 
 static void btvacuumscan(IndexVacuumInfo *info, IndexBulkDeleteResult *stats,
-                        IndexBulkDeleteCallback callback, void *callback_state,
-                        BTCycleId cycleid, TransactionId *oldestBtpoXact);
+                                                IndexBulkDeleteCallback callback, void *callback_state,
+                                                BTCycleId cycleid, TransactionId *oldestBtpoXact);
 static void btvacuumpage(BTVacState *vstate, BlockNumber blkno,
-                        BlockNumber orig_blkno);
+                                                BlockNumber orig_blkno);
 
 
 /*
index dc42213ac6c73c2be339cafef5179326a07ded68..1f809c24a1166ce9b9a7cfcc97e45b18b37ba1aa 100644 (file)
 static void _bt_drop_lock_and_maybe_pin(IndexScanDesc scan, BTScanPos sp);
 static OffsetNumber _bt_binsrch(Relation rel, BTScanInsert key, Buffer buf);
 static bool _bt_readpage(IndexScanDesc scan, ScanDirection dir,
-                        OffsetNumber offnum);
+                                                OffsetNumber offnum);
 static void _bt_saveitem(BTScanOpaque so, int itemIndex,
-                        OffsetNumber offnum, IndexTuple itup);
+                                                OffsetNumber offnum, IndexTuple itup);
 static bool _bt_steppage(IndexScanDesc scan, ScanDirection dir);
 static bool _bt_readnextpage(IndexScanDesc scan, BlockNumber blkno, ScanDirection dir);
 static bool _bt_parallel_readpage(IndexScanDesc scan, BlockNumber blkno,
-                                         ScanDirection dir);
+                                                                 ScanDirection dir);
 static Buffer _bt_walk_left(Relation rel, Buffer buf, Snapshot snapshot);
 static bool _bt_endpoint(IndexScanDesc scan, ScanDirection dir);
 static inline void _bt_initialize_more_data(BTScanOpaque so, ScanDirection dir);
index d6fa5742384fb28d7ede2a65ed624e2109184fde..d0b9013caf401ae9529d604e60ee735a725c1fac 100644 (file)
@@ -273,34 +273,34 @@ typedef struct BTWriteState
 
 
 static double _bt_spools_heapscan(Relation heap, Relation index,
-                                       BTBuildState *buildstate, IndexInfo *indexInfo);
+                                                                 BTBuildState *buildstate, IndexInfo *indexInfo);
 static void _bt_spooldestroy(BTSpool *btspool);
 static void _bt_spool(BTSpool *btspool, ItemPointer self,
-                 Datum *values, bool *isnull);
+                                         Datum *values, bool *isnull);
 static void _bt_leafbuild(BTSpool *btspool, BTSpool *btspool2);
 static void _bt_build_callback(Relation index, HeapTuple htup, Datum *values,
-                                  bool *isnull, bool tupleIsAlive, void *state);
+                                                          bool *isnull, bool tupleIsAlive, void *state);
 static Page _bt_blnewpage(uint32 level);
 static BTPageState *_bt_pagestate(BTWriteState *wstate, uint32 level);
 static void _bt_slideleft(Page page);
 static void _bt_sortaddtup(Page page, Size itemsize,
-                          IndexTuple itup, OffsetNumber itup_off);
+                                                  IndexTuple itup, OffsetNumber itup_off);
 static void _bt_buildadd(BTWriteState *wstate, BTPageState *state,
-                        IndexTuple itup);
+                                                IndexTuple itup);
 static void _bt_uppershutdown(BTWriteState *wstate, BTPageState *state);
 static void _bt_load(BTWriteState *wstate,
-                BTSpool *btspool, BTSpool *btspool2);
+                                        BTSpool *btspool, BTSpool *btspool2);
 static void _bt_begin_parallel(BTBuildState *buildstate, bool isconcurrent,
-                                  int request);
+                                                          int request);
 static void _bt_end_parallel(BTLeader *btleader);
 static Size _bt_parallel_estimate_shared(Relation heap, Snapshot snapshot);
 static double _bt_parallel_heapscan(BTBuildState *buildstate,
-                                         bool *brokenhotchain);
+                                                                       bool *brokenhotchain);
 static void _bt_leader_participate_as_worker(BTBuildState *buildstate);
 static void _bt_parallel_scan_and_sort(BTSpool *btspool, BTSpool *btspool2,
-                                                  BTShared *btshared, Sharedsort *sharedsort,
-                                                  Sharedsort *sharedsort2, int sortmem,
-                                                  bool progress);
+                                                                          BTShared *btshared, Sharedsort *sharedsort,
+                                                                          Sharedsort *sharedsort2, int sortmem,
+                                                                          bool progress);
 
 
 /*
index d045fe0d10c3cd0396d08c31515ad4f18432a6df..f43ec6774b44a6186255fc32bbf705ba93d81c32 100644 (file)
@@ -65,25 +65,25 @@ typedef struct
 } FindSplitData;
 
 static void _bt_recsplitloc(FindSplitData *state,
-                               OffsetNumber firstoldonright, bool newitemonleft,
-                               int olddataitemstoleft, Size firstoldonrightsz);
+                                                       OffsetNumber firstoldonright, bool newitemonleft,
+                                                       int olddataitemstoleft, Size firstoldonrightsz);
 static void _bt_deltasortsplits(FindSplitData *state, double fillfactormult,
-                                       bool usemult);
+                                                               bool usemult);
 static int     _bt_splitcmp(const void *arg1, const void *arg2);
 static bool _bt_afternewitemoff(FindSplitData *state, OffsetNumber maxoff,
-                                       int leaffillfactor, bool *usemult);
+                                                               int leaffillfactor, bool *usemult);
 static bool _bt_adjacenthtid(ItemPointer lowhtid, ItemPointer highhtid);
 static OffsetNumber _bt_bestsplitloc(FindSplitData *state, int perfectpenalty,
-                                bool *newitemonleft);
-static int _bt_strategy(FindSplitData *state, SplitPoint *leftpage,
-                        SplitPoint *rightpage, FindSplitStrat *strategy);
+                                                                        bool *newitemonleft);
+static int     _bt_strategy(FindSplitData *state, SplitPoint *leftpage,
+                                                SplitPoint *rightpage, FindSplitStrat *strategy);
 static void _bt_interval_edges(FindSplitData *state,
-                                  SplitPoint **leftinterval, SplitPoint **rightinterval);
+                                                          SplitPoint **leftinterval, SplitPoint **rightinterval);
 static inline int _bt_split_penalty(FindSplitData *state, SplitPoint *split);
 static inline IndexTuple _bt_split_lastleft(FindSplitData *state,
-                                  SplitPoint *split);
+                                                                                       SplitPoint *split);
 static inline IndexTuple _bt_split_firstright(FindSplitData *state,
-                                        SplitPoint *split);
+                                                                                         SplitPoint *split);
 
 
 /*
index 1238d544cd3a2477f9d39da857bee2bbbe307810..431b8477e9556ccac47bfa10331f3675350828c6 100644 (file)
@@ -37,22 +37,22 @@ typedef struct BTSortArrayContext
 } BTSortArrayContext;
 
 static Datum _bt_find_extreme_element(IndexScanDesc scan, ScanKey skey,
-                                                StrategyNumber strat,
-                                                Datum *elems, int nelems);
-static int _bt_sort_array_elements(IndexScanDesc scan, ScanKey skey,
-                                               bool reverse,
-                                               Datum *elems, int nelems);
+                                                                         StrategyNumber strat,
+                                                                         Datum *elems, int nelems);
+static int     _bt_sort_array_elements(IndexScanDesc scan, ScanKey skey,
+                                                                       bool reverse,
+                                                                       Datum *elems, int nelems);
 static int     _bt_compare_array_elements(const void *a, const void *b, void *arg);
 static bool _bt_compare_scankey_args(IndexScanDesc scan, ScanKey op,
-                                                ScanKey leftarg, ScanKey rightarg,
-                                                bool *result);
+                                                                        ScanKey leftarg, ScanKey rightarg,
+                                                                        bool *result);
 static bool _bt_fix_scankey_strategy(ScanKey skey, int16 *indoption);
 static void _bt_mark_scankey_required(ScanKey skey);
 static bool _bt_check_rowcompare(ScanKey skey,
-                                        IndexTuple tuple, int tupnatts, TupleDesc tupdesc,
-                                        ScanDirection dir, bool *continuescan);
-static int _bt_keep_natts(Relation rel, IndexTuple lastleft,
-                          IndexTuple firstright, BTScanInsert itup_key);
+                                                                IndexTuple tuple, int tupnatts, TupleDesc tupdesc,
+                                                                ScanDirection dir, bool *continuescan);
+static int     _bt_keep_natts(Relation rel, IndexTuple lastleft,
+                                                  IndexTuple firstright, BTScanInsert itup_key);
 
 
 /*
index 42d373ab83ba30f373d3dc619e03c9094ad32167..5ff5bdbd5336a7716e1ca9cc03a857dc5cd5be53 100644 (file)
@@ -43,19 +43,19 @@ typedef struct
 
 
 static void bernoulli_samplescangetsamplesize(PlannerInfo *root,
-                                                                 RelOptInfo *baserel,
-                                                                 List *paramexprs,
-                                                                 BlockNumber *pages,
-                                                                 double *tuples);
+                                                                                         RelOptInfo *baserel,
+                                                                                         List *paramexprs,
+                                                                                         BlockNumber *pages,
+                                                                                         double *tuples);
 static void bernoulli_initsamplescan(SampleScanState *node,
-                                                int eflags);
+                                                                        int eflags);
 static void bernoulli_beginsamplescan(SampleScanState *node,
-                                                 Datum *params,
-                                                 int nparams,
-                                                 uint32 seed);
+                                                                         Datum *params,
+                                                                         int nparams,
+                                                                         uint32 seed);
 static OffsetNumber bernoulli_nextsampletuple(SampleScanState *node,
-                                                 BlockNumber blockno,
-                                                 OffsetNumber maxoffset);
+                                                                                         BlockNumber blockno,
+                                                                                         OffsetNumber maxoffset);
 
 
 /*
index b1fb9b320154e4669e4e3c60ebce64c5df044283..4693c667b5d24a5e156bd4e71f2a812c2516ad19 100644 (file)
@@ -45,20 +45,20 @@ typedef struct
 
 
 static void system_samplescangetsamplesize(PlannerInfo *root,
-                                                          RelOptInfo *baserel,
-                                                          List *paramexprs,
-                                                          BlockNumber *pages,
-                                                          double *tuples);
+                                                                                  RelOptInfo *baserel,
+                                                                                  List *paramexprs,
+                                                                                  BlockNumber *pages,
+                                                                                  double *tuples);
 static void system_initsamplescan(SampleScanState *node,
-                                         int eflags);
+                                                                 int eflags);
 static void system_beginsamplescan(SampleScanState *node,
-                                          Datum *params,
-                                          int nparams,
-                                          uint32 seed);
+                                                                  Datum *params,
+                                                                  int nparams,
+                                                                  uint32 seed);
 static BlockNumber system_nextsampleblock(SampleScanState *node, BlockNumber nblocks);
 static OffsetNumber system_nextsampletuple(SampleScanState *node,
-                                          BlockNumber blockno,
-                                          OffsetNumber maxoffset);
+                                                                                  BlockNumber blockno,
+                                                                                  OffsetNumber maxoffset);
 
 
 /*
index 3bd55fbdd337d477661eae4bea146898f9fc8089..47db7a8a88c3cea853d5ee6dda73faaf6884ea0f 100644 (file)
@@ -92,20 +92,20 @@ static int  ZeroCLOGPage(int pageno, bool writeXlog);
 static bool CLOGPagePrecedes(int page1, int page2);
 static void WriteZeroPageXlogRec(int pageno);
 static void WriteTruncateXlogRec(int pageno, TransactionId oldestXact,
-                                        Oid oldestXidDb);
+                                                                Oid oldestXidDb);
 static void TransactionIdSetPageStatus(TransactionId xid, int nsubxids,
-                                                  TransactionId *subxids, XidStatus status,
-                                                  XLogRecPtr lsn, int pageno,
-                                                  bool all_xact_same_page);
+                                                                          TransactionId *subxids, XidStatus status,
+                                                                          XLogRecPtr lsn, int pageno,
+                                                                          bool all_xact_same_page);
 static void TransactionIdSetStatusBit(TransactionId xid, XidStatus status,
-                                                 XLogRecPtr lsn, int slotno);
+                                                                         XLogRecPtr lsn, int slotno);
 static void set_status_by_pages(int nsubxids, TransactionId *subxids,
-                                       XidStatus status, XLogRecPtr lsn);
+                                                               XidStatus status, XLogRecPtr lsn);
 static bool TransactionGroupUpdateXidStatus(TransactionId xid,
-                                                               XidStatus status, XLogRecPtr lsn, int pageno);
+                                                                                       XidStatus status, XLogRecPtr lsn, int pageno);
 static void TransactionIdSetPageStatusInternal(TransactionId xid, int nsubxids,
-                                                                  TransactionId *subxids, XidStatus status,
-                                                                  XLogRecPtr lsn, int pageno);
+                                                                                          TransactionId *subxids, XidStatus status,
+                                                                                          XLogRecPtr lsn, int pageno);
 
 
 /*
index 8162f884bd1d8be98b405159441416d936a108b2..3316734e14fce4b6bb293a302823767f670baeca 100644 (file)
@@ -103,10 +103,10 @@ CommitTimestampShared *commitTsShared;
 bool           track_commit_timestamp;
 
 static void SetXidCommitTsInPage(TransactionId xid, int nsubxids,
-                                        TransactionId *subxids, TimestampTz ts,
-                                        RepOriginId nodeid, int pageno);
+                                                                TransactionId *subxids, TimestampTz ts,
+                                                                RepOriginId nodeid, int pageno);
 static void TransactionIdSetCommitTs(TransactionId xid, TimestampTz ts,
-                                                RepOriginId nodeid, int slotno);
+                                                                        RepOriginId nodeid, int slotno);
 static void error_commit_ts_disabled(void);
 static int     ZeroCommitTsPage(int pageno, bool writeXlog);
 static bool CommitTsPagePrecedes(int page1, int page2);
@@ -115,8 +115,8 @@ static void DeactivateCommitTs(void);
 static void WriteZeroPageXlogRec(int pageno);
 static void WriteTruncateXlogRec(int pageno, TransactionId oldestXid);
 static void WriteSetTimestampXlogRec(TransactionId mainxid, int nsubxids,
-                                                TransactionId *subxids, TimestampTz timestamp,
-                                                RepOriginId nodeid);
+                                                                        TransactionId *subxids, TimestampTz timestamp,
+                                                                        RepOriginId nodeid);
 
 /*
  * TransactionTreeSetCommitTsData
index 5b00b7275bf16d2646b61dc1767be60d5aa32712..d2591601030b5ba198006f41ebcd14a5092623d9 100644 (file)
@@ -69,11 +69,11 @@ struct GenericXLogState
 };
 
 static void writeFragment(PageData *pageData, OffsetNumber offset,
-                         OffsetNumber len, const char *data);
+                                                 OffsetNumber len, const char *data);
 static void computeRegionDelta(PageData *pageData,
-                                  const char *curpage, const char *targetpage,
-                                  int targetStart, int targetEnd,
-                                  int validStart, int validEnd);
+                                                          const char *curpage, const char *targetpage,
+                                                          int targetStart, int targetEnd,
+                                                          int validStart, int validEnd);
 static void computeDelta(PageData *pageData, Page curpage, Page targetpage);
 static void applyPageRedo(Page page, const char *delta, Size deltaSize);
 
index 763b99970714f56f3ab0a1700b1a51a2efa05ccc..4004468fa01820e4f6ed99bdb257c86e3c55651d 100644 (file)
@@ -340,7 +340,7 @@ static MemoryContext MXactContext = NULL;
 /* internal MultiXactId management */
 static void MultiXactIdSetOldestVisible(void);
 static void RecordNewMultiXact(MultiXactId multi, MultiXactOffset offset,
-                                  int nmembers, MultiXactMember *members);
+                                                          int nmembers, MultiXactMember *members);
 static MultiXactId GetNewMultiXactId(int nmembers, MultiXactOffset *offset);
 
 /* MultiXact cache management */
@@ -348,7 +348,7 @@ static int  mxactMemberComparator(const void *arg1, const void *arg2);
 static MultiXactId mXactCacheGetBySet(int nmembers, MultiXactMember *members);
 static int     mXactCacheGetById(MultiXactId multi, MultiXactMember **members);
 static void mXactCachePut(MultiXactId multi, int nmembers,
-                         MultiXactMember *members);
+                                                 MultiXactMember *members);
 
 static char *mxstatus_to_string(MultiXactStatus status);
 
@@ -358,17 +358,17 @@ static int        ZeroMultiXactMemberPage(int pageno, bool writeXlog);
 static bool MultiXactOffsetPagePrecedes(int page1, int page2);
 static bool MultiXactMemberPagePrecedes(int page1, int page2);
 static bool MultiXactOffsetPrecedes(MultiXactOffset offset1,
-                                               MultiXactOffset offset2);
+                                                                       MultiXactOffset offset2);
 static void ExtendMultiXactOffset(MultiXactId multi);
 static void ExtendMultiXactMember(MultiXactOffset offset, int nmembers);
 static bool MultiXactOffsetWouldWrap(MultiXactOffset boundary,
-                                                MultiXactOffset start, uint32 distance);
+                                                                        MultiXactOffset start, uint32 distance);
 static bool SetOffsetVacuumLimit(bool is_startup);
 static bool find_multixact_start(MultiXactId multi, MultiXactOffset *result);
 static void WriteMZeroPageXlogRec(int pageno, uint8 info);
 static void WriteMTruncateXlogRec(Oid oldestMultiDB,
-                                         MultiXactId startOff, MultiXactId endOff,
-                                         MultiXactOffset startMemb, MultiXactOffset endMemb);
+                                                                 MultiXactId startOff, MultiXactId endOff,
+                                                                 MultiXactOffset startMemb, MultiXactOffset endMemb);
 
 
 /*
index 974d42fc866fa88e6a5d2421bccbb9adec42d45b..2dbc65b125ba8d4adfbf08aa2e40176e8463ddc3 100644 (file)
@@ -129,12 +129,12 @@ static void SimpleLruWaitIO(SlruCtl ctl, int slotno);
 static void SlruInternalWritePage(SlruCtl ctl, int slotno, SlruFlush fdata);
 static bool SlruPhysicalReadPage(SlruCtl ctl, int pageno, int slotno);
 static bool SlruPhysicalWritePage(SlruCtl ctl, int pageno, int slotno,
-                                         SlruFlush fdata);
+                                                                 SlruFlush fdata);
 static void SlruReportIOError(SlruCtl ctl, int pageno, TransactionId xid);
 static int     SlruSelectLRUPage(SlruCtl ctl, int pageno);
 
 static bool SlruScanDirCbDeleteCutoff(SlruCtl ctl, char *filename,
-                                                 int segpage, void *data);
+                                                                         int segpage, void *data);
 static void SlruInternalDeleteSegment(SlruCtl ctl, char *filename);
 
 /*
index 21e028283c130450e6d965069593cfb3dd1f66de..5196d6181dd8f1af1b7cf617280cf9655c5a7975 100644 (file)
@@ -202,31 +202,31 @@ static GlobalTransaction MyLockedGxact = NULL;
 static bool twophaseExitRegistered = false;
 
 static void RecordTransactionCommitPrepared(TransactionId xid,
-                                                               int nchildren,
-                                                               TransactionId *children,
-                                                               int nrels,
-                                                               RelFileNode *rels,
-                                                               int ninvalmsgs,
-                                                               SharedInvalidationMessage *invalmsgs,
-                                                               bool initfileinval,
-                                                               const char *gid);
+                                                                                       int nchildren,
+                                                                                       TransactionId *children,
+                                                                                       int nrels,
+                                                                                       RelFileNode *rels,
+                                                                                       int ninvalmsgs,
+                                                                                       SharedInvalidationMessage *invalmsgs,
+                                                                                       bool initfileinval,
+                                                                                       const char *gid);
 static void RecordTransactionAbortPrepared(TransactionId xid,
-                                                          int nchildren,
-                                                          TransactionId *children,
-                                                          int nrels,
-                                                          RelFileNode *rels,
-                                                          const char *gid);
+                                                                                  int nchildren,
+                                                                                  TransactionId *children,
+                                                                                  int nrels,
+                                                                                  RelFileNode *rels,
+                                                                                  const char *gid);
 static void ProcessRecords(char *bufptr, TransactionId xid,
-                          const TwoPhaseCallback callbacks[]);
+                                                  const TwoPhaseCallback callbacks[]);
 static void RemoveGXact(GlobalTransaction gxact);
 
 static void XlogReadTwoPhaseData(XLogRecPtr lsn, char **buf, int *len);
 static char *ProcessTwoPhaseBuffer(TransactionId xid,
-                                         XLogRecPtr prepare_start_lsn,
-                                         bool fromdisk, bool setParent, bool setNextXid);
+                                                                  XLogRecPtr prepare_start_lsn,
+                                                                  bool fromdisk, bool setParent, bool setNextXid);
 static void MarkAsPreparingGuts(GlobalTransaction gxact, TransactionId xid,
-                                       const char *gid, TimestampTz prepared_at, Oid owner,
-                                       Oid databaseid);
+                                                               const char *gid, TimestampTz prepared_at, Oid owner,
+                                                               Oid databaseid);
 static void RemoveTwoPhaseFile(TransactionId xid, bool giveWarning);
 static void RecreateTwoPhaseFile(TransactionId xid, void *content, int len);
 
index b40da74e0920bda5d801a385b9db69c232efcc81..f1108ccc8b7d27c24888fed052a817325ee47849 100644 (file)
@@ -312,11 +312,11 @@ static void AtStart_Memory(void);
 static void AtStart_ResourceOwner(void);
 static void CallXactCallbacks(XactEvent event);
 static void CallSubXactCallbacks(SubXactEvent event,
-                                        SubTransactionId mySubid,
-                                        SubTransactionId parentSubid);
+                                                                SubTransactionId mySubid,
+                                                                SubTransactionId parentSubid);
 static void CleanupTransaction(void);
 static void CheckTransactionBlock(bool isTopLevel, bool throwError,
-                                         const char *stmtType);
+                                                                 const char *stmtType);
 static void CommitTransaction(void);
 static TransactionId RecordTransactionAbort(bool isSubXact);
 static void StartTransaction(void);
index c7c9e91b6a45150f4aedd1a492bb5485bfaaf2f6..1c7dd51b9f1c0b81d7235587fcf9eddfbc2dee81 100644 (file)
@@ -869,7 +869,7 @@ static void SetCurrentChunkStartTime(TimestampTz xtime);
 static void CheckRequiredParameterValues(void);
 static void XLogReportParameters(void);
 static void checkTimeLineSwitch(XLogRecPtr lsn, TimeLineID newTLI,
-                                       TimeLineID prevTLI);
+                                                               TimeLineID prevTLI);
 static void LocalSetXLogInsertAllowed(void);
 static void CreateEndOfRecoveryRecord(void);
 static void CheckPointGuts(XLogRecPtr checkPointRedo, int flags);
@@ -880,16 +880,16 @@ static void AdvanceXLInsertBuffer(XLogRecPtr upto, bool opportunistic);
 static bool XLogCheckpointNeeded(XLogSegNo new_segno);
 static void XLogWrite(XLogwrtRqst WriteRqst, bool flexible);
 static bool InstallXLogFileSegment(XLogSegNo *segno, char *tmppath,
-                                          bool find_free, XLogSegNo max_segno,
-                                          bool use_lock);
-static int XLogFileRead(XLogSegNo segno, int emode, TimeLineID tli,
-                        int source, bool notfoundOk);
+                                                                  bool find_free, XLogSegNo max_segno,
+                                                                  bool use_lock);
+static int     XLogFileRead(XLogSegNo segno, int emode, TimeLineID tli,
+                                                int source, bool notfoundOk);
 static int     XLogFileReadAnyTLI(XLogSegNo segno, int emode, int source);
-static int XLogPageRead(XLogReaderState *xlogreader, XLogRecPtr targetPagePtr,
-                        int reqLen, XLogRecPtr targetRecPtr, char *readBuf,
-                        TimeLineID *readTLI);
+static int     XLogPageRead(XLogReaderState *xlogreader, XLogRecPtr targetPagePtr,
+                                                int reqLen, XLogRecPtr targetRecPtr, char *readBuf,
+                                                TimeLineID *readTLI);
 static bool WaitForWALToBecomeAvailable(XLogRecPtr RecPtr, bool randAccess,
-                                                       bool fetching_ckpt, XLogRecPtr tliRecPtr);
+                                                                               bool fetching_ckpt, XLogRecPtr tliRecPtr);
 static int     emode_for_corrupt_record(int emode, XLogRecPtr RecPtr);
 static void XLogFileClose(void);
 static void PreallocXlogFiles(XLogRecPtr endptr);
@@ -901,10 +901,10 @@ static void ValidateXLOGDirectoryStructure(void);
 static void CleanupBackupHistory(void);
 static void UpdateMinRecoveryPoint(XLogRecPtr lsn, bool force);
 static XLogRecord *ReadRecord(XLogReaderState *xlogreader, XLogRecPtr RecPtr,
-                  int emode, bool fetching_ckpt);
+                                                         int emode, bool fetching_ckpt);
 static void CheckRecoveryConsistency(void);
 static XLogRecord *ReadCheckpointRecord(XLogReaderState *xlogreader,
-                                        XLogRecPtr RecPtr, int whichChkpti, bool report);
+                                                                               XLogRecPtr RecPtr, int whichChkpti, bool report);
 static bool rescanLatestTimeLine(void);
 static void WriteControlFile(void);
 static void ReadControlFile(void);
@@ -918,19 +918,19 @@ static void xlog_outdesc(StringInfo buf, XLogReaderState *record);
 static void pg_start_backup_callback(int code, Datum arg);
 static void pg_stop_backup_callback(int code, Datum arg);
 static bool read_backup_label(XLogRecPtr *checkPointLoc,
-                                 bool *backupEndRequired, bool *backupFromStandby);
+                                                         bool *backupEndRequired, bool *backupFromStandby);
 static bool read_tablespace_map(List **tablespaces);
 
 static void rm_redo_error_callback(void *arg);
 static int     get_sync_bit(int method);
 
 static void CopyXLogRecordToWAL(int write_len, bool isLogSwitch,
-                                       XLogRecData *rdata,
-                                       XLogRecPtr StartPos, XLogRecPtr EndPos);
+                                                               XLogRecData *rdata,
+                                                               XLogRecPtr StartPos, XLogRecPtr EndPos);
 static void ReserveXLogInsertLocation(int size, XLogRecPtr *StartPos,
-                                                 XLogRecPtr *EndPos, XLogRecPtr *PrevPtr);
+                                                                         XLogRecPtr *EndPos, XLogRecPtr *PrevPtr);
 static bool ReserveXLogSwitch(XLogRecPtr *StartPos, XLogRecPtr *EndPos,
-                                 XLogRecPtr *PrevPtr);
+                                                         XLogRecPtr *PrevPtr);
 static XLogRecPtr WaitXLogInsertionsToFinish(XLogRecPtr upto);
 static char *GetXLogBuffer(XLogRecPtr ptr);
 static XLogRecPtr XLogBytePosToRecPtr(uint64 bytepos);
index 1c76dcfa0dcfcbbb36eb00e37b83f63c58423962..d3c0a93a2e79dca5ef39076a21e21a48aaf9fedc 100644 (file)
@@ -107,10 +107,10 @@ static bool begininsert_called = false;
 static MemoryContext xloginsert_cxt;
 
 static XLogRecData *XLogRecordAssemble(RmgrId rmid, uint8 info,
-                                  XLogRecPtr RedoRecPtr, bool doPageWrites,
-                                  XLogRecPtr *fpw_lsn);
+                                                                          XLogRecPtr RedoRecPtr, bool doPageWrites,
+                                                                          XLogRecPtr *fpw_lsn);
 static bool XLogCompressBackupBlock(char *page, uint16 hole_offset,
-                                               uint16 hole_length, char *dest, uint16 *dlen);
+                                                                       uint16 hole_length, char *dest, uint16 *dlen);
 
 /*
  * Begin constructing a WAL record. This must be called before the
index 9196aa3aaefaeda40d5722209b072ab215bf2b32..88be7fe022395819156a67165a6a770500d38e0b 100644 (file)
 static bool allocate_recordbuf(XLogReaderState *state, uint32 reclength);
 
 static bool ValidXLogRecordHeader(XLogReaderState *state, XLogRecPtr RecPtr,
-                                         XLogRecPtr PrevRecPtr, XLogRecord *record, bool randAccess);
+                                                                 XLogRecPtr PrevRecPtr, XLogRecord *record, bool randAccess);
 static bool ValidXLogRecord(XLogReaderState *state, XLogRecord *record,
-                               XLogRecPtr recptr);
-static int ReadPageInternal(XLogReaderState *state, XLogRecPtr pageptr,
-                                int reqLen);
+                                                       XLogRecPtr recptr);
+static int     ReadPageInternal(XLogReaderState *state, XLogRecPtr pageptr,
+                                                        int reqLen);
 static void report_invalid_record(XLogReaderState *state, const char *fmt,...) pg_attribute_printf(2, 3);
 
 static void ResetDecoder(XLogReaderState *state);
index f0fdda1eb913570720fc3804f8df934ff7cf6749..2797af35c3d48259e737246bb3a439731f7b2473 100644 (file)
@@ -120,26 +120,26 @@ static List *objectNamesToOids(ObjectType objtype, List *objnames);
 static List *objectsInSchemaToOids(ObjectType objtype, List *nspnames);
 static List *getRelationsInNamespace(Oid namespaceId, char relkind);
 static void expand_col_privileges(List *colnames, Oid table_oid,
-                                         AclMode this_privileges,
-                                         AclMode *col_privileges,
-                                         int num_col_privileges);
+                                                                 AclMode this_privileges,
+                                                                 AclMode *col_privileges,
+                                                                 int num_col_privileges);
 static void expand_all_col_privileges(Oid table_oid, Form_pg_class classForm,
-                                                 AclMode this_privileges,
-                                                 AclMode *col_privileges,
-                                                 int num_col_privileges);
+                                                                         AclMode this_privileges,
+                                                                         AclMode *col_privileges,
+                                                                         int num_col_privileges);
 static AclMode string_to_privilege(const char *privname);
 static const char *privilege_to_string(AclMode privilege);
 static AclMode restrict_and_check_grant(bool is_grant, AclMode avail_goptions,
-                                                bool all_privs, AclMode privileges,
-                                                Oid objectId, Oid grantorId,
-                                                ObjectType objtype, const char *objname,
-                                                AttrNumber att_number, const char *colname);
+                                                                               bool all_privs, AclMode privileges,
+                                                                               Oid objectId, Oid grantorId,
+                                                                               ObjectType objtype, const char *objname,
+                                                                               AttrNumber att_number, const char *colname);
 static AclMode pg_aclmask(ObjectType objtype, Oid table_oid, AttrNumber attnum,
-                  Oid roleid, AclMode mask, AclMaskHow how);
+                                                 Oid roleid, AclMode mask, AclMaskHow how);
 static void recordExtensionInitPriv(Oid objoid, Oid classoid, int objsubid,
-                                               Acl *new_acl);
+                                                                       Acl *new_acl);
 static void recordExtensionInitPrivWorker(Oid objoid, Oid classoid, int objsubid,
-                                                         Acl *new_acl);
+                                                                                 Acl *new_acl);
 
 
 #ifdef ACLDEBUG
index 7af1670c0d2d76938314f5eff1fc06d1e1157aba..6315fc4b2fd3cd7240cd41f4d74a174305973a57 100644 (file)
@@ -186,36 +186,36 @@ static const Oid object_classes[] = {
 
 
 static void findDependentObjects(const ObjectAddress *object,
-                                        int objflags,
-                                        int flags,
-                                        ObjectAddressStack *stack,
-                                        ObjectAddresses *targetObjects,
-                                        const ObjectAddresses *pendingObjects,
-                                        Relation *depRel);
+                                                                int objflags,
+                                                                int flags,
+                                                                ObjectAddressStack *stack,
+                                                                ObjectAddresses *targetObjects,
+                                                                const ObjectAddresses *pendingObjects,
+                                                                Relation *depRel);
 static void reportDependentObjects(const ObjectAddresses *targetObjects,
-                                          DropBehavior behavior,
-                                          int flags,
-                                          const ObjectAddress *origObject);
+                                                                  DropBehavior behavior,
+                                                                  int flags,
+                                                                  const ObjectAddress *origObject);
 static void deleteOneObject(const ObjectAddress *object,
-                               Relation *depRel, int32 flags);
+                                                       Relation *depRel, int32 flags);
 static void doDeletion(const ObjectAddress *object, int flags);
 static void AcquireDeletionLock(const ObjectAddress *object, int flags);
 static void ReleaseDeletionLock(const ObjectAddress *object);
 static bool find_expr_references_walker(Node *node,
-                                                       find_expr_references_context *context);
+                                                                               find_expr_references_context *context);
 static void eliminate_duplicate_dependencies(ObjectAddresses *addrs);
 static int     object_address_comparator(const void *a, const void *b);
 static void add_object_address(ObjectClass oclass, Oid objectId, int32 subId,
-                                  ObjectAddresses *addrs);
-static void add_exact_object_address_extra(const ObjectAddress *object,
-                                                          const ObjectAddressExtra *extra,
                                                           ObjectAddresses *addrs);
+static void add_exact_object_address_extra(const ObjectAddress *object,
+                                                                                  const ObjectAddressExtra *extra,
+                                                                                  ObjectAddresses *addrs);
 static bool object_address_present_add_flags(const ObjectAddress *object,
-                                                                int flags,
-                                                                ObjectAddresses *addrs);
+                                                                                        int flags,
+                                                                                        ObjectAddresses *addrs);
 static bool stack_address_present_add_flags(const ObjectAddress *object,
-                                                               int flags,
-                                                               ObjectAddressStack *stack);
+                                                                                       int flags,
+                                                                                       ObjectAddressStack *stack);
 static void DeleteInitPrivs(const ObjectAddress *object);
 
 
index 3c46c2510713a7f6bd25941bf8589295f2ee729f..86820eecfc7d5d8b69f00ca812919f6eb34196e5 100644 (file)
@@ -94,37 +94,37 @@ Oid                 binary_upgrade_next_heap_pg_class_oid = InvalidOid;
 Oid                    binary_upgrade_next_toast_pg_class_oid = InvalidOid;
 
 static void AddNewRelationTuple(Relation pg_class_desc,
-                                       Relation new_rel_desc,
-                                       Oid new_rel_oid,
-                                       Oid new_type_oid,
-                                       Oid reloftype,
-                                       Oid relowner,
-                                       char relkind,
-                                       TransactionId relfrozenxid,
-                                       TransactionId relminmxid,
-                                       Datum relacl,
-                                       Datum reloptions);
+                                                               Relation new_rel_desc,
+                                                               Oid new_rel_oid,
+                                                               Oid new_type_oid,
+                                                               Oid reloftype,
+                                                               Oid relowner,
+                                                               char relkind,
+                                                               TransactionId relfrozenxid,
+                                                               TransactionId relminmxid,
+                                                               Datum relacl,
+                                                               Datum reloptions);
 static ObjectAddress AddNewRelationType(const char *typeName,
-                                  Oid typeNamespace,
-                                  Oid new_rel_oid,
-                                  char new_rel_kind,
-                                  Oid ownerid,
-                                  Oid new_row_type,
-                                  Oid new_array_type);
+                                                                               Oid typeNamespace,
+                                                                               Oid new_rel_oid,
+                                                                               char new_rel_kind,
+                                                                               Oid ownerid,
+                                                                               Oid new_row_type,
+                                                                               Oid new_array_type);
 static void RelationRemoveInheritance(Oid relid);
-static Oid StoreRelCheck(Relation rel, const char *ccname, Node *expr,
-                         bool is_validated, bool is_local, int inhcount,
-                         bool is_no_inherit, bool is_internal);
+static Oid     StoreRelCheck(Relation rel, const char *ccname, Node *expr,
+                                                 bool is_validated, bool is_local, int inhcount,
+                                                 bool is_no_inherit, bool is_internal);
 static void StoreConstraints(Relation rel, List *cooked_constraints,
-                                bool is_internal);
+                                                        bool is_internal);
 static bool MergeWithExistingConstraint(Relation rel, const char *ccname, Node *expr,
-                                                       bool allow_merge, bool is_local,
-                                                       bool is_initially_valid,
-                                                       bool is_no_inherit);
+                                                                               bool allow_merge, bool is_local,
+                                                                               bool is_initially_valid,
+                                                                               bool is_no_inherit);
 static void SetRelationNumChecks(Relation rel, int numchecks);
 static Node *cookConstraint(ParseState *pstate,
-                          Node *raw_constraint,
-                          char *relname);
+                                                       Node *raw_constraint,
+                                                       char *relname);
 static List *insert_ordered_unique_oid(List *list, Oid datum);
 
 
index b7d1ac0923f8878d43bf5e5db67813f3319d52cd..50c8bb9ce658b86f06e31a8d3352192a5481ce84 100644 (file)
@@ -99,31 +99,31 @@ typedef struct
 /* non-export function prototypes */
 static bool relationHasPrimaryKey(Relation rel);
 static TupleDesc ConstructTupleDescriptor(Relation heapRelation,
-                                                IndexInfo *indexInfo,
-                                                List *indexColNames,
-                                                Oid accessMethodObjectId,
-                                                Oid *collationObjectId,
-                                                Oid *classObjectId);
+                                                                                 IndexInfo *indexInfo,
+                                                                                 List *indexColNames,
+                                                                                 Oid accessMethodObjectId,
+                                                                                 Oid *collationObjectId,
+                                                                                 Oid *classObjectId);
 static void InitializeAttributeOids(Relation indexRelation,
-                                               int numatts, Oid indexoid);
+                                                                       int numatts, Oid indexoid);
 static void AppendAttributeTuples(Relation indexRelation, int numatts);
 static void UpdateIndexRelation(Oid indexoid, Oid heapoid,
-                                       Oid parentIndexId,
-                                       IndexInfo *indexInfo,
-                                       Oid *collationOids,
-                                       Oid *classOids,
-                                       int16 *coloptions,
-                                       bool primary,
-                                       bool isexclusion,
-                                       bool immediate,
-                                       bool isvalid,
-                                       bool isready);
+                                                               Oid parentIndexId,
+                                                               IndexInfo *indexInfo,
+                                                               Oid *collationOids,
+                                                               Oid *classOids,
+                                                               int16 *coloptions,
+                                                               bool primary,
+                                                               bool isexclusion,
+                                                               bool immediate,
+                                                               bool isvalid,
+                                                               bool isready);
 static void index_update_stats(Relation rel,
-                                  bool hasindex,
-                                  double reltuples);
+                                                          bool hasindex,
+                                                          double reltuples);
 static void IndexCheckExclusion(Relation heapRelation,
-                                       Relation indexRelation,
-                                       IndexInfo *indexInfo);
+                                                               Relation indexRelation,
+                                                               IndexInfo *indexInfo);
 static bool validate_index_callback(ItemPointer itemptr, void *opaque);
 static bool ReindexIsCurrentlyProcessingIndex(Oid indexOid);
 static void SetReindexProcessing(Oid heapOid, Oid indexOid);
index cdd5006a72f7dc9c5bf97a9ce86ce14386a2da6e..97b911679cf83a1bd1d646790dfe560055f71dab 100644 (file)
@@ -198,7 +198,7 @@ static void RemoveTempRelations(Oid tempNamespaceId);
 static void RemoveTempRelationsCallback(int code, Datum arg);
 static void NamespaceCallback(Datum arg, int cacheid, uint32 hashvalue);
 static bool MatchNamedCall(HeapTuple proctup, int nargs, List *argnames,
-                          int **argnumbers);
+                                                  int **argnumbers);
 
 
 /*
index 7a32ac1fb13ff89cb7d1f727f8ce43ac1b2ba810..2235e5626fbfec1fac317d2deda274121e2ed8b6 100644 (file)
@@ -761,38 +761,38 @@ const ObjectAddress InvalidObjectAddress =
 };
 
 static ObjectAddress get_object_address_unqualified(ObjectType objtype,
-                                                          Value *strval, bool missing_ok);
+                                                                                                       Value *strval, bool missing_ok);
 static ObjectAddress get_relation_by_qualified_name(ObjectType objtype,
-                                                          List *object, Relation *relp,
-                                                          LOCKMODE lockmode, bool missing_ok);
+                                                                                                       List *object, Relation *relp,
+                                                                                                       LOCKMODE lockmode, bool missing_ok);
 static ObjectAddress get_object_address_relobject(ObjectType objtype,
-                                                        List *object, Relation *relp, bool missing_ok);
+                                                                                                 List *object, Relation *relp, bool missing_ok);
 static ObjectAddress get_object_address_attribute(ObjectType objtype,
-                                                        List *object, Relation *relp,
-                                                        LOCKMODE lockmode, bool missing_ok);
+                                                                                                 List *object, Relation *relp,
+                                                                                                 LOCKMODE lockmode, bool missing_ok);
 static ObjectAddress get_object_address_attrdef(ObjectType objtype,
-                                                  List *object, Relation *relp, LOCKMODE lockmode,
-                                                  bool missing_ok);
+                                                                                               List *object, Relation *relp, LOCKMODE lockmode,
+                                                                                               bool missing_ok);
 static ObjectAddress get_object_address_type(ObjectType objtype,
-                                               TypeName *typename, bool missing_ok);
+                                                                                        TypeName *typename, bool missing_ok);
 static ObjectAddress get_object_address_opcf(ObjectType objtype, List *object,
-                                               bool missing_ok);
+                                                                                        bool missing_ok);
 static ObjectAddress get_object_address_opf_member(ObjectType objtype,
-                                                         List *object, bool missing_ok);
+                                                                                                  List *object, bool missing_ok);
 
 static ObjectAddress get_object_address_usermapping(List *object,
-                                                          bool missing_ok);
+                                                                                                       bool missing_ok);
 static ObjectAddress get_object_address_publication_rel(List *object,
-                                                                  Relation *relp,
-                                                                  bool missing_ok);
+                                                                                                               Relation *relp,
+                                                                                                               bool missing_ok);
 static ObjectAddress get_object_address_defacl(List *object,
-                                                 bool missing_ok);
+                                                                                          bool missing_ok);
 static const ObjectPropertyType *get_object_property_data(Oid class_id);
 
 static void getRelationDescription(StringInfo buffer, Oid relid);
 static void getOpFamilyDescription(StringInfo buffer, Oid opfid);
 static void getRelationTypeDescription(StringInfo buffer, Oid relid,
-                                                  int32 objectSubId);
+                                                                          int32 objectSubId);
 static void getProcedureTypeDescription(StringInfo buffer, Oid procid);
 static void getConstraintTypeDescription(StringInfo buffer, Oid constroid);
 static void getOpFamilyIdentity(StringInfo buffer, Oid opfid, List **object);
index da98c54391bcebcfb0fbe03af1d659285d3088f8..8134098fc1754b7bca95643586a41c0a9e9920b7 100644 (file)
@@ -35,7 +35,7 @@
 
 static Oid     get_partition_parent_worker(Relation inhRel, Oid relid);
 static void get_partition_ancestors_worker(Relation inhRel, Oid relid,
-                                                          List **ancestors);
+                                                                                  List **ancestors);
 
 /*
  * get_partition_parent
index 310d45266ffc5de94353f443cbc2687494558c1e..7cab039dedcdf117761ca301f16bb5f7f5d8e63b 100644 (file)
@@ -34,9 +34,9 @@
 #include "utils/syscache.h"
 
 
-static Oid lookup_agg_function(List *fnName, int nargs, Oid *input_types,
-                                       Oid variadicArgType,
-                                       Oid *rettype);
+static Oid     lookup_agg_function(List *fnName, int nargs, Oid *input_types,
+                                                               Oid variadicArgType,
+                                                               Oid *rettype);
 
 
 /*
index 0f9a12b35c27f56e7235ff1d998958f80be106f0..bcaa26c99780c49885d0c961a2618095d23d54f1 100644 (file)
 #include "utils/syscache.h"
 
 
-static Oid OperatorGet(const char *operatorName,
-                       Oid operatorNamespace,
-                       Oid leftObjectId,
-                       Oid rightObjectId,
-                       bool *defined);
-
-static Oid OperatorLookup(List *operatorName,
-                          Oid leftObjectId,
-                          Oid rightObjectId,
-                          bool *defined);
-
-static Oid OperatorShellMake(const char *operatorName,
-                                 Oid operatorNamespace,
-                                 Oid leftTypeId,
-                                 Oid rightTypeId);
-
-static Oid get_other_operator(List *otherOp,
-                                  Oid otherLeftTypeId, Oid otherRightTypeId,
-                                  const char *operatorName, Oid operatorNamespace,
-                                  Oid leftTypeId, Oid rightTypeId,
-                                  bool isCommutator);
+static Oid     OperatorGet(const char *operatorName,
+                                               Oid operatorNamespace,
+                                               Oid leftObjectId,
+                                               Oid rightObjectId,
+                                               bool *defined);
+
+static Oid     OperatorLookup(List *operatorName,
+                                                  Oid leftObjectId,
+                                                  Oid rightObjectId,
+                                                  bool *defined);
+
+static Oid     OperatorShellMake(const char *operatorName,
+                                                         Oid operatorNamespace,
+                                                         Oid leftTypeId,
+                                                         Oid rightTypeId);
+
+static Oid     get_other_operator(List *otherOp,
+                                                          Oid otherLeftTypeId, Oid otherRightTypeId,
+                                                          const char *operatorName, Oid operatorNamespace,
+                                                          Oid leftTypeId, Oid rightTypeId,
+                                                          bool isCommutator);
 
 
 /*
index 3487caf82f6f6aabb453be9a73792bc344ff074c..002584b9416f168b5fa5918ce1a7751b13149dc4 100644 (file)
@@ -50,10 +50,10 @@ typedef struct
 } parse_error_callback_arg;
 
 static void sql_function_parse_error_callback(void *arg);
-static int match_prosrc_to_query(const char *prosrc, const char *queryText,
-                                         int cursorpos);
+static int     match_prosrc_to_query(const char *prosrc, const char *queryText,
+                                                                 int cursorpos);
 static bool match_prosrc_to_literal(const char *prosrc, const char *literal,
-                                               int cursorpos, int *newcursorpos);
+                                                                       int cursorpos, int *newcursorpos);
 
 
 /* ----------------------------------------------------------------
index 4a9b4efb0501dee4aaef10a9aa03261e6c862c50..fb7f8ddefc98a1eae81c175352e54036dbbb1fdc 100644 (file)
@@ -84,23 +84,23 @@ typedef struct
 static void getOidListDiff(Oid *list1, int *nlist1, Oid *list2, int *nlist2);
 static Oid     classIdGetDbId(Oid classId);
 static void shdepChangeDep(Relation sdepRel,
-                          Oid classid, Oid objid, int32 objsubid,
-                          Oid refclassid, Oid refobjid,
-                          SharedDependencyType deptype);
+                                                  Oid classid, Oid objid, int32 objsubid,
+                                                  Oid refclassid, Oid refobjid,
+                                                  SharedDependencyType deptype);
 static void shdepAddDependency(Relation sdepRel,
-                                  Oid classId, Oid objectId, int32 objsubId,
-                                  Oid refclassId, Oid refobjId,
-                                  SharedDependencyType deptype);
+                                                          Oid classId, Oid objectId, int32 objsubId,
+                                                          Oid refclassId, Oid refobjId,
+                                                          SharedDependencyType deptype);
 static void shdepDropDependency(Relation sdepRel,
-                                       Oid classId, Oid objectId, int32 objsubId,
-                                       bool drop_subobjects,
-                                       Oid refclassId, Oid refobjId,
-                                       SharedDependencyType deptype);
+                                                               Oid classId, Oid objectId, int32 objsubId,
+                                                               bool drop_subobjects,
+                                                               Oid refclassId, Oid refobjId,
+                                                               SharedDependencyType deptype);
 static void storeObjectDescription(StringInfo descs,
-                                          SharedDependencyObjectType type,
-                                          ObjectAddress *object,
-                                          SharedDependencyType deptype,
-                                          int count);
+                                                                  SharedDependencyObjectType type,
+                                                                  ObjectAddress *object,
+                                                                  SharedDependencyType deptype,
+                                                                  int count);
 static bool isSharedObjectPinned(Oid classId, Oid objectId, Relation sdepRel);
 
 
index cf20ddb4e928e95974b61da6b2dc5900ae9bb927..de6282a66750d77df0670b2404ae8450b556d80e 100644 (file)
@@ -38,9 +38,9 @@
 Oid                    binary_upgrade_next_toast_pg_type_oid = InvalidOid;
 
 static void CheckAndCreateToastTable(Oid relOid, Datum reloptions,
-                                                LOCKMODE lockmode, bool check);
+                                                                        LOCKMODE lockmode, bool check);
 static bool create_toast_table(Relation rel, Oid toastOid, Oid toastIndexOid,
-                                  Datum reloptions, LOCKMODE lockmode, bool check);
+                                                          Datum reloptions, LOCKMODE lockmode, bool check);
 static bool needs_toast_table(Relation rel);
 
 
index e0ec62c88c79dc37ec02276fce75e15656e827e9..6cb545c1265400612989edcdbee9d5aaeb283852 100644 (file)
@@ -85,24 +85,24 @@ static BufferAccessStrategy vac_strategy;
 
 
 static void do_analyze_rel(Relation onerel,
-                          VacuumParams *params, List *va_cols,
-                          AcquireSampleRowsFunc acquirefunc, BlockNumber relpages,
-                          bool inh, bool in_outer_xact, int elevel);
+                                                  VacuumParams *params, List *va_cols,
+                                                  AcquireSampleRowsFunc acquirefunc, BlockNumber relpages,
+                                                  bool inh, bool in_outer_xact, int elevel);
 static void compute_index_stats(Relation onerel, double totalrows,
-                                       AnlIndexData *indexdata, int nindexes,
-                                       HeapTuple *rows, int numrows,
-                                       MemoryContext col_context);
+                                                               AnlIndexData *indexdata, int nindexes,
+                                                               HeapTuple *rows, int numrows,
+                                                               MemoryContext col_context);
 static VacAttrStats *examine_attribute(Relation onerel, int attnum,
-                                 Node *index_expr);
-static int acquire_sample_rows(Relation onerel, int elevel,
-                                       HeapTuple *rows, int targrows,
-                                       double *totalrows, double *totaldeadrows);
+                                                                          Node *index_expr);
+static int     acquire_sample_rows(Relation onerel, int elevel,
+                                                               HeapTuple *rows, int targrows,
+                                                               double *totalrows, double *totaldeadrows);
 static int     compare_rows(const void *a, const void *b);
-static int acquire_inherited_sample_rows(Relation onerel, int elevel,
-                                                         HeapTuple *rows, int targrows,
-                                                         double *totalrows, double *totaldeadrows);
+static int     acquire_inherited_sample_rows(Relation onerel, int elevel,
+                                                                                 HeapTuple *rows, int targrows,
+                                                                                 double *totalrows, double *totaldeadrows);
 static void update_attstats(Oid relid, bool inh,
-                               int natts, VacAttrStats **vacattrstats);
+                                                       int natts, VacAttrStats **vacattrstats);
 static Datum std_fetch_func(VacAttrStatsP stats, int rownum, bool *isNull);
 static Datum ind_fetch_func(VacAttrStatsP stats, int rownum, bool *isNull);
 
@@ -1615,25 +1615,25 @@ typedef struct
 
 
 static void compute_trivial_stats(VacAttrStatsP stats,
-                                         AnalyzeAttrFetchFunc fetchfunc,
-                                         int samplerows,
-                                         double totalrows);
+                                                                 AnalyzeAttrFetchFunc fetchfunc,
+                                                                 int samplerows,
+                                                                 double totalrows);
 static void compute_distinct_stats(VacAttrStatsP stats,
-                                          AnalyzeAttrFetchFunc fetchfunc,
-                                          int samplerows,
-                                          double totalrows);
+                                                                  AnalyzeAttrFetchFunc fetchfunc,
+                                                                  int samplerows,
+                                                                  double totalrows);
 static void compute_scalar_stats(VacAttrStatsP stats,
-                                        AnalyzeAttrFetchFunc fetchfunc,
-                                        int samplerows,
-                                        double totalrows);
+                                                                AnalyzeAttrFetchFunc fetchfunc,
+                                                                int samplerows,
+                                                                double totalrows);
 static int     compare_scalars(const void *a, const void *b, void *arg);
 static int     compare_mcvs(const void *a, const void *b);
-static int analyze_mcv_list(int *mcv_counts,
-                                int num_mcv,
-                                double stadistinct,
-                                double stanullfrac,
-                                int samplerows,
-                                double totalrows);
+static int     analyze_mcv_list(int *mcv_counts,
+                                                        int num_mcv,
+                                                        double stadistinct,
+                                                        double stanullfrac,
+                                                        int samplerows,
+                                                        double totalrows);
 
 
 /*
index 5a7ee0de4cfb51c440a121d467f6cf13262df117..738e6ec7e2965de03134408593fa0835c6e57f09 100644 (file)
@@ -387,9 +387,9 @@ static void asyncQueueFillWarning(void);
 static bool SignalBackends(void);
 static void asyncQueueReadAllNotifications(void);
 static bool asyncQueueProcessPageEntries(volatile QueuePosition *current,
-                                                        QueuePosition stop,
-                                                        char *page_buffer,
-                                                        Snapshot snapshot);
+                                                                                QueuePosition stop,
+                                                                                char *page_buffer,
+                                                                                Snapshot snapshot);
 static void asyncQueueAdvanceTail(void);
 static void ProcessIncomingNotify(void);
 static bool AsyncExistsPendingNotify(const char *channel, const char *payload);
index cacc023619c4c0e5b7d9c16b34290ec1d4150b25..ebaec4f8dd9e9b3935d0134ec3547e390e26b620 100644 (file)
@@ -70,8 +70,8 @@ typedef struct
 
 static void rebuild_relation(Relation OldHeap, Oid indexOid, bool verbose);
 static void copy_table_data(Oid OIDNewHeap, Oid OIDOldHeap, Oid OIDOldIndex,
-                               bool verbose, bool *pSwapToastByContent,
-                               TransactionId *pFreezeXid, MultiXactId *pCutoffMulti);
+                                                       bool verbose, bool *pSwapToastByContent,
+                                                       TransactionId *pFreezeXid, MultiXactId *pCutoffMulti);
 static List *get_tables_to_cluster(MemoryContext cluster_context);
 
 
index 5f81aa57d42d00a7d0317ad541a615c4b32c3217..b00891ffd2b8db70fec1975f4841f6573310efba 100644 (file)
@@ -354,13 +354,13 @@ static const char BinarySignature[11] = "PGCOPY\n\377\r\n\0";
 
 /* non-export function prototypes */
 static CopyState BeginCopy(ParseState *pstate, bool is_from, Relation rel,
-                 RawStmt *raw_query, Oid queryRelId, List *attnamelist,
-                 List *options);
+                                                  RawStmt *raw_query, Oid queryRelId, List *attnamelist,
+                                                  List *options);
 static void EndCopy(CopyState cstate);
 static void ClosePipeToProgram(CopyState cstate);
 static CopyState BeginCopyTo(ParseState *pstate, Relation rel, RawStmt *query,
-                       Oid queryRelId, const char *filename, bool is_program,
-                       List *attnamelist, List *options);
+                                                        Oid queryRelId, const char *filename, bool is_program,
+                                                        List *attnamelist, List *options);
 static void EndCopyTo(CopyState cstate);
 static uint64 DoCopyTo(CopyState cstate);
 static uint64 CopyTo(CopyState cstate);
@@ -370,14 +370,14 @@ static bool CopyReadLineText(CopyState cstate);
 static int     CopyReadAttributesText(CopyState cstate);
 static int     CopyReadAttributesCSV(CopyState cstate);
 static Datum CopyReadBinaryAttribute(CopyState cstate,
-                                               int column_no, FmgrInfo *flinfo,
-                                               Oid typioparam, int32 typmod,
-                                               bool *isnull);
+                                                                        int column_no, FmgrInfo *flinfo,
+                                                                        Oid typioparam, int32 typmod,
+                                                                        bool *isnull);
 static void CopyAttributeOutText(CopyState cstate, char *string);
 static void CopyAttributeOutCSV(CopyState cstate, char *string,
-                                       bool use_quote, bool single_attr);
+                                                               bool use_quote, bool single_attr);
 static List *CopyGetAttnums(TupleDesc tupDesc, Relation rel,
-                          List *attnamelist);
+                                                       List *attnamelist);
 static char *limit_printout_length(const char *str);
 
 /* Low-level communications functions */
@@ -388,8 +388,8 @@ static void CopySendData(CopyState cstate, const void *databuf, int datasize);
 static void CopySendString(CopyState cstate, const char *str);
 static void CopySendChar(CopyState cstate, char c);
 static void CopySendEndOfRow(CopyState cstate);
-static int CopyGetData(CopyState cstate, void *databuf,
-                       int minread, int maxread);
+static int     CopyGetData(CopyState cstate, void *databuf,
+                                               int minread, int maxread);
 static void CopySendInt32(CopyState cstate, int32 val);
 static bool CopyGetInt32(CopyState cstate, int32 *val);
 static void CopySendInt16(CopyState cstate, int16 val);
index 5015e5b3b602a1d46cc25999686c8f8827f21da9..15207bf75a1766b55301e3c13f895dcfe09f2a38 100644 (file)
@@ -82,11 +82,11 @@ static void createdb_failure_callback(int code, Datum arg);
 static void movedb(const char *dbname, const char *tblspcname);
 static void movedb_failure_callback(int code, Datum arg);
 static bool get_db_info(const char *name, LOCKMODE lockmode,
-                       Oid *dbIdP, Oid *ownerIdP,
-                       int *encodingP, bool *dbIsTemplateP, bool *dbAllowConnP,
-                       Oid *dbLastSysOidP, TransactionId *dbFrozenXidP,
-                       MultiXactId *dbMinMultiP,
-                       Oid *dbTablespace, char **dbCollate, char **dbCtype);
+                                               Oid *dbIdP, Oid *ownerIdP,
+                                               int *encodingP, bool *dbIsTemplateP, bool *dbAllowConnP,
+                                               Oid *dbLastSysOidP, TransactionId *dbFrozenXidP,
+                                               MultiXactId *dbMinMultiP,
+                                               Oid *dbTablespace, char **dbCollate, char **dbCtype);
 static bool have_createdb_privilege(void);
 static void remove_dbtablespaces(Oid db_id);
 static bool check_db_file_conflict(Oid db_id);
index f26a2f4779a33b4d663ada8692a8511289b301dc..be7a40d5d2d82eb67fab328d30e38c46dd7be77d 100644 (file)
 
 
 static void does_not_exist_skipping(ObjectType objtype,
-                                               Node *object);
+                                                                       Node *object);
 static bool owningrel_does_not_exist_skipping(List *object,
-                                                                 const char **msg, char **name);
+                                                                                         const char **msg, char **name);
 static bool schema_does_not_exist_skipping(List *object,
-                                                          const char **msg, char **name);
+                                                                                  const char **msg, char **name);
 static bool type_in_list_does_not_exist_skipping(List *typenames,
-                                                                        const char **msg, char **name);
+                                                                                                const char **msg, char **name);
 
 
 /*
index adb77d8f6925b47f45c11d8ea38c1dba40ee3726..efef120c038fdb4258ca2030a5d436a8651a775e 100644 (file)
@@ -148,15 +148,15 @@ typedef struct SQLDropObject
 } SQLDropObject;
 
 static void AlterEventTriggerOwner_internal(Relation rel,
-                                                               HeapTuple tup,
-                                                               Oid newOwnerId);
+                                                                                       HeapTuple tup,
+                                                                                       Oid newOwnerId);
 static event_trigger_command_tag_check_result check_ddl_tag(const char *tag);
 static event_trigger_command_tag_check_result check_table_rewrite_ddl_tag(
-                                                       const char *tag);
+                                                                                                                                                 const char *tag);
 static void error_duplicate_filter_variable(const char *defname);
 static Datum filter_list_to_array(List *filterlist);
-static Oid insert_event_trigger_tuple(const char *trigname, const char *eventname,
-                                                  Oid evtOwner, Oid funcoid, List *tags);
+static Oid     insert_event_trigger_tuple(const char *trigname, const char *eventname,
+                                                                          Oid evtOwner, Oid funcoid, List *tags);
 static void validate_ddl_tags(const char *filtervar, List *taglist);
 static void validate_table_rewrite_tags(const char *filtervar, List *taglist);
 static void EventTriggerInvoke(List *fn_oid_list, EventTriggerData *trigdata);
index 039a87c15519d4c722149ee51d677fac5da06bc1..92969636b756b38aeb2318f9c4cb6ff950472292 100644 (file)
@@ -54,79 +54,79 @@ explain_get_index_name_hook_type explain_get_index_name_hook = NULL;
 #define X_NOWHITESPACE 4
 
 static void ExplainOneQuery(Query *query, int cursorOptions,
-                               IntoClause *into, ExplainState *es,
-                               const char *queryString, ParamListInfo params,
-                               QueryEnvironment *queryEnv);
+                                                       IntoClause *into, ExplainState *es,
+                                                       const char *queryString, ParamListInfo params,
+                                                       QueryEnvironment *queryEnv);
 static void report_triggers(ResultRelInfo *rInfo, bool show_relname,
-                               ExplainState *es);
+                                                       ExplainState *es);
 static double elapsed_time(instr_time *starttime);
 static bool ExplainPreScanNode(PlanState *planstate, Bitmapset **rels_used);
 static void ExplainNode(PlanState *planstate, List *ancestors,
-                       const char *relationship, const char *plan_name,
-                       ExplainState *es);
+                                               const char *relationship, const char *plan_name,
+                                               ExplainState *es);
 static void show_plan_tlist(PlanState *planstate, List *ancestors,
-                               ExplainState *es);
+                                                       ExplainState *es);
 static void show_expression(Node *node, const char *qlabel,
-                               PlanState *planstate, List *ancestors,
-                               bool useprefix, ExplainState *es);
+                                                       PlanState *planstate, List *ancestors,
+                                                       bool useprefix, ExplainState *es);
 static void show_qual(List *qual, const char *qlabel,
-                 PlanState *planstate, List *ancestors,
-                 bool useprefix, ExplainState *es);
+                                         PlanState *planstate, List *ancestors,
+                                         bool useprefix, ExplainState *es);
 static void show_scan_qual(List *qual, const char *qlabel,
-                          PlanState *planstate, List *ancestors,
-                          ExplainState *es);
+                                                  PlanState *planstate, List *ancestors,
+                                                  ExplainState *es);
 static void show_upper_qual(List *qual, const char *qlabel,
-                               PlanState *planstate, List *ancestors,
-                               ExplainState *es);
+                                                       PlanState *planstate, List *ancestors,
+                                                       ExplainState *es);
 static void show_sort_keys(SortState *sortstate, List *ancestors,
-                          ExplainState *es);
+                                                  ExplainState *es);
 static void show_merge_append_keys(MergeAppendState *mstate, List *ancestors,
-                                          ExplainState *es);
+                                                                  ExplainState *es);
 static void show_agg_keys(AggState *astate, List *ancestors,
-                         ExplainState *es);
+                                                 ExplainState *es);
 static void show_grouping_sets(PlanState *planstate, Agg *agg,
-                                  List *ancestors, ExplainState *es);
+                                                          List *ancestors, ExplainState *es);
 static void show_grouping_set_keys(PlanState *planstate,
-                                          Agg *aggnode, Sort *sortnode,
-                                          List *context, bool useprefix,
-                                          List *ancestors, ExplainState *es);
+                                                                  Agg *aggnode, Sort *sortnode,
+                                                                  List *context, bool useprefix,
+                                                                  List *ancestors, ExplainState *es);
 static void show_group_keys(GroupState *gstate, List *ancestors,
-                               ExplainState *es);
+                                                       ExplainState *es);
 static void show_sort_group_keys(PlanState *planstate, const char *qlabel,
-                                        int nkeys, AttrNumber *keycols,
-                                        Oid *sortOperators, Oid *collations, bool *nullsFirst,
-                                        List *ancestors, ExplainState *es);
+                                                                int nkeys, AttrNumber *keycols,
+                                                                Oid *sortOperators, Oid *collations, bool *nullsFirst,
+                                                                List *ancestors, ExplainState *es);
 static void show_sortorder_options(StringInfo buf, Node *sortexpr,
-                                          Oid sortOperator, Oid collation, bool nullsFirst);
+                                                                  Oid sortOperator, Oid collation, bool nullsFirst);
 static void show_tablesample(TableSampleClause *tsc, PlanState *planstate,
-                                List *ancestors, ExplainState *es);
+                                                        List *ancestors, ExplainState *es);
 static void show_sort_info(SortState *sortstate, ExplainState *es);
 static void show_hash_info(HashState *hashstate, ExplainState *es);
 static void show_tidbitmap_info(BitmapHeapScanState *planstate,
-                                       ExplainState *es);
+                                                               ExplainState *es);
 static void show_instrumentation_count(const char *qlabel, int which,
-                                                  PlanState *planstate, ExplainState *es);
+                                                                          PlanState *planstate, ExplainState *es);
 static void show_foreignscan_info(ForeignScanState *fsstate, ExplainState *es);
 static void show_eval_params(Bitmapset *bms_params, ExplainState *es);
 static const char *explain_get_index_name(Oid indexId);
 static void show_buffer_usage(ExplainState *es, const BufferUsage *usage);
 static void ExplainIndexScanDetails(Oid indexid, ScanDirection indexorderdir,
-                                               ExplainState *es);
+                                                                       ExplainState *es);
 static void ExplainScanTarget(Scan *plan, ExplainState *es);
 static void ExplainModifyTarget(ModifyTable *plan, ExplainState *es);
 static void ExplainTargetRel(Plan *plan, Index rti, ExplainState *es);
 static void show_modifytable_info(ModifyTableState *mtstate, List *ancestors,
-                                         ExplainState *es);
+                                                                 ExplainState *es);
 static void ExplainMemberNodes(PlanState **planstates, int nsubnodes,
-                                  int nplans, List *ancestors, ExplainState *es);
+                                                          int nplans, List *ancestors, ExplainState *es);
 static void ExplainSubPlans(List *plans, List *ancestors,
-                               const char *relationship, ExplainState *es);
+                                                       const char *relationship, ExplainState *es);
 static void ExplainCustomChildren(CustomScanState *css,
-                                         List *ancestors, ExplainState *es);
+                                                                 List *ancestors, ExplainState *es);
 static void ExplainProperty(const char *qlabel, const char *unit,
-                               const char *value, bool numeric, ExplainState *es);
+                                                       const char *value, bool numeric, ExplainState *es);
 static void ExplainDummyGroup(const char *objtype, const char *labelname,
-                                 ExplainState *es);
+                                                         ExplainState *es);
 static void ExplainXMLTag(const char *tagname, int flags, ExplainState *es);
 static void ExplainJSONLineEnding(ExplainState *es);
 static void ExplainYAMLLineStarting(ExplainState *es);
index 300bb1261f757421aa3dc4ab6adc248b49d0832b..59ca5cd5a9ff4f15be99daadcc10ec97d045997a 100644 (file)
@@ -104,27 +104,27 @@ typedef struct ExtensionVersionInfo
 
 /* Local functions */
 static List *find_update_path(List *evi_list,
-                                ExtensionVersionInfo *evi_start,
-                                ExtensionVersionInfo *evi_target,
-                                bool reject_indirect,
-                                bool reinitialize);
-static Oid get_required_extension(char *reqExtensionName,
-                                          char *extensionName,
-                                          char *origSchemaName,
-                                          bool cascade,
-                                          List *parents,
-                                          bool is_create);
+                                                         ExtensionVersionInfo *evi_start,
+                                                         ExtensionVersionInfo *evi_target,
+                                                         bool reject_indirect,
+                                                         bool reinitialize);
+static Oid     get_required_extension(char *reqExtensionName,
+                                                                  char *extensionName,
+                                                                  char *origSchemaName,
+                                                                  bool cascade,
+                                                                  List *parents,
+                                                                  bool is_create);
 static void get_available_versions_for_extension(ExtensionControlFile *pcontrol,
-                                                                        Tuplestorestate *tupstore,
-                                                                        TupleDesc tupdesc);
+                                                                                                Tuplestorestate *tupstore,
+                                                                                                TupleDesc tupdesc);
 static Datum convert_requires_to_datum(List *requires);
 static void ApplyExtensionUpdates(Oid extensionOid,
-                                         ExtensionControlFile *pcontrol,
-                                         const char *initialVersion,
-                                         List *updateVersions,
-                                         char *origSchemaName,
-                                         bool cascade,
-                                         bool is_create);
+                                                                 ExtensionControlFile *pcontrol,
+                                                                 const char *initialVersion,
+                                                                 List *updateVersions,
+                                                                 char *origSchemaName,
+                                                                 bool cascade,
+                                                                 bool is_create);
 static char *read_whole_file(const char *filename, int *length);
 
 
index 62a4c4fb9beb8932930ae60ba262509071097dbb..40ea629ffe7f43a3be46f310aada285702dddf1f 100644 (file)
 /* non-export function prototypes */
 static void CheckPredicate(Expr *predicate);
 static void ComputeIndexAttrs(IndexInfo *indexInfo,
-                                 Oid *typeOidP,
-                                 Oid *collationOidP,
-                                 Oid *classOidP,
-                                 int16 *colOptionP,
-                                 List *attList,
-                                 List *exclusionOpNames,
-                                 Oid relId,
-                                 const char *accessMethodName, Oid accessMethodId,
-                                 bool amcanorder,
-                                 bool isconstraint);
+                                                         Oid *typeOidP,
+                                                         Oid *collationOidP,
+                                                         Oid *classOidP,
+                                                         int16 *colOptionP,
+                                                         List *attList,
+                                                         List *exclusionOpNames,
+                                                         Oid relId,
+                                                         const char *accessMethodName, Oid accessMethodId,
+                                                         bool amcanorder,
+                                                         bool isconstraint);
 static char *ChooseIndexName(const char *tabname, Oid namespaceId,
-                               List *colnames, List *exclusionOpNames,
-                               bool primary, bool isconstraint);
+                                                        List *colnames, List *exclusionOpNames,
+                                                        bool primary, bool isconstraint);
 static char *ChooseIndexNameAddition(List *colnames);
 static List *ChooseIndexColumnNames(List *indexElems);
 static void RangeVarCallbackForReindexIndex(const RangeVar *relation,
-                                                               Oid relId, Oid oldRelId, void *arg);
+                                                                                       Oid relId, Oid oldRelId, void *arg);
 static bool ReindexRelationConcurrently(Oid relationOid, int options);
 static void ReindexPartitionedIndex(Relation parentIdx);
 static void update_relispartition(Oid relationId, bool newval);
index 97cf0bc4add985f4b04c8b0866b0a8fa5d328f28..417d595a7fd375d6129e9ddaafce5e6ee69cfb60 100644 (file)
@@ -31,7 +31,7 @@
 static void LockTableRecurse(Oid reloid, LOCKMODE lockmode, bool nowait, Oid userid);
 static AclResult LockTableAclCheck(Oid relid, LOCKMODE lockmode, Oid userid);
 static void RangeVarCallbackForLockTable(const RangeVar *rv, Oid relid,
-                                                        Oid oldrelid, void *arg);
+                                                                                Oid oldrelid, void *arg);
 static void LockViewRecurse(Oid reloid, LOCKMODE lockmode, bool nowait, List *ancestor_views);
 
 /*
index 99bf3c29f27bab98a390b479fc75d5bcd52ebda9..dc2940cd4eb92f47c8963c4a86352a9fdb7cf7bf 100644 (file)
@@ -65,10 +65,10 @@ static bool transientrel_receive(TupleTableSlot *slot, DestReceiver *self);
 static void transientrel_shutdown(DestReceiver *self);
 static void transientrel_destroy(DestReceiver *self);
 static uint64 refresh_matview_datafill(DestReceiver *dest, Query *query,
-                                                const char *queryString);
+                                                                          const char *queryString);
 static char *make_temptable_name_n(char *tempname, int n);
 static void refresh_by_match_merge(Oid matviewOid, Oid tempOid, Oid relowner,
-                                          int save_sec_context);
+                                                                  int save_sec_context);
 static void refresh_by_heap_swap(Oid matviewOid, Oid OIDNewHeap, char relpersistence);
 static bool is_usable_unique_index(Relation indexRel);
 static void OpenMatViewIncrementalMaintenance(void);
index b8c7b9657f7a67aaef223d6d646fa3aa529f69d7..6a1ccdeb826b63fcb00cfb5040fc5e8ca8136257 100644 (file)
 
 
 static void AlterOpFamilyAdd(AlterOpFamilyStmt *stmt,
-                                Oid amoid, Oid opfamilyoid,
-                                int maxOpNumber, int maxProcNumber,
-                                List *items);
+                                                        Oid amoid, Oid opfamilyoid,
+                                                        int maxOpNumber, int maxProcNumber,
+                                                        List *items);
 static void AlterOpFamilyDrop(AlterOpFamilyStmt *stmt,
-                                 Oid amoid, Oid opfamilyoid,
-                                 int maxOpNumber, int maxProcNumber,
-                                 List *items);
+                                                         Oid amoid, Oid opfamilyoid,
+                                                         int maxOpNumber, int maxProcNumber,
+                                                         List *items);
 static void processTypesSpec(List *args, Oid *lefttype, Oid *righttype);
 static void assignOperTypes(OpFamilyMember *member, Oid amoid, Oid typeoid);
 static void assignProcTypes(OpFamilyMember *member, Oid amoid, Oid typeoid);
 static void addFamilyMember(List **list, OpFamilyMember *member, bool isProc);
 static void storeOperators(List *opfamilyname, Oid amoid,
-                          Oid opfamilyoid, Oid opclassoid,
-                          List *operators, bool isAdd);
+                                                  Oid opfamilyoid, Oid opclassoid,
+                                                  List *operators, bool isAdd);
 static void storeProcedures(List *opfamilyname, Oid amoid,
-                               Oid opfamilyoid, Oid opclassoid,
-                               List *procedures, bool isAdd);
+                                                       Oid opfamilyoid, Oid opclassoid,
+                                                       List *procedures, bool isAdd);
 static void dropOperators(List *opfamilyname, Oid amoid, Oid opfamilyoid,
-                         List *operators);
+                                                 List *operators);
 static void dropProcedures(List *opfamilyname, Oid amoid, Oid opfamilyoid,
-                          List *procedures);
+                                                  List *procedures);
 
 /*
  * OpFamilyCacheLookup
index 6a85e1436915962a2627f732a34884317bdf10e0..1df76623adbde1dd46bce6c3327c0ef121c8fae1 100644 (file)
@@ -48,7 +48,7 @@
 #include "utils/syscache.h"
 
 static void RangeVarCallbackForPolicy(const RangeVar *rv,
-                                                 Oid relid, Oid oldrelid, void *arg);
+                                                                         Oid relid, Oid oldrelid, void *arg);
 static char parse_policy_command(const char *cmd_name);
 static Datum *policy_role_list_to_array(List *roles, int *num_roles);
 
index fc231caf707728f849d8fe103ee419b5351eaa55..c278ee7318bb9d16922744e71b87ae1aea161633 100644 (file)
@@ -47,7 +47,7 @@ static HTAB *prepared_queries = NULL;
 
 static void InitQueryHashTable(void);
 static ParamListInfo EvaluateParams(PreparedStatement *pstmt, List *params,
-                          const char *queryString, EState *estate);
+                                                                       const char *queryString, EState *estate);
 static Datum build_regtype_array(Oid *param_types, int num_params);
 
 /*
index b7917618bfffee3b9002b2a9d3fd5c7767a584ae..343cd1dbb054bae73f35b28c595360878add81a3 100644 (file)
@@ -51,8 +51,8 @@ typedef struct
 } PLTemplate;
 
 static ObjectAddress create_proc_lang(const char *languageName, bool replace,
-                                Oid languageOwner, Oid handlerOid, Oid inlineOid,
-                                Oid valOid, bool trusted);
+                                                                         Oid languageOwner, Oid handlerOid, Oid inlineOid,
+                                                                         Oid valOid, bool trusted);
 static PLTemplate *find_language_template(const char *languageName);
 
 /*
index 0d32f2d6e3482279b102f1bf528fdbb833c3c42a..1ac1a71bd95e63dd8dadc16fda9849140525547c 100644 (file)
@@ -53,7 +53,7 @@
 static List *OpenTableList(List *tables);
 static void CloseTableList(List *rels);
 static void PublicationAddTables(Oid pubid, List *rels, bool if_not_exists,
-                                        AlterPublicationStmt *stmt);
+                                                                AlterPublicationStmt *stmt);
 static void PublicationDropTables(Oid pubid, List *rels, bool missing_ok);
 
 static void
index e9add1b9873a25d071d61a5758740544090b019f..0960b339cab023326c95c4567eab685498544dbb 100644 (file)
@@ -99,13 +99,13 @@ static Relation lock_and_open_sequence(SeqTable seq);
 static void create_seq_hashtable(void);
 static void init_sequence(Oid relid, SeqTable *p_elm, Relation *p_rel);
 static Form_pg_sequence_data read_seq_tuple(Relation rel,
-                          Buffer *buf, HeapTuple seqdatatuple);
+                                                                                       Buffer *buf, HeapTuple seqdatatuple);
 static void init_params(ParseState *pstate, List *options, bool for_identity,
-                       bool isInit,
-                       Form_pg_sequence seqform,
-                       Form_pg_sequence_data seqdataform,
-                       bool *need_seq_rewrite,
-                       List **owned_by);
+                                               bool isInit,
+                                               Form_pg_sequence seqform,
+                                               Form_pg_sequence_data seqdataform,
+                                               bool *need_seq_rewrite,
+                                               List **owned_by);
 static void do_setval(Oid relid, int64 next, bool iscalled);
 static void process_owned_by(Relation seqrel, List *owned_by, bool for_identity);
 
index 95ec352abe688ad08ef73b70efbf2ae4aa53fbbf..217d3a4533a14169ed920656ce108ec0818e1422 100644 (file)
@@ -36,7 +36,7 @@
 
 
 static char *ChooseExtendedStatisticName(const char *name1, const char *name2,
-                                                       const char *label, Oid namespaceid);
+                                                                                const char *label, Oid namespaceid);
 static char *ChooseExtendedStatisticNameAddition(List *exprs);
 
 
index 7fa8dcce61476a6ae7149c24b014e9e374f60d20..602a8dbd1c3aa0534dd08c9919bb7326578e3853 100644 (file)
@@ -302,196 +302,196 @@ struct DropRelationCallbackState
 static void truncate_check_rel(Oid relid, Form_pg_class reltuple);
 static void truncate_check_activity(Relation rel);
 static void RangeVarCallbackForTruncate(const RangeVar *relation,
-                                                       Oid relId, Oid oldRelId, void *arg);
+                                                                               Oid relId, Oid oldRelId, void *arg);
 static List *MergeAttributes(List *schema, List *supers, char relpersistence,
-                               bool is_partition, List **supconstr);
+                                                        bool is_partition, List **supconstr);
 static bool MergeCheckConstraint(List *constraints, char *name, Node *expr);
 static void MergeAttributesIntoExisting(Relation child_rel, Relation parent_rel);
 static void MergeConstraintsIntoExisting(Relation child_rel, Relation parent_rel);
 static void StoreCatalogInheritance(Oid relationId, List *supers,
-                                               bool child_is_partition);
+                                                                       bool child_is_partition);
 static void StoreCatalogInheritance1(Oid relationId, Oid parentOid,
-                                                int32 seqNumber, Relation inhRelation,
-                                                bool child_is_partition);
+                                                                        int32 seqNumber, Relation inhRelation,
+                                                                        bool child_is_partition);
 static int     findAttrByName(const char *attributeName, List *schema);
 static void AlterIndexNamespaces(Relation classRel, Relation rel,
-                                        Oid oldNspOid, Oid newNspOid, ObjectAddresses *objsMoved);
+                                                                Oid oldNspOid, Oid newNspOid, ObjectAddresses *objsMoved);
 static void AlterSeqNamespaces(Relation classRel, Relation rel,
-                                  Oid oldNspOid, Oid newNspOid, ObjectAddresses *objsMoved,
-                                  LOCKMODE lockmode);
+                                                          Oid oldNspOid, Oid newNspOid, ObjectAddresses *objsMoved,
+                                                          LOCKMODE lockmode);
 static ObjectAddress ATExecAlterConstraint(Relation rel, AlterTableCmd *cmd,
-                                         bool recurse, bool recursing, LOCKMODE lockmode);
+                                                                                  bool recurse, bool recursing, LOCKMODE lockmode);
 static ObjectAddress ATExecValidateConstraint(Relation rel, char *constrName,
-                                                bool recurse, bool recursing, LOCKMODE lockmode);
-static int transformColumnNameList(Oid relId, List *colList,
-                                               int16 *attnums, Oid *atttypids);
-static int transformFkeyGetPrimaryKey(Relation pkrel, Oid *indexOid,
-                                                  List **attnamelist,
-                                                  int16 *attnums, Oid *atttypids,
-                                                  Oid *opclasses);
-static Oid transformFkeyCheckAttrs(Relation pkrel,
-                                               int numattrs, int16 *attnums,
-                                               Oid *opclasses);
+                                                                                         bool recurse, bool recursing, LOCKMODE lockmode);
+static int     transformColumnNameList(Oid relId, List *colList,
+                                                                       int16 *attnums, Oid *atttypids);
+static int     transformFkeyGetPrimaryKey(Relation pkrel, Oid *indexOid,
+                                                                          List **attnamelist,
+                                                                          int16 *attnums, Oid *atttypids,
+                                                                          Oid *opclasses);
+static Oid     transformFkeyCheckAttrs(Relation pkrel,
+                                                                       int numattrs, int16 *attnums,
+                                                                       Oid *opclasses);
 static void checkFkeyPermissions(Relation rel, int16 *attnums, int natts);
 static CoercionPathType findFkeyCast(Oid targetTypeId, Oid sourceTypeId,
-                        Oid *funcid);
+                                                                        Oid *funcid);
 static void validateCheckConstraint(Relation rel, HeapTuple constrtup);
 static void validateForeignKeyConstraint(char *conname,
-                                                        Relation rel, Relation pkrel,
-                                                        Oid pkindOid, Oid constraintOid);
+                                                                                Relation rel, Relation pkrel,
+                                                                                Oid pkindOid, Oid constraintOid);
 static void ATController(AlterTableStmt *parsetree,
-                        Relation rel, List *cmds, bool recurse, LOCKMODE lockmode);
+                                                Relation rel, List *cmds, bool recurse, LOCKMODE lockmode);
 static void ATPrepCmd(List **wqueue, Relation rel, AlterTableCmd *cmd,
-                 bool recurse, bool recursing, LOCKMODE lockmode);
+                                         bool recurse, bool recursing, LOCKMODE lockmode);
 static void ATRewriteCatalogs(List **wqueue, LOCKMODE lockmode);
 static void ATExecCmd(List **wqueue, AlteredTableInfo *tab, Relation rel,
-                 AlterTableCmd *cmd, LOCKMODE lockmode);
+                                         AlterTableCmd *cmd, LOCKMODE lockmode);
 static void ATRewriteTables(AlterTableStmt *parsetree,
-                               List **wqueue, LOCKMODE lockmode);
+                                                       List **wqueue, LOCKMODE lockmode);
 static void ATRewriteTable(AlteredTableInfo *tab, Oid OIDNewHeap, LOCKMODE lockmode);
 static AlteredTableInfo *ATGetQueueEntry(List **wqueue, Relation rel);
 static void ATSimplePermissions(Relation rel, int allowed_targets);
 static void ATWrongRelkindError(Relation rel, int allowed_targets);
 static void ATSimpleRecursion(List **wqueue, Relation rel,
-                                 AlterTableCmd *cmd, bool recurse, LOCKMODE lockmode);
+                                                         AlterTableCmd *cmd, bool recurse, LOCKMODE lockmode);
 static void ATTypedTableRecursion(List **wqueue, Relation rel, AlterTableCmd *cmd,
-                                         LOCKMODE lockmode);
+                                                                 LOCKMODE lockmode);
 static List *find_typed_table_dependencies(Oid typeOid, const char *typeName,
-                                                         DropBehavior behavior);
+                                                                                  DropBehavior behavior);
 static void ATPrepAddColumn(List **wqueue, Relation rel, bool recurse, bool recursing,
-                               bool is_view, AlterTableCmd *cmd, LOCKMODE lockmode);
+                                                       bool is_view, AlterTableCmd *cmd, LOCKMODE lockmode);
 static ObjectAddress ATExecAddColumn(List **wqueue, AlteredTableInfo *tab,
-                               Relation rel, ColumnDef *colDef,
-                               bool recurse, bool recursing,
-                               bool if_not_exists, LOCKMODE lockmode);
+                                                                        Relation rel, ColumnDef *colDef,
+                                                                        bool recurse, bool recursing,
+                                                                        bool if_not_exists, LOCKMODE lockmode);
 static bool check_for_column_name_collision(Relation rel, const char *colname,
-                                                               bool if_not_exists);
+                                                                                       bool if_not_exists);
 static void add_column_datatype_dependency(Oid relid, int32 attnum, Oid typid);
 static void add_column_collation_dependency(Oid relid, int32 attnum, Oid collid);
 static void ATPrepDropNotNull(Relation rel, bool recurse, bool recursing);
 static ObjectAddress ATExecDropNotNull(Relation rel, const char *colName, LOCKMODE lockmode);
 static void ATPrepSetNotNull(List **wqueue, Relation rel,
-                                AlterTableCmd *cmd, bool recurse, bool recursing,
-                                LOCKMODE lockmode);
+                                                        AlterTableCmd *cmd, bool recurse, bool recursing,
+                                                        LOCKMODE lockmode);
 static ObjectAddress ATExecSetNotNull(AlteredTableInfo *tab, Relation rel,
-                                const char *colName, LOCKMODE lockmode);
+                                                                         const char *colName, LOCKMODE lockmode);
 static void ATExecCheckNotNull(AlteredTableInfo *tab, Relation rel,
-                                  const char *colName, LOCKMODE lockmode);
+                                                          const char *colName, LOCKMODE lockmode);
 static bool NotNullImpliedByRelConstraints(Relation rel, Form_pg_attribute attr);
 static bool ConstraintImpliedByRelConstraint(Relation scanrel,
-                                                                List *partConstraint, List *existedConstraints);
+                                                                                        List *partConstraint, List *existedConstraints);
 static ObjectAddress ATExecColumnDefault(Relation rel, const char *colName,
-                                       Node *newDefault, LOCKMODE lockmode);
+                                                                                Node *newDefault, LOCKMODE lockmode);
 static ObjectAddress ATExecAddIdentity(Relation rel, const char *colName,
-                                 Node *def, LOCKMODE lockmode);
+                                                                          Node *def, LOCKMODE lockmode);
 static ObjectAddress ATExecSetIdentity(Relation rel, const char *colName,
-                                 Node *def, LOCKMODE lockmode);
+                                                                          Node *def, LOCKMODE lockmode);
 static ObjectAddress ATExecDropIdentity(Relation rel, const char *colName, bool missing_ok, LOCKMODE lockmode);
 static void ATPrepSetStatistics(Relation rel, const char *colName, int16 colNum,
-                                       Node *newValue, LOCKMODE lockmode);
+                                                               Node *newValue, LOCKMODE lockmode);
 static ObjectAddress ATExecSetStatistics(Relation rel, const char *colName, int16 colNum,
-                                       Node *newValue, LOCKMODE lockmode);
+                                                                                Node *newValue, LOCKMODE lockmode);
 static ObjectAddress ATExecSetOptions(Relation rel, const char *colName,
-                                Node *options, bool isReset, LOCKMODE lockmode);
+                                                                         Node *options, bool isReset, LOCKMODE lockmode);
 static ObjectAddress ATExecSetStorage(Relation rel, const char *colName,
-                                Node *newValue, LOCKMODE lockmode);
+                                                                         Node *newValue, LOCKMODE lockmode);
 static void ATPrepDropColumn(List **wqueue, Relation rel, bool recurse, bool recursing,
-                                AlterTableCmd *cmd, LOCKMODE lockmode);
+                                                        AlterTableCmd *cmd, LOCKMODE lockmode);
 static ObjectAddress ATExecDropColumn(List **wqueue, Relation rel, const char *colName,
-                                DropBehavior behavior,
-                                bool recurse, bool recursing,
-                                bool missing_ok, LOCKMODE lockmode);
+                                                                         DropBehavior behavior,
+                                                                         bool recurse, bool recursing,
+                                                                         bool missing_ok, LOCKMODE lockmode);
 static ObjectAddress ATExecAddIndex(AlteredTableInfo *tab, Relation rel,
-                          IndexStmt *stmt, bool is_rebuild, LOCKMODE lockmode);
+                                                                       IndexStmt *stmt, bool is_rebuild, LOCKMODE lockmode);
 static ObjectAddress ATExecAddConstraint(List **wqueue,
-                                       AlteredTableInfo *tab, Relation rel,
-                                       Constraint *newConstraint, bool recurse, bool is_readd,
-                                       LOCKMODE lockmode);
+                                                                                AlteredTableInfo *tab, Relation rel,
+                                                                                Constraint *newConstraint, bool recurse, bool is_readd,
+                                                                                LOCKMODE lockmode);
 static char *ChooseForeignKeyConstraintNameAddition(List *colnames);
 static ObjectAddress ATExecAddIndexConstraint(AlteredTableInfo *tab, Relation rel,
-                                                IndexStmt *stmt, LOCKMODE lockmode);
+                                                                                         IndexStmt *stmt, LOCKMODE lockmode);
 static ObjectAddress ATAddCheckConstraint(List **wqueue,
-                                        AlteredTableInfo *tab, Relation rel,
-                                        Constraint *constr,
-                                        bool recurse, bool recursing, bool is_readd,
-                                        LOCKMODE lockmode);
+                                                                                 AlteredTableInfo *tab, Relation rel,
+                                                                                 Constraint *constr,
+                                                                                 bool recurse, bool recursing, bool is_readd,
+                                                                                 LOCKMODE lockmode);
 static ObjectAddress ATAddForeignKeyConstraint(List **wqueue, AlteredTableInfo *tab,
-                                                 Relation rel, Constraint *fkconstraint, Oid parentConstr,
-                                                 bool recurse, bool recursing,
-                                                 LOCKMODE lockmode);
+                                                                                          Relation rel, Constraint *fkconstraint, Oid parentConstr,
+                                                                                          bool recurse, bool recursing,
+                                                                                          LOCKMODE lockmode);
 static ObjectAddress addFkRecurseReferenced(List **wqueue, Constraint *fkconstraint,
-                                          Relation rel, Relation pkrel, Oid indexOid, Oid parentConstr,
-                                          int numfks, int16 *pkattnum, int16 *fkattnum,
-                                          Oid *pfeqoperators, Oid *ppeqoperators, Oid *ffeqoperators,
-                                          bool old_check_ok);
+                                                                                       Relation rel, Relation pkrel, Oid indexOid, Oid parentConstr,
+                                                                                       int numfks, int16 *pkattnum, int16 *fkattnum,
+                                                                                       Oid *pfeqoperators, Oid *ppeqoperators, Oid *ffeqoperators,
+                                                                                       bool old_check_ok);
 static void addFkRecurseReferencing(List **wqueue, Constraint *fkconstraint,
-                                               Relation rel, Relation pkrel, Oid indexOid, Oid parentConstr,
-                                               int numfks, int16 *pkattnum, int16 *fkattnum,
-                                               Oid *pfeqoperators, Oid *ppeqoperators, Oid *ffeqoperators,
-                                               bool old_check_ok, LOCKMODE lockmode);
+                                                                       Relation rel, Relation pkrel, Oid indexOid, Oid parentConstr,
+                                                                       int numfks, int16 *pkattnum, int16 *fkattnum,
+                                                                       Oid *pfeqoperators, Oid *ppeqoperators, Oid *ffeqoperators,
+                                                                       bool old_check_ok, LOCKMODE lockmode);
 static void CloneForeignKeyConstraints(List **wqueue, Relation parentRel,
-                                                  Relation partitionRel);
+                                                                          Relation partitionRel);
 static void CloneFkReferenced(Relation parentRel, Relation partitionRel);
 static void CloneFkReferencing(List **wqueue, Relation parentRel,
-                                  Relation partRel);
+                                                          Relation partRel);
 static void createForeignKeyCheckTriggers(Oid myRelOid, Oid refRelOid,
-                                                         Constraint *fkconstraint, Oid constraintOid,
-                                                         Oid indexOid);
+                                                                                 Constraint *fkconstraint, Oid constraintOid,
+                                                                                 Oid indexOid);
 static void createForeignKeyActionTriggers(Relation rel, Oid refRelOid,
-                                                          Constraint *fkconstraint, Oid constraintOid,
-                                                          Oid indexOid);
+                                                                                  Constraint *fkconstraint, Oid constraintOid,
+                                                                                  Oid indexOid);
 static bool tryAttachPartitionForeignKey(ForeignKeyCacheInfo *fk,
-                                                        Oid partRelid,
-                                                        Oid parentConstrOid, int numfks,
-                                                        AttrNumber *mapped_conkey, AttrNumber *confkey,
-                                                        Oid *conpfeqop);
+                                                                                Oid partRelid,
+                                                                                Oid parentConstrOid, int numfks,
+                                                                                AttrNumber *mapped_conkey, AttrNumber *confkey,
+                                                                                Oid *conpfeqop);
 static void ATExecDropConstraint(Relation rel, const char *constrName,
-                                        DropBehavior behavior,
-                                        bool recurse, bool recursing,
-                                        bool missing_ok, LOCKMODE lockmode);
+                                                                DropBehavior behavior,
+                                                                bool recurse, bool recursing,
+                                                                bool missing_ok, LOCKMODE lockmode);
 static void ATPrepAlterColumnType(List **wqueue,
-                                         AlteredTableInfo *tab, Relation rel,
-                                         bool recurse, bool recursing,
-                                         AlterTableCmd *cmd, LOCKMODE lockmode);
+                                                                 AlteredTableInfo *tab, Relation rel,
+                                                                 bool recurse, bool recursing,
+                                                                 AlterTableCmd *cmd, LOCKMODE lockmode);
 static bool ATColumnChangeRequiresRewrite(Node *expr, AttrNumber varattno);
 static ObjectAddress ATExecAlterColumnType(AlteredTableInfo *tab, Relation rel,
-                                         AlterTableCmd *cmd, LOCKMODE lockmode);
+                                                                                  AlterTableCmd *cmd, LOCKMODE lockmode);
 static ObjectAddress ATExecAlterColumnGenericOptions(Relation rel, const char *colName,
-                                                               List *options, LOCKMODE lockmode);
+                                                                                                        List *options, LOCKMODE lockmode);
 static void ATPostAlterTypeCleanup(List **wqueue, AlteredTableInfo *tab,
-                                          LOCKMODE lockmode);
+                                                                  LOCKMODE lockmode);
 static void ATPostAlterTypeParse(Oid oldId, Oid oldRelId, Oid refRelId,
-                                        char *cmd, List **wqueue, LOCKMODE lockmode,
-                                        bool rewrite);
+                                                                char *cmd, List **wqueue, LOCKMODE lockmode,
+                                                                bool rewrite);
 static void RebuildConstraintComment(AlteredTableInfo *tab, int pass,
-                                                Oid objid, Relation rel, List *domname,
-                                                const char *conname);
+                                                                        Oid objid, Relation rel, List *domname,
+                                                                        const char *conname);
 static void TryReuseIndex(Oid oldId, IndexStmt *stmt);
 static void TryReuseForeignKey(Oid oldId, Constraint *con);
 static void change_owner_fix_column_acls(Oid relationOid,
-                                                        Oid oldOwnerId, Oid newOwnerId);
+                                                                                Oid oldOwnerId, Oid newOwnerId);
 static void change_owner_recurse_to_sequences(Oid relationOid,
-                                                                 Oid newOwnerId, LOCKMODE lockmode);
+                                                                                         Oid newOwnerId, LOCKMODE lockmode);
 static ObjectAddress ATExecClusterOn(Relation rel, const char *indexName,
-                               LOCKMODE lockmode);
+                                                                        LOCKMODE lockmode);
 static void ATExecDropCluster(Relation rel, LOCKMODE lockmode);
 static bool ATPrepChangePersistence(Relation rel, bool toLogged);
 static void ATPrepSetTableSpace(AlteredTableInfo *tab, Relation rel,
-                                       const char *tablespacename, LOCKMODE lockmode);
+                                                               const char *tablespacename, LOCKMODE lockmode);
 static void ATExecSetTableSpace(Oid tableOid, Oid newTableSpace, LOCKMODE lockmode);
 static void ATExecSetTableSpaceNoStorage(Relation rel, Oid newTableSpace);
 static void ATExecSetRelOptions(Relation rel, List *defList,
-                                       AlterTableType operation,
-                                       LOCKMODE lockmode);
+                                                               AlterTableType operation,
+                                                               LOCKMODE lockmode);
 static void ATExecEnableDisableTrigger(Relation rel, const char *trigname,
-                                                  char fires_when, bool skip_system, LOCKMODE lockmode);
+                                                                          char fires_when, bool skip_system, LOCKMODE lockmode);
 static void ATExecEnableDisableRule(Relation rel, const char *rulename,
-                                               char fires_when, LOCKMODE lockmode);
+                                                                       char fires_when, LOCKMODE lockmode);
 static void ATPrepAddInherit(Relation child_rel);
 static ObjectAddress ATExecAddInherit(Relation child_rel, RangeVar *parent, LOCKMODE lockmode);
 static ObjectAddress ATExecDropInherit(Relation rel, RangeVar *parent, LOCKMODE lockmode);
 static void drop_parent_dependency(Oid relid, Oid refclassid, Oid refobjid,
-                                          DependencyType deptype);
+                                                                  DependencyType deptype);
 static ObjectAddress ATExecAddOf(Relation rel, const TypeName *ofTypename, LOCKMODE lockmode);
 static void ATExecDropOf(Relation rel, LOCKMODE lockmode);
 static void ATExecReplicaIdentity(Relation rel, ReplicaIdentityStmt *stmt, LOCKMODE lockmode);
@@ -504,27 +504,27 @@ static void index_copy_data(Relation rel, RelFileNode newrnode);
 static const char *storage_name(char c);
 
 static void RangeVarCallbackForDropRelation(const RangeVar *rel, Oid relOid,
-                                                               Oid oldRelOid, void *arg);
+                                                                                       Oid oldRelOid, void *arg);
 static void RangeVarCallbackForAlterRelation(const RangeVar *rv, Oid relid,
-                                                                Oid oldrelid, void *arg);
+                                                                                        Oid oldrelid, void *arg);
 static PartitionSpec *transformPartitionSpec(Relation rel, PartitionSpec *partspec, char *strategy);
 static void ComputePartitionAttrs(ParseState *pstate, Relation rel, List *partParams, AttrNumber *partattrs,
-                                         List **partexprs, Oid *partopclass, Oid *partcollation, char strategy);
+                                                                 List **partexprs, Oid *partopclass, Oid *partcollation, char strategy);
 static void CreateInheritance(Relation child_rel, Relation parent_rel);
 static void RemoveInheritance(Relation child_rel, Relation parent_rel);
 static ObjectAddress ATExecAttachPartition(List **wqueue, Relation rel,
-                                         PartitionCmd *cmd);
+                                                                                  PartitionCmd *cmd);
 static void AttachPartitionEnsureIndexes(Relation rel, Relation attachrel);
 static void QueuePartitionConstraintValidation(List **wqueue, Relation scanrel,
-                                                                  List *partConstraint,
-                                                                  bool validate_default);
+                                                                                          List *partConstraint,
+                                                                                          bool validate_default);
 static void CloneRowTriggersToPartition(Relation parent, Relation partition);
 static ObjectAddress ATExecDetachPartition(Relation rel, RangeVar *name);
 static ObjectAddress ATExecAttachPartitionIdx(List **wqueue, Relation rel,
-                                                RangeVar *name);
+                                                                                         RangeVar *name);
 static void validatePartitionedIndex(Relation partedIdx, Relation partedTbl);
 static void refuseDupeIndexAttach(Relation parentIdx, Relation partIdx,
-                                         Relation partitionTbl);
+                                                                 Relation partitionTbl);
 static List *GetParentedForeignKeyRefs(Relation partition);
 static void ATDetachCheckNoForeignKeyRefs(Relation partition);
 
index 33df2ec0af3bdf6afc0a68d3e919fad742238e48..87fab52d83f521afedb20872bc96f438b8c081f8 100644 (file)
@@ -91,7 +91,7 @@ char     *temp_tablespaces = NULL;
 
 
 static void create_tablespace_directories(const char *location,
-                                                         const Oid tablespaceoid);
+                                                                                 const Oid tablespaceoid);
 static bool destroy_tablespace_directories(Oid tablespaceoid, bool redo);
 
 
index 209021a61a93518876ad338cfc1d378d7eeb38b7..3132a13785be4d4605c46357346818731865413d 100644 (file)
@@ -83,26 +83,26 @@ static int  MyTriggerDepth = 0;
 static void ConvertTriggerToFK(CreateTrigStmt *stmt, Oid funcoid);
 static void SetTriggerFlags(TriggerDesc *trigdesc, Trigger *trigger);
 static bool GetTupleForTrigger(EState *estate,
-                                  EPQState *epqstate,
-                                  ResultRelInfo *relinfo,
-                                  ItemPointer tid,
-                                  LockTupleMode lockmode,
-                                  TupleTableSlot *oldslot,
-                                  TupleTableSlot **newSlot);
+                                                          EPQState *epqstate,
+                                                          ResultRelInfo *relinfo,
+                                                          ItemPointer tid,
+                                                          LockTupleMode lockmode,
+                                                          TupleTableSlot *oldslot,
+                                                          TupleTableSlot **newSlot);
 static bool TriggerEnabled(EState *estate, ResultRelInfo *relinfo,
-                          Trigger *trigger, TriggerEvent event,
-                          Bitmapset *modifiedCols,
-                          TupleTableSlot *oldslot, TupleTableSlot *newslot);
+                                                  Trigger *trigger, TriggerEvent event,
+                                                  Bitmapset *modifiedCols,
+                                                  TupleTableSlot *oldslot, TupleTableSlot *newslot);
 static HeapTuple ExecCallTriggerFunc(TriggerData *trigdata,
-                                       int tgindx,
-                                       FmgrInfo *finfo,
-                                       Instrumentation *instr,
-                                       MemoryContext per_tuple_context);
+                                                                        int tgindx,
+                                                                        FmgrInfo *finfo,
+                                                                        Instrumentation *instr,
+                                                                        MemoryContext per_tuple_context);
 static void AfterTriggerSaveEvent(EState *estate, ResultRelInfo *relinfo,
-                                         int event, bool row_trigger,
-                                         TupleTableSlot *oldtup, TupleTableSlot *newtup,
-                                         List *recheckIndexes, Bitmapset *modifiedCols,
-                                         TransitionCaptureState *transition_capture);
+                                                                 int event, bool row_trigger,
+                                                                 TupleTableSlot *oldtup, TupleTableSlot *newtup,
+                                                                 List *recheckIndexes, Bitmapset *modifiedCols,
+                                                                 TransitionCaptureState *transition_capture);
 static void AfterTriggerEnlargeQueryState(void);
 static bool before_stmt_triggers_fired(Oid relid, CmdType cmdType);
 
@@ -3843,21 +3843,21 @@ struct AfterTriggersTableData
 static AfterTriggersData afterTriggers;
 
 static void AfterTriggerExecute(EState *estate,
-                                       AfterTriggerEvent event,
-                                       ResultRelInfo *relInfo,
-                                       TriggerDesc *trigdesc,
-                                       FmgrInfo *finfo,
-                                       Instrumentation *instr,
-                                       MemoryContext per_tuple_context,
-                                       TupleTableSlot *trig_tuple_slot1,
-                                       TupleTableSlot *trig_tuple_slot2);
+                                                               AfterTriggerEvent event,
+                                                               ResultRelInfo *relInfo,
+                                                               TriggerDesc *trigdesc,
+                                                               FmgrInfo *finfo,
+                                                               Instrumentation *instr,
+                                                               MemoryContext per_tuple_context,
+                                                               TupleTableSlot *trig_tuple_slot1,
+                                                               TupleTableSlot *trig_tuple_slot2);
 static AfterTriggersTableData *GetAfterTriggersTableData(Oid relid,
-                                                 CmdType cmdType);
+                                                                                                                CmdType cmdType);
 static void AfterTriggerFreeQuery(AfterTriggersQueryData *qs);
 static SetConstraintState SetConstraintStateCreate(int numalloc);
 static SetConstraintState SetConstraintStateCopy(SetConstraintState state);
 static SetConstraintState SetConstraintStateAddItem(SetConstraintState state,
-                                                 Oid tgoid, bool tgisdeferred);
+                                                                                                       Oid tgoid, bool tgisdeferred);
 static void cancel_prior_stmt_triggers(Oid relid, CmdType cmdType, int tgevent);
 
 
index 8e5eec22b5e205cdce7b109bb8131b7e93870b6e..11a7f29eafa7bcc14b589cd0d20e81438f64ba1b 100644 (file)
@@ -49,9 +49,9 @@
 
 
 static void MakeConfigurationMapping(AlterTSConfigurationStmt *stmt,
-                                                HeapTuple tup, Relation relMap);
+                                                                        HeapTuple tup, Relation relMap);
 static void DropConfigurationMapping(AlterTSConfigurationStmt *stmt,
-                                                HeapTuple tup, Relation relMap);
+                                                                        HeapTuple tup, Relation relMap);
 
 
 /* --------------------- TS Parser commands ------------------------ */
index 7e6bcc5239c0d63da5ef5567b617e455bd24f9ea..e9c8873ade9bfc4f341b285aa46cbeac67df37a6 100644 (file)
@@ -87,7 +87,7 @@ typedef struct
 Oid                    binary_upgrade_next_array_pg_type_oid = InvalidOid;
 
 static void makeRangeConstructors(const char *name, Oid namespace,
-                                         Oid rangeOid, Oid subtype);
+                                                                 Oid rangeOid, Oid subtype);
 static Oid     findTypeInputFunction(List *procname, Oid typeOid);
 static Oid     findTypeOutputFunction(List *procname, Oid typeOid);
 static Oid     findTypeReceiveFunction(List *procname, Oid typeOid);
@@ -102,11 +102,11 @@ static void validateDomainConstraint(Oid domainoid, char *ccbin);
 static List *get_rels_with_domain(Oid domainOid, LOCKMODE lockmode);
 static void checkEnumOwner(HeapTuple tup);
 static char *domainAddConstraint(Oid domainOid, Oid domainNamespace,
-                                       Oid baseTypeOid,
-                                       int typMod, Constraint *constr,
-                                       const char *domainName, ObjectAddress *constrAddr);
+                                                                Oid baseTypeOid,
+                                                                int typMod, Constraint *constr,
+                                                                const char *domainName, ObjectAddress *constrAddr);
 static Node *replace_domain_constraint_value(ParseState *pstate,
-                                                               ColumnRef *cref);
+                                                                                        ColumnRef *cref);
 
 
 /*
index 834094898df36ee704c6792f31e261f8b1e5c95e..ccc586d8e854bb4058745937e1d25237528d0f79 100644 (file)
@@ -49,11 +49,11 @@ int                 Password_encryption = PASSWORD_TYPE_MD5;
 check_password_hook_type check_password_hook = NULL;
 
 static void AddRoleMems(const char *rolename, Oid roleid,
-                       List *memberSpecs, List *memberIds,
-                       Oid grantorId, bool admin_opt);
+                                               List *memberSpecs, List *memberIds,
+                                               Oid grantorId, bool admin_opt);
 static void DelRoleMems(const char *rolename, Oid roleid,
-                       List *memberSpecs, List *memberIds,
-                       bool admin_opt);
+                                               List *memberSpecs, List *memberIds,
+                                               bool admin_opt);
 
 
 /* Check if current user has createrole privileges */
index d69a73d13ed703080fae89ebdff579096c07bf86..e7b379dfda1007b06c31914884c71ca6146f4dfc 100644 (file)
@@ -72,9 +72,9 @@ static BufferAccessStrategy vac_strategy;
 static List *expand_vacuum_rel(VacuumRelation *vrel, int options);
 static List *get_all_vacuum_rels(int options);
 static void vac_truncate_clog(TransactionId frozenXID,
-                                 MultiXactId minMulti,
-                                 TransactionId lastSaneFrozenXid,
-                                 MultiXactId lastSaneMinMulti);
+                                                         MultiXactId minMulti,
+                                                         TransactionId lastSaneFrozenXid,
+                                                         MultiXactId lastSaneMinMulti);
 static bool vacuum_rel(Oid relid, RangeVar *relation, VacuumParams *params);
 static VacOptTernaryValue get_vacopt_ternary_value(DefElem *def);
 
index fdb2c36246d13bdb99ded26d8cd143346aa92ee8..c7f909241b41a86518093daa69ef68c8170b9205 100644 (file)
@@ -25,7 +25,7 @@
 
 static char *fetch_cursor_param_value(ExprContext *econtext, int paramId);
 static ScanState *search_plan_tree(PlanState *node, Oid table_oid,
-                                bool *pending_rescan);
+                                                                  bool *pending_rescan);
 
 
 /*
index 5d64471eeda193f0dc3fc019ff8323ee04d35a99..e4a6c20ed02efb07b8dab13c55a84549f8760825 100644 (file)
@@ -57,28 +57,28 @@ typedef struct LastAttnumInfo
 
 static void ExecReadyExpr(ExprState *state);
 static void ExecInitExprRec(Expr *node, ExprState *state,
-                               Datum *resv, bool *resnull);
+                                                       Datum *resv, bool *resnull);
 static void ExecInitFunc(ExprEvalStep *scratch, Expr *node, List *args,
-                        Oid funcid, Oid inputcollid,
-                        ExprState *state);
+                                                Oid funcid, Oid inputcollid,
+                                                ExprState *state);
 static void ExecInitExprSlots(ExprState *state, Node *node);
 static void ExecPushExprSlots(ExprState *state, LastAttnumInfo *info);
 static bool get_last_attnums_walker(Node *node, LastAttnumInfo *info);
 static void ExecComputeSlotInfo(ExprState *state, ExprEvalStep *op);
 static void ExecInitWholeRowVar(ExprEvalStep *scratch, Var *variable,
-                                       ExprState *state);
+                                                               ExprState *state);
 static void ExecInitSubscriptingRef(ExprEvalStep *scratch,
-                                               SubscriptingRef *sbsref,
-                                               ExprState *state,
-                                               Datum *resv, bool *resnull);
+                                                                       SubscriptingRef *sbsref,
+                                                                       ExprState *state,
+                                                                       Datum *resv, bool *resnull);
 static bool isAssignmentIndirectionExpr(Expr *expr);
 static void ExecInitCoerceToDomain(ExprEvalStep *scratch, CoerceToDomain *ctest,
-                                          ExprState *state,
-                                          Datum *resv, bool *resnull);
+                                                                  ExprState *state,
+                                                                  Datum *resv, bool *resnull);
 static void ExecBuildAggTransCall(ExprState *state, AggState *aggstate,
-                                         ExprEvalStep *scratch,
-                                         FunctionCallInfo fcinfo, AggStatePerTrans pertrans,
-                                         int transno, int setno, int setoff, bool ishash);
+                                                                 ExprEvalStep *scratch,
+                                                                 FunctionCallInfo fcinfo, AggStatePerTrans pertrans,
+                                                                 int transno, int setno, int setoff, bool ishash);
 
 
 /*
index 612a88456eb330b8f38085ab3bd8c66247984785..66a67c72b29a4287641f6b322c762b353c08b5be 100644 (file)
@@ -145,10 +145,10 @@ static void ExecInitInterpreter(void);
 static void CheckVarSlotCompatibility(TupleTableSlot *slot, int attnum, Oid vartype);
 static void CheckOpSlotCompatibility(ExprEvalStep *op, TupleTableSlot *slot);
 static TupleDesc get_cached_rowtype(Oid type_id, int32 typmod,
-                                  TupleDesc *cache_field, ExprContext *econtext);
+                                                                       TupleDesc *cache_field, ExprContext *econtext);
 static void ShutdownTupleDescRef(Datum arg);
 static void ExecEvalRowNullInt(ExprState *state, ExprEvalStep *op,
-                                  ExprContext *econtext, bool checkisnull);
+                                                          ExprContext *econtext, bool checkisnull);
 
 /* fast-path evaluation functions */
 static Datum ExecJustInnerVar(ExprState *state, ExprContext *econtext, bool *isnull);
index 3b602bb8baf62177890ef53b7899625456b536bc..c41c5f45e7e55435bd3df6781a6e51310bd39b9b 100644 (file)
@@ -125,17 +125,17 @@ typedef enum
 } CEOUC_WAIT_MODE;
 
 static bool check_exclusion_or_unique_constraint(Relation heap, Relation index,
-                                                                        IndexInfo *indexInfo,
-                                                                        ItemPointer tupleid,
-                                                                        Datum *values, bool *isnull,
-                                                                        EState *estate, bool newIndex,
-                                                                        CEOUC_WAIT_MODE waitMode,
-                                                                        bool errorOK,
-                                                                        ItemPointer conflictTid);
+                                                                                                IndexInfo *indexInfo,
+                                                                                                ItemPointer tupleid,
+                                                                                                Datum *values, bool *isnull,
+                                                                                                EState *estate, bool newIndex,
+                                                                                                CEOUC_WAIT_MODE waitMode,
+                                                                                                bool errorOK,
+                                                                                                ItemPointer conflictTid);
 
 static bool index_recheck_constraint(Relation index, Oid *constr_procs,
-                                                Datum *existing_values, bool *existing_isnull,
-                                                Datum *new_values);
+                                                                        Datum *existing_values, bool *existing_isnull,
+                                                                        Datum *new_values);
 
 /* ----------------------------------------------------------------
  *             ExecOpenIndices
index 44e4a6d104c1a7a7b90f7db694c07d293ca98d4d..e80abe1b8b336136b97bde61a2eb0002eaccc141 100644 (file)
@@ -81,25 +81,25 @@ static void CheckValidRowMarkRel(Relation rel, RowMarkType markType);
 static void ExecPostprocessPlan(EState *estate);
 static void ExecEndPlan(PlanState *planstate, EState *estate);
 static void ExecutePlan(EState *estate, PlanState *planstate,
-                       bool use_parallel_mode,
-                       CmdType operation,
-                       bool sendTuples,
-                       uint64 numberTuples,
-                       ScanDirection direction,
-                       DestReceiver *dest,
-                       bool execute_once);
+                                               bool use_parallel_mode,
+                                               CmdType operation,
+                                               bool sendTuples,
+                                               uint64 numberTuples,
+                                               ScanDirection direction,
+                                               DestReceiver *dest,
+                                               bool execute_once);
 static bool ExecCheckRTEPerms(RangeTblEntry *rte);
 static bool ExecCheckRTEPermsModified(Oid relOid, Oid userid,
-                                                 Bitmapset *modifiedCols,
-                                                 AclMode requiredPerms);
+                                                                         Bitmapset *modifiedCols,
+                                                                         AclMode requiredPerms);
 static void ExecCheckXactReadOnly(PlannedStmt *plannedstmt);
 static char *ExecBuildSlotValueDescription(Oid reloid,
-                                                         TupleTableSlot *slot,
-                                                         TupleDesc tupdesc,
-                                                         Bitmapset *modifiedCols,
-                                                         int maxfieldlen);
+                                                                                  TupleTableSlot *slot,
+                                                                                  TupleDesc tupdesc,
+                                                                                  Bitmapset *modifiedCols,
+                                                                                  int maxfieldlen);
 static void EvalPlanQualStart(EPQState *epqstate, EState *parentestate,
-                                 Plan *planTree);
+                                                         Plan *planTree);
 
 /*
  * Note that GetAllUpdatedColumns() also exists in commands/trigger.c.  There does
index da9074c54c9821f4bad705d225dca45d7c2d34af..0ab9a9939c28de04fcf8a67b44cfc29be03e9020 100644 (file)
@@ -123,15 +123,15 @@ typedef struct ExecParallelInitializeDSMContext
 /* Helper functions that run in the parallel leader. */
 static char *ExecSerializePlan(Plan *plan, EState *estate);
 static bool ExecParallelEstimate(PlanState *node,
-                                        ExecParallelEstimateContext *e);
+                                                                ExecParallelEstimateContext *e);
 static bool ExecParallelInitializeDSM(PlanState *node,
-                                                 ExecParallelInitializeDSMContext *d);
+                                                                         ExecParallelInitializeDSMContext *d);
 static shm_mq_handle **ExecParallelSetupTupleQueues(ParallelContext *pcxt,
-                                                        bool reinitialize);
+                                                                                                       bool reinitialize);
 static bool ExecParallelReInitializeDSM(PlanState *planstate,
-                                                       ParallelContext *pcxt);
+                                                                               ParallelContext *pcxt);
 static bool ExecParallelRetrieveInstrumentation(PlanState *planstate,
-                                                                       SharedExecutorInstrumentation *instrumentation);
+                                                                                               SharedExecutorInstrumentation *instrumentation);
 
 /* Helper function that runs in the parallel worker. */
 static DestReceiver *ExecParallelGetReceiver(dsm_segment *seg, shm_toc *toc);
index 73ba298c5da68499219fa5ff98cf7bb62bd80eef..6f2b4d62b4155e0cded158819679925d32feb297 100644 (file)
@@ -156,42 +156,42 @@ typedef struct SubplanResultRelHashElem
 
 
 static void ExecHashSubPlanResultRelsByOid(ModifyTableState *mtstate,
-                                                          PartitionTupleRouting *proute);
+                                                                                  PartitionTupleRouting *proute);
 static ResultRelInfo *ExecInitPartitionInfo(ModifyTableState *mtstate,
-                                         EState *estate, PartitionTupleRouting *proute,
-                                         PartitionDispatch dispatch,
-                                         ResultRelInfo *rootResultRelInfo,
-                                         int partidx);
+                                                                                       EState *estate, PartitionTupleRouting *proute,
+                                                                                       PartitionDispatch dispatch,
+                                                                                       ResultRelInfo *rootResultRelInfo,
+                                                                                       int partidx);
 static void ExecInitRoutingInfo(ModifyTableState *mtstate,
-                                       EState *estate,
-                                       PartitionTupleRouting *proute,
-                                       PartitionDispatch dispatch,
-                                       ResultRelInfo *partRelInfo,
-                                       int partidx);
+                                                               EState *estate,
+                                                               PartitionTupleRouting *proute,
+                                                               PartitionDispatch dispatch,
+                                                               ResultRelInfo *partRelInfo,
+                                                               int partidx);
 static PartitionDispatch ExecInitPartitionDispatchInfo(EState *estate,
-                                                         PartitionTupleRouting *proute,
-                                                         Oid partoid, PartitionDispatch parent_pd, int partidx);
+                                                                                                          PartitionTupleRouting *proute,
+                                                                                                          Oid partoid, PartitionDispatch parent_pd, int partidx);
 static void FormPartitionKeyDatum(PartitionDispatch pd,
-                                         TupleTableSlot *slot,
-                                         EState *estate,
-                                         Datum *values,
-                                         bool *isnull);
-static int get_partition_for_tuple(PartitionDispatch pd, Datum *values,
-                                               bool *isnull);
+                                                                 TupleTableSlot *slot,
+                                                                 EState *estate,
+                                                                 Datum *values,
+                                                                 bool *isnull);
+static int     get_partition_for_tuple(PartitionDispatch pd, Datum *values,
+                                                                       bool *isnull);
 static char *ExecBuildSlotPartitionKeyDescription(Relation rel,
-                                                                        Datum *values,
-                                                                        bool *isnull,
-                                                                        int maxfieldlen);
+                                                                                                 Datum *values,
+                                                                                                 bool *isnull,
+                                                                                                 int maxfieldlen);
 static List *adjust_partition_tlist(List *tlist, TupleConversionMap *map);
 static void ExecInitPruningContext(PartitionPruneContext *context,
-                                          List *pruning_steps,
-                                          PartitionDesc partdesc,
-                                          PartitionKey partkey,
-                                          PlanState *planstate);
+                                                                  List *pruning_steps,
+                                                                  PartitionDesc partdesc,
+                                                                  PartitionKey partkey,
+                                                                  PlanState *planstate);
 static void find_matching_subplans_recurse(PartitionPruningData *prunedata,
-                                                          PartitionedRelPruningData *pprune,
-                                                          bool initial_prune,
-                                                          Bitmapset **validsubplans);
+                                                                                  PartitionedRelPruningData *pprune,
+                                                                                  bool initial_prune,
+                                                                                  Bitmapset **validsubplans);
 
 
 /*
index 265250186a14d4ac78a159388cd5e76c45078f10..c8a3efc36543b9f69324582a55b2a0a9d065ed70 100644 (file)
 
 /* static function decls */
 static void init_sexpr(Oid foid, Oid input_collation, Expr *node,
-                  SetExprState *sexpr, PlanState *parent,
-                  MemoryContext sexprCxt, bool allowSRF, bool needDescForSRF);
+                                          SetExprState *sexpr, PlanState *parent,
+                                          MemoryContext sexprCxt, bool allowSRF, bool needDescForSRF);
 static void ShutdownSetExpr(Datum arg);
 static void ExecEvalFuncArgs(FunctionCallInfo fcinfo,
-                                List *argList, ExprContext *econtext);
+                                                        List *argList, ExprContext *econtext);
 static void ExecPrepareTuplestoreResult(SetExprState *sexpr,
-                                                       ExprContext *econtext,
-                                                       Tuplestorestate *resultStore,
-                                                       TupleDesc resultDesc);
+                                                                               ExprContext *econtext,
+                                                                               Tuplestorestate *resultStore,
+                                                                               TupleDesc resultDesc);
 static void tupledesc_match(TupleDesc dst_tupdesc, TupleDesc src_tupdesc);
 
 
index ad13fd9a05bbe0abb71ebd5fcc15238c6d95b5f7..3db43e6f8ac9e2b50e911ad5f31ce98d32a2f934 100644 (file)
 
 
 static TupleDesc ExecTypeFromTLInternal(List *targetList,
-                                          bool skipjunk);
+                                                                               bool skipjunk);
 static pg_attribute_always_inline void slot_deform_heap_tuple(TupleTableSlot *slot, HeapTuple tuple, uint32 *offp,
-                                          int natts);
+                                                                                                                         int natts);
 static inline void tts_buffer_heap_store_tuple(TupleTableSlot *slot,
-                                                       HeapTuple tuple,
-                                                       Buffer buffer,
-                                                       bool transfer_pin);
+                                                                                          HeapTuple tuple,
+                                                                                          Buffer buffer,
+                                                                                          bool transfer_pin);
 static void tts_heap_store_tuple(TupleTableSlot *slot, HeapTuple tuple, bool shouldFree);
 
 
index b34f565bfe73e3f733e5302e7b826b3da99bb041..29a8a16f5f9d35dd1a2eba607f7b0ae1e1183be7 100644 (file)
@@ -146,24 +146,24 @@ typedef struct SQLFunctionParseInfo
 /* non-export function prototypes */
 static Node *sql_fn_param_ref(ParseState *pstate, ParamRef *pref);
 static Node *sql_fn_post_column_ref(ParseState *pstate,
-                                          ColumnRef *cref, Node *var);
+                                                                       ColumnRef *cref, Node *var);
 static Node *sql_fn_make_param(SQLFunctionParseInfoPtr pinfo,
-                                 int paramno, int location);
+                                                          int paramno, int location);
 static Node *sql_fn_resolve_param_name(SQLFunctionParseInfoPtr pinfo,
-                                                 const char *paramname, int location);
+                                                                          const char *paramname, int location);
 static List *init_execution_state(List *queryTree_list,
-                                        SQLFunctionCachePtr fcache,
-                                        bool lazyEvalOK);
+                                                                 SQLFunctionCachePtr fcache,
+                                                                 bool lazyEvalOK);
 static void init_sql_fcache(FmgrInfo *finfo, Oid collation, bool lazyEvalOK);
 static void postquel_start(execution_state *es, SQLFunctionCachePtr fcache);
 static bool postquel_getnext(execution_state *es, SQLFunctionCachePtr fcache);
 static void postquel_end(execution_state *es);
 static void postquel_sub_params(SQLFunctionCachePtr fcache,
-                                       FunctionCallInfo fcinfo);
+                                                               FunctionCallInfo fcinfo);
 static Datum postquel_get_single_result(TupleTableSlot *slot,
-                                                  FunctionCallInfo fcinfo,
-                                                  SQLFunctionCachePtr fcache,
-                                                  MemoryContext resultcontext);
+                                                                               FunctionCallInfo fcinfo,
+                                                                               SQLFunctionCachePtr fcache,
+                                                                               MemoryContext resultcontext);
 static void sql_exec_error_callback(void *arg);
 static void ShutdownSQLFunction(Datum arg);
 static void sqlfunction_startup(DestReceiver *self, int operation, TupleDesc typeinfo);
index 46da055e7669fe55f3a228a164a1ee5441b5b6c6..bd36f8ee685cf8efe4785bdc2db3362c1bd81b1c 100644 (file)
@@ -22,7 +22,7 @@ static BufferUsage save_pgBufferUsage;
 
 static void BufferUsageAdd(BufferUsage *dst, const BufferUsage *add);
 static void BufferUsageAccumDiff(BufferUsage *dst,
-                                        const BufferUsage *add, const BufferUsage *sub);
+                                                                const BufferUsage *add, const BufferUsage *sub);
 
 
 /* Allocate new instrumentation structure(s) */
index 43ab9fb392494afc43d4361c4f7ac5f06be05b4e..5b4a60295295348b98b389446cc17633aa92d5b5 100644 (file)
@@ -242,32 +242,32 @@ static void select_current_set(AggState *aggstate, int setno, bool is_hash);
 static void initialize_phase(AggState *aggstate, int newphase);
 static TupleTableSlot *fetch_input_tuple(AggState *aggstate);
 static void initialize_aggregates(AggState *aggstate,
-                                         AggStatePerGroup *pergroups,
-                                         int numReset);
+                                                                 AggStatePerGroup *pergroups,
+                                                                 int numReset);
 static void advance_transition_function(AggState *aggstate,
-                                                       AggStatePerTrans pertrans,
-                                                       AggStatePerGroup pergroupstate);
+                                                                               AggStatePerTrans pertrans,
+                                                                               AggStatePerGroup pergroupstate);
 static void advance_aggregates(AggState *aggstate);
 static void process_ordered_aggregate_single(AggState *aggstate,
-                                                                AggStatePerTrans pertrans,
-                                                                AggStatePerGroup pergroupstate);
+                                                                                        AggStatePerTrans pertrans,
+                                                                                        AggStatePerGroup pergroupstate);
 static void process_ordered_aggregate_multi(AggState *aggstate,
-                                                               AggStatePerTrans pertrans,
-                                                               AggStatePerGroup pergroupstate);
+                                                                                       AggStatePerTrans pertrans,
+                                                                                       AggStatePerGroup pergroupstate);
 static void finalize_aggregate(AggState *aggstate,
-                                  AggStatePerAgg peragg,
-                                  AggStatePerGroup pergroupstate,
-                                  Datum *resultVal, bool *resultIsNull);
+                                                          AggStatePerAgg peragg,
+                                                          AggStatePerGroup pergroupstate,
+                                                          Datum *resultVal, bool *resultIsNull);
 static void finalize_partialaggregate(AggState *aggstate,
-                                                 AggStatePerAgg peragg,
-                                                 AggStatePerGroup pergroupstate,
-                                                 Datum *resultVal, bool *resultIsNull);
+                                                                         AggStatePerAgg peragg,
+                                                                         AggStatePerGroup pergroupstate,
+                                                                         Datum *resultVal, bool *resultIsNull);
 static void prepare_projection_slot(AggState *aggstate,
-                                               TupleTableSlot *slot,
-                                               int currentSet);
+                                                                       TupleTableSlot *slot,
+                                                                       int currentSet);
 static void finalize_aggregates(AggState *aggstate,
-                                       AggStatePerAgg peragg,
-                                       AggStatePerGroup pergroup);
+                                                               AggStatePerAgg peragg,
+                                                               AggStatePerGroup pergroup);
 static TupleTableSlot *project_aggregates(AggState *aggstate);
 static Bitmapset *find_unaggregated_cols(AggState *aggstate);
 static bool find_unaggregated_cols_walker(Node *node, Bitmapset **colnos);
@@ -279,19 +279,19 @@ static void agg_fill_hash_table(AggState *aggstate);
 static TupleTableSlot *agg_retrieve_hash_table(AggState *aggstate);
 static Datum GetAggInitVal(Datum textInitVal, Oid transtype);
 static void build_pertrans_for_aggref(AggStatePerTrans pertrans,
-                                                 AggState *aggstate, EState *estate,
-                                                 Aggref *aggref, Oid aggtransfn, Oid aggtranstype,
-                                                 Oid aggserialfn, Oid aggdeserialfn,
-                                                 Datum initValue, bool initValueIsNull,
-                                                 Oid *inputTypes, int numArguments);
-static int find_compatible_peragg(Aggref *newagg, AggState *aggstate,
-                                          int lastaggno, List **same_input_transnos);
-static int find_compatible_pertrans(AggState *aggstate, Aggref *newagg,
-                                                bool shareable,
-                                                Oid aggtransfn, Oid aggtranstype,
-                                                Oid aggserialfn, Oid aggdeserialfn,
-                                                Datum initValue, bool initValueIsNull,
-                                                List *transnos);
+                                                                         AggState *aggstate, EState *estate,
+                                                                         Aggref *aggref, Oid aggtransfn, Oid aggtranstype,
+                                                                         Oid aggserialfn, Oid aggdeserialfn,
+                                                                         Datum initValue, bool initValueIsNull,
+                                                                         Oid *inputTypes, int numArguments);
+static int     find_compatible_peragg(Aggref *newagg, AggState *aggstate,
+                                                                  int lastaggno, List **same_input_transnos);
+static int     find_compatible_pertrans(AggState *aggstate, Aggref *newagg,
+                                                                        bool shareable,
+                                                                        Oid aggtransfn, Oid aggtranstype,
+                                                                        Oid aggserialfn, Oid aggdeserialfn,
+                                                                        Datum initValue, bool initValueIsNull,
+                                                                        List *transnos);
 
 
 /*
index a74b46c04f42feef9ad9b8a0f2e30756568ebb69..758b16dd357992fd3387e7ee88b3cc444fa31e62 100644 (file)
 
 static TupleTableSlot *BitmapHeapNext(BitmapHeapScanState *node);
 static inline void BitmapDoneInitializingSharedState(
-                                                                 ParallelBitmapHeapState *pstate);
+                                                                                                        ParallelBitmapHeapState *pstate);
 static inline void BitmapAdjustPrefetchIterator(BitmapHeapScanState *node,
-                                                        TBMIterateResult *tbmres);
+                                                                                               TBMIterateResult *tbmres);
 static inline void BitmapAdjustPrefetchTarget(BitmapHeapScanState *node);
 static inline void BitmapPrefetch(BitmapHeapScanState *node,
-                          TableScanDesc scan);
+                                                                 TableScanDesc scan);
 static bool BitmapShouldInitializeSharedState(
-                                                                 ParallelBitmapHeapState *pstate);
+                                                                                         ParallelBitmapHeapState *pstate);
 
 
 /* ----------------------------------------------------------------
index d2da5d3a95187854aef09d2061866e507873a5a3..6ef128e2abae52f784e35980ecc7e055ca6c1d56 100644 (file)
@@ -55,13 +55,13 @@ static TupleTableSlot *ExecGatherMerge(PlanState *pstate);
 static int32 heap_compare_slots(Datum a, Datum b, void *arg);
 static TupleTableSlot *gather_merge_getnext(GatherMergeState *gm_state);
 static HeapTuple gm_readnext_tuple(GatherMergeState *gm_state, int nreader,
-                                 bool nowait, bool *done);
+                                                                  bool nowait, bool *done);
 static void ExecShutdownGatherMergeWorkers(GatherMergeState *node);
 static void gather_merge_setup(GatherMergeState *gm_state);
 static void gather_merge_init(GatherMergeState *gm_state);
 static void gather_merge_clear_tuples(GatherMergeState *gm_state);
 static bool gather_merge_readnext(GatherMergeState *gm_state, int reader,
-                                         bool nowait);
+                                                                 bool nowait);
 static void load_tuple_array(GatherMergeState *gm_state, int reader);
 
 /* ----------------------------------------------------------------
index 64eec91f8b8f970f9a8d3f2950b6832341b58f8f..3c33ce74e04a7bea28ad84d19efafb6d21a5edc6 100644 (file)
@@ -48,35 +48,35 @@ static void ExecHashIncreaseNumBuckets(HashJoinTable hashtable);
 static void ExecParallelHashIncreaseNumBatches(HashJoinTable hashtable);
 static void ExecParallelHashIncreaseNumBuckets(HashJoinTable hashtable);
 static void ExecHashBuildSkewHash(HashJoinTable hashtable, Hash *node,
-                                         int mcvsToUse);
+                                                                 int mcvsToUse);
 static void ExecHashSkewTableInsert(HashJoinTable hashtable,
-                                               TupleTableSlot *slot,
-                                               uint32 hashvalue,
-                                               int bucketNumber);
+                                                                       TupleTableSlot *slot,
+                                                                       uint32 hashvalue,
+                                                                       int bucketNumber);
 static void ExecHashRemoveNextSkewBucket(HashJoinTable hashtable);
 
 static void *dense_alloc(HashJoinTable hashtable, Size size);
 static HashJoinTuple ExecParallelHashTupleAlloc(HashJoinTable hashtable,
-                                                  size_t size,
-                                                  dsa_pointer *shared);
+                                                                                               size_t size,
+                                                                                               dsa_pointer *shared);
 static void MultiExecPrivateHash(HashState *node);
 static void MultiExecParallelHash(HashState *node);
 static inline HashJoinTuple ExecParallelHashFirstTuple(HashJoinTable table,
-                                                  int bucketno);
+                                                                                                          int bucketno);
 static inline HashJoinTuple ExecParallelHashNextTuple(HashJoinTable table,
-                                                 HashJoinTuple tuple);
+                                                                                                         HashJoinTuple tuple);
 static inline void ExecParallelHashPushTuple(dsa_pointer_atomic *head,
-                                                 HashJoinTuple tuple,
-                                                 dsa_pointer tuple_shared);
+                                                                                        HashJoinTuple tuple,
+                                                                                        dsa_pointer tuple_shared);
 static void ExecParallelHashJoinSetUpBatches(HashJoinTable hashtable, int nbatch);
 static void ExecParallelHashEnsureBatchAccessors(HashJoinTable hashtable);
 static void ExecParallelHashRepartitionFirst(HashJoinTable hashtable);
 static void ExecParallelHashRepartitionRest(HashJoinTable hashtable);
 static HashMemoryChunk ExecParallelHashPopChunkQueue(HashJoinTable table,
-                                                         dsa_pointer *shared);
+                                                                                                        dsa_pointer *shared);
 static bool ExecParallelHashTuplePrealloc(HashJoinTable hashtable,
-                                                         int batchno,
-                                                         size_t size);
+                                                                                 int batchno,
+                                                                                 size_t size);
 static void ExecParallelHashMergeCounters(HashJoinTable hashtable);
 static void ExecParallelHashCloseBatchAccessors(HashJoinTable hashtable);
 
index 5ccdc1af2e892816adfbf8efc18777a757ca8b1c..8484a287e73394470327337575e70ea6addb0846 100644 (file)
 #define HJ_FILL_INNER(hjstate) ((hjstate)->hj_NullOuterTupleSlot != NULL)
 
 static TupleTableSlot *ExecHashJoinOuterGetTuple(PlanState *outerNode,
-                                                 HashJoinState *hjstate,
-                                                 uint32 *hashvalue);
+                                                                                                HashJoinState *hjstate,
+                                                                                                uint32 *hashvalue);
 static TupleTableSlot *ExecParallelHashJoinOuterGetTuple(PlanState *outerNode,
-                                                                 HashJoinState *hjstate,
-                                                                 uint32 *hashvalue);
+                                                                                                                HashJoinState *hjstate,
+                                                                                                                uint32 *hashvalue);
 static TupleTableSlot *ExecHashJoinGetSavedTuple(HashJoinState *hjstate,
-                                                 BufFile *file,
-                                                 uint32 *hashvalue,
-                                                 TupleTableSlot *tupleSlot);
+                                                                                                BufFile *file,
+                                                                                                uint32 *hashvalue,
+                                                                                                TupleTableSlot *tupleSlot);
 static bool ExecHashJoinNewBatch(HashJoinState *hjstate);
 static bool ExecParallelHashJoinNewBatch(HashJoinState *hjstate);
 static void ExecParallelHashJoinPartitionOuter(HashJoinState *node);
index 5dce284fe7344a0dda8b6975c4b6c049b3b44144..ee5b1c493b7e9a81a06a7ad72fa740136f76738d 100644 (file)
@@ -47,7 +47,7 @@
 
 static TupleTableSlot *IndexOnlyNext(IndexOnlyScanState *node);
 static void StoreIndexTuple(TupleTableSlot *slot, IndexTuple itup,
-                               TupleDesc itupdesc);
+                                                       TupleDesc itupdesc);
 
 
 /* ----------------------------------------------------------------
index 73bfd424d98572be3139bc3b0c874927a3bd4c1c..ac7aa81f6749b6e4bfffdd3a1785c57fbd9dfa79 100644 (file)
@@ -60,13 +60,13 @@ static TupleTableSlot *IndexNext(IndexScanState *node);
 static TupleTableSlot *IndexNextWithReorder(IndexScanState *node);
 static void EvalOrderByExpressions(IndexScanState *node, ExprContext *econtext);
 static bool IndexRecheck(IndexScanState *node, TupleTableSlot *slot);
-static int cmp_orderbyvals(const Datum *adist, const bool *anulls,
-                               const Datum *bdist, const bool *bnulls,
-                               IndexScanState *node);
-static int reorderqueue_cmp(const pairingheap_node *a,
-                                const pairingheap_node *b, void *arg);
+static int     cmp_orderbyvals(const Datum *adist, const bool *anulls,
+                                                       const Datum *bdist, const bool *bnulls,
+                                                       IndexScanState *node);
+static int     reorderqueue_cmp(const pairingheap_node *a,
+                                                        const pairingheap_node *b, void *arg);
 static void reorderqueue_push(IndexScanState *node, TupleTableSlot *slot,
-                                 Datum *orderbyvals, bool *orderbynulls);
+                                                         Datum *orderbyvals, bool *orderbynulls);
 static HeapTuple reorderqueue_pop(IndexScanState *node);
 
 
index 8acdaf205739751050cf43d60ba8b212dabc6283..3125e5c993d31baf01d8f0f6ce1c78a7d07095b6 100644 (file)
 
 
 static bool ExecOnConflictUpdate(ModifyTableState *mtstate,
-                                        ResultRelInfo *resultRelInfo,
-                                        ItemPointer conflictTid,
-                                        TupleTableSlot *planSlot,
-                                        TupleTableSlot *excludedSlot,
-                                        EState *estate,
-                                        bool canSetTag,
-                                        TupleTableSlot **returning);
+                                                                ResultRelInfo *resultRelInfo,
+                                                                ItemPointer conflictTid,
+                                                                TupleTableSlot *planSlot,
+                                                                TupleTableSlot *excludedSlot,
+                                                                EState *estate,
+                                                                bool canSetTag,
+                                                                TupleTableSlot **returning);
 static TupleTableSlot *ExecPrepareTupleRouting(ModifyTableState *mtstate,
-                                               EState *estate,
-                                               PartitionTupleRouting *proute,
-                                               ResultRelInfo *targetRelInfo,
-                                               TupleTableSlot *slot);
+                                                                                          EState *estate,
+                                                                                          PartitionTupleRouting *proute,
+                                                                                          ResultRelInfo *targetRelInfo,
+                                                                                          TupleTableSlot *slot);
 static ResultRelInfo *getTargetResultRelInfo(ModifyTableState *node);
 static void ExecSetupChildParentMapForSubplan(ModifyTableState *mtstate);
 static TupleConversionMap *tupconv_map_for_subplan(ModifyTableState *node,
-                                               int whichplan);
+                                                                                                  int whichplan);
 
 /*
  * Verify that the tuples to be produced by INSERT or UPDATE match the
index 3662fcada8c652a21952a34d684fe8514b8109f6..f6445e286ac81ec51e359c83cf0a3ee28c21aa92 100644 (file)
 
 
 static Datum ExecHashSubPlan(SubPlanState *node,
-                               ExprContext *econtext,
-                               bool *isNull);
+                                                        ExprContext *econtext,
+                                                        bool *isNull);
 static Datum ExecScanSubPlan(SubPlanState *node,
-                               ExprContext *econtext,
-                               bool *isNull);
+                                                        ExprContext *econtext,
+                                                        bool *isNull);
 static void buildSubPlanHash(SubPlanState *node, ExprContext *econtext);
 static bool findPartialMatch(TupleHashTable hashtable, TupleTableSlot *slot,
-                                FmgrInfo *eqfunctions);
+                                                        FmgrInfo *eqfunctions);
 static bool slotAllNulls(TupleTableSlot *slot);
 static bool slotNoNulls(TupleTableSlot *slot);
 
index b090828c01ee59c5cf35d9e499fcc6af847b8766..def00cd7c5fdf9d4663319e347434850775de0b5 100644 (file)
@@ -158,43 +158,43 @@ typedef struct WindowStatePerAggData
 } WindowStatePerAggData;
 
 static void initialize_windowaggregate(WindowAggState *winstate,
-                                                  WindowStatePerFunc perfuncstate,
-                                                  WindowStatePerAgg peraggstate);
+                                                                          WindowStatePerFunc perfuncstate,
+                                                                          WindowStatePerAgg peraggstate);
 static void advance_windowaggregate(WindowAggState *winstate,
-                                               WindowStatePerFunc perfuncstate,
-                                               WindowStatePerAgg peraggstate);
+                                                                       WindowStatePerFunc perfuncstate,
+                                                                       WindowStatePerAgg peraggstate);
 static bool advance_windowaggregate_base(WindowAggState *winstate,
-                                                        WindowStatePerFunc perfuncstate,
-                                                        WindowStatePerAgg peraggstate);
+                                                                                WindowStatePerFunc perfuncstate,
+                                                                                WindowStatePerAgg peraggstate);
 static void finalize_windowaggregate(WindowAggState *winstate,
-                                                WindowStatePerFunc perfuncstate,
-                                                WindowStatePerAgg peraggstate,
-                                                Datum *result, bool *isnull);
+                                                                        WindowStatePerFunc perfuncstate,
+                                                                        WindowStatePerAgg peraggstate,
+                                                                        Datum *result, bool *isnull);
 
 static void eval_windowaggregates(WindowAggState *winstate);
 static void eval_windowfunction(WindowAggState *winstate,
-                                       WindowStatePerFunc perfuncstate,
-                                       Datum *result, bool *isnull);
+                                                               WindowStatePerFunc perfuncstate,
+                                                               Datum *result, bool *isnull);
 
 static void begin_partition(WindowAggState *winstate);
 static void spool_tuples(WindowAggState *winstate, int64 pos);
 static void release_partition(WindowAggState *winstate);
 
-static int row_is_in_frame(WindowAggState *winstate, int64 pos,
-                               TupleTableSlot *slot);
+static int     row_is_in_frame(WindowAggState *winstate, int64 pos,
+                                                       TupleTableSlot *slot);
 static void update_frameheadpos(WindowAggState *winstate);
 static void update_frametailpos(WindowAggState *winstate);
 static void update_grouptailpos(WindowAggState *winstate);
 
 static WindowStatePerAggData *initialize_peragg(WindowAggState *winstate,
-                                 WindowFunc *wfunc,
-                                 WindowStatePerAgg peraggstate);
+                                                                                               WindowFunc *wfunc,
+                                                                                               WindowStatePerAgg peraggstate);
 static Datum GetAggInitVal(Datum textInitVal, Oid transtype);
 
 static bool are_peers(WindowAggState *winstate, TupleTableSlot *slot1,
-                 TupleTableSlot *slot2);
+                                         TupleTableSlot *slot2);
 static bool window_gettupleslot(WindowObject winobj, int64 pos,
-                                       TupleTableSlot *slot);
+                                                               TupleTableSlot *slot);
 
 
 /*
index 22d0fe5ac4fa14ee75bfac7bca7b86e5a27100c2..8eedb613a18397432b6f3fe024e2007e6bf1735d 100644 (file)
@@ -52,26 +52,26 @@ 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,
-                                                ParamListInfo paramLI, bool read_only);
+                                                                          ParamListInfo paramLI, bool read_only);
 
 static void _SPI_prepare_plan(const char *src, SPIPlanPtr plan);
 
 static void _SPI_prepare_oneshot_plan(const char *src, SPIPlanPtr plan);
 
-static int _SPI_execute_plan(SPIPlanPtr plan, ParamListInfo paramLI,
-                                 Snapshot snapshot, Snapshot crosscheck_snapshot,
-                                 bool read_only, bool fire_triggers, uint64 tcount);
+static int     _SPI_execute_plan(SPIPlanPtr plan, ParamListInfo paramLI,
+                                                         Snapshot snapshot, Snapshot crosscheck_snapshot,
+                                                         bool read_only, bool fire_triggers, uint64 tcount);
 
 static ParamListInfo _SPI_convert_params(int nargs, Oid *argtypes,
-                                       Datum *Values, const char *Nulls);
+                                                                                Datum *Values, const char *Nulls);
 
 static int     _SPI_pquery(QueryDesc *queryDesc, bool fire_triggers, uint64 tcount);
 
 static void _SPI_error_callback(void *arg);
 
 static void _SPI_cursor_operation(Portal portal,
-                                         FetchDirection direction, long count,
-                                         DestReceiver *dest);
+                                                                 FetchDirection direction, long count,
+                                                                 DestReceiver *dest);
 
 static SPIPlanPtr _SPI_make_plan_non_temp(SPIPlanPtr plan);
 static SPIPlanPtr _SPI_save_plan(SPIPlanPtr plan);
index 1bb58e3e61af0c3f8724b663147f1b3b871baffb..30133634c70b246b29d9156ef64c44ad3a98edd2 100644 (file)
@@ -57,12 +57,12 @@ typedef struct CompiledExprState
 static Datum ExecRunCompiledExpr(ExprState *state, ExprContext *econtext, bool *isNull);
 
 static LLVMValueRef BuildV1Call(LLVMJitContext *context, LLVMBuilderRef b,
-                       LLVMModuleRef mod, FunctionCallInfo fcinfo,
-                       LLVMValueRef *v_fcinfo_isnull);
+                                                               LLVMModuleRef mod, FunctionCallInfo fcinfo,
+                                                               LLVMValueRef *v_fcinfo_isnull);
 static void build_EvalXFunc(LLVMBuilderRef b, LLVMModuleRef mod,
-                               const char *funcname,
-                               LLVMValueRef v_state, LLVMValueRef v_econtext,
-                               ExprEvalStep *op);
+                                                       const char *funcname,
+                                                       LLVMValueRef v_state, LLVMValueRef v_econtext,
+                                                       ExprEvalStep *op);
 static LLVMValueRef create_LifetimeEnd(LLVMModuleRef mod);
 
 
index d82420bd68ce9207d14d00488ea179930d0663f9..859aac07b7db1d689fe61e61e01af46b25e8af77 100644 (file)
@@ -54,7 +54,7 @@ struct bloom_filter
 static int     my_bloom_power(uint64 target_bitset_bits);
 static int     optimal_k(uint64 bitset_bits, int64 total_elems);
 static void k_hashes(bloom_filter *filter, uint32 *hashes, unsigned char *elem,
-                size_t len);
+                                        size_t len);
 static inline uint32 mod_m(uint32 a, uint64 m);
 
 /*
index f095196fb678a66c1f54fb636d5ed9504519ac2a..24dd3722521203f8f22c4d36d831e3ad3ea2e1e8 100644 (file)
@@ -160,28 +160,28 @@ struct dshash_table
                                                                           hash_table->size_log2)])
 
 static void delete_item(dshash_table *hash_table,
-                       dshash_table_item *item);
+                                               dshash_table_item *item);
 static void resize(dshash_table *hash_table, size_t new_size);
 static inline void ensure_valid_bucket_pointers(dshash_table *hash_table);
 static inline dshash_table_item *find_in_bucket(dshash_table *hash_table,
-                          const void *key,
-                          dsa_pointer item_pointer);
+                                                                                               const void *key,
+                                                                                               dsa_pointer item_pointer);
 static void insert_item_into_bucket(dshash_table *hash_table,
-                                               dsa_pointer item_pointer,
-                                               dshash_table_item *item,
-                                               dsa_pointer *bucket);
+                                                                       dsa_pointer item_pointer,
+                                                                       dshash_table_item *item,
+                                                                       dsa_pointer *bucket);
 static dshash_table_item *insert_into_bucket(dshash_table *hash_table,
-                                  const void *key,
-                                  dsa_pointer *bucket);
+                                                                                        const void *key,
+                                                                                        dsa_pointer *bucket);
 static bool delete_key_from_bucket(dshash_table *hash_table,
-                                          const void *key,
-                                          dsa_pointer *bucket_head);
+                                                                  const void *key,
+                                                                  dsa_pointer *bucket_head);
 static bool delete_item_from_bucket(dshash_table *hash_table,
-                                               dshash_table_item *item,
-                                               dsa_pointer *bucket_head);
+                                                                       dshash_table_item *item,
+                                                                       dsa_pointer *bucket_head);
 static inline dshash_hash hash_key(dshash_table *hash_table, const void *key);
 static inline bool equal_keys(dshash_table *hash_table,
-                  const void *a, const void *b);
+                                                         const void *a, const void *b);
 
 #define PARTITION_LOCK(hash_table, i)                  \
        (&(hash_table)->control->partitions[(i)].lock)
index 9984fd55e8062f8dbac492d5f6c16ad17ceb540c..6f8a03709ed98379d35f403a1ffab59da1b6a103 100644 (file)
@@ -261,13 +261,13 @@ struct IntegerSet
  * Prototypes for internal functions.
  */
 static void intset_update_upper(IntegerSet *intset, int level,
-                                       intset_node *new_node, uint64 new_node_item);
+                                                               intset_node *new_node, uint64 new_node_item);
 static void intset_flush_buffered_values(IntegerSet *intset);
 
-static int intset_binsrch_uint64(uint64 value, uint64 *arr, int arr_elems,
-                                         bool nextkey);
-static int intset_binsrch_leaf(uint64 value, leaf_item *arr, int arr_elems,
-                                       bool nextkey);
+static int     intset_binsrch_uint64(uint64 value, uint64 *arr, int arr_elems,
+                                                                 bool nextkey);
+static int     intset_binsrch_leaf(uint64 value, leaf_item *arr, int arr_elems,
+                                                               bool nextkey);
 
 static uint64 simple8b_encode(const uint64 *ints, int *num_encoded, uint64 base);
 static int     simple8b_decode(uint64 codeword, uint64 *decoded, uint64 base);
index 6ab3b77246ecc50e112f71c3dbaa2c6428c1e279..bdaa3b1ad737d82f6c0ca777472a71e8532c7b19 100644 (file)
@@ -27,9 +27,9 @@
 #include "lib/pairingheap.h"
 
 static pairingheap_node *merge(pairingheap *heap, pairingheap_node *a,
-         pairingheap_node *b);
+                                                          pairingheap_node *b);
 static pairingheap_node *merge_children(pairingheap *heap,
-                          pairingheap_node *children);
+                                                                               pairingheap_node *children);
 
 /*
  * pairingheap_allocate
index 4c7b149570bffa986323f687992e99314e12c430..45811e155ccc252e90728189293bfb33d44fd695 100644 (file)
@@ -162,7 +162,7 @@ static char *build_server_final_message(scram_state *state);
 static bool verify_client_proof(scram_state *state);
 static bool verify_final_nonce(scram_state *state);
 static void mock_scram_verifier(const char *username, int *iterations,
-                                       char **salt, uint8 *stored_key, uint8 *server_key);
+                                                               char **salt, uint8 *stored_key, uint8 *server_key);
 static bool is_scram_printable(char *p);
 static char *sanitize_char(char c);
 static char *sanitize_str(const char *s);
index caf3b71f9e1d0218497f70dedaee26bd526e979f..a7763f3f605885604c0c8bc15f373e2ac218fb10 100644 (file)
@@ -45,7 +45,7 @@
  *----------------------------------------------------------------
  */
 static void sendAuthRequest(Port *port, AuthRequest areq, const char *extradata,
-                               int extralen);
+                                                       int extralen);
 static void auth_failed(Port *port, int status, char *logdetail);
 static char *recv_password_packet(Port *port);
 
@@ -93,8 +93,8 @@ static int    auth_peer(hbaPort *port);
 #define PGSQL_PAM_SERVICE "postgresql" /* Service name passed to PAM */
 
 static int     CheckPAMAuth(Port *port, const char *user, const char *password);
-static int pam_passwd_conv_proc(int num_msg, const struct pam_message **msg,
-                                        struct pam_response **resp, void *appdata_ptr);
+static int     pam_passwd_conv_proc(int num_msg, const struct pam_message **msg,
+                                                                struct pam_response **resp, void *appdata_ptr);
 
 static struct pam_conv pam_passw_conv = {
        &pam_passwd_conv_proc,
@@ -189,11 +189,11 @@ typedef SECURITY_STATUS
                        (WINAPI * QUERY_SECURITY_CONTEXT_TOKEN_FN) (
                                                                                                                PCtxtHandle, void **);
 static int     pg_SSPI_recvauth(Port *port);
-static int pg_SSPI_make_upn(char *accountname,
-                                size_t accountnamesize,
-                                char *domainname,
-                                size_t domainnamesize,
-                                bool update_accountname);
+static int     pg_SSPI_make_upn(char *accountname,
+                                                        size_t accountnamesize,
+                                                        char *domainname,
+                                                        size_t domainnamesize,
+                                                        bool update_accountname);
 #endif
 
 /*----------------------------------------------------------------
index f6e90ea3a7c476958e1ee88a73e352749c3441cc..e0d0bfabd635f6c3b345975229afd4ffde6e0022 100644 (file)
@@ -20,7 +20,7 @@
 #include <gssapi/gssapi.h>
 #endif
 
-void pg_GSS_error(int severity, const char *errmsg,
-                        OM_uint32 maj_stat, OM_uint32 min_stat);
+void           pg_GSS_error(int severity, const char *errmsg,
+                                                OM_uint32 maj_stat, OM_uint32 min_stat);
 
 #endif                                                 /* BE_GSSAPI_COMMON_H */
index 673066a4561ace7dad54ce57c3b89684eaa7dcff..c97c811e63acf28c76796c933dd33f8627822f65 100644 (file)
@@ -67,8 +67,8 @@ static bool SSL_initialized = false;
 static bool dummy_ssl_passwd_cb_called = false;
 static bool ssl_is_server_start;
 
-static int ssl_protocol_version_to_openssl(int v, const char *guc_name,
-                                                               int loglevel);
+static int     ssl_protocol_version_to_openssl(int v, const char *guc_name,
+                                                                                       int loglevel);
 #ifndef SSL_CTX_set_min_proto_version
 static int     SSL_CTX_set_min_proto_version(SSL_CTX *ctx, int version);
 static int     SSL_CTX_set_max_proto_version(SSL_CTX *ctx, int version);
index 37d5ad44a54e1c59bb060c19d5c5bf8240c8d46b..52ac0d78f7385d19b4ce5443d4a0ea03f85c05df 100644 (file)
@@ -139,16 +139,16 @@ static const char *const UserAuthName[] =
 
 
 static MemoryContext tokenize_file(const char *filename, FILE *file,
-                         List **tok_lines, int elevel);
+                                                                  List **tok_lines, int elevel);
 static List *tokenize_inc_file(List *tokens, const char *outer_filename,
-                                 const char *inc_filename, int elevel, char **err_msg);
+                                                          const char *inc_filename, int elevel, char **err_msg);
 static bool parse_hba_auth_opt(char *name, char *val, HbaLine *hbaline,
-                                  int elevel, char **err_msg);
+                                                          int elevel, char **err_msg);
 static bool verify_option_list_length(List *options, const char *optionname,
-                                                 List *masters, const char *mastername, int line_num);
+                                                                         List *masters, const char *mastername, int line_num);
 static ArrayType *gethba_options(HbaLine *hba);
 static void fill_hba_line(Tuplestorestate *tuple_store, TupleDesc tupdesc,
-                         int lineno, HbaLine *hba, const char *err_msg);
+                                                 int lineno, HbaLine *hba, const char *err_msg);
 static void fill_hba_view(Tuplestorestate *tuple_store, TupleDesc tupdesc);
 
 
index 62cf758ca1c823ee17af09b83989adbcd0f89749..3c8237798a39fdbef78e330fb1262f47d4072963 100644 (file)
 #include "libpq/ifaddr.h"
 #include "port/pg_bswap.h"
 
-static int range_sockaddr_AF_INET(const struct sockaddr_in *addr,
-                                          const struct sockaddr_in *netaddr,
-                                          const struct sockaddr_in *netmask);
+static int     range_sockaddr_AF_INET(const struct sockaddr_in *addr,
+                                                                  const struct sockaddr_in *netaddr,
+                                                                  const struct sockaddr_in *netmask);
 
 #ifdef HAVE_IPV6
-static int range_sockaddr_AF_INET6(const struct sockaddr_in6 *addr,
-                                               const struct sockaddr_in6 *netaddr,
-                                               const struct sockaddr_in6 *netmask);
+static int     range_sockaddr_AF_INET6(const struct sockaddr_in6 *addr,
+                                                                       const struct sockaddr_in6 *netaddr,
+                                                                       const struct sockaddr_in6 *netmask);
 #endif
 
 
index 8ed30c011a618a1bda7aebf41ac4e8e1d7a6a08c..05ae73f7db8fd6363fc491c2b83ca60bea3ce737 100644 (file)
@@ -31,7 +31,7 @@ static bool fix_opfuncids_walker(Node *node, void *context);
 static bool planstate_walk_subplans(List *plans, bool (*walker) (),
                                                                        void *context);
 static bool planstate_walk_members(PlanState **planstates, int nplans,
-                                          bool (*walker) (), void *context);
+                                                                  bool (*walker) (), void *context);
 
 
 /*
index 64ab0cfc0e22daa6313a82154269bd0d15baf4a4..9b913feb89601413d2fb2840466498fbae0f7d66 100644 (file)
@@ -227,16 +227,16 @@ struct TBMSharedIterator
 /* Local function prototypes */
 static void tbm_union_page(TIDBitmap *a, const PagetableEntry *bpage);
 static bool tbm_intersect_page(TIDBitmap *a, PagetableEntry *apage,
-                                  const TIDBitmap *b);
+                                                          const TIDBitmap *b);
 static const PagetableEntry *tbm_find_pageentry(const TIDBitmap *tbm,
-                                  BlockNumber pageno);
+                                                                                               BlockNumber pageno);
 static PagetableEntry *tbm_get_pageentry(TIDBitmap *tbm, BlockNumber pageno);
 static bool tbm_page_is_lossy(const TIDBitmap *tbm, BlockNumber pageno);
 static void tbm_mark_page_lossy(TIDBitmap *tbm, BlockNumber pageno);
 static void tbm_lossify(TIDBitmap *tbm);
 static int     tbm_comparator(const void *left, const void *right);
-static int tbm_shared_comparator(const void *left, const void *right,
-                                         void *arg);
+static int     tbm_shared_comparator(const void *left, const void *right,
+                                                                 void *arg);
 
 /* define hashtable mapping block numbers to PagetableEntry's */
 #define SH_USE_NONDEFAULT_ALLOCATOR
index e07bab831e1328c8c9dd9095c521b2276da37229..6c69c1c14789180d60e554a95c614e73ae39152a 100644 (file)
@@ -40,9 +40,9 @@ typedef struct
 } Clump;
 
 static List *merge_clump(PlannerInfo *root, List *clumps, Clump *new_clump,
-                       int num_gene, bool force);
+                                                int num_gene, bool force);
 static bool desirable_join(PlannerInfo *root,
-                          RelOptInfo *outer_rel, RelOptInfo *inner_rel);
+                                                  RelOptInfo *outer_rel, RelOptInfo *inner_rel);
 
 
 /*
index af05bb7511e4fc681804bc27aa9d05f08d10971f..b7723481b0e7d187cc2f446805241102c180ca57 100644 (file)
@@ -75,71 +75,71 @@ static void set_base_rel_consider_startup(PlannerInfo *root);
 static void set_base_rel_sizes(PlannerInfo *root);
 static void set_base_rel_pathlists(PlannerInfo *root);
 static void set_rel_size(PlannerInfo *root, RelOptInfo *rel,
-                        Index rti, RangeTblEntry *rte);
+                                                Index rti, RangeTblEntry *rte);
 static void set_rel_pathlist(PlannerInfo *root, RelOptInfo *rel,
-                                Index rti, RangeTblEntry *rte);
+                                                        Index rti, RangeTblEntry *rte);
 static void set_plain_rel_size(PlannerInfo *root, RelOptInfo *rel,
-                                  RangeTblEntry *rte);
+                                                          RangeTblEntry *rte);
 static void create_plain_partial_paths(PlannerInfo *root, RelOptInfo *rel);
 static void set_rel_consider_parallel(PlannerInfo *root, RelOptInfo *rel,
-                                                 RangeTblEntry *rte);
+                                                                         RangeTblEntry *rte);
 static void set_plain_rel_pathlist(PlannerInfo *root, RelOptInfo *rel,
-                                          RangeTblEntry *rte);
+                                                                  RangeTblEntry *rte);
 static void set_tablesample_rel_size(PlannerInfo *root, RelOptInfo *rel,
-                                                RangeTblEntry *rte);
+                                                                        RangeTblEntry *rte);
 static void set_tablesample_rel_pathlist(PlannerInfo *root, RelOptInfo *rel,
-                                                        RangeTblEntry *rte);
+                                                                                RangeTblEntry *rte);
 static void set_foreign_size(PlannerInfo *root, RelOptInfo *rel,
-                                RangeTblEntry *rte);
+                                                        RangeTblEntry *rte);
 static void set_foreign_pathlist(PlannerInfo *root, RelOptInfo *rel,
-                                        RangeTblEntry *rte);
+                                                                RangeTblEntry *rte);
 static void set_append_rel_size(PlannerInfo *root, RelOptInfo *rel,
-                                       Index rti, RangeTblEntry *rte);
+                                                               Index rti, RangeTblEntry *rte);
 static void set_append_rel_pathlist(PlannerInfo *root, RelOptInfo *rel,
-                                               Index rti, RangeTblEntry *rte);
+                                                                       Index rti, RangeTblEntry *rte);
 static void generate_orderedappend_paths(PlannerInfo *root, RelOptInfo *rel,
-                                                        List *live_childrels,
-                                                        List *all_child_pathkeys,
-                                                        List *partitioned_rels);
+                                                                                List *live_childrels,
+                                                                                List *all_child_pathkeys,
+                                                                                List *partitioned_rels);
 static Path *get_cheapest_parameterized_child_path(PlannerInfo *root,
-                                                                         RelOptInfo *rel,
-                                                                         Relids required_outer);
+                                                                                                  RelOptInfo *rel,
+                                                                                                  Relids required_outer);
 static void accumulate_append_subpath(Path *path,
-                                                 List **subpaths, List **special_subpaths);
+                                                                         List **subpaths, List **special_subpaths);
 static Path *get_singleton_append_subpath(Path *path);
 static void set_dummy_rel_pathlist(RelOptInfo *rel);
 static void set_subquery_pathlist(PlannerInfo *root, RelOptInfo *rel,
-                                         Index rti, RangeTblEntry *rte);
+                                                                 Index rti, RangeTblEntry *rte);
 static void set_function_pathlist(PlannerInfo *root, RelOptInfo *rel,
-                                         RangeTblEntry *rte);
+                                                                 RangeTblEntry *rte);
 static void set_values_pathlist(PlannerInfo *root, RelOptInfo *rel,
-                                       RangeTblEntry *rte);
+                                                               RangeTblEntry *rte);
 static void set_tablefunc_pathlist(PlannerInfo *root, RelOptInfo *rel,
-                                          RangeTblEntry *rte);
+                                                                  RangeTblEntry *rte);
 static void set_cte_pathlist(PlannerInfo *root, RelOptInfo *rel,
-                                RangeTblEntry *rte);
-static void set_namedtuplestore_pathlist(PlannerInfo *root, RelOptInfo *rel,
                                                         RangeTblEntry *rte);
+static void set_namedtuplestore_pathlist(PlannerInfo *root, RelOptInfo *rel,
+                                                                                RangeTblEntry *rte);
 static void set_result_pathlist(PlannerInfo *root, RelOptInfo *rel,
-                                       RangeTblEntry *rte);
+                                                               RangeTblEntry *rte);
 static void set_worktable_pathlist(PlannerInfo *root, RelOptInfo *rel,
-                                          RangeTblEntry *rte);
+                                                                  RangeTblEntry *rte);
 static RelOptInfo *make_rel_from_joinlist(PlannerInfo *root, List *joinlist);
 static bool subquery_is_pushdown_safe(Query *subquery, Query *topquery,
-                                                 pushdown_safety_info *safetyInfo);
+                                                                         pushdown_safety_info *safetyInfo);
 static bool recurse_pushdown_safe(Node *setOp, Query *topquery,
-                                         pushdown_safety_info *safetyInfo);
+                                                                 pushdown_safety_info *safetyInfo);
 static void check_output_expressions(Query *subquery,
-                                                pushdown_safety_info *safetyInfo);
+                                                                        pushdown_safety_info *safetyInfo);
 static void compare_tlist_datatypes(List *tlist, List *colTypes,
-                                               pushdown_safety_info *safetyInfo);
+                                                                       pushdown_safety_info *safetyInfo);
 static bool targetIsInAllPartitionLists(TargetEntry *tle, Query *query);
 static bool qual_is_pushdown_safe(Query *subquery, Index rti, Node *qual,
-                                         pushdown_safety_info *safetyInfo);
+                                                                 pushdown_safety_info *safetyInfo);
 static void subquery_push_qual(Query *subquery,
-                                  RangeTblEntry *rte, Index rti, Node *qual);
+                                                          RangeTblEntry *rte, Index rti, Node *qual);
 static void recurse_push_qual(Node *setOp, Query *topquery,
-                                 RangeTblEntry *rte, Index rti, Node *qual);
+                                                         RangeTblEntry *rte, Index rti, Node *qual);
 static void remove_unused_subquery_outputs(Query *subquery, RelOptInfo *rel);
 
 
index bfad6b7987827f953a200927d614892581d0bafc..4bf777d82d3d3f7755b30e723371b504f53a7821 100644 (file)
@@ -42,9 +42,9 @@ typedef struct RangeQueryClause
 } RangeQueryClause;
 
 static void addRangeClause(RangeQueryClause **rqlist, Node *clause,
-                          bool varonleft, bool isLTsel, Selectivity s2);
+                                                  bool varonleft, bool isLTsel, Selectivity s2);
 static RelOptInfo *find_single_rel_for_clauses(PlannerInfo *root,
-                                                       List *clauses);
+                                                                                          List *clauses);
 
 /****************************************************************************
  *             ROUTINES TO COMPUTE SELECTIVITIES
index afd32884a25b1d757cb57869ef424500ad3565ef..a2a9b1f7be61415bde2928557516a4ab0e8ca0ab 100644 (file)
@@ -147,32 +147,32 @@ typedef struct
 
 static List *extract_nonindex_conditions(List *qual_clauses, List *indexclauses);
 static MergeScanSelCache *cached_scansel(PlannerInfo *root,
-                          RestrictInfo *rinfo,
-                          PathKey *pathkey);
+                                                                                RestrictInfo *rinfo,
+                                                                                PathKey *pathkey);
 static void cost_rescan(PlannerInfo *root, Path *path,
-                       Cost *rescan_startup_cost, Cost *rescan_total_cost);
+                                               Cost *rescan_startup_cost, Cost *rescan_total_cost);
 static bool cost_qual_eval_walker(Node *node, cost_qual_eval_context *context);
 static void get_restriction_qual_cost(PlannerInfo *root, RelOptInfo *baserel,
-                                                 ParamPathInfo *param_info,
-                                                 QualCost *qpqual_cost);
+                                                                         ParamPathInfo *param_info,
+                                                                         QualCost *qpqual_cost);
 static bool has_indexed_join_quals(NestPath *joinpath);
 static double approx_tuple_count(PlannerInfo *root, JoinPath *path,
-                                  List *quals);
+                                                                List *quals);
 static double calc_joinrel_size_estimate(PlannerInfo *root,
-                                                  RelOptInfo *joinrel,
-                                                  RelOptInfo *outer_rel,
-                                                  RelOptInfo *inner_rel,
-                                                  double outer_rows,
-                                                  double inner_rows,
-                                                  SpecialJoinInfo *sjinfo,
-                                                  List *restrictlist);
+                                                                                RelOptInfo *joinrel,
+                                                                                RelOptInfo *outer_rel,
+                                                                                RelOptInfo *inner_rel,
+                                                                                double outer_rows,
+                                                                                double inner_rows,
+                                                                                SpecialJoinInfo *sjinfo,
+                                                                                List *restrictlist);
 static Selectivity get_foreign_key_join_selectivity(PlannerInfo *root,
-                                                                Relids outer_relids,
-                                                                Relids inner_relids,
-                                                                SpecialJoinInfo *sjinfo,
-                                                                List **restrictlist);
+                                                                                                       Relids outer_relids,
+                                                                                                       Relids inner_relids,
+                                                                                                       SpecialJoinInfo *sjinfo,
+                                                                                                       List **restrictlist);
 static Cost append_nonpartial_cost(List *subpaths, int numpaths,
-                                          int parallel_workers);
+                                                                  int parallel_workers);
 static void set_rel_width(PlannerInfo *root, RelOptInfo *rel);
 static double relation_byte_size(double tuples, int width);
 static double page_size(double tuples, int width);
index 61b5b119b003b5335b0431d7ed305b974feec2f8..e9bd5eaff5c004c75aa4321fc60389b6095a11dc 100644 (file)
 
 
 static EquivalenceMember *add_eq_member(EquivalenceClass *ec,
-                         Expr *expr, Relids relids, Relids nullable_relids,
-                         bool is_child, Oid datatype);
+                                                                               Expr *expr, Relids relids, Relids nullable_relids,
+                                                                               bool is_child, Oid datatype);
 static void generate_base_implied_equalities_const(PlannerInfo *root,
-                                                                          EquivalenceClass *ec);
+                                                                                                  EquivalenceClass *ec);
 static void generate_base_implied_equalities_no_const(PlannerInfo *root,
-                                                                                 EquivalenceClass *ec);
+                                                                                                         EquivalenceClass *ec);
 static void generate_base_implied_equalities_broken(PlannerInfo *root,
-                                                                               EquivalenceClass *ec);
+                                                                                                       EquivalenceClass *ec);
 static List *generate_join_implied_equalities_normal(PlannerInfo *root,
-                                                                               EquivalenceClass *ec,
-                                                                               Relids join_relids,
-                                                                               Relids outer_relids,
-                                                                               Relids inner_relids);
+                                                                                                        EquivalenceClass *ec,
+                                                                                                        Relids join_relids,
+                                                                                                        Relids outer_relids,
+                                                                                                        Relids inner_relids);
 static List *generate_join_implied_equalities_broken(PlannerInfo *root,
-                                                                               EquivalenceClass *ec,
-                                                                               Relids nominal_join_relids,
-                                                                               Relids outer_relids,
-                                                                               Relids nominal_inner_relids,
-                                                                               RelOptInfo *inner_rel);
-static Oid select_equality_operator(EquivalenceClass *ec,
-                                                Oid lefttype, Oid righttype);
+                                                                                                        EquivalenceClass *ec,
+                                                                                                        Relids nominal_join_relids,
+                                                                                                        Relids outer_relids,
+                                                                                                        Relids nominal_inner_relids,
+                                                                                                        RelOptInfo *inner_rel);
+static Oid     select_equality_operator(EquivalenceClass *ec,
+                                                                        Oid lefttype, Oid righttype);
 static RestrictInfo *create_join_clause(PlannerInfo *root,
-                                  EquivalenceClass *ec, Oid opno,
-                                  EquivalenceMember *leftem,
-                                  EquivalenceMember *rightem,
-                                  EquivalenceClass *parent_ec);
+                                                                               EquivalenceClass *ec, Oid opno,
+                                                                               EquivalenceMember *leftem,
+                                                                               EquivalenceMember *rightem,
+                                                                               EquivalenceClass *parent_ec);
 static bool reconsider_outer_join_clause(PlannerInfo *root,
-                                                        RestrictInfo *rinfo,
-                                                        bool outer_on_left);
+                                                                                RestrictInfo *rinfo,
+                                                                                bool outer_on_left);
 static bool reconsider_full_join_clause(PlannerInfo *root,
-                                                       RestrictInfo *rinfo);
+                                                                               RestrictInfo *rinfo);
 
 
 /*
index 3434219dbd1d0ae4d61c2706414f474f1808bc6d..c208e9bfb0b62c6541ff38d449585a8adc06d062 100644 (file)
@@ -75,120 +75,120 @@ typedef struct
 
 
 static void consider_index_join_clauses(PlannerInfo *root, RelOptInfo *rel,
-                                                       IndexOptInfo *index,
-                                                       IndexClauseSet *rclauseset,
-                                                       IndexClauseSet *jclauseset,
-                                                       IndexClauseSet *eclauseset,
-                                                       List **bitindexpaths);
+                                                                               IndexOptInfo *index,
+                                                                               IndexClauseSet *rclauseset,
+                                                                               IndexClauseSet *jclauseset,
+                                                                               IndexClauseSet *eclauseset,
+                                                                               List **bitindexpaths);
 static void consider_index_join_outer_rels(PlannerInfo *root, RelOptInfo *rel,
-                                                          IndexOptInfo *index,
-                                                          IndexClauseSet *rclauseset,
-                                                          IndexClauseSet *jclauseset,
-                                                          IndexClauseSet *eclauseset,
-                                                          List **bitindexpaths,
-                                                          List *indexjoinclauses,
-                                                          int considered_clauses,
-                                                          List **considered_relids);
+                                                                                  IndexOptInfo *index,
+                                                                                  IndexClauseSet *rclauseset,
+                                                                                  IndexClauseSet *jclauseset,
+                                                                                  IndexClauseSet *eclauseset,
+                                                                                  List **bitindexpaths,
+                                                                                  List *indexjoinclauses,
+                                                                                  int considered_clauses,
+                                                                                  List **considered_relids);
 static void get_join_index_paths(PlannerInfo *root, RelOptInfo *rel,
-                                        IndexOptInfo *index,
-                                        IndexClauseSet *rclauseset,
-                                        IndexClauseSet *jclauseset,
-                                        IndexClauseSet *eclauseset,
-                                        List **bitindexpaths,
-                                        Relids relids,
-                                        List **considered_relids);
+                                                                IndexOptInfo *index,
+                                                                IndexClauseSet *rclauseset,
+                                                                IndexClauseSet *jclauseset,
+                                                                IndexClauseSet *eclauseset,
+                                                                List **bitindexpaths,
+                                                                Relids relids,
+                                                                List **considered_relids);
 static bool eclass_already_used(EquivalenceClass *parent_ec, Relids oldrelids,
-                                       List *indexjoinclauses);
+                                                               List *indexjoinclauses);
 static bool bms_equal_any(Relids relids, List *relids_list);
 static void get_index_paths(PlannerInfo *root, RelOptInfo *rel,
-                               IndexOptInfo *index, IndexClauseSet *clauses,
-                               List **bitindexpaths);
+                                                       IndexOptInfo *index, IndexClauseSet *clauses,
+                                                       List **bitindexpaths);
 static List *build_index_paths(PlannerInfo *root, RelOptInfo *rel,
-                                 IndexOptInfo *index, IndexClauseSet *clauses,
-                                 bool useful_predicate,
-                                 ScanTypeControl scantype,
-                                 bool *skip_nonnative_saop,
-                                 bool *skip_lower_saop);
+                                                          IndexOptInfo *index, IndexClauseSet *clauses,
+                                                          bool useful_predicate,
+                                                          ScanTypeControl scantype,
+                                                          bool *skip_nonnative_saop,
+                                                          bool *skip_lower_saop);
 static List *build_paths_for_OR(PlannerInfo *root, RelOptInfo *rel,
-                                  List *clauses, List *other_clauses);
+                                                               List *clauses, List *other_clauses);
 static List *generate_bitmap_or_paths(PlannerInfo *root, RelOptInfo *rel,
-                                                List *clauses, List *other_clauses);
+                                                                         List *clauses, List *other_clauses);
 static Path *choose_bitmap_and(PlannerInfo *root, RelOptInfo *rel,
-                                 List *paths);
+                                                          List *paths);
 static int     path_usage_comparator(const void *a, const void *b);
 static Cost bitmap_scan_cost_est(PlannerInfo *root, RelOptInfo *rel,
-                                        Path *ipath);
+                                                                Path *ipath);
 static Cost bitmap_and_cost_est(PlannerInfo *root, RelOptInfo *rel,
-                                       List *paths);
+                                                               List *paths);
 static PathClauseUsage *classify_index_clause_usage(Path *path,
-                                                       List **clauselist);
+                                                                                                       List **clauselist);
 static Relids get_bitmap_tree_required_outer(Path *bitmapqual);
 static void find_indexpath_quals(Path *bitmapqual, List **quals, List **preds);
 static int     find_list_position(Node *node, List **nodelist);
 static bool check_index_only(RelOptInfo *rel, IndexOptInfo *index);
 static double get_loop_count(PlannerInfo *root, Index cur_relid, Relids outer_relids);
 static double adjust_rowcount_for_semijoins(PlannerInfo *root,
-                                                         Index cur_relid,
-                                                         Index outer_relid,
-                                                         double rowcount);
+                                                                                       Index cur_relid,
+                                                                                       Index outer_relid,
+                                                                                       double rowcount);
 static double approximate_joinrel_size(PlannerInfo *root, Relids relids);
 static void match_restriction_clauses_to_index(PlannerInfo *root,
-                                                                  IndexOptInfo *index,
-                                                                  IndexClauseSet *clauseset);
+                                                                                          IndexOptInfo *index,
+                                                                                          IndexClauseSet *clauseset);
 static void match_join_clauses_to_index(PlannerInfo *root,
-                                                       RelOptInfo *rel, IndexOptInfo *index,
-                                                       IndexClauseSet *clauseset,
-                                                       List **joinorclauses);
+                                                                               RelOptInfo *rel, IndexOptInfo *index,
+                                                                               IndexClauseSet *clauseset,
+                                                                               List **joinorclauses);
 static void match_eclass_clauses_to_index(PlannerInfo *root,
-                                                         IndexOptInfo *index,
-                                                         IndexClauseSet *clauseset);
+                                                                                 IndexOptInfo *index,
+                                                                                 IndexClauseSet *clauseset);
 static void match_clauses_to_index(PlannerInfo *root,
-                                          List *clauses,
-                                          IndexOptInfo *index,
-                                          IndexClauseSet *clauseset);
+                                                                  List *clauses,
+                                                                  IndexOptInfo *index,
+                                                                  IndexClauseSet *clauseset);
 static void match_clause_to_index(PlannerInfo *root,
-                                         RestrictInfo *rinfo,
-                                         IndexOptInfo *index,
-                                         IndexClauseSet *clauseset);
+                                                                 RestrictInfo *rinfo,
+                                                                 IndexOptInfo *index,
+                                                                 IndexClauseSet *clauseset);
 static IndexClause *match_clause_to_indexcol(PlannerInfo *root,
-                                                RestrictInfo *rinfo,
-                                                int indexcol,
-                                                IndexOptInfo *index);
+                                                                                        RestrictInfo *rinfo,
+                                                                                        int indexcol,
+                                                                                        IndexOptInfo *index);
 static IndexClause *match_boolean_index_clause(RestrictInfo *rinfo,
-                                                  int indexcol, IndexOptInfo *index);
+                                                                                          int indexcol, IndexOptInfo *index);
 static IndexClause *match_opclause_to_indexcol(PlannerInfo *root,
-                                                  RestrictInfo *rinfo,
-                                                  int indexcol,
-                                                  IndexOptInfo *index);
+                                                                                          RestrictInfo *rinfo,
+                                                                                          int indexcol,
+                                                                                          IndexOptInfo *index);
 static IndexClause *match_funcclause_to_indexcol(PlannerInfo *root,
-                                                        RestrictInfo *rinfo,
-                                                        int indexcol,
-                                                        IndexOptInfo *index);
+                                                                                                RestrictInfo *rinfo,
+                                                                                                int indexcol,
+                                                                                                IndexOptInfo *index);
 static IndexClause *get_index_clause_from_support(PlannerInfo *root,
-                                                         RestrictInfo *rinfo,
-                                                         Oid funcid,
-                                                         int indexarg,
-                                                         int indexcol,
-                                                         IndexOptInfo *index);
+                                                                                                 RestrictInfo *rinfo,
+                                                                                                 Oid funcid,
+                                                                                                 int indexarg,
+                                                                                                 int indexcol,
+                                                                                                 IndexOptInfo *index);
 static IndexClause *match_saopclause_to_indexcol(RestrictInfo *rinfo,
-                                                        int indexcol,
-                                                        IndexOptInfo *index);
+                                                                                                int indexcol,
+                                                                                                IndexOptInfo *index);
 static IndexClause *match_rowcompare_to_indexcol(RestrictInfo *rinfo,
-                                                        int indexcol,
-                                                        IndexOptInfo *index);
+                                                                                                int indexcol,
+                                                                                                IndexOptInfo *index);
 static IndexClause *expand_indexqual_rowcompare(RestrictInfo *rinfo,
-                                                       int indexcol,
-                                                       IndexOptInfo *index,
-                                                       Oid expr_op,
-                                                       bool var_on_left);
+                                                                                               int indexcol,
+                                                                                               IndexOptInfo *index,
+                                                                                               Oid expr_op,
+                                                                                               bool var_on_left);
 static void match_pathkeys_to_index(IndexOptInfo *index, List *pathkeys,
-                                               List **orderby_clauses_p,
-                                               List **clause_columns_p);
+                                                                       List **orderby_clauses_p,
+                                                                       List **clause_columns_p);
 static Expr *match_clause_to_ordering_op(IndexOptInfo *index,
-                                                       int indexcol, Expr *clause, Oid pk_opfamily);
+                                                                                int indexcol, Expr *clause, Oid pk_opfamily);
 static bool ec_member_matches_indexcol(PlannerInfo *root, RelOptInfo *rel,
-                                                  EquivalenceClass *ec, EquivalenceMember *em,
-                                                  void *arg);
+                                                                          EquivalenceClass *ec, EquivalenceMember *em,
+                                                                          void *arg);
 
 
 /*
index d8ff4bf4320dd69c5e1de9221439fba88db7afc4..501ad775cbe9ce05fcbc182e21cd30e22883d403 100644 (file)
@@ -40,54 +40,54 @@ set_join_pathlist_hook_type set_join_pathlist_hook = NULL;
        (PATH_PARAM_BY_REL_SELF(path, rel) || PATH_PARAM_BY_PARENT(path, rel))
 
 static void try_partial_mergejoin_path(PlannerInfo *root,
-                                                  RelOptInfo *joinrel,
-                                                  Path *outer_path,
-                                                  Path *inner_path,
-                                                  List *pathkeys,
-                                                  List *mergeclauses,
-                                                  List *outersortkeys,
-                                                  List *innersortkeys,
-                                                  JoinType jointype,
-                                                  JoinPathExtraData *extra);
+                                                                          RelOptInfo *joinrel,
+                                                                          Path *outer_path,
+                                                                          Path *inner_path,
+                                                                          List *pathkeys,
+                                                                          List *mergeclauses,
+                                                                          List *outersortkeys,
+                                                                          List *innersortkeys,
+                                                                          JoinType jointype,
+                                                                          JoinPathExtraData *extra);
 static void sort_inner_and_outer(PlannerInfo *root, RelOptInfo *joinrel,
-                                        RelOptInfo *outerrel, RelOptInfo *innerrel,
-                                        JoinType jointype, JoinPathExtraData *extra);
+                                                                RelOptInfo *outerrel, RelOptInfo *innerrel,
+                                                                JoinType jointype, JoinPathExtraData *extra);
 static void match_unsorted_outer(PlannerInfo *root, RelOptInfo *joinrel,
-                                        RelOptInfo *outerrel, RelOptInfo *innerrel,
-                                        JoinType jointype, JoinPathExtraData *extra);
+                                                                RelOptInfo *outerrel, RelOptInfo *innerrel,
+                                                                JoinType jointype, JoinPathExtraData *extra);
 static void consider_parallel_nestloop(PlannerInfo *root,
-                                                  RelOptInfo *joinrel,
-                                                  RelOptInfo *outerrel,
-                                                  RelOptInfo *innerrel,
-                                                  JoinType jointype,
-                                                  JoinPathExtraData *extra);
+                                                                          RelOptInfo *joinrel,
+                                                                          RelOptInfo *outerrel,
+                                                                          RelOptInfo *innerrel,
+                                                                          JoinType jointype,
+                                                                          JoinPathExtraData *extra);
 static void consider_parallel_mergejoin(PlannerInfo *root,
-                                                       RelOptInfo *joinrel,
-                                                       RelOptInfo *outerrel,
-                                                       RelOptInfo *innerrel,
-                                                       JoinType jointype,
-                                                       JoinPathExtraData *extra,
-                                                       Path *inner_cheapest_total);
+                                                                               RelOptInfo *joinrel,
+                                                                               RelOptInfo *outerrel,
+                                                                               RelOptInfo *innerrel,
+                                                                               JoinType jointype,
+                                                                               JoinPathExtraData *extra,
+                                                                               Path *inner_cheapest_total);
 static void hash_inner_and_outer(PlannerInfo *root, RelOptInfo *joinrel,
-                                        RelOptInfo *outerrel, RelOptInfo *innerrel,
-                                        JoinType jointype, JoinPathExtraData *extra);
+                                                                RelOptInfo *outerrel, RelOptInfo *innerrel,
+                                                                JoinType jointype, JoinPathExtraData *extra);
 static List *select_mergejoin_clauses(PlannerInfo *root,
-                                                RelOptInfo *joinrel,
-                                                RelOptInfo *outerrel,
-                                                RelOptInfo *innerrel,
-                                                List *restrictlist,
-                                                JoinType jointype,
-                                                bool *mergejoin_allowed);
+                                                                         RelOptInfo *joinrel,
+                                                                         RelOptInfo *outerrel,
+                                                                         RelOptInfo *innerrel,
+                                                                         List *restrictlist,
+                                                                         JoinType jointype,
+                                                                         bool *mergejoin_allowed);
 static void generate_mergejoin_paths(PlannerInfo *root,
-                                                RelOptInfo *joinrel,
-                                                RelOptInfo *innerrel,
-                                                Path *outerpath,
-                                                JoinType jointype,
-                                                JoinPathExtraData *extra,
-                                                bool useallclauses,
-                                                Path *inner_cheapest_total,
-                                                List *merge_pathkeys,
-                                                bool is_partial);
+                                                                        RelOptInfo *joinrel,
+                                                                        RelOptInfo *innerrel,
+                                                                        Path *outerpath,
+                                                                        JoinType jointype,
+                                                                        JoinPathExtraData *extra,
+                                                                        bool useallclauses,
+                                                                        Path *inner_cheapest_total,
+                                                                        List *merge_pathkeys,
+                                                                        bool is_partial);
 
 
 /*
index 46623c33c636f9403995fd2c7699d08128358b21..43c3b7ea489bb2b972b723b8b1cb054a2759c17d 100644 (file)
 
 
 static void make_rels_by_clause_joins(PlannerInfo *root,
-                                                 RelOptInfo *old_rel,
-                                                 ListCell *other_rels);
+                                                                         RelOptInfo *old_rel,
+                                                                         ListCell *other_rels);
 static void make_rels_by_clauseless_joins(PlannerInfo *root,
-                                                         RelOptInfo *old_rel,
-                                                         ListCell *other_rels);
+                                                                                 RelOptInfo *old_rel,
+                                                                                 ListCell *other_rels);
 static bool has_join_restriction(PlannerInfo *root, RelOptInfo *rel);
 static bool has_legal_joinclause(PlannerInfo *root, RelOptInfo *rel);
 static bool restriction_is_constant_false(List *restrictlist,
-                                                         RelOptInfo *joinrel,
-                                                         bool only_pushed_down);
+                                                                                 RelOptInfo *joinrel,
+                                                                                 bool only_pushed_down);
 static void populate_joinrel_with_paths(PlannerInfo *root, RelOptInfo *rel1,
-                                                       RelOptInfo *rel2, RelOptInfo *joinrel,
-                                                       SpecialJoinInfo *sjinfo, List *restrictlist);
+                                                                               RelOptInfo *rel2, RelOptInfo *joinrel,
+                                                                               SpecialJoinInfo *sjinfo, List *restrictlist);
 static void try_partitionwise_join(PlannerInfo *root, RelOptInfo *rel1,
-                                          RelOptInfo *rel2, RelOptInfo *joinrel,
-                                          SpecialJoinInfo *parent_sjinfo,
-                                          List *parent_restrictlist);
+                                                                  RelOptInfo *rel2, RelOptInfo *joinrel,
+                                                                  SpecialJoinInfo *parent_sjinfo,
+                                                                  List *parent_restrictlist);
 static SpecialJoinInfo *build_child_join_sjinfo(PlannerInfo *root,
-                                               SpecialJoinInfo *parent_sjinfo,
-                                               Relids left_relids, Relids right_relids);
-static int match_expr_to_partition_keys(Expr *expr, RelOptInfo *rel,
-                                                        bool strict_op);
+                                                                                               SpecialJoinInfo *parent_sjinfo,
+                                                                                               Relids left_relids, Relids right_relids);
+static int     match_expr_to_partition_keys(Expr *expr, RelOptInfo *rel,
+                                                                                bool strict_op);
 
 
 /*
index c301e41a4a70094649442b2de33efe093f9d05e3..08b5061612821138a58f40a41963d1c1b1855b97 100644 (file)
@@ -31,8 +31,8 @@
 
 static bool pathkey_is_redundant(PathKey *new_pathkey, List *pathkeys);
 static bool matches_boolean_partition_clause(RestrictInfo *rinfo,
-                                                                RelOptInfo *partrel,
-                                                                int partkeycol);
+                                                                                        RelOptInfo *partrel,
+                                                                                        int partkeycol);
 static Var *find_var_for_subquery_tle(RelOptInfo *rel, TargetEntry *tle);
 static bool right_merge_direction(PlannerInfo *root, PathKey *pathkey);
 
index a4efa693ea762dfac950fbbc603e7ed0fede5a35..32695db367b95a78c396a1362208996e8e290e18 100644 (file)
 /* local functions */
 static bool join_is_removable(PlannerInfo *root, SpecialJoinInfo *sjinfo);
 static void remove_rel_from_query(PlannerInfo *root, int relid,
-                                         Relids joinrelids);
+                                                                 Relids joinrelids);
 static List *remove_rel_from_joinlist(List *joinlist, int relid, int *nremoved);
 static bool rel_supports_distinctness(PlannerInfo *root, RelOptInfo *rel);
 static bool rel_is_distinct_for(PlannerInfo *root, RelOptInfo *rel,
-                                       List *clause_list);
+                                                               List *clause_list);
 static Oid     distinct_col_search(int colno, List *colnos, List *opids);
 static bool is_innerrel_unique_for(PlannerInfo *root,
-                                          Relids joinrelids,
-                                          Relids outerrelids,
-                                          RelOptInfo *innerrel,
-                                          JoinType jointype,
-                                          List *restrictlist);
+                                                                  Relids joinrelids,
+                                                                  Relids outerrelids,
+                                                                  RelOptInfo *innerrel,
+                                                                  JoinType jointype,
+                                                                  List *restrictlist);
 
 
 /*
index 270c11901b78f569fa1df95c0702ca38c85fb7e9..608d5adfed2344406d7d29ac81d14862cbb8f57b 100644 (file)
 
 
 static Plan *create_plan_recurse(PlannerInfo *root, Path *best_path,
-                                       int flags);
+                                                                int flags);
 static Plan *create_scan_plan(PlannerInfo *root, Path *best_path,
-                                int flags);
+                                                         int flags);
 static List *build_path_tlist(PlannerInfo *root, Path *path);
 static bool use_physical_tlist(PlannerInfo *root, Path *path, int flags);
 static List *get_gating_quals(PlannerInfo *root, List *quals);
 static Plan *create_gating_plan(PlannerInfo *root, Path *path, Plan *plan,
-                                  List *gating_quals);
+                                                               List *gating_quals);
 static Plan *create_join_plan(PlannerInfo *root, JoinPath *best_path);
 static Plan *create_append_plan(PlannerInfo *root, AppendPath *best_path,
-                                  int flags);
+                                                               int flags);
 static Plan *create_merge_append_plan(PlannerInfo *root, MergeAppendPath *best_path,
-                                                int flags);
+                                                                         int flags);
 static Result *create_group_result_plan(PlannerInfo *root,
-                                                GroupResultPath *best_path);
+                                                                               GroupResultPath *best_path);
 static ProjectSet *create_project_set_plan(PlannerInfo *root, ProjectSetPath *best_path);
 static Material *create_material_plan(PlannerInfo *root, MaterialPath *best_path,
-                                        int flags);
+                                                                         int flags);
 static Plan *create_unique_plan(PlannerInfo *root, UniquePath *best_path,
-                                  int flags);
+                                                               int flags);
 static Gather *create_gather_plan(PlannerInfo *root, GatherPath *best_path);
 static Plan *create_projection_plan(PlannerInfo *root,
-                                          ProjectionPath *best_path,
-                                          int flags);
+                                                                       ProjectionPath *best_path,
+                                                                       int flags);
 static Plan *inject_projection_plan(Plan *subplan, List *tlist, bool parallel_safe);
 static Sort *create_sort_plan(PlannerInfo *root, SortPath *best_path, int flags);
 static Group *create_group_plan(PlannerInfo *root, GroupPath *best_path);
 static Unique *create_upper_unique_plan(PlannerInfo *root, UpperUniquePath *best_path,
-                                                int flags);
+                                                                               int flags);
 static Agg *create_agg_plan(PlannerInfo *root, AggPath *best_path);
 static Plan *create_groupingsets_plan(PlannerInfo *root, GroupingSetsPath *best_path);
 static Result *create_minmaxagg_plan(PlannerInfo *root, MinMaxAggPath *best_path);
 static WindowAgg *create_windowagg_plan(PlannerInfo *root, WindowAggPath *best_path);
 static SetOp *create_setop_plan(PlannerInfo *root, SetOpPath *best_path,
-                                 int flags);
+                                                               int flags);
 static RecursiveUnion *create_recursiveunion_plan(PlannerInfo *root, RecursiveUnionPath *best_path);
 static LockRows *create_lockrows_plan(PlannerInfo *root, LockRowsPath *best_path,
-                                        int flags);
+                                                                         int flags);
 static ModifyTable *create_modifytable_plan(PlannerInfo *root, ModifyTablePath *best_path);
 static Limit *create_limit_plan(PlannerInfo *root, LimitPath *best_path,
-                                 int flags);
+                                                               int flags);
 static SeqScan *create_seqscan_plan(PlannerInfo *root, Path *best_path,
-                                       List *tlist, List *scan_clauses);
+                                                                       List *tlist, List *scan_clauses);
 static SampleScan *create_samplescan_plan(PlannerInfo *root, Path *best_path,
-                                          List *tlist, List *scan_clauses);
+                                                                                 List *tlist, List *scan_clauses);
 static Scan *create_indexscan_plan(PlannerInfo *root, IndexPath *best_path,
-                                         List *tlist, List *scan_clauses, bool indexonly);
+                                                                  List *tlist, List *scan_clauses, bool indexonly);
 static BitmapHeapScan *create_bitmap_scan_plan(PlannerInfo *root,
-                                               BitmapHeapPath *best_path,
-                                               List *tlist, List *scan_clauses);
+                                                                                          BitmapHeapPath *best_path,
+                                                                                          List *tlist, List *scan_clauses);
 static Plan *create_bitmap_subplan(PlannerInfo *root, Path *bitmapqual,
-                                         List **qual, List **indexqual, List **indexECs);
+                                                                  List **qual, List **indexqual, List **indexECs);
 static void bitmap_subplan_mark_shared(Plan *plan);
 static TidScan *create_tidscan_plan(PlannerInfo *root, TidPath *best_path,
-                                       List *tlist, List *scan_clauses);
+                                                                       List *tlist, List *scan_clauses);
 static SubqueryScan *create_subqueryscan_plan(PlannerInfo *root,
-                                                SubqueryScanPath *best_path,
-                                                List *tlist, List *scan_clauses);
+                                                                                         SubqueryScanPath *best_path,
+                                                                                         List *tlist, List *scan_clauses);
 static FunctionScan *create_functionscan_plan(PlannerInfo *root, Path *best_path,
-                                                List *tlist, List *scan_clauses);
+                                                                                         List *tlist, List *scan_clauses);
 static ValuesScan *create_valuesscan_plan(PlannerInfo *root, Path *best_path,
-                                          List *tlist, List *scan_clauses);
+                                                                                 List *tlist, List *scan_clauses);
 static TableFuncScan *create_tablefuncscan_plan(PlannerInfo *root, Path *best_path,
-                                                 List *tlist, List *scan_clauses);
+                                                                                               List *tlist, List *scan_clauses);
 static CteScan *create_ctescan_plan(PlannerInfo *root, Path *best_path,
-                                       List *tlist, List *scan_clauses);
+                                                                       List *tlist, List *scan_clauses);
 static NamedTuplestoreScan *create_namedtuplestorescan_plan(PlannerInfo *root,
-                                                               Path *best_path, List *tlist, List *scan_clauses);
+                                                                                                                       Path *best_path, List *tlist, List *scan_clauses);
 static Result *create_resultscan_plan(PlannerInfo *root, Path *best_path,
-                                          List *tlist, List *scan_clauses);
+                                                                         List *tlist, List *scan_clauses);
 static WorkTableScan *create_worktablescan_plan(PlannerInfo *root, Path *best_path,
-                                                 List *tlist, List *scan_clauses);
+                                                                                               List *tlist, List *scan_clauses);
 static ForeignScan *create_foreignscan_plan(PlannerInfo *root, ForeignPath *best_path,
-                                               List *tlist, List *scan_clauses);
+                                                                                       List *tlist, List *scan_clauses);
 static CustomScan *create_customscan_plan(PlannerInfo *root,
-                                          CustomPath *best_path,
-                                          List *tlist, List *scan_clauses);
+                                                                                 CustomPath *best_path,
+                                                                                 List *tlist, List *scan_clauses);
 static NestLoop *create_nestloop_plan(PlannerInfo *root, NestPath *best_path);
 static MergeJoin *create_mergejoin_plan(PlannerInfo *root, MergePath *best_path);
 static HashJoin *create_hashjoin_plan(PlannerInfo *root, HashPath *best_path);
 static Node *replace_nestloop_params(PlannerInfo *root, Node *expr);
 static Node *replace_nestloop_params_mutator(Node *node, PlannerInfo *root);
 static void fix_indexqual_references(PlannerInfo *root, IndexPath *index_path,
-                                                List **stripped_indexquals_p,
-                                                List **fixed_indexquals_p);
+                                                                        List **stripped_indexquals_p,
+                                                                        List **fixed_indexquals_p);
 static List *fix_indexorderby_references(PlannerInfo *root, IndexPath *index_path);
 static Node *fix_indexqual_clause(PlannerInfo *root,
-                                        IndexOptInfo *index, int indexcol,
-                                        Node *clause, List *indexcolnos);
+                                                                 IndexOptInfo *index, int indexcol,
+                                                                 Node *clause, List *indexcolnos);
 static Node *fix_indexqual_operand(Node *node, IndexOptInfo *index, int indexcol);
 static List *get_switched_clauses(List *clauses, Relids outerrelids);
 static List *order_qual_clauses(PlannerInfo *root, List *clauses);
 static void copy_generic_path_info(Plan *dest, Path *src);
 static void copy_plan_costsize(Plan *dest, Plan *src);
 static void label_sort_with_costsize(PlannerInfo *root, Sort *plan,
-                                                double limit_tuples);
+                                                                        double limit_tuples);
 static SeqScan *make_seqscan(List *qptlist, List *qpqual, Index scanrelid);
 static SampleScan *make_samplescan(List *qptlist, List *qpqual, Index scanrelid,
-                               TableSampleClause *tsc);
+                                                                  TableSampleClause *tsc);
 static IndexScan *make_indexscan(List *qptlist, List *qpqual, Index scanrelid,
-                          Oid indexid, List *indexqual, List *indexqualorig,
-                          List *indexorderby, List *indexorderbyorig,
-                          List *indexorderbyops,
-                          ScanDirection indexscandir);
+                                                                Oid indexid, List *indexqual, List *indexqualorig,
+                                                                List *indexorderby, List *indexorderbyorig,
+                                                                List *indexorderbyops,
+                                                                ScanDirection indexscandir);
 static IndexOnlyScan *make_indexonlyscan(List *qptlist, List *qpqual,
-                                  Index scanrelid, Oid indexid,
-                                  List *indexqual, List *indexorderby,
-                                  List *indextlist,
-                                  ScanDirection indexscandir);
+                                                                                Index scanrelid, Oid indexid,
+                                                                                List *indexqual, List *indexorderby,
+                                                                                List *indextlist,
+                                                                                ScanDirection indexscandir);
 static BitmapIndexScan *make_bitmap_indexscan(Index scanrelid, Oid indexid,
-                                         List *indexqual,
-                                         List *indexqualorig);
+                                                                                         List *indexqual,
+                                                                                         List *indexqualorig);
 static BitmapHeapScan *make_bitmap_heapscan(List *qptlist,
-                                        List *qpqual,
-                                        Plan *lefttree,
-                                        List *bitmapqualorig,
-                                        Index scanrelid);
+                                                                                       List *qpqual,
+                                                                                       Plan *lefttree,
+                                                                                       List *bitmapqualorig,
+                                                                                       Index scanrelid);
 static TidScan *make_tidscan(List *qptlist, List *qpqual, Index scanrelid,
-                        List *tidquals);
+                                                        List *tidquals);
 static SubqueryScan *make_subqueryscan(List *qptlist,
-                                 List *qpqual,
-                                 Index scanrelid,
-                                 Plan *subplan);
+                                                                          List *qpqual,
+                                                                          Index scanrelid,
+                                                                          Plan *subplan);
 static FunctionScan *make_functionscan(List *qptlist, List *qpqual,
-                                 Index scanrelid, List *functions, bool funcordinality);
+                                                                          Index scanrelid, List *functions, bool funcordinality);
 static ValuesScan *make_valuesscan(List *qptlist, List *qpqual,
-                               Index scanrelid, List *values_lists);
+                                                                  Index scanrelid, List *values_lists);
 static TableFuncScan *make_tablefuncscan(List *qptlist, List *qpqual,
-                                  Index scanrelid, TableFunc *tablefunc);
+                                                                                Index scanrelid, TableFunc *tablefunc);
 static CteScan *make_ctescan(List *qptlist, List *qpqual,
-                        Index scanrelid, int ctePlanId, int cteParam);
+                                                        Index scanrelid, int ctePlanId, int cteParam);
 static NamedTuplestoreScan *make_namedtuplestorescan(List *qptlist, List *qpqual,
-                                                Index scanrelid, char *enrname);
+                                                                                                        Index scanrelid, char *enrname);
 static WorkTableScan *make_worktablescan(List *qptlist, List *qpqual,
-                                  Index scanrelid, int wtParam);
+                                                                                Index scanrelid, int wtParam);
 static RecursiveUnion *make_recursive_union(List *tlist,
-                                        Plan *lefttree,
-                                        Plan *righttree,
-                                        int wtParam,
-                                        List *distinctList,
-                                        long numGroups);
+                                                                                       Plan *lefttree,
+                                                                                       Plan *righttree,
+                                                                                       int wtParam,
+                                                                                       List *distinctList,
+                                                                                       long numGroups);
 static BitmapAnd *make_bitmap_and(List *bitmapplans);
 static BitmapOr *make_bitmap_or(List *bitmapplans);
 static NestLoop *make_nestloop(List *tlist,
-                         List *joinclauses, List *otherclauses, List *nestParams,
-                         Plan *lefttree, Plan *righttree,
-                         JoinType jointype, bool inner_unique);
+                                                          List *joinclauses, List *otherclauses, List *nestParams,
+                                                          Plan *lefttree, Plan *righttree,
+                                                          JoinType jointype, bool inner_unique);
 static HashJoin *make_hashjoin(List *tlist,
-                         List *joinclauses, List *otherclauses,
-                         List *hashclauses,
-                         Plan *lefttree, Plan *righttree,
-                         JoinType jointype, bool inner_unique);
+                                                          List *joinclauses, List *otherclauses,
+                                                          List *hashclauses,
+                                                          Plan *lefttree, Plan *righttree,
+                                                          JoinType jointype, bool inner_unique);
 static Hash *make_hash(Plan *lefttree,
-                 Oid skewTable,
-                 AttrNumber skewColumn,
-                 bool skewInherit);
+                                          Oid skewTable,
+                                          AttrNumber skewColumn,
+                                          bool skewInherit);
 static MergeJoin *make_mergejoin(List *tlist,
-                          List *joinclauses, List *otherclauses,
-                          List *mergeclauses,
-                          Oid *mergefamilies,
-                          Oid *mergecollations,
-                          int *mergestrategies,
-                          bool *mergenullsfirst,
-                          Plan *lefttree, Plan *righttree,
-                          JoinType jointype, bool inner_unique,
-                          bool skip_mark_restore);
+                                                                List *joinclauses, List *otherclauses,
+                                                                List *mergeclauses,
+                                                                Oid *mergefamilies,
+                                                                Oid *mergecollations,
+                                                                int *mergestrategies,
+                                                                bool *mergenullsfirst,
+                                                                Plan *lefttree, Plan *righttree,
+                                                                JoinType jointype, bool inner_unique,
+                                                                bool skip_mark_restore);
 static Sort *make_sort(Plan *lefttree, int numCols,
-                 AttrNumber *sortColIdx, Oid *sortOperators,
-                 Oid *collations, bool *nullsFirst);
+                                          AttrNumber *sortColIdx, Oid *sortOperators,
+                                          Oid *collations, bool *nullsFirst);
 static Plan *prepare_sort_from_pathkeys(Plan *lefttree, List *pathkeys,
-                                                  Relids relids,
-                                                  const AttrNumber *reqColIdx,
-                                                  bool adjust_tlist_in_place,
-                                                  int *p_numsortkeys,
-                                                  AttrNumber **p_sortColIdx,
-                                                  Oid **p_sortOperators,
-                                                  Oid **p_collations,
-                                                  bool **p_nullsFirst);
+                                                                               Relids relids,
+                                                                               const AttrNumber *reqColIdx,
+                                                                               bool adjust_tlist_in_place,
+                                                                               int *p_numsortkeys,
+                                                                               AttrNumber **p_sortColIdx,
+                                                                               Oid **p_sortOperators,
+                                                                               Oid **p_collations,
+                                                                               bool **p_nullsFirst);
 static EquivalenceMember *find_ec_member_for_tle(EquivalenceClass *ec,
-                                          TargetEntry *tle,
-                                          Relids relids);
+                                                                                                TargetEntry *tle,
+                                                                                                Relids relids);
 static Sort *make_sort_from_pathkeys(Plan *lefttree, List *pathkeys,
-                                               Relids relids);
+                                                                        Relids relids);
 static Sort *make_sort_from_groupcols(List *groupcls,
-                                                AttrNumber *grpColIdx,
-                                                Plan *lefttree);
+                                                                         AttrNumber *grpColIdx,
+                                                                         Plan *lefttree);
 static Material *make_material(Plan *lefttree);
 static WindowAgg *make_windowagg(List *tlist, Index winref,
-                          int partNumCols, AttrNumber *partColIdx, Oid *partOperators, Oid *partCollations,
-                          int ordNumCols, AttrNumber *ordColIdx, Oid *ordOperators, Oid *ordCollations,
-                          int frameOptions, Node *startOffset, Node *endOffset,
-                          Oid startInRangeFunc, Oid endInRangeFunc,
-                          Oid inRangeColl, bool inRangeAsc, bool inRangeNullsFirst,
-                          Plan *lefttree);
+                                                                int partNumCols, AttrNumber *partColIdx, Oid *partOperators, Oid *partCollations,
+                                                                int ordNumCols, AttrNumber *ordColIdx, Oid *ordOperators, Oid *ordCollations,
+                                                                int frameOptions, Node *startOffset, Node *endOffset,
+                                                                Oid startInRangeFunc, Oid endInRangeFunc,
+                                                                Oid inRangeColl, bool inRangeAsc, bool inRangeNullsFirst,
+                                                                Plan *lefttree);
 static Group *make_group(List *tlist, List *qual, int numGroupCols,
-                  AttrNumber *grpColIdx, Oid *grpOperators, Oid *grpCollations,
-                  Plan *lefttree);
+                                                AttrNumber *grpColIdx, Oid *grpOperators, Oid *grpCollations,
+                                                Plan *lefttree);
 static Unique *make_unique_from_sortclauses(Plan *lefttree, List *distinctList);
 static Unique *make_unique_from_pathkeys(Plan *lefttree,
-                                                 List *pathkeys, int numCols);
+                                                                                List *pathkeys, int numCols);
 static Gather *make_gather(List *qptlist, List *qpqual,
-                       int nworkers, int rescan_param, bool single_copy, Plan *subplan);
+                                                  int nworkers, int rescan_param, bool single_copy, Plan *subplan);
 static SetOp *make_setop(SetOpCmd cmd, SetOpStrategy strategy, Plan *lefttree,
-                  List *distinctList, AttrNumber flagColIdx, int firstFlag,
-                  long numGroups);
+                                                List *distinctList, AttrNumber flagColIdx, int firstFlag,
+                                                long numGroups);
 static LockRows *make_lockrows(Plan *lefttree, List *rowMarks, int epqParam);
 static Result *make_result(List *tlist, Node *resconstantqual, Plan *subplan);
 static ProjectSet *make_project_set(List *tlist, Plan *subplan);
 static ModifyTable *make_modifytable(PlannerInfo *root,
-                                CmdType operation, bool canSetTag,
-                                Index nominalRelation, Index rootRelation,
-                                bool partColsUpdated,
-                                List *resultRelations, List *subplans, List *subroots,
-                                List *withCheckOptionLists, List *returningLists,
-                                List *rowMarks, OnConflictExpr *onconflict, int epqParam);
+                                                                        CmdType operation, bool canSetTag,
+                                                                        Index nominalRelation, Index rootRelation,
+                                                                        bool partColsUpdated,
+                                                                        List *resultRelations, List *subplans, List *subroots,
+                                                                        List *withCheckOptionLists, List *returningLists,
+                                                                        List *rowMarks, OnConflictExpr *onconflict, int epqParam);
 static GatherMerge *create_gather_merge_plan(PlannerInfo *root,
-                                                GatherMergePath *best_path);
+                                                                                        GatherMergePath *best_path);
 
 
 /*
index 9798dca2722ce4d92f457b2920306e2c9c11c672..73da0c2d8e1d3e45fa080c26fad2b640b82a51f5 100644 (file)
@@ -49,33 +49,33 @@ typedef struct PostponedQual
 
 
 static void extract_lateral_references(PlannerInfo *root, RelOptInfo *brel,
-                                                  Index rtindex);
+                                                                          Index rtindex);
 static List *deconstruct_recurse(PlannerInfo *root, Node *jtnode,
-                                       bool below_outer_join,
-                                       Relids *qualscope, Relids *inner_join_rels,
-                                       List **postponed_qual_list);
+                                                                bool below_outer_join,
+                                                                Relids *qualscope, Relids *inner_join_rels,
+                                                                List **postponed_qual_list);
 static void process_security_barrier_quals(PlannerInfo *root,
-                                                          int rti, Relids qualscope,
-                                                          bool below_outer_join);
+                                                                                  int rti, Relids qualscope,
+                                                                                  bool below_outer_join);
 static SpecialJoinInfo *make_outerjoininfo(PlannerInfo *root,
-                                  Relids left_rels, Relids right_rels,
-                                  Relids inner_join_rels,
-                                  JoinType jointype, List *clause);
+                                                                                  Relids left_rels, Relids right_rels,
+                                                                                  Relids inner_join_rels,
+                                                                                  JoinType jointype, List *clause);
 static void compute_semijoin_info(SpecialJoinInfo *sjinfo, List *clause);
 static void distribute_qual_to_rels(PlannerInfo *root, Node *clause,
-                                               bool is_deduced,
-                                               bool below_outer_join,
-                                               JoinType jointype,
-                                               Index security_level,
-                                               Relids qualscope,
-                                               Relids ojscope,
-                                               Relids outerjoin_nonnullable,
-                                               Relids deduced_nullable_relids,
-                                               List **postponed_qual_list);
+                                                                       bool is_deduced,
+                                                                       bool below_outer_join,
+                                                                       JoinType jointype,
+                                                                       Index security_level,
+                                                                       Relids qualscope,
+                                                                       Relids ojscope,
+                                                                       Relids outerjoin_nonnullable,
+                                                                       Relids deduced_nullable_relids,
+                                                                       List **postponed_qual_list);
 static bool check_outerjoin_delay(PlannerInfo *root, Relids *relids_p,
-                                         Relids *nullable_relids_p, bool is_pushed_down);
+                                                                 Relids *nullable_relids_p, bool is_pushed_down);
 static bool check_equivalence_delay(PlannerInfo *root,
-                                               RestrictInfo *restrictinfo);
+                                                                       RestrictInfo *restrictinfo);
 static bool check_redundant_nullability_qual(PlannerInfo *root, Node *clause);
 static void check_mergejoinable(RestrictInfo *restrictinfo);
 static void check_hashjoinable(RestrictInfo *restrictinfo);
index 67c35c5e869b05941aa0ff8cd1e4c115613d3efe..9381939c82271b7e645730d1effcc7ce00f2e3b6 100644 (file)
@@ -50,7 +50,7 @@
 
 static bool find_minmax_aggs_walker(Node *node, List **context);
 static bool build_minmax_path(PlannerInfo *root, MinMaxAggInfo *mminfo,
-                                 Oid eqop, Oid sortop, bool nulls_first);
+                                                         Oid eqop, Oid sortop, bool nulls_first);
 static void minmax_qp_callback(PlannerInfo *root, void *extra);
 static Oid     fetch_agg_sort_op(Oid aggfnoid);
 
index 48005434d40919831b73d5876ff88b3fd7fb9c1f..cb897cc7f4e41b2f5dfe2e9372b000bdc45934fb 100644 (file)
@@ -132,122 +132,122 @@ static Node *preprocess_expression(PlannerInfo *root, Node *expr, int kind);
 static void preprocess_qual_conditions(PlannerInfo *root, Node *jtnode);
 static void inheritance_planner(PlannerInfo *root);
 static void grouping_planner(PlannerInfo *root, bool inheritance_update,
-                                double tuple_fraction);
+                                                        double tuple_fraction);
 static grouping_sets_data *preprocess_grouping_sets(PlannerInfo *root);
 static List *remap_to_groupclause_idx(List *groupClause, List *gsets,
-                                                int *tleref_to_colnum_map);
+                                                                         int *tleref_to_colnum_map);
 static void preprocess_rowmarks(PlannerInfo *root);
 static double preprocess_limit(PlannerInfo *root,
-                                double tuple_fraction,
-                                int64 *offset_est, int64 *count_est);
+                                                          double tuple_fraction,
+                                                          int64 *offset_est, int64 *count_est);
 static void remove_useless_groupby_columns(PlannerInfo *root);
 static List *preprocess_groupclause(PlannerInfo *root, List *force);
 static List *extract_rollup_sets(List *groupingSets);
 static List *reorder_grouping_sets(List *groupingSets, List *sortclause);
 static void standard_qp_callback(PlannerInfo *root, void *extra);
 static double get_number_of_groups(PlannerInfo *root,
-                                        double path_rows,
-                                        grouping_sets_data *gd,
-                                        List *target_list);
+                                                                  double path_rows,
+                                                                  grouping_sets_data *gd,
+                                                                  List *target_list);
 static RelOptInfo *create_grouping_paths(PlannerInfo *root,
-                                         RelOptInfo *input_rel,
-                                         PathTarget *target,
-                                         bool target_parallel_safe,
-                                         const AggClauseCosts *agg_costs,
-                                         grouping_sets_data *gd);
+                                                                                RelOptInfo *input_rel,
+                                                                                PathTarget *target,
+                                                                                bool target_parallel_safe,
+                                                                                const AggClauseCosts *agg_costs,
+                                                                                grouping_sets_data *gd);
 static bool is_degenerate_grouping(PlannerInfo *root);
 static void create_degenerate_grouping_paths(PlannerInfo *root,
-                                                                RelOptInfo *input_rel,
-                                                                RelOptInfo *grouped_rel);
+                                                                                        RelOptInfo *input_rel,
+                                                                                        RelOptInfo *grouped_rel);
 static RelOptInfo *make_grouping_rel(PlannerInfo *root, RelOptInfo *input_rel,
-                                 PathTarget *target, bool target_parallel_safe,
-                                 Node *havingQual);
+                                                                        PathTarget *target, bool target_parallel_safe,
+                                                                        Node *havingQual);
 static void create_ordinary_grouping_paths(PlannerInfo *root,
-                                                          RelOptInfo *input_rel,
-                                                          RelOptInfo *grouped_rel,
-                                                          const AggClauseCosts *agg_costs,
-                                                          grouping_sets_data *gd,
-                                                          GroupPathExtraData *extra,
-                                                          RelOptInfo **partially_grouped_rel_p);
+                                                                                  RelOptInfo *input_rel,
+                                                                                  RelOptInfo *grouped_rel,
+                                                                                  const AggClauseCosts *agg_costs,
+                                                                                  grouping_sets_data *gd,
+                                                                                  GroupPathExtraData *extra,
+                                                                                  RelOptInfo **partially_grouped_rel_p);
 static void consider_groupingsets_paths(PlannerInfo *root,
-                                                       RelOptInfo *grouped_rel,
-                                                       Path *path,
-                                                       bool is_sorted,
-                                                       bool can_hash,
-                                                       grouping_sets_data *gd,
-                                                       const AggClauseCosts *agg_costs,
-                                                       double dNumGroups);
+                                                                               RelOptInfo *grouped_rel,
+                                                                               Path *path,
+                                                                               bool is_sorted,
+                                                                               bool can_hash,
+                                                                               grouping_sets_data *gd,
+                                                                               const AggClauseCosts *agg_costs,
+                                                                               double dNumGroups);
 static RelOptInfo *create_window_paths(PlannerInfo *root,
-                                       RelOptInfo *input_rel,
-                                       PathTarget *input_target,
-                                       PathTarget *output_target,
-                                       bool output_target_parallel_safe,
-                                       WindowFuncLists *wflists,
-                                       List *activeWindows);
+                                                                          RelOptInfo *input_rel,
+                                                                          PathTarget *input_target,
+                                                                          PathTarget *output_target,
+                                                                          bool output_target_parallel_safe,
+                                                                          WindowFuncLists *wflists,
+                                                                          List *activeWindows);
 static void create_one_window_path(PlannerInfo *root,
-                                          RelOptInfo *window_rel,
-                                          Path *path,
-                                          PathTarget *input_target,
-                                          PathTarget *output_target,
-                                          WindowFuncLists *wflists,
-                                          List *activeWindows);
+                                                                  RelOptInfo *window_rel,
+                                                                  Path *path,
+                                                                  PathTarget *input_target,
+                                                                  PathTarget *output_target,
+                                                                  WindowFuncLists *wflists,
+                                                                  List *activeWindows);
 static RelOptInfo *create_distinct_paths(PlannerInfo *root,
-                                         RelOptInfo *input_rel);
+                                                                                RelOptInfo *input_rel);
 static RelOptInfo *create_ordered_paths(PlannerInfo *root,
-                                        RelOptInfo *input_rel,
-                                        PathTarget *target,
-                                        bool target_parallel_safe,
-                                        double limit_tuples);
+                                                                               RelOptInfo *input_rel,
+                                                                               PathTarget *target,
+                                                                               bool target_parallel_safe,
+                                                                               double limit_tuples);
 static PathTarget *make_group_input_target(PlannerInfo *root,
-                                               PathTarget *final_target);
+                                                                                  PathTarget *final_target);
 static PathTarget *make_partial_grouping_target(PlannerInfo *root,
-                                                        PathTarget *grouping_target,
-                                                        Node *havingQual);
+                                                                                               PathTarget *grouping_target,
+                                                                                               Node *havingQual);
 static List *postprocess_setop_tlist(List *new_tlist, List *orig_tlist);
 static List *select_active_windows(PlannerInfo *root, WindowFuncLists *wflists);
 static PathTarget *make_window_input_target(PlannerInfo *root,
-                                                PathTarget *final_target,
-                                                List *activeWindows);
+                                                                                       PathTarget *final_target,
+                                                                                       List *activeWindows);
 static List *make_pathkeys_for_window(PlannerInfo *root, WindowClause *wc,
-                                                List *tlist);
+                                                                         List *tlist);
 static PathTarget *make_sort_input_target(PlannerInfo *root,
-                                          PathTarget *final_target,
-                                          bool *have_postponed_srfs);
+                                                                                 PathTarget *final_target,
+                                                                                 bool *have_postponed_srfs);
 static void adjust_paths_for_srfs(PlannerInfo *root, RelOptInfo *rel,
-                                         List *targets, List *targets_contain_srfs);
+                                                                 List *targets, List *targets_contain_srfs);
 static void add_paths_to_grouping_rel(PlannerInfo *root, RelOptInfo *input_rel,
-                                                 RelOptInfo *grouped_rel,
-                                                 RelOptInfo *partially_grouped_rel,
-                                                 const AggClauseCosts *agg_costs,
-                                                 grouping_sets_data *gd,
-                                                 double dNumGroups,
-                                                 GroupPathExtraData *extra);
+                                                                         RelOptInfo *grouped_rel,
+                                                                         RelOptInfo *partially_grouped_rel,
+                                                                         const AggClauseCosts *agg_costs,
+                                                                         grouping_sets_data *gd,
+                                                                         double dNumGroups,
+                                                                         GroupPathExtraData *extra);
 static RelOptInfo *create_partial_grouping_paths(PlannerInfo *root,
-                                                         RelOptInfo *grouped_rel,
-                                                         RelOptInfo *input_rel,
-                                                         grouping_sets_data *gd,
-                                                         GroupPathExtraData *extra,
-                                                         bool force_rel_creation);
+                                                                                                RelOptInfo *grouped_rel,
+                                                                                                RelOptInfo *input_rel,
+                                                                                                grouping_sets_data *gd,
+                                                                                                GroupPathExtraData *extra,
+                                                                                                bool force_rel_creation);
 static void gather_grouping_paths(PlannerInfo *root, RelOptInfo *rel);
 static bool can_partial_agg(PlannerInfo *root,
-                               const AggClauseCosts *agg_costs);
+                                                       const AggClauseCosts *agg_costs);
 static void apply_scanjoin_target_to_paths(PlannerInfo *root,
-                                                          RelOptInfo *rel,
-                                                          List *scanjoin_targets,
-                                                          List *scanjoin_targets_contain_srfs,
-                                                          bool scanjoin_target_parallel_safe,
-                                                          bool tlist_same_exprs);
+                                                                                  RelOptInfo *rel,
+                                                                                  List *scanjoin_targets,
+                                                                                  List *scanjoin_targets_contain_srfs,
+                                                                                  bool scanjoin_target_parallel_safe,
+                                                                                  bool tlist_same_exprs);
 static void create_partitionwise_grouping_paths(PlannerInfo *root,
-                                                                       RelOptInfo *input_rel,
-                                                                       RelOptInfo *grouped_rel,
-                                                                       RelOptInfo *partially_grouped_rel,
-                                                                       const AggClauseCosts *agg_costs,
-                                                                       grouping_sets_data *gd,
-                                                                       PartitionwiseAggregateType patype,
-                                                                       GroupPathExtraData *extra);
+                                                                                               RelOptInfo *input_rel,
+                                                                                               RelOptInfo *grouped_rel,
+                                                                                               RelOptInfo *partially_grouped_rel,
+                                                                                               const AggClauseCosts *agg_costs,
+                                                                                               grouping_sets_data *gd,
+                                                                                               PartitionwiseAggregateType patype,
+                                                                                               GroupPathExtraData *extra);
 static bool group_by_has_partkey(RelOptInfo *input_rel,
-                                        List *targetList,
-                                        List *groupClause);
+                                                                List *targetList,
+                                                                List *groupClause);
 static int     common_prefix_cmp(const void *a, const void *b);
 
 
index 4204ca4025dcde561a08d74472a64a3cf4a0a96b..dc11f098e0f51cb075a1e457dab070458bd73988 100644 (file)
@@ -88,25 +88,25 @@ static bool flatten_rtes_walker(Node *node, PlannerGlobal *glob);
 static void add_rte_to_flat_rtable(PlannerGlobal *glob, RangeTblEntry *rte);
 static Plan *set_plan_refs(PlannerInfo *root, Plan *plan, int rtoffset);
 static Plan *set_indexonlyscan_references(PlannerInfo *root,
-                                                        IndexOnlyScan *plan,
-                                                        int rtoffset);
+                                                                                 IndexOnlyScan *plan,
+                                                                                 int rtoffset);
 static Plan *set_subqueryscan_references(PlannerInfo *root,
-                                                       SubqueryScan *plan,
-                                                       int rtoffset);
+                                                                                SubqueryScan *plan,
+                                                                                int rtoffset);
 static bool trivial_subqueryscan(SubqueryScan *plan);
 static Plan *clean_up_removed_plan_level(Plan *parent, Plan *child);
 static void set_foreignscan_references(PlannerInfo *root,
-                                                  ForeignScan *fscan,
-                                                  int rtoffset);
+                                                                          ForeignScan *fscan,
+                                                                          int rtoffset);
 static void set_customscan_references(PlannerInfo *root,
-                                                 CustomScan *cscan,
-                                                 int rtoffset);
+                                                                         CustomScan *cscan,
+                                                                         int rtoffset);
 static Plan *set_append_references(PlannerInfo *root,
-                                         Append *aplan,
-                                         int rtoffset);
+                                                                  Append *aplan,
+                                                                  int rtoffset);
 static Plan *set_mergeappend_references(PlannerInfo *root,
-                                                  MergeAppend *mplan,
-                                                  int rtoffset);
+                                                                               MergeAppend *mplan,
+                                                                               int rtoffset);
 static Node *fix_scan_expr(PlannerInfo *root, Node *node, int rtoffset);
 static Node *fix_scan_expr_mutator(Node *node, fix_scan_expr_context *context);
 static bool fix_scan_expr_walker(Node *node, fix_scan_expr_context *context);
@@ -117,35 +117,35 @@ static Node *convert_combining_aggrefs(Node *node, void *context);
 static void set_dummy_tlist_references(Plan *plan, int rtoffset);
 static indexed_tlist *build_tlist_index(List *tlist);
 static Var *search_indexed_tlist_for_var(Var *var,
-                                                        indexed_tlist *itlist,
-                                                        Index newvarno,
-                                                        int rtoffset);
+                                                                                indexed_tlist *itlist,
+                                                                                Index newvarno,
+                                                                                int rtoffset);
 static Var *search_indexed_tlist_for_non_var(Expr *node,
-                                                                indexed_tlist *itlist,
-                                                                Index newvarno);
+                                                                                        indexed_tlist *itlist,
+                                                                                        Index newvarno);
 static Var *search_indexed_tlist_for_sortgroupref(Expr *node,
-                                                                         Index sortgroupref,
-                                                                         indexed_tlist *itlist,
-                                                                         Index newvarno);
+                                                                                                 Index sortgroupref,
+                                                                                                 indexed_tlist *itlist,
+                                                                                                 Index newvarno);
 static List *fix_join_expr(PlannerInfo *root,
-                         List *clauses,
-                         indexed_tlist *outer_itlist,
-                         indexed_tlist *inner_itlist,
-                         Index acceptable_rel, int rtoffset);
+                                                  List *clauses,
+                                                  indexed_tlist *outer_itlist,
+                                                  indexed_tlist *inner_itlist,
+                                                  Index acceptable_rel, int rtoffset);
 static Node *fix_join_expr_mutator(Node *node,
-                                         fix_join_expr_context *context);
+                                                                  fix_join_expr_context *context);
 static Node *fix_upper_expr(PlannerInfo *root,
-                          Node *node,
-                          indexed_tlist *subplan_itlist,
-                          Index newvarno,
-                          int rtoffset);
+                                                       Node *node,
+                                                       indexed_tlist *subplan_itlist,
+                                                       Index newvarno,
+                                                       int rtoffset);
 static Node *fix_upper_expr_mutator(Node *node,
-                                          fix_upper_expr_context *context);
+                                                                       fix_upper_expr_context *context);
 static List *set_returning_clause_references(PlannerInfo *root,
-                                                               List *rlist,
-                                                               Plan *topplan,
-                                                               Index resultRelation,
-                                                               int rtoffset);
+                                                                                        List *rlist,
+                                                                                        Plan *topplan,
+                                                                                        Index resultRelation,
+                                                                                        int rtoffset);
 
 
 /*****************************************************************************
index 921ebfb5eddf9cfcce0799d43d14266bf726b15e..efd0fbc21c589f6268bd74b87d012e0977a8f2d6 100644 (file)
@@ -67,19 +67,19 @@ typedef struct inline_cte_walker_context
 
 
 static Node *build_subplan(PlannerInfo *root, Plan *plan, PlannerInfo *subroot,
-                         List *plan_params,
-                         SubLinkType subLinkType, int subLinkId,
-                         Node *testexpr, bool adjust_testexpr,
-                         bool unknownEqFalse);
+                                                  List *plan_params,
+                                                  SubLinkType subLinkType, int subLinkId,
+                                                  Node *testexpr, bool adjust_testexpr,
+                                                  bool unknownEqFalse);
 static List *generate_subquery_params(PlannerInfo *root, List *tlist,
-                                                List **paramIds);
+                                                                         List **paramIds);
 static List *generate_subquery_vars(PlannerInfo *root, List *tlist,
-                                          Index varno);
+                                                                       Index varno);
 static Node *convert_testexpr(PlannerInfo *root,
-                                Node *testexpr,
-                                List *subst_nodes);
+                                                         Node *testexpr,
+                                                         List *subst_nodes);
 static Node *convert_testexpr_mutator(Node *node,
-                                                convert_testexpr_context *context);
+                                                                         convert_testexpr_context *context);
 static bool subplan_is_hashable(Plan *plan);
 static bool testexpr_is_hashable(Node *testexpr);
 static bool hash_ok_operator(OpExpr *expr);
@@ -91,15 +91,15 @@ static void inline_cte(PlannerInfo *root, CommonTableExpr *cte);
 static bool inline_cte_walker(Node *node, inline_cte_walker_context *context);
 static bool simplify_EXISTS_query(PlannerInfo *root, Query *query);
 static Query *convert_EXISTS_to_ANY(PlannerInfo *root, Query *subselect,
-                                         Node **testexpr, List **paramIds);
+                                                                       Node **testexpr, List **paramIds);
 static Node *replace_correlation_vars_mutator(Node *node, PlannerInfo *root);
 static Node *process_sublinks_mutator(Node *node,
-                                                process_sublinks_context *context);
+                                                                         process_sublinks_context *context);
 static Bitmapset *finalize_plan(PlannerInfo *root,
-                         Plan *plan,
-                         int gather_param,
-                         Bitmapset *valid_params,
-                         Bitmapset *scan_params);
+                                                               Plan *plan,
+                                                               int gather_param,
+                                                               Bitmapset *valid_params,
+                                                               Bitmapset *scan_params);
 static bool finalize_primnode(Node *node, finalize_primnode_context *context);
 static bool finalize_agg_primnode(Node *node, finalize_primnode_context *context);
 
index aebe1627135654e5bb1ca561b698ce7c3c069de3..67eeba938dbe63afb869dcf4943677ba302c277a 100644 (file)
@@ -61,61 +61,61 @@ typedef struct reduce_outer_joins_state
 } reduce_outer_joins_state;
 
 static Node *pull_up_sublinks_jointree_recurse(PlannerInfo *root, Node *jtnode,
-                                                                 Relids *relids);
+                                                                                          Relids *relids);
 static Node *pull_up_sublinks_qual_recurse(PlannerInfo *root, Node *node,
-                                                         Node **jtlink1, Relids available_rels1,
-                                                         Node **jtlink2, Relids available_rels2);
+                                                                                  Node **jtlink1, Relids available_rels1,
+                                                                                  Node **jtlink2, Relids available_rels2);
 static Node *pull_up_subqueries_recurse(PlannerInfo *root, Node *jtnode,
-                                                  JoinExpr *lowest_outer_join,
-                                                  JoinExpr *lowest_nulling_outer_join,
-                                                  AppendRelInfo *containing_appendrel);
+                                                                               JoinExpr *lowest_outer_join,
+                                                                               JoinExpr *lowest_nulling_outer_join,
+                                                                               AppendRelInfo *containing_appendrel);
 static Node *pull_up_simple_subquery(PlannerInfo *root, Node *jtnode,
-                                               RangeTblEntry *rte,
-                                               JoinExpr *lowest_outer_join,
-                                               JoinExpr *lowest_nulling_outer_join,
-                                               AppendRelInfo *containing_appendrel);
+                                                                        RangeTblEntry *rte,
+                                                                        JoinExpr *lowest_outer_join,
+                                                                        JoinExpr *lowest_nulling_outer_join,
+                                                                        AppendRelInfo *containing_appendrel);
 static Node *pull_up_simple_union_all(PlannerInfo *root, Node *jtnode,
-                                                RangeTblEntry *rte);
+                                                                         RangeTblEntry *rte);
 static void pull_up_union_leaf_queries(Node *setOp, PlannerInfo *root,
-                                                  int parentRTindex, Query *setOpQuery,
-                                                  int childRToffset);
+                                                                          int parentRTindex, Query *setOpQuery,
+                                                                          int childRToffset);
 static void make_setop_translation_list(Query *query, Index newvarno,
-                                                       List **translated_vars);
+                                                                               List **translated_vars);
 static bool is_simple_subquery(Query *subquery, RangeTblEntry *rte,
-                                  JoinExpr *lowest_outer_join);
+                                                          JoinExpr *lowest_outer_join);
 static Node *pull_up_simple_values(PlannerInfo *root, Node *jtnode,
-                                         RangeTblEntry *rte);
+                                                                  RangeTblEntry *rte);
 static bool is_simple_values(PlannerInfo *root, RangeTblEntry *rte);
 static bool is_simple_union_all(Query *subquery);
 static bool is_simple_union_all_recurse(Node *setOp, Query *setOpQuery,
-                                                       List *colTypes);
+                                                                               List *colTypes);
 static bool is_safe_append_member(Query *subquery);
 static bool jointree_contains_lateral_outer_refs(Node *jtnode, bool restricted,
-                                                                        Relids safe_upper_varnos);
+                                                                                                Relids safe_upper_varnos);
 static void replace_vars_in_jointree(Node *jtnode,
-                                                pullup_replace_vars_context *context,
-                                                JoinExpr *lowest_nulling_outer_join);
+                                                                        pullup_replace_vars_context *context,
+                                                                        JoinExpr *lowest_nulling_outer_join);
 static Node *pullup_replace_vars(Node *expr,
-                                       pullup_replace_vars_context *context);
+                                                                pullup_replace_vars_context *context);
 static Node *pullup_replace_vars_callback(Var *var,
-                                                        replace_rte_variables_context *context);
+                                                                                 replace_rte_variables_context *context);
 static Query *pullup_replace_vars_subquery(Query *query,
-                                                        pullup_replace_vars_context *context);
+                                                                                  pullup_replace_vars_context *context);
 static reduce_outer_joins_state *reduce_outer_joins_pass1(Node *jtnode);
 static void reduce_outer_joins_pass2(Node *jtnode,
-                                                reduce_outer_joins_state *state,
-                                                PlannerInfo *root,
-                                                Relids nonnullable_rels,
-                                                List *nonnullable_vars,
-                                                List *forced_null_vars);
+                                                                        reduce_outer_joins_state *state,
+                                                                        PlannerInfo *root,
+                                                                        Relids nonnullable_rels,
+                                                                        List *nonnullable_vars,
+                                                                        List *forced_null_vars);
 static Node *remove_useless_results_recurse(PlannerInfo *root, Node *jtnode);
 static int     get_result_relid(PlannerInfo *root, Node *jtnode);
 static void remove_result_refs(PlannerInfo *root, int varno, Node *newjtloc);
 static bool find_dependent_phvs(Node *node, int varno);
 static void substitute_phv_relids(Node *node,
-                                         int varno, Relids subrelids);
+                                                                 int varno, Relids subrelids);
 static void fix_append_rel_relids(List *append_rel_list, int varno,
-                                         Relids subrelids);
+                                                                 Relids subrelids);
 static Node *find_jointree_node_for_rel(Node *jtnode, int relid);
 
 
index 66e6ad9b930d5fa85acb6c52e2f5965d690c6829..05172ff0234ae97d710c4041ebcc054ebec2af84 100644 (file)
@@ -54,7 +54,7 @@
 
 
 static List *expand_targetlist(List *tlist, int command_type,
-                                 Index result_relation, Relation rel);
+                                                          Index result_relation, Relation rel);
 
 
 /*
index c1def3823faca3baa03e606c7692b2745d97f6f4..cd9d49c1f79b947a05be59592e0c3efd8be539dd 100644 (file)
 
 
 static RelOptInfo *recurse_set_operations(Node *setOp, PlannerInfo *root,
-                                          List *colTypes, List *colCollations,
-                                          bool junkOK,
-                                          int flag, List *refnames_tlist,
-                                          List **pTargetList,
-                                          double *pNumGroups);
+                                                                                 List *colTypes, List *colCollations,
+                                                                                 bool junkOK,
+                                                                                 int flag, List *refnames_tlist,
+                                                                                 List **pTargetList,
+                                                                                 double *pNumGroups);
 static RelOptInfo *generate_recursion_path(SetOperationStmt *setOp,
-                                               PlannerInfo *root,
-                                               List *refnames_tlist,
-                                               List **pTargetList);
+                                                                                  PlannerInfo *root,
+                                                                                  List *refnames_tlist,
+                                                                                  List **pTargetList);
 static RelOptInfo *generate_union_paths(SetOperationStmt *op, PlannerInfo *root,
-                                        List *refnames_tlist,
-                                        List **pTargetList);
+                                                                               List *refnames_tlist,
+                                                                               List **pTargetList);
 static RelOptInfo *generate_nonunion_paths(SetOperationStmt *op, PlannerInfo *root,
-                                               List *refnames_tlist,
-                                               List **pTargetList);
+                                                                                  List *refnames_tlist,
+                                                                                  List **pTargetList);
 static List *plan_union_children(PlannerInfo *root,
-                                       SetOperationStmt *top_union,
-                                       List *refnames_tlist,
-                                       List **tlist_list);
+                                                                SetOperationStmt *top_union,
+                                                                List *refnames_tlist,
+                                                                List **tlist_list);
 static Path *make_union_unique(SetOperationStmt *op, Path *path, List *tlist,
-                                 PlannerInfo *root);
+                                                          PlannerInfo *root);
 static void postprocess_setop_rel(PlannerInfo *root, RelOptInfo *rel);
 static bool choose_hashed_setop(PlannerInfo *root, List *groupClauses,
-                                       Path *input_path,
-                                       double dNumGroups, double dNumOutputRows,
-                                       const char *construct);
+                                                               Path *input_path,
+                                                               double dNumGroups, double dNumOutputRows,
+                                                               const char *construct);
 static List *generate_setop_tlist(List *colTypes, List *colCollations,
-                                        int flag,
-                                        Index varno,
-                                        bool hack_constants,
-                                        List *input_tlist,
-                                        List *refnames_tlist);
+                                                                 int flag,
+                                                                 Index varno,
+                                                                 bool hack_constants,
+                                                                 List *input_tlist,
+                                                                 List *refnames_tlist);
 static List *generate_append_tlist(List *colTypes, List *colCollations,
-                                         bool flag,
-                                         List *input_tlists,
-                                         List *refnames_tlist);
+                                                                  bool flag,
+                                                                  List *input_tlists,
+                                                                  List *refnames_tlist);
 static List *generate_setop_grouplist(SetOperationStmt *op, List *targetlist);
 
 
index ba955290b10e316579855071e9cf266750f55620..16d315176ebb7ef230191522b5c0ecea00f7e0ea 100644 (file)
@@ -32,13 +32,13 @@ typedef struct
 } adjust_appendrel_attrs_context;
 
 static void make_inh_translation_list(Relation oldrelation,
-                                                 Relation newrelation,
-                                                 Index newvarno,
-                                                 List **translated_vars);
+                                                                         Relation newrelation,
+                                                                         Index newvarno,
+                                                                         List **translated_vars);
 static Node *adjust_appendrel_attrs_mutator(Node *node,
-                                                          adjust_appendrel_attrs_context *context);
+                                                                                       adjust_appendrel_attrs_context *context);
 static List *adjust_inherited_tlist(List *tlist,
-                                          AppendRelInfo *context);
+                                                                       AppendRelInfo *context);
 
 
 /*
index 501b0e9e2dc7a5644e9e58b1d2e1b8c99408e789..2e84d6b3b4f9c0de5e1c826da171a859a84c54ef 100644 (file)
@@ -99,14 +99,14 @@ typedef struct
 
 static bool contain_agg_clause_walker(Node *node, void *context);
 static bool get_agg_clause_costs_walker(Node *node,
-                                                       get_agg_clause_costs_context *context);
+                                                                               get_agg_clause_costs_context *context);
 static bool find_window_functions_walker(Node *node, WindowFuncLists *lists);
 static bool contain_subplans_walker(Node *node, void *context);
 static bool contain_mutable_functions_walker(Node *node, void *context);
 static bool contain_volatile_functions_walker(Node *node, void *context);
 static bool contain_volatile_functions_not_nextval_walker(Node *node, void *context);
 static bool max_parallel_hazard_walker(Node *node,
-                                                  max_parallel_hazard_context *context);
+                                                                          max_parallel_hazard_context *context);
 static bool contain_nonstrict_functions_walker(Node *node, void *context);
 static bool contain_context_dependent_node(Node *clause);
 static bool contain_context_dependent_node_walker(Node *node, int *flags);
@@ -115,46 +115,46 @@ static Relids find_nonnullable_rels_walker(Node *node, bool top_level);
 static List *find_nonnullable_vars_walker(Node *node, bool top_level);
 static bool is_strict_saop(ScalarArrayOpExpr *expr, bool falseOK);
 static Node *eval_const_expressions_mutator(Node *node,
-                                                          eval_const_expressions_context *context);
+                                                                                       eval_const_expressions_context *context);
 static bool contain_non_const_walker(Node *node, void *context);
 static bool ece_function_is_safe(Oid funcid,
-                                        eval_const_expressions_context *context);
+                                                                eval_const_expressions_context *context);
 static List *simplify_or_arguments(List *args,
-                                         eval_const_expressions_context *context,
-                                         bool *haveNull, bool *forceTrue);
+                                                                  eval_const_expressions_context *context,
+                                                                  bool *haveNull, bool *forceTrue);
 static List *simplify_and_arguments(List *args,
-                                          eval_const_expressions_context *context,
-                                          bool *haveNull, bool *forceFalse);
+                                                                       eval_const_expressions_context *context,
+                                                                       bool *haveNull, bool *forceFalse);
 static Node *simplify_boolean_equality(Oid opno, List *args);
 static Expr *simplify_function(Oid funcid,
-                                 Oid result_type, int32 result_typmod,
-                                 Oid result_collid, Oid input_collid, List **args_p,
-                                 bool funcvariadic, bool process_args, bool allow_non_const,
-                                 eval_const_expressions_context *context);
+                                                          Oid result_type, int32 result_typmod,
+                                                          Oid result_collid, Oid input_collid, List **args_p,
+                                                          bool funcvariadic, bool process_args, bool allow_non_const,
+                                                          eval_const_expressions_context *context);
 static List *reorder_function_arguments(List *args, HeapTuple func_tuple);
 static List *add_function_defaults(List *args, HeapTuple func_tuple);
 static List *fetch_function_defaults(HeapTuple func_tuple);
 static void recheck_cast_function_args(List *args, Oid result_type,
-                                                  HeapTuple func_tuple);
+                                                                          HeapTuple func_tuple);
 static Expr *evaluate_function(Oid funcid, Oid result_type, int32 result_typmod,
-                                 Oid result_collid, Oid input_collid, List *args,
-                                 bool funcvariadic,
-                                 HeapTuple func_tuple,
-                                 eval_const_expressions_context *context);
+                                                          Oid result_collid, Oid input_collid, List *args,
+                                                          bool funcvariadic,
+                                                          HeapTuple func_tuple,
+                                                          eval_const_expressions_context *context);
 static Expr *inline_function(Oid funcid, Oid result_type, Oid result_collid,
-                               Oid input_collid, List *args,
-                               bool funcvariadic,
-                               HeapTuple func_tuple,
-                               eval_const_expressions_context *context);
+                                                        Oid input_collid, List *args,
+                                                        bool funcvariadic,
+                                                        HeapTuple func_tuple,
+                                                        eval_const_expressions_context *context);
 static Node *substitute_actual_parameters(Node *expr, int nargs, List *args,
-                                                        int *usecounts);
+                                                                                 int *usecounts);
 static Node *substitute_actual_parameters_mutator(Node *node,
-                                                                        substitute_actual_parameters_context *context);
+                                                                                                 substitute_actual_parameters_context *context);
 static void sql_inline_error_callback(void *arg);
 static Query *substitute_actual_srf_parameters(Query *expr,
-                                                                int nargs, List *args);
+                                                                                          int nargs, List *args);
 static Node *substitute_actual_srf_parameters_mutator(Node *node,
-                                                                                substitute_actual_srf_parameters_context *context);
+                                                                                                         substitute_actual_srf_parameters_context *context);
 static bool tlist_matches_coltypelist(List *tlist, List *coltypelist);
 
 
index bbf204ddfb86041c2cbabd7662424873746da980..38bc61e6878407d4cbd0d7232ef1f86b4712221b 100644 (file)
 
 
 static void expand_partitioned_rtentry(PlannerInfo *root, RelOptInfo *relinfo,
-                                                  RangeTblEntry *parentrte,
-                                                  Index parentRTindex, Relation parentrel,
-                                                  PlanRowMark *top_parentrc, LOCKMODE lockmode);
+                                                                          RangeTblEntry *parentrte,
+                                                                          Index parentRTindex, Relation parentrel,
+                                                                          PlanRowMark *top_parentrc, LOCKMODE lockmode);
 static void expand_single_inheritance_child(PlannerInfo *root,
-                                                               RangeTblEntry *parentrte,
-                                                               Index parentRTindex, Relation parentrel,
-                                                               PlanRowMark *top_parentrc, Relation childrel,
-                                                               RangeTblEntry **childrte_p,
-                                                               Index *childRTindex_p);
+                                                                                       RangeTblEntry *parentrte,
+