Pre-beta mechanical code beautification

Enterprise / PostgreSQL - Tom Lane [sss.pgh.pa.us] - 12 May 2022 19:17 UTC

Run pgindent, pgperltidy, and reformat-dat-files. I manually fixed a couple of comments that pgindent uglified.

23e7b38bfe Pre-beta mechanical code beautification.
config/check_modules.pl | 5 +-
contrib/amcheck/verify_heapam.c | 6 +-
contrib/basebackup_to_shell/basebackup_to_shell.c | 27 +-
contrib/basebackup_to_shell/t/001_basic.pl | 71 +-
contrib/basic_archive/basic_archive.c | 51 +-
contrib/btree_gist/btree_bool.c | 4 +-
contrib/hstore_plpython/hstore_plpython.c | 4 +-
contrib/pageinspect/brinfuncs.c | 24 +-
contrib/pageinspect/gistfuncs.c | 48 +-
contrib/pg_stat_statements/pg_stat_statements.c | 5 +-
contrib/pg_walinspect/pg_walinspect.c | 60 +-
contrib/pgcrypto/openssl.c | 6 +-
contrib/pgstattuple/pgstattuple.c | 68 +-
contrib/postgres_fdw/connection.c | 10 +-
contrib/postgres_fdw/postgres_fdw.c | 10 +-
contrib/test_decoding/test_decoding.c | 8 +-
src/backend/access/common/toast_internals.c | 6 +-
src/backend/access/heap/pruneheap.c | 12 +-
src/backend/access/heap/vacuumlazy.c | 14 +-
src/backend/access/rmgrdesc/xactdesc.c | 4 +-
src/backend/access/rmgrdesc/xlogdesc.c | 2 +-
src/backend/access/transam/rmgr.c | 6 +-
src/backend/access/transam/twophase.c | 6 +-
src/backend/access/transam/xlog.c | 28 +-
src/backend/access/transam/xlogarchive.c | 16 +-
src/backend/access/transam/xlogfuncs.c | 8 +-
src/backend/access/transam/xlogrecovery.c | 15 +-
src/backend/access/transam/xlogstats.c | 10 +-
src/backend/access/transam/xlogutils.c | 13 +-
src/backend/catalog/Catalog.pm | 23 +-
src/backend/catalog/genbki.pl | 12 +-
src/backend/catalog/heap.c | 11 +-
src/backend/catalog/index.c | 6 +-
src/backend/catalog/objectaccess.c | 30 +-
src/backend/catalog/pg_constraint.c | 6 +-
src/backend/catalog/pg_publication.c | 12 +-
src/backend/catalog/storage.c | 12 +-
src/backend/commands/analyze.c | 10 +-
src/backend/commands/collationcmds.c | 5 +-
src/backend/commands/copy.c | 6 +-
src/backend/commands/copyfromparse.c | 3 +-
src/backend/commands/copyto.c | 6 +-
src/backend/commands/dbcommands.c | 64 +-
src/backend/commands/explain.c | 2 +-
src/backend/commands/extension.c | 8 +-
src/backend/commands/matview.c | 4 +-
src/backend/commands/publicationcmds.c | 47 +-
src/backend/commands/statscmds.c | 15 +-
src/backend/commands/subscriptioncmds.c | 14 +-
src/backend/commands/tablecmds.c | 28 +-
src/backend/commands/tablespace.c | 2 +-
src/backend/commands/user.c | 4 +-
src/backend/commands/vacuum.c | 4 +-
src/backend/commands/vacuumparallel.c | 2 +-
src/backend/executor/execExpr.c | 4 +-
src/backend/executor/execExprInterp.c | 65 +-
src/backend/executor/nodeIndexscan.c | 1 +
src/backend/executor/nodeMemoize.c | 2 +-
src/backend/executor/nodeModifyTable.c | 2 +-
src/backend/executor/spi.c | 16 +-
src/backend/jit/llvm/llvmjit.c | 4 +-
src/backend/lib/dshash.c | 6 +-
src/backend/libpq/pqcomm.c | 4 +-
src/backend/nodes/copyfuncs.c | 24 +-
src/backend/nodes/equalfuncs.c | 3 +-
src/backend/nodes/nodeFuncs.c | 15 +-
src/backend/nodes/outfuncs.c | 8 +-
src/backend/nodes/value.c | 4 +-
src/backend/optimizer/path/allpaths.c | 15 +-
src/backend/optimizer/path/costsize.c | 111 +-
src/backend/optimizer/path/equivclass.c | 6 +-
src/backend/optimizer/path/joinpath.c | 2 +-
src/backend/optimizer/path/pathkeys.c | 143 +-
src/backend/optimizer/plan/createplan.c | 4 +-
src/backend/optimizer/plan/planner.c | 66 +-
src/backend/optimizer/util/clauses.c | 8 +-
src/backend/optimizer/util/plancat.c | 164 +-
src/backend/parser/analyze.c | 13 +-
src/backend/parser/parse_clause.c | 2 +-
src/backend/parser/parse_collate.c | 7 +-
src/backend/parser/parse_expr.c | 85 +-
src/backend/parser/parse_jsontable.c | 74 +-
src/backend/parser/parse_node.c | 83 +-
src/backend/parser/parse_param.c | 4 +-
src/backend/parser/parse_relation.c | 2 +-
src/backend/partitioning/partdesc.c | 4 +-
src/backend/postmaster/autovacuum.c | 15 +-
src/backend/postmaster/bgworker.c | 6 +-
src/backend/postmaster/pgarch.c | 44 +-
src/backend/postmaster/postmaster.c | 4 +-
src/backend/postmaster/startup.c | 2 +-
src/backend/postmaster/walwriter.c | 6 +-
src/backend/regex/regc_pg_locale.c | 10 +-
src/backend/replication/backup_manifest.c | 2 +-
src/backend/replication/basebackup_copy.c | 12 +-
src/backend/replication/basebackup_gzip.c | 35 +-
src/backend/replication/basebackup_lz4.c | 2 +-
src/backend/replication/basebackup_server.c | 18 +-
src/backend/replication/basebackup_target.c | 12 +-
src/backend/replication/basebackup_zstd.c | 6 +-
src/backend/replication/logical/decode.c | 2 +-
src/backend/replication/logical/launcher.c | 6 +-
src/backend/replication/logical/reorderbuffer.c | 4 +-
src/backend/replication/logical/tablesync.c | 34 +-
src/backend/replication/logical/worker.c | 4 +-
src/backend/replication/pgoutput/pgoutput.c | 60 +-
src/backend/replication/slot.c | 4 +-
src/backend/replication/walreceiver.c | 6 +-
src/backend/replication/walsender.c | 6 +-
src/backend/statistics/dependencies.c | 2 +-
src/backend/storage/buffer/bufmgr.c | 33 +-
src/backend/storage/ipc/procarray.c | 4 +-
src/backend/storage/ipc/shm_mq.c | 6 +-
src/backend/storage/ipc/sinvaladt.c | 9 +-
src/backend/storage/page/bufpage.c | 2 +-
src/backend/tcop/postgres.c | 24 +-
src/backend/utils/adt/arrayfuncs.c | 3 +-
src/backend/utils/adt/dbsize.c | 10 +-
src/backend/utils/adt/formatting.c | 16 +-
src/backend/utils/adt/json.c | 25 +-
src/backend/utils/adt/jsonb.c | 12 +-
src/backend/utils/adt/jsonb_util.c | 3 +-
src/backend/utils/adt/jsonfuncs.c | 7 +-
src/backend/utils/adt/jsonpath.c | 10 +-
src/backend/utils/adt/jsonpath_exec.c | 36 +-
src/backend/utils/adt/like.c | 4 +-
src/backend/utils/adt/multirangetypes.c | 3 +-
src/backend/utils/adt/numeric.c | 215 ++-
src/backend/utils/adt/pg_locale.c | 4 +-
src/backend/utils/adt/pgstatfuncs.c | 2 +-
src/backend/utils/adt/rangetypes_spgist.c | 4 +-
src/backend/utils/adt/ri_triggers.c | 27 +-
src/backend/utils/adt/ruleutils.c | 50 +-
src/backend/utils/adt/selfuncs.c | 12 +-
src/backend/utils/adt/timestamp.c | 227 +--
src/backend/utils/adt/uuid.c | 4 +-
src/backend/utils/adt/varchar.c | 4 +-
src/backend/utils/adt/varlena.c | 8 +-
src/backend/utils/cache/plancache.c | 8 +-
src/backend/utils/cache/relcache.c | 23 +-
src/backend/utils/cache/relmapper.c | 16 +-
src/backend/utils/init/postinit.c | 16 +-
src/backend/utils/misc/queryjumble.c | 2 +-
src/backend/utils/sort/tuplesort.c | 18 +-
src/bin/initdb/initdb.c | 4 +-
src/bin/initdb/t/001_initdb.pl | 36 +-
src/bin/pg_amcheck/pg_amcheck.c | 10 +-
src/bin/pg_amcheck/t/002_nonesuch.pl | 35 +-
src/bin/pg_amcheck/t/005_opclass_damage.pl | 3 +-
src/bin/pg_basebackup/bbstreamer_file.c | 4 +-
src/bin/pg_basebackup/bbstreamer_gzip.c | 27 +-
src/bin/pg_basebackup/bbstreamer_lz4.c | 116 +-
src/bin/pg_basebackup/pg_basebackup.c | 89 +-
src/bin/pg_basebackup/streamutil.c | 2 +-
src/bin/pg_basebackup/t/010_pg_basebackup.pl | 104 +-
src/bin/pg_basebackup/t/020_pg_receivewal.pl | 4 +-
src/bin/pg_basebackup/t/030_pg_recvlogical.pl | 17 +-
src/bin/pg_ctl/pg_ctl.c | 6 +-
src/bin/pg_ctl/t/002_status.pl | 2 +-
src/bin/pg_dump/pg_backup_archiver.c | 8 +-
src/bin/pg_dump/pg_backup_custom.c | 10 +-
src/bin/pg_dump/pg_dump.c | 19 +-
src/bin/pg_dump/pg_dumpall.c | 2 +-
src/bin/pg_dump/t/001_basic.pl | 2 +-
src/bin/pg_dump/t/002_pg_dump.pl | 46 +-
src/bin/pg_dump/t/003_pg_dump_with_server.pl | 2 +-
src/bin/pg_dump/t/010_dump_connstr.pl | 9 +-
src/bin/pg_rewind/filemap.c | 6 +-
src/bin/pg_rewind/t/004_pg_xlog_symlink.pl | 3 +-
src/bin/pg_rewind/t/009_growing_files.pl | 5 +-
src/bin/pg_rewind/t/RewindTest.pm | 13 +-
src/bin/pg_upgrade/t/002_pg_upgrade.pl | 5 +-
src/bin/pg_upgrade/util.c | 1 +
src/bin/pg_verifybackup/t/003_corruption.pl | 2 +-
src/bin/pg_verifybackup/t/004_options.pl | 3 +-
src/bin/pg_verifybackup/t/005_bad_manifest.pl | 6 +-
src/bin/pg_verifybackup/t/007_wal.pl | 6 +-
src/bin/pg_verifybackup/t/008_untar.pl | 75 +-
src/bin/pg_verifybackup/t/009_extract.pl | 46 +-
src/bin/pg_verifybackup/t/010_client_untar.pl | 91 +-
src/bin/pg_waldump/pg_waldump.c | 2 +-
src/bin/pgbench/pgbench.c | 172 +-
src/bin/pgbench/t/001_pgbench_with_server.pl | 36 +-
src/bin/pgbench/t/002_pgbench_no_server.pl | 6 +-
src/bin/psql/common.c | 59 +-
src/bin/psql/describe.c | 10 +-
src/bin/psql/t/001_basic.pl | 57 +-
src/bin/psql/t/010_tab_completion.pl | 27 +-
src/bin/psql/t/020_cancel.pl | 29 +-
src/bin/psql/tab-complete.c | 3 +-
src/bin/scripts/t/020_createdb.pl | 14 +-
src/common/compression.c | 4 +-
src/common/cryptohash_openssl.c | 1 +
src/common/exec.c | 2 +-
src/include/access/amapi.h | 2 +-
src/include/access/heapam.h | 2 +-
src/include/access/rmgr.h | 2 +-
src/include/access/xact.h | 11 +-
src/include/access/xlogstats.h | 12 +-
src/include/access/xlogutils.h | 2 +-
src/include/catalog/objectaccess.h | 14 +-
src/include/catalog/pg_aggregate.dat | 3 +-
src/include/catalog/pg_class.h | 2 +-
src/include/catalog/pg_collation.h | 2 +-
src/include/catalog/pg_database.dat | 3 +-
src/include/catalog/pg_parameter_acl.h | 2 +-
src/include/catalog/pg_proc.dat | 43 +-
src/include/catalog/pg_publication.h | 4 +-
src/include/catalog/pg_statistic_ext_data.h | 2 +-
src/include/catalog/renumber_oids.pl | 14 +-
src/include/commands/publicationcmds.h | 4 +-
src/include/executor/execExpr.h | 32 +-
src/include/executor/executor.h | 2 +-
src/include/fmgr.h | 2 +-
src/include/nodes/execnodes.h | 4 +-
src/include/nodes/nodes.h | 3 +-
src/include/nodes/parsenodes.h | 72 +-
src/include/nodes/pathnodes.h | 46 +-
src/include/nodes/plannodes.h | 6 +-
src/include/nodes/primnodes.h | 43 +-
src/include/optimizer/paths.h | 6 +-
src/include/parser/analyze.h | 2 +-
src/include/parser/parse_param.h | 4 +-
src/include/port.h | 2 +-
src/include/postmaster/pgarch.h | 6 +-
src/include/replication/basebackup_target.h | 2 +-
src/include/replication/decode.h | 2 +-
src/include/replication/slot.h | 2 +-
src/include/storage/latch.h | 2 +-
src/include/tcop/tcopprot.h | 6 +-
src/include/utils/formatting.h | 2 +-
src/include/utils/jsonpath.h | 10 +-
src/include/utils/rel.h | 4 +-
src/include/utils/relmapper.h | 2 +-
src/include/utils/selfuncs.h | 6 +-
src/include/utils/sortsupport.h | 6 +-
src/interfaces/libpq/fe-auth.c | 8 +-
src/interfaces/libpq/fe-secure-common.c | 1 +
src/interfaces/libpq/t/002_api.pl | 6 +-
src/test/icu/t/010_database.pl | 24 +-
src/test/ldap/t/001_auth.pl | 3 +-
.../modules/libpq_pipeline/t/001_libpq_pipeline.pl | 3 +-
.../ssl_passphrase_callback/t/001_testfunc.pl | 3 +-
src/test/modules/test_misc/t/002_tablespace.pl | 34 +-
src/test/modules/test_oat_hooks/test_oat_hooks.c | 1797 +++++++++++++++-----
src/test/modules/test_pg_dump/t/001_base.pl | 2 +-
src/test/perl/PostgreSQL/Test/Cluster.pm | 106 +-
src/test/perl/PostgreSQL/Test/SimpleTee.pm | 8 +-
src/test/perl/PostgreSQL/Test/Utils.pm | 17 +-
src/test/perl/PostgreSQL/Version.pm | 16 +-
src/test/recovery/t/001_stream_rep.pl | 3 +-
src/test/recovery/t/002_archiving.pl | 2 +-
src/test/recovery/t/006_logical_decoding.pl | 80 +-
src/test/recovery/t/013_crash_restart.pl | 20 +-
src/test/recovery/t/014_unlogged_reinit.pl | 3 +-
src/test/recovery/t/019_replslot_limit.pl | 10 +-
src/test/recovery/t/022_crash_temp_files.pl | 26 +-
src/test/recovery/t/027_stream_regress.pl | 54 +-
src/test/recovery/t/029_stats_restart.pl | 3 +-
src/test/recovery/t/031_recovery_conflict.pl | 9 +-
src/test/recovery/t/032_relfilenode_reuse.pl | 82 +-
src/test/regress/regress.c | 6 +-
src/test/ssl/t/001_ssltests.pl | 105 +-
src/test/ssl/t/002_scram.pl | 11 +-
src/test/ssl/t/003_sslinfo.pl | 103 +-
src/test/ssl/t/SSL/Backend/OpenSSL.pm | 13 +-
src/test/ssl/t/SSL/Server.pm | 29 +-
src/test/subscription/t/001_rep_changes.pl | 22 +-
src/test/subscription/t/007_ddl.pl | 12 +-
src/test/subscription/t/013_partition.pl | 42 +-
src/test/subscription/t/021_twophase.pl | 142 +-
src/test/subscription/t/022_twophase_cascade.pl | 209 ++-
src/test/subscription/t/023_twophase_stream.pl | 132 +-
src/test/subscription/t/024_add_drop_pub.pl | 3 +-
.../subscription/t/025_rep_changes_for_schema.pl | 25 +-
src/test/subscription/t/027_nosuperuser.pl | 167 +-
src/test/subscription/t/028_row_filter.pl | 11 +-
src/test/subscription/t/031_column_list.pl | 486 ++++--
src/tools/PerfectHash.pm | 1 +
src/tools/ci/windows_build_config.pl | 6 +-
src/tools/mark_pgdllimport.pl | 16 +-
src/tools/msvc/MSBuildProject.pm | 2 +-
src/tools/msvc/Mkvcbuild.pm | 53 +-
src/tools/msvc/Project.pm | 10 +-
src/tools/msvc/Solution.pm | 2 +-
src/tools/msvc/vcregress.pl | 8 +-
src/tools/pgindent/typedefs.list | 188 +-
287 files changed, 5195 insertions(+), 3551 deletions(-)

Upstream: git.postgresql.org


  • Share