Repository Analysis

postgres/postgres

Mirror of the official PostgreSQL GIT repository. Note that this is just a *mirror* - we don't work with pull requests on github. To contribute, please see https://wiki.postgresql.org/wiki/Submitting_a_Patch

1.0 Likely human-written View on GitHub
1.0
Adjusted Score
1.0
Raw Score
100%
Time Factor
2026-05-30
Last Push
21,035
Stars
C
Language
2,133,623
Lines of Code
3872
Files
1581
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 1MEDIUM 249LOW 1331

Pattern Findings

1581 matches across 14 categories. Click a row to expand file-level details.

Over-Commented Block1226 hits · 1140 pts
SeverityFileLineSnippet
LOW.cirrus.tasks.yml1# CI configuration file for CI utilizing cirrus-ci.org
LOW.cirrus.tasks.yml81 # conversion script, but ...
LOW.cirrus.yml1# CI configuration file for CI utilizing cirrus-ci.org
LOWcontrib/postgres_fdw/deparse.c41#include "catalog/pg_collation.h"
LOWcontrib/postgres_fdw/postgres_fdw.c21#include "commands/defrem.h"
LOWcontrib/postgres_fdw/postgres_fdw.c41#include "optimizer/restrictinfo.h"
LOWcontrib/postgres_fdw/connection.c21#include "catalog/pg_user_mapping.h"
LOWcontrib/pg_prewarm/autoprewarm.c21 * IDENTIFICATION
LOWcontrib/pg_prewarm/autoprewarm.c41#include "storage/latch.h"
LOWcontrib/pageinspect/btreefuncs.c21 * THE AUTHOR SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT
LOWcontrib/pageinspect/heapfuncs.c21 * contrib/pageinspect/heapfuncs.c
LOWcontrib/file_fdw/file_fdw.c21#include "access/table.h"
LOWcontrib/uuid-ossp/uuid-ossp.c21#include "utils/uuid.h"
LOWcontrib/uuid-ossp/uuid-ossp.c41#endif
LOWcontrib/pg_trgm/trgm_op.c1/*
LOWcontrib/pg_trgm/trgm_op.c221 if (GetDefaultCharSignedness())
LOWcontrib/pg_trgm/trgm.h21 * the operator classes, because we can't handle case-insensitive wildcard
LOWcontrib/pg_trgm/trgm.h81#define CLRBIT(x,i) GETBYTE(x,i) &= ~( 0x01 << ( (i) % BITBYTE ) )
LOWcontrib/unaccent/generate_unaccent_rules.py1#!/usr/bin/python
LOWcontrib/unaccent/generate_unaccent_rules.py21# command line argument -- will be parsed and used.
LOWcontrib/unaccent/generate_unaccent_rules.py181 # And finish the processing of each individual rule.
LOWcontrib/cube/cubedata.h41#define SET_POINT_BIT(cube) ( (cube)->header |= POINT_BIT )
LOWcontrib/dblink/dblink.c41#include "catalog/namespace.h"
LOWcontrib/intarray/_int.h61/* bigint defines */
LOWcontrib/pgrowlocks/pgrowlocks.c21 * IS" BASIS, AND THE AUTHOR HAS NO OBLIGATIONS TO PROVIDE MAINTENANCE,
LOWcontrib/btree_gin/btree_gin.c1/*
LOWcontrib/ltree/ltree.h161#define COMPUTESIZE(size,lenofoperand) ( HDRSIZEQT + (size) * sizeof(ITEM) + (lenofoperand) )
LOWcontrib/ltree/ltree.h221
LOWcontrib/ltree/ltree.h281#define LTG_ISONENODE(x) ( ((ltree_gist*)(x))->flag & LTG_ONENODE )
LOWcontrib/pg_stat_statements/pg_stat_statements.c41 *
LOWcontrib/pg_stat_statements/pg_stat_statements.c61#include "pgstat.h"
LOWcontrib/pg_buffercache/pg_buffercache_pages.c21
LOWcontrib/amcheck/verify_heapam.c21#include "access/xact.h"
LOWcontrib/amcheck/verify_nbtree.c21 *
LOWcontrib/hstore/hstore_io.c1/*
LOWcontrib/pgcrypto/px.h41#define PX_MAX_SALT_LEN 128
LOWcontrib/pgcrypto/px.h61#define PXE_BAD_SALT_ROUNDS -15
LOWcontrib/pgcrypto/px.h201
LOWcontrib/pgcrypto/px.h221#define px_cipher_init(c, k, klen, iv) (c)->init(c, k, klen, iv)
LOWcontrib/pgcrypto/crypt-blowfish.c41#ifdef __i386__
LOWcontrib/pgcrypto/scripts/pgp_session_data.py1#!/usr/bin/python
LOWcontrib/pg_plan_advice/pgpa_planner.c21#include "pgpa_output.h"
LOWcontrib/pgstattuple/pgstatindex.c21 * THE AUTHOR SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT
LOWcontrib/pgstattuple/pgstattuple.c21 * IS" BASIS, AND THE AUTHOR HAS NO OBLIGATIONS TO PROVIDE MAINTENANCE,
LOWcontrib/fuzzystrmatch/dmetaphone.c101#include "utils/builtins.h"
LOWcontrib/fuzzystrmatch/daitch_mokotoff_header.pl121 print $OUTPUT "};\n";
LOWcontrib/sepgsql/sepgsql.h41#define SEPG_CLASS_BLK_FILE 5
LOWcontrib/sepgsql/sepgsql.h61#define SEPG_PROCESS__SETCURRENT (1<<2)
LOWcontrib/sepgsql/sepgsql.h81#define SEPG_DIR__REPARENT (1<<10)
LOWcontrib/sepgsql/sepgsql.h101#define SEPG_BLK_FILE__UNLINK (SEPG_FILE__UNLINK)
LOWcontrib/sepgsql/sepgsql.h121#define SEPG_DB_DATABASE__SETATTR (1<<3)
LOWcontrib/sepgsql/sepgsql.h141#define SEPG_DB_TABLE__RELABELFROM (SEPG_DB_DATABASE__RELABELFROM)
LOWcontrib/sepgsql/sepgsql.h161#define SEPG_DB_PROCEDURE__DROP (SEPG_DB_DATABASE__DROP)
LOWcontrib/sepgsql/sepgsql.h181#define SEPG_DB_TUPLE__RELABELTO (SEPG_DB_DATABASE__RELABELTO)
LOWcontrib/sepgsql/sepgsql.h201#define SEPG_DB_LANGUAGE__SETATTR (SEPG_DB_DATABASE__SETATTR)
LOWcontrib/sepgsql/label.c21#include "catalog/pg_attribute.h"
LOWsrc/pl/plpgsql/src/pl_exec.c21#include "access/htup_details.h"
LOWsrc/pl/plpgsql/src/pl_comp.c21#include "catalog/namespace.h"
LOWsrc/pl/plpython/plpython_system.h41#undef _DEBUG
LOWsrc/pl/plpython/plpy_main.c1/*
1166 more matches not shown…
Self-Referential Comments134 hits · 412 pts
SeverityFileLineSnippet
MEDIUMcontrib/pg_visibility/t/001_concurrent_transaction.pl36# Create a sample table and run vacuum
MEDIUMcontrib/pg_visibility/t/002_corrupt_vm.pl21# Create a sample table with at least 10 pages and then run VACUUM. 10 is
MEDIUMcontrib/amcheck/t/004_verify_nbtree_unique.pl18# Create a custom operator class and an index which uses it.
MEDIUMcontrib/amcheck/t/005_pitr.pl16# Create a table with each of 6 PK values spanning 1/4 of a block. Delete the
MEDIUMcontrib/amcheck/t/001_verify_heapam.pl115# Create a test sequence of the given name.
MEDIUMsrc/test/ssl/t/SSL/Server.pm15 # Create a new cluster
MEDIUMsrc/test/ldap/t/003_ldap_connection_param_lookup.pl74# Create the set of service files used in the tests.
MEDIUMsrc/test/recovery/t/042_low_level_backup.pl51# Create a table that will be used to verify that recovery started at the
MEDIUMsrc/test/recovery/t/040_standby_failover_slots_sync.pl37# Create a subscriber node, wait for sync to complete
MEDIUMsrc/test/recovery/t/040_standby_failover_slots_sync.pl50# Create a subscription that enables failover.
MEDIUMsrc/test/recovery/t/040_standby_failover_slots_sync.pl137# Create a standby
MEDIUMsrc/test/recovery/t/040_standby_failover_slots_sync.pl377# Create a cascading standby
MEDIUMsrc/test/recovery/t/040_standby_failover_slots_sync.pl410# Create a failover slot and advance the restart_lsn to a position where a
MEDIUMsrc/test/recovery/t/040_standby_failover_slots_sync.pl766# Create a logical 'test_decoding' replication slot with failover enabled
MEDIUMsrc/test/recovery/t/033_replay_tsp_drops.pl121# Create a database in the tablespace and a table in default tablespace
MEDIUMsrc/test/recovery/t/008_fsm_truncation.pl24# Create a primary node and its standby, initializing both with some data
MEDIUMsrc/test/recovery/t/035_standby_logical_decoding.pl47# Create the required logical slots on standby.
MEDIUMsrc/test/recovery/t/035_standby_logical_decoding.pl501# Create a table on the primary
MEDIUMsrc/test/recovery/t/035_standby_logical_decoding.pl505# Create a table (same structure) on the subscriber node
MEDIUMsrc/test/recovery/t/035_standby_logical_decoding.pl509# Create a publication on the primary
MEDIUMsrc/test/recovery/t/035_standby_logical_decoding.pl556# Create the injection_points extension
MEDIUMsrc/test/recovery/t/035_standby_logical_decoding.pl915# Create a slot on a database that would not be dropped. This slot should not
MEDIUMsrc/test/recovery/t/035_standby_logical_decoding.pl954# Create a physical replication slot on the standby.
MEDIUMsrc/test/recovery/t/046_checkpoint_logical_slot.pl36# Create the two slots we'll need.
MEDIUMsrc/test/recovery/t/046_checkpoint_logical_slot.pl159# Create a standby
MEDIUMsrc/test/recovery/t/014_unlogged_reinit.pl21# Create an unlogged table and an unlogged sequence to test that forks
MEDIUMsrc/test/recovery/t/014_unlogged_reinit.pl43# Create an unlogged table in a tablespace.
MEDIUMsrc/test/recovery/t/019_replslot_limit.pl39# Create a standby linking to it using the replication slot
MEDIUMsrc/test/recovery/t/019_replslot_limit.pl434# Create a standby linking to the primary using the replication slot
MEDIUMsrc/test/recovery/t/049_wait_for_lsn.pl101# Create a streaming standby with a 1 second delay from the backup
MEDIUMsrc/test/recovery/t/049_wait_for_lsn.pl801# Create an archive-only standby: has_restoring but NOT has_streaming.
MEDIUMsrc/test/recovery/t/017_shm.pl44# Create a shmem segment that will conflict with gnat's first choice
MEDIUMsrc/test/recovery/t/047_checkpoint_physical_slot.pl37# Create a physical replication slot.
MEDIUMsrc/test/recovery/t/051_effective_wal_level.pl45# Create a physical slot and verify that it doesn't affect effective_wal_level.
MEDIUMsrc/test/recovery/t/051_effective_wal_level.pl54# Create a temporary logical slot but exit without releasing it explicitly.
MEDIUMsrc/test/recovery/t/051_effective_wal_level.pl82# Create a new logical slot and check that effective_wal_level must be increased
MEDIUMsrc/test/recovery/t/051_effective_wal_level.pl179# Creating a logical slot on standby should succeed as the primary enables
MEDIUMsrc/test/perl/PostgreSQL/Test/Cluster.pm16 # Create a data directory with initdb
MEDIUMsrc/test/perl/PostgreSQL/Test/BackgroundPsql.pm16 # Create a data directory with initdb
MEDIUMsrc/test/subscription/t/017_stream_ddl.pl6# This file is mainly to test the DDL/DML interaction of the publisher side,
MEDIUMsrc/test/subscription/t/037_except.pl100# Create a logical replication slot to help with later tests.
MEDIUMsrc/test/subscription/t/033_run_as_table_owner.pl232# Create a new subscription "admin_sub" owned by regress_admin2. It's
MEDIUMsrc/test/subscription/t/036_sequences.pl86# Create a new sequence 'regress_s2', and update existing sequence 'regress_s1'
MEDIUMsrc/test/subscription/t/036_sequences.pl134# Create a new sequence 'regress_s3', and update the existing sequence
MEDIUMsrc/test/subscription/t/036_sequences.pl197# Create a new sequence 'regress_s4' whose START value is not the same in the
MEDIUMsrc/test/subscription/t/019_stream_subxact_ddl_abort.pl7# This file is mainly to test the DDL/DML interaction of the publisher side,
MEDIUMsrc/test/subscription/t/029_on_error.pl107# Create a pub/sub to set up logical replication. This tests that the
MEDIUMsrc/test/subscription/t/030_origin.pl46# Create the same table on node_B
MEDIUMsrc/test/subscription/t/100_bugs.pl181# Create the tables in all nodes.
MEDIUMsrc/test/subscription/t/100_bugs.pl186# Create a cascaded replication setup like:
MEDIUMsrc/test/subscription/t/100_bugs.pl529# Create an AFTER INSERT trigger on the table that raises and subsequently
MEDIUMsrc/test/subscription/t/035_conflicts.pl14# Create a publisher node
MEDIUMsrc/test/subscription/t/035_conflicts.pl19# Create a subscriber node
MEDIUMsrc/test/subscription/t/035_conflicts.pl24# Create a table on publisher
MEDIUMsrc/test/subscription/t/035_conflicts.pl47# Create the subscription
MEDIUMsrc/test/subscription/t/035_conflicts.pl171# Create the same table on node_B
MEDIUMsrc/test/subscription/t/035_conflicts.pl448 # Create the injection_points extension on the publisher node and attach to the
MEDIUMsrc/test/subscription/t/035_conflicts.pl570# Create a physical slot
MEDIUMsrc/test/subscription/t/024_add_drop_pub.pl49# Create a new table on publisher
MEDIUMsrc/test/subscription/t/024_add_drop_pub.pl54# Create a new table on subscriber
74 more matches not shown…
Decorative Section Separators108 hits · 344 pts
SeverityFileLineSnippet
MEDIUMsrc/tools/gen_keywordlist.pl1#----------------------------------------------------------------------
MEDIUMsrc/tools/gen_keywordlist.pl29#----------------------------------------------------------------------
MEDIUMsrc/tools/PerfectHash.pm1#----------------------------------------------------------------------
MEDIUMsrc/tools/PerfectHash.pm28#----------------------------------------------------------------------
MEDIUMsrc/tools/msvc_gendef.pl33 # ------------------------------------------------------------------------
MEDIUMsrc/tools/mark_pgdllimport.pl3#----------------------------------------------------------------------
MEDIUMsrc/tools/mark_pgdllimport.pl23#----------------------------------------------------------------------
MEDIUMsrc/test/recovery/t/044_invalidate_inactive_slots.pl40# ========================================================================
MEDIUMsrc/test/recovery/t/044_invalidate_inactive_slots.pl105# =============================================================================
MEDIUMsrc/test/recovery/t/019_replslot_limit.pl421# =============================================================================
MEDIUMsrc/test/recovery/t/019_replslot_limit.pl484# =============================================================================
MEDIUMsrc/test/recovery/t/019_replslot_limit.pl486# =============================================================================
MEDIUMsrc/test/recovery/t/019_replslot_limit.pl544# =============================================================================
MEDIUMsrc/test/subscription/t/037_except.pl69# ============================================
MEDIUMsrc/test/subscription/t/037_except.pl71# ============================================
MEDIUMsrc/test/subscription/t/037_except.pl201# ============================================
MEDIUMsrc/test/subscription/t/037_except.pl203# ============================================
MEDIUMsrc/test/subscription/t/037_except.pl226# ============================================
MEDIUMsrc/test/subscription/t/037_except.pl228# ============================================
MEDIUMsrc/test/subscription/t/028_row_filter.pl23# ====================================================================
MEDIUMsrc/test/subscription/t/028_row_filter.pl77# ====================================================================
MEDIUMsrc/test/subscription/t/028_row_filter.pl79# ====================================================================
MEDIUMsrc/test/subscription/t/028_row_filter.pl179# ====================================================================
MEDIUMsrc/test/subscription/t/028_row_filter.pl181# ======================================================
MEDIUMsrc/test/subscription/t/028_row_filter.pl800# ======================================================
MEDIUMsrc/test/subscription/t/014_binary.pl43# ------------------------------------------------------
MEDIUMsrc/test/subscription/t/014_binary.pl45# ------------------------------------------------------
MEDIUMsrc/test/subscription/t/014_binary.pl84# ----------------------------------
MEDIUMsrc/test/subscription/t/014_binary.pl86# ----------------------------------
MEDIUMsrc/test/subscription/t/014_binary.pl135# ------------------------------------------------------------------------------
MEDIUMsrc/test/subscription/t/014_binary.pl137# ------------------------------------------------------------------------------
MEDIUMsrc/test/subscription/t/014_binary.pl180# ---------------------------------------------------------------
MEDIUMsrc/test/subscription/t/014_binary.pl182# ---------------------------------------------------------------
MEDIUMsrc/test/subscription/t/014_binary.pl243# -----------------------------------------------------
MEDIUMsrc/test/subscription/t/014_binary.pl245# -----------------------------------------------------
MEDIUMsrc/test/subscription/t/032_subscribe_use_index.pl24# =============================================================================
MEDIUMsrc/test/subscription/t/032_subscribe_use_index.pl90# =============================================================================
MEDIUMsrc/test/subscription/t/032_subscribe_use_index.pl92# =============================================================================
MEDIUMsrc/test/subscription/t/032_subscribe_use_index.pl178# =============================================================================
MEDIUMsrc/test/subscription/t/032_subscribe_use_index.pl180# =============================================================================
MEDIUMsrc/test/subscription/t/032_subscribe_use_index.pl264# =============================================================================
MEDIUMsrc/test/subscription/t/032_subscribe_use_index.pl266# =============================================================================
MEDIUMsrc/test/subscription/t/032_subscribe_use_index.pl345# =============================================================================
MEDIUMsrc/test/subscription/t/032_subscribe_use_index.pl347# =============================================================================
MEDIUMsrc/test/subscription/t/032_subscribe_use_index.pl408# =============================================================================
MEDIUMsrc/test/subscription/t/032_subscribe_use_index.pl410# =============================================================================
MEDIUMsrc/test/subscription/t/032_subscribe_use_index.pl479# =============================================================================
MEDIUMsrc/test/subscription/t/032_subscribe_use_index.pl481# =============================================================================
MEDIUMsrc/test/subscription/t/032_subscribe_use_index.pl548# =============================================================================
MEDIUMsrc/test/subscription/t/011_generated.pl104# =============================================================================
MEDIUMsrc/test/subscription/t/011_generated.pl121# =============================================================================
MEDIUMsrc/test/subscription/t/011_generated.pl125# --------------------------------------------------
MEDIUMsrc/test/subscription/t/011_generated.pl129# --------------------------------------------------
MEDIUMsrc/test/subscription/t/011_generated.pl220# =============================================================================
MEDIUMsrc/test/subscription/t/011_generated.pl230# =============================================================================
MEDIUMsrc/test/subscription/t/011_generated.pl232# --------------------------------------------------
MEDIUMsrc/test/subscription/t/011_generated.pl235# --------------------------------------------------
MEDIUMsrc/test/subscription/t/011_generated.pl281# --------------------------------------------------
MEDIUMsrc/test/subscription/t/011_generated.pl285# --------------------------------------------------
MEDIUMsrc/test/subscription/t/011_generated.pl331# =============================================================================
48 more matches not shown…
Redundant / Tautological Comments43 hits · 64 pts
SeverityFileLineSnippet
LOWcontrib/unaccent/generate_unaccent_rules.py117 # Check if the base letter of this letter has marks.
LOWcontrib/sepgsql/t/001_sepgsql.pl228# Check if the truncate permission exists in the loaded policy, and if so,
LOWsrc/test/recovery/t/041_checkpoint_at_promote.pl38# Check if the extension injection_points is available, as it may be
LOWsrc/test/recovery/t/001_stream_rep.pl588# Check if the previous segment gets correctly recycled after the
LOWsrc/test/recovery/t/040_standby_failover_slots_sync.pl248# Check if the synced slot is invalidated
LOWsrc/test/recovery/t/040_standby_failover_slots_sync.pl889# Set two_phase to true and enable the subscription
LOWsrc/test/recovery/t/044_invalidate_inactive_slots.pl58# Check if the 'injection_points' extension is available, as it may be
LOWsrc/test/recovery/t/016_min_consistency.pl49# Set shared_buffers to a very low value to enforce discard and flush
LOWsrc/test/recovery/t/035_standby_logical_decoding.pl125# Check if all the slots on standby are dropped. These include the 'activeslot'
LOWsrc/test/recovery/t/035_standby_logical_decoding.pl303# Check if the extension injection_points is available, as it may be
LOWsrc/test/recovery/t/035_standby_logical_decoding.pl630# Set hot_standby_feedback to on
LOWsrc/test/recovery/t/050_redo_segment_missing.pl23# Check if the extension injection_points is available, as it may be
LOWsrc/test/recovery/t/046_checkpoint_logical_slot.pl26# Check if the extension injection_points is available, as it may be
LOWsrc/test/recovery/t/048_vacuum_horizon_floor.pl108# Set primary_conninfo to something invalid on the replica and reload the
LOWsrc/test/recovery/t/047_checkpoint_physical_slot.pl27# Check if the extension injection_points is available, as it may be
LOWsrc/test/recovery/t/047_checkpoint_physical_slot.pl124# Check if the required wal segment exists.
LOWsrc/test/recovery/t/051_effective_wal_level.pl302# Set wal_level to 'replica' and restart the primary. Since one logical slot
LOWsrc/test/perl/PostgreSQL/Test/Cluster.pm1709 # Add node to list of nodes
LOWsrc/test/perl/PostgreSQL/Test/Utils.pm162 # Check if this environment is MSYS2.
LOWsrc/test/subscription/t/023_twophase_stream.pl463# Set max_prepared_transactions to correct value to resume the replication
LOWsrc/test/subscription/t/021_twophase.pl83# Set max_prepared_transactions to correct value to resume the replication
LOWsrc/test/subscription/t/021_twophase.pl448# Set two_phase to "true" and failover to "true" before the COMMIT PREPARED.
LOWsrc/test/subscription/t/035_conflicts.pl594# Set max_retention_duration to a minimal value to initiate retention stop.
LOWsrc/test/subscription/t/035_conflicts.pl621# Set max_retention_duration to 0
LOW…t/modules/test_autovacuum/t/001_parallel_autovacuum.pl50# Check if the extension injection_points is available, as it may be
LOW…/test/modules/xid_wraparound/t/001_emergency_vacuum.pl105# Check if these tables are vacuumed.
LOW…/test/modules/xid_wraparound/t/001_emergency_vacuum.pl119# Check if vacuum failsafe was triggered for each table.
LOWsrc/test/modules/test_misc/t/007_catcache_inval.pl24# Check if the extension injection_points is available, as it may be
LOWsrc/test/modules/test_misc/t/006_signal_autovacuum.pl29# Check if the extension injection_points is available, as it may be
LOW…t/modules/test_misc/t/010_index_concurrently_upsert.pl28# Check if the extension injection_points is available
LOWsrc/test/modules/test_misc/t/003_check_guc.pl62 # Check if this line matches a GUC parameter:
LOWsrc/test/modules/test_misc/t/005_timeouts.pl28# Check if the extension injection_points is available, as it may be
LOWsrc/test/modules/test_misc/t/011_lock_stats.pl81# Check if the extension injection_points is available
LOWsrc/test/modules/worker_spi/t/002_worker_terminate.pl77# Check if the extension injection_points is available, as it may be
LOWsrc/test/authentication/t/003_peer.pl82# Check if peer authentication is supported on this platform.
LOWsrc/test/authentication/t/007_pre_auth.pl28# Check if the extension injection_points is available, as it may be
LOWsrc/bin/pg_rewind/t/RewindTest.pm132 # Set wal_keep_size to prevent WAL segment recycling after enforced
LOWsrc/bin/pg_basebackup/t/040_pg_createsubscriber.pl395# Check if node S is still a standby
LOWsrc/bin/pg_amcheck/t/004_verify_heapam.pl679 # Set xmin to xmax of tuple at offset 30.
LOWsrc/bin/pg_upgrade/t/005_char_signedness.pl42# Check if the value is successfully updated.
LOWsrc/bin/pg_upgrade/t/005_char_signedness.pl88# Check if the default char signedness of the new cluster inherited
LOWsrc/bin/pg_upgrade/t/002_pg_upgrade.pl584# Check if there are any logs coming from pg_upgrade, that would only be
LOWsrc/interfaces/libpq/t/005_negotiate_encryption.pl152# Check if the extension injection_points is available, as it may be
Slop Phrases20 hits · 32 pts
SeverityFileLineSnippet
LOWcontrib/postgres_fdw/deparse.c1041 * expanded later, but don't forget to add deparse support below.
LOWsrc/tools/version_stamp.pl103print "Don't forget to run autoconf $aconfver before committing.\n";
MEDIUMsrc/test/regress/regress.c898 * enough for demonstration purposes.
LOWsrc/test/recovery/t/006_logical_decoding.pl145# make sure you can't drop a slot while active
LOWsrc/bin/pg_dump/pg_backup_archiver.c2164 * a sign byte. If you change this, don't forget to change the file
LOWsrc/include/mb/pg_wchar.h61 * WARNING: If you add some encoding don't forget to update
MEDIUMsrc/include/lib/ilist.h46 * Here's a simple example demonstrating how this can be used. Let's assume
LOWsrc/backend/access/transam/xlog.c5799 * If you change them, don't forget to update the list.
LOWsrc/backend/access/brin/brin_minmax_multi.c634 /* don't forget to include the null terminator ;-) */
LOWsrc/backend/access/common/reloptions.c52 * (vi) don't forget to document the option
LOWsrc/backend/access/heap/heapam.c2185 * If heaptup is a private copy, release it. Don't forget to copy t_self
LOWsrc/backend/access/heap/heapam.c4144 * If heaptup is a private copy, release it. Don't forget to copy t_self
LOWsrc/backend/nodes/bitmapset.c1421 * Note: don't forget to specify bitmap_match as the match function!
LOWsrc/backend/catalog/system_views.sql10 * executable either --- but by default they will be. So don't forget to
LOWsrc/backend/utils/adt/expandedrecord.c1464 * But don't forget to mark header as dummy.
LOWsrc/backend/utils/adt/selfuncs.c1067 /* Don't forget to account for nulls. */
LOWsrc/backend/utils/adt/acl.c820 * you make a change here, don't forget to update the GRANT man page,
LOWsrc/backend/utils/hash/dynahash.c1569 /* don't forget to terminate the rebuilt hash chains... */
LOWsrc/backend/regex/regc_nfa.c2927 /* Don't forget to free sclone's donemap when done with it */
LOWsrc/backend/storage/lmgr/lock.c2077 /* don't forget to clear waitMask bit if appropriate */
AI Slop Vocabulary16 hits · 32 pts
SeverityFileLineSnippet
MEDIUMcontrib/amcheck/t/005_pitr.pl35# VACUUM to delete the aforementioned leaf page. Force an XLogFlush() by
LOWsrc/pl/tcl/sql/pltcl_setup.sql194 # If not a Postgres error, just return the basic error message
LOWsrc/tools/PerfectHash.pm76 # It's not worth passing this around as a parameter; just use a global.
LOWsrc/test/kerberos/t/001_auth.pl16# just add whatever other tests are needed to here.
MEDIUMsrc/test/ssl/t/SSL/Server.pm74# mode and this way they will find a port to run on in a more robust way.
MEDIUMsrc/test/recovery/t/053_standby_login_event_trigger.pl15# To keep the test robust the event trigger is set up in a dedicated
LOWsrc/test/recovery/t/015_promotion_pages.pl55# Now just use a dummy table and run some operations to move minRecoveryPoint
MEDIUMsrc/test/perl/PostgreSQL/Test/Cluster.pm1901 # so callers can harness this port for the widest range of purposes.
LOWsrc/test/perl/PostgreSQL/Test/Cluster.pm2253 # because of a timeout and the caller requested to handle that, just return
LOWsrc/test/perl/PostgreSQL/Test/Cluster.pm3413 # Before release 12 walreceiver just set the application name to
MEDIUMsrc/test/perl/PostgreSQL/Test/Cluster.pm3505 # harness won't accept a skip; otherwise, it won't accept
LOWsrc/test/modules/test_pg_dump/t/001_base.pl27# test_key indicates that a given run should simply use the same
LOWsrc/bin/pg_dump/t/002_pg_dump.pl20# test_key indicates that a given run should simply use the same
LOWsrc/backend/catalog/Catalog.pm332 # parse. We can't just use a regex because of values in
LOWsrc/backend/catalog/genbki.pl323 # special SQL names for types etc; we just use the names in the source
LOWsrc/interfaces/ecpg/preproc/parse.pl507 # Not a nonterminal declaration, so just add it to $line.
Verbosity Indicators11 hits · 16 pts
SeverityFileLineSnippet
LOWcontrib/amcheck/verify_heapam.c1756 * We go further, because we need to check if the toast datum is corrupt.
LOWsrc/bin/pg_amcheck/t/004_verify_heapam.pl145# The purpose of this function is to write a tuple back to disk with some
LOWsrc/bin/pg_dump/t/006_pg_dump_compress.pl530 # if just one match, we need to check if it's real
LOWsrc/bin/pg_dump/t/002_pg_dump.pl5232 # if just one match, we need to check if it's real
LOWsrc/backend/optimizer/util/clauses.c4740 * Note that we need to check if the relation actually has any
LOWsrc/backend/utils/mb/mbutils.c73 * This variable stores the conversion function to convert from UTF-8
LOWsrc/backend/storage/ipc/shm_mq.c872 * The purpose of this function is to make sure that the process
LOWsrc/backend/executor/execMain.c156 * If the transaction is read-only, we need to check if any writes are
LOWsrc/backend/replication/slot.c2272 * We need to check if the slot is invalidated here since
LOWsrc/backend/replication/pgoutput/pgoutput.c2307 * across all publications. So we need to check if the already
LOWsrc/backend/partitioning/partdesc.c448 * The purpose of this function is to ensure that we get the same
Fake / Example Data8 hits · 8 pts
SeverityFileLineSnippet
LOWsrc/test/regress/sql/tsearch.sql559'Lorem ipsum urna. Nullam nullam ullamcorper urna.',
LOWsrc/test/regress/sql/tsearch.sql564'Lorem ipsum urna. Nullam nullam ullamcorper urna.',
LOWsrc/test/regress/sql/tsearch.sql640'Lorem ipsum urna. Nullam nullam ullamcorper urna.',
LOWsrc/test/modules/oauth_validator/t/001_server.pl650# Allow "user@example.com" to log in under the test role.
LOW…erfaces/ecpg/test/expected/preproc-pointer_to_struct.c163 strcpy(custs1[0].name.arr, "John Doe");
LOW…erfaces/ecpg/test/expected/preproc-pointer_to_struct.c167 strcpy(acme.customers[1].name.arr, "Jane Doe");
LOW…nterfaces/ecpg/test/expected/preproc-array_of_struct.c158 strcpy(custs1[0].name.arr, "John Doe");
LOW…nterfaces/ecpg/test/expected/preproc-array_of_struct.c162 strcpy(acme.customers[1].name.arr, "Jane Doe");
Synthetic Comment Markers1 hit · 8 pts
SeverityFileLineSnippet
HIGHsrc/tools/ci/ci_macports_packages.sh62# If setting all the required packages as requested fails, we need
Excessive Try-Catch Wrapping7 hits · 7 pts
SeverityFileLineSnippet
LOWsrc/pl/plpython/sql/plpython_import.sql27except Exception as ex:
LOWsrc/pl/plpython/sql/plpython_ereport.sql124except Exception as e:
LOWsrc/pl/plpython/sql/plpython_ereport.sql132except Exception as e:
LOWsrc/pl/plpython/sql/plpython_spi.sql34except Exception as ex:
LOWsrc/pl/plpython/sql/plpython_spi.sql48except Exception as ex:
LOWsrc/pl/plpython/sql/plpython_spi.sql63except Exception as ex:
LOWsrc/pl/plpython/sql/plpython_transaction.sql170except Exception as e:
Deep Nesting3 hits · 3 pts
SeverityFileLineSnippet
LOWcontrib/unaccent/generate_unaccent_rules.py160
LOWcontrib/unaccent/generate_unaccent_rules.py228
LOWsrc/tools/generate_editorconfig.py22
Hyper-Verbose Identifiers2 hits · 2 pts
SeverityFileLineSnippet
LOWcontrib/unaccent/generate_unaccent_rules.py160def parse_cldr_latin_ascii_transliterator(latinAsciiFilePath):
LOWcontrib/pgcrypto/scripts/pgp_session_data.py287def build_literal_data_packet(data: bytes) -> bytes:
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippet
LOWsrc/backend/port/aix/mkldexport.sh8# Usage:
Unused Imports1 hit · 1 pts
SeverityFileLineSnippet
LOWcontrib/pgcrypto/scripts/pgp_session_data.py25