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
This report summarizes scanner evidence for postgres/postgres, a C project with 22,649 GitHub stars. SynthScan examined 2,148,088 lines of code across 3891 source files, recording 1626 pattern matches distributed across 15 syntactic categories. The legacy adjusted pattern signal is 1.0 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 1483 finding(s).
Are imports declared and package/API names verified? 20 finding(s).
Are wrappers, guards, and repeated structures necessary? 125 finding(s).
Which changes need focused human review? 1626 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 1626 distinct pattern matches across 15 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | contrib/postgres_fdw/deparse.c | 41 | #include "catalog/pg_collation.h" | COMMENT |
| LOW | contrib/postgres_fdw/postgres_fdw.c | 21 | #include "commands/defrem.h" | COMMENT |
| LOW | contrib/postgres_fdw/postgres_fdw.c | 41 | #include "optimizer/restrictinfo.h" | COMMENT |
| LOW | contrib/postgres_fdw/connection.c | 21 | #include "catalog/pg_user_mapping.h" | COMMENT |
| LOW | contrib/pg_prewarm/autoprewarm.c | 21 | * IDENTIFICATION | COMMENT |
| LOW | contrib/pg_prewarm/autoprewarm.c | 41 | #include "storage/latch.h" | COMMENT |
| LOW | contrib/pageinspect/btreefuncs.c | 21 | * THE AUTHOR SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT | COMMENT |
| LOW | contrib/pageinspect/heapfuncs.c | 21 | * contrib/pageinspect/heapfuncs.c | COMMENT |
| LOW | contrib/file_fdw/file_fdw.c | 21 | #include "access/table.h" | COMMENT |
| LOW | contrib/uuid-ossp/uuid-ossp.c | 21 | #include "utils/uuid.h" | COMMENT |
| LOW | contrib/uuid-ossp/uuid-ossp.c | 41 | #endif | COMMENT |
| LOW | contrib/pg_trgm/trgm_op.c | 1 | /* | COMMENT |
| LOW | contrib/pg_trgm/trgm_op.c | 221 | if (GetDefaultCharSignedness()) | COMMENT |
| LOW | contrib/pg_trgm/trgm.h | 21 | * the operator classes, because we can't handle case-insensitive wildcard | COMMENT |
| LOW | contrib/pg_trgm/trgm.h | 81 | #define CLRBIT(x,i) GETBYTE(x,i) &= ~( 0x01 << ( (i) % BITBYTE ) ) | COMMENT |
| LOW | contrib/unaccent/generate_unaccent_rules.py | 1 | #!/usr/bin/python | COMMENT |
| LOW | contrib/unaccent/generate_unaccent_rules.py | 21 | # command line argument -- will be parsed and used. | COMMENT |
| LOW | contrib/unaccent/generate_unaccent_rules.py | 181 | # And finish the processing of each individual rule. | COMMENT |
| LOW | contrib/cube/cubedata.h | 41 | #define SET_POINT_BIT(cube) ( (cube)->header |= POINT_BIT ) | COMMENT |
| LOW | contrib/dblink/dblink.c | 41 | #include "catalog/namespace.h" | COMMENT |
| LOW | contrib/intarray/_int.h | 61 | /* bigint defines */ | COMMENT |
| LOW | contrib/pgrowlocks/pgrowlocks.c | 21 | * IS" BASIS, AND THE AUTHOR HAS NO OBLIGATIONS TO PROVIDE MAINTENANCE, | COMMENT |
| LOW | contrib/btree_gin/btree_gin.c | 1 | /* | COMMENT |
| LOW | contrib/ltree/ltree.h | 161 | #define COMPUTESIZE(size,lenofoperand) ( HDRSIZEQT + (size) * sizeof(ITEM) + (lenofoperand) ) | COMMENT |
| LOW | contrib/ltree/ltree.h | 221 | #define PG_GETARG_LTREE_P_COPY(n) DatumGetLtreePCopy(PG_GETARG_DATUM(n)) | COMMENT |
| LOW | contrib/ltree/ltree.h | 281 | #define LTG_NODE(x) ( (ltree*)( ((char*)(x))+LTG_HDRSIZE ) ) | COMMENT |
| LOW | contrib/pg_stat_statements/pg_stat_statements.c | 41 | * | COMMENT |
| LOW | contrib/pg_stat_statements/pg_stat_statements.c | 61 | #include "pgstat.h" | COMMENT |
| LOW | contrib/pg_stat_statements/pg_stat_statements.c | 1581 | pg_stat_statements_reset(PG_FUNCTION_ARGS) | COMMENT |
| LOW | contrib/pg_buffercache/pg_buffercache_pages.c | 21 | COMMENT | |
| LOW | contrib/amcheck/verify_heapam.c | 21 | #include "access/visibilitymap.h" | COMMENT |
| LOW | contrib/amcheck/verify_nbtree.c | 21 | * | COMMENT |
| LOW | contrib/hstore/hstore_io.c | 1 | /* | COMMENT |
| LOW | contrib/pgcrypto/px.h | 41 | #define PX_MAX_SALT_LEN 128 | COMMENT |
| LOW | contrib/pgcrypto/px.h | 61 | #define PXE_BAD_SALT_ROUNDS -15 | COMMENT |
| LOW | contrib/pgcrypto/px.h | 201 | #define px_md_block_size(md) (md)->block_size(md) | COMMENT |
| LOW | contrib/pgcrypto/scripts/pgp_session_data.py | 1 | #!/usr/bin/python | COMMENT |
| LOW | contrib/pg_plan_advice/pgpa_planner.c | 21 | #include "pgpa_output.h" | COMMENT |
| LOW | contrib/pgstattuple/pgstatindex.c | 21 | * THE AUTHOR SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT | COMMENT |
| LOW | contrib/pgstattuple/pgstattuple.c | 21 | * IS" BASIS, AND THE AUTHOR HAS NO OBLIGATIONS TO PROVIDE MAINTENANCE, | COMMENT |
| LOW | contrib/fuzzystrmatch/dmetaphone.c | 101 | #include "utils/builtins.h" | COMMENT |
| LOW | contrib/fuzzystrmatch/daitch_mokotoff_header.pl | 121 | print $OUTPUT "};\n"; | COMMENT |
| LOW | contrib/sepgsql/sepgsql.h | 41 | #define SEPG_CLASS_BLK_FILE 5 | COMMENT |
| LOW | contrib/sepgsql/sepgsql.h | 61 | #define SEPG_PROCESS__SETCURRENT (1<<2) | COMMENT |
| LOW | contrib/sepgsql/sepgsql.h | 81 | #define SEPG_DIR__REPARENT (1<<10) | COMMENT |
| LOW | contrib/sepgsql/sepgsql.h | 101 | #define SEPG_BLK_FILE__UNLINK (SEPG_FILE__UNLINK) | COMMENT |
| LOW | contrib/sepgsql/sepgsql.h | 121 | #define SEPG_DB_DATABASE__SETATTR (1<<3) | COMMENT |
| LOW | contrib/sepgsql/sepgsql.h | 141 | #define SEPG_DB_TABLE__RELABELFROM (SEPG_DB_DATABASE__RELABELFROM) | COMMENT |
| LOW | contrib/sepgsql/sepgsql.h | 161 | #define SEPG_DB_PROCEDURE__DROP (SEPG_DB_DATABASE__DROP) | COMMENT |
| LOW | contrib/sepgsql/sepgsql.h | 181 | #define SEPG_DB_TUPLE__RELABELTO (SEPG_DB_DATABASE__RELABELTO) | COMMENT |
| LOW | contrib/sepgsql/sepgsql.h | 201 | #define SEPG_DB_LANGUAGE__SETATTR (SEPG_DB_DATABASE__SETATTR) | COMMENT |
| LOW | contrib/sepgsql/label.c | 21 | #include "catalog/pg_attribute.h" | COMMENT |
| LOW | .github/workflows/pg-ci.yml | 1 | # GitHub Actions CI configuration for PostgreSQL | COMMENT |
| LOW | .github/workflows/pg-ci.yml | 261 | timeout-minutes: 15 | COMMENT |
| LOW | .github/workflows/pg-ci.yml | 381 | key: ${{ steps.ccache-restore-branch.outputs.cache-primary-key }} | COMMENT |
| LOW | .github/workflows/pg-ci.yml | 761 | # Use MacPorts, even though Homebrew is installed. The installation | COMMENT |
| LOW | .github/workflows/pg-ci.yml | 901 | # then `robocopy` it into per-test data directories. Robocopy with the | COMMENT |
| LOW | .github/workflows/pg-ci.yml | 921 | # postgres' plpython3u loads python3.dll (the stable-ABI forwarder) | COMMENT |
| LOW | src/pl/plpgsql/src/pl_exec.c | 21 | #include "access/htup_details.h" | COMMENT |
| LOW | src/pl/plpgsql/src/pl_comp.c | 21 | #include "catalog/namespace.h" | COMMENT |
| 1184 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | contrib/pg_visibility/t/001_concurrent_transaction.pl | 36 | # Create a sample table and run vacuum | COMMENT |
| MEDIUM | contrib/pg_visibility/t/002_corrupt_vm.pl | 21 | # Create a sample table with at least 10 pages and then run VACUUM. 10 is | COMMENT |
| MEDIUM | contrib/amcheck/t/004_verify_nbtree_unique.pl | 18 | # Create a custom operator class and an index which uses it. | COMMENT |
| MEDIUM | contrib/amcheck/t/005_pitr.pl | 16 | # Create a table with each of 6 PK values spanning 1/4 of a block. Delete the | COMMENT |
| MEDIUM | contrib/amcheck/t/001_verify_heapam.pl | 115 | # Create a test sequence of the given name. | COMMENT |
| MEDIUM | src/test/ssl/t/SSL/Server.pm | 15 | # Create a new cluster | COMMENT |
| MEDIUM | src/test/ldap/t/003_ldap_connection_param_lookup.pl | 74 | # Create the set of service files used in the tests. | COMMENT |
| MEDIUM | src/test/recovery/t/042_low_level_backup.pl | 51 | # Create a table that will be used to verify that recovery started at the | COMMENT |
| MEDIUM | src/test/recovery/t/040_standby_failover_slots_sync.pl | 37 | # Create a subscriber node, wait for sync to complete | COMMENT |
| MEDIUM | src/test/recovery/t/040_standby_failover_slots_sync.pl | 50 | # Create a subscription that enables failover. | COMMENT |
| MEDIUM | src/test/recovery/t/040_standby_failover_slots_sync.pl | 137 | # Create a standby | COMMENT |
| MEDIUM | src/test/recovery/t/040_standby_failover_slots_sync.pl | 377 | # Create a cascading standby | COMMENT |
| MEDIUM | src/test/recovery/t/040_standby_failover_slots_sync.pl | 410 | # Create a failover slot and advance the restart_lsn to a position where a | COMMENT |
| MEDIUM | src/test/recovery/t/040_standby_failover_slots_sync.pl | 766 | # Create a logical 'test_decoding' replication slot with failover enabled | COMMENT |
| MEDIUM | src/test/recovery/t/033_replay_tsp_drops.pl | 121 | # Create a database in the tablespace and a table in default tablespace | COMMENT |
| MEDIUM | src/test/recovery/t/008_fsm_truncation.pl | 24 | # Create a primary node and its standby, initializing both with some data | COMMENT |
| MEDIUM | src/test/recovery/t/035_standby_logical_decoding.pl | 47 | # Create the required logical slots on standby. | COMMENT |
| MEDIUM⚡ | src/test/recovery/t/035_standby_logical_decoding.pl | 503 | # Create a table on the primary | COMMENT |
| MEDIUM⚡ | src/test/recovery/t/035_standby_logical_decoding.pl | 507 | # Create a table (same structure) on the subscriber node | COMMENT |
| MEDIUM⚡ | src/test/recovery/t/035_standby_logical_decoding.pl | 511 | # Create a publication on the primary | COMMENT |
| MEDIUM | src/test/recovery/t/035_standby_logical_decoding.pl | 558 | # Create the injection_points extension | COMMENT |
| MEDIUM | src/test/recovery/t/035_standby_logical_decoding.pl | 917 | # Create a slot on a database that would not be dropped. This slot should not | COMMENT |
| MEDIUM | src/test/recovery/t/035_standby_logical_decoding.pl | 956 | # Create a physical replication slot on the standby. | COMMENT |
| MEDIUM | src/test/recovery/t/035_standby_logical_decoding.pl | 1073 | # Create a logical slot on the cascading standby for this test. | COMMENT |
| MEDIUM | src/test/recovery/t/046_checkpoint_logical_slot.pl | 36 | # Create the two slots we'll need. | COMMENT |
| MEDIUM | src/test/recovery/t/046_checkpoint_logical_slot.pl | 159 | # Create a standby | COMMENT |
| MEDIUM | src/test/recovery/t/014_unlogged_reinit.pl | 21 | # Create an unlogged table and an unlogged sequence to test that forks | COMMENT |
| MEDIUM | src/test/recovery/t/014_unlogged_reinit.pl | 43 | # Create an unlogged table in a tablespace. | COMMENT |
| MEDIUM | src/test/recovery/t/019_replslot_limit.pl | 39 | # Create a standby linking to it using the replication slot | COMMENT |
| MEDIUM | src/test/recovery/t/019_replslot_limit.pl | 443 | # Create a standby linking to the primary using the replication slot | COMMENT |
| MEDIUM | src/test/recovery/t/049_wait_for_lsn.pl | 101 | # Create a streaming standby with a 1 second delay from the backup | COMMENT |
| MEDIUM | src/test/recovery/t/049_wait_for_lsn.pl | 875 | # Create an archive-only standby: has_restoring but NOT has_streaming. | COMMENT |
| MEDIUM | src/test/recovery/t/054_unlogged_sequence_promotion.pl | 24 | # Create the unlogged sequence after the standby has started, so its init fork | COMMENT |
| MEDIUM | src/test/recovery/t/017_shm.pl | 44 | # Create a shmem segment that will conflict with gnat's first choice | COMMENT |
| MEDIUM | src/test/recovery/t/047_checkpoint_physical_slot.pl | 37 | # Create a physical replication slot. | COMMENT |
| MEDIUM | src/test/recovery/t/051_effective_wal_level.pl | 45 | # Create a physical slot and verify that it doesn't affect effective_wal_level. | COMMENT |
| MEDIUM | src/test/recovery/t/051_effective_wal_level.pl | 54 | # Create a temporary logical slot but exit without releasing it explicitly. | COMMENT |
| MEDIUM | src/test/recovery/t/051_effective_wal_level.pl | 111 | # Create a new logical slot and check that effective_wal_level must be increased | COMMENT |
| MEDIUM | src/test/recovery/t/051_effective_wal_level.pl | 208 | # Creating a logical slot on standby should succeed as the primary enables | COMMENT |
| MEDIUM | src/test/perl/PostgreSQL/Test/Cluster.pm | 16 | # Create a data directory with initdb | COMMENT |
| MEDIUM | src/test/perl/PostgreSQL/Test/BackgroundPsql.pm | 16 | # Create a data directory with initdb | COMMENT |
| MEDIUM | src/test/subscription/t/017_stream_ddl.pl | 6 | # This file is mainly to test the DDL/DML interaction of the publisher side, | COMMENT |
| MEDIUM | src/test/subscription/t/037_except.pl | 104 | # Create a logical replication slot to help with later tests. | COMMENT |
| MEDIUM | src/test/subscription/t/033_run_as_table_owner.pl | 232 | # Create a new subscription "admin_sub" owned by regress_admin2. It's | COMMENT |
| MEDIUM | src/test/subscription/t/036_sequences.pl | 86 | # Create a new sequence 'regress_s2', and update existing sequence 'regress_s1' | COMMENT |
| MEDIUM | src/test/subscription/t/036_sequences.pl | 134 | # Create a new sequence 'regress_s3', and update the existing sequence | COMMENT |
| MEDIUM | src/test/subscription/t/036_sequences.pl | 302 | # Create a new sequence 'regress_s4' whose START value is not the same in the | COMMENT |
| MEDIUM | src/test/subscription/t/019_stream_subxact_ddl_abort.pl | 7 | # This file is mainly to test the DDL/DML interaction of the publisher side, | COMMENT |
| MEDIUM | src/test/subscription/t/029_on_error.pl | 107 | # Create a pub/sub to set up logical replication. This tests that the | COMMENT |
| MEDIUM | src/test/subscription/t/030_origin.pl | 46 | # Create the same table on node_B | COMMENT |
| MEDIUM | src/test/subscription/t/100_bugs.pl | 181 | # Create the tables in all nodes. | COMMENT |
| MEDIUM | src/test/subscription/t/100_bugs.pl | 186 | # Create a cascaded replication setup like: | COMMENT |
| MEDIUM | src/test/subscription/t/100_bugs.pl | 550 | # Create an AFTER INSERT trigger on the table that raises and subsequently | COMMENT |
| MEDIUM | src/test/subscription/t/100_bugs.pl | 638 | # Create a publication with the zero-division row filter. It always throws an | COMMENT |
| MEDIUM⚡ | src/test/subscription/t/035_conflicts.pl | 14 | # Create a publisher node | COMMENT |
| MEDIUM⚡ | src/test/subscription/t/035_conflicts.pl | 19 | # Create a subscriber node | COMMENT |
| MEDIUM⚡ | src/test/subscription/t/035_conflicts.pl | 24 | # Create a table on publisher | COMMENT |
| MEDIUM | src/test/subscription/t/035_conflicts.pl | 47 | # Create the subscription | COMMENT |
| MEDIUM | src/test/subscription/t/035_conflicts.pl | 171 | # Create the same table on node_B | COMMENT |
| MEDIUM | src/test/subscription/t/035_conflicts.pl | 386 | # Create the table and publish it from node B only, so that local changes on | COMMENT |
| 81 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | src/tools/gen_keywordlist.pl | 1 | #---------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/tools/gen_keywordlist.pl | 29 | #---------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/tools/PerfectHash.pm | 1 | #---------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/tools/PerfectHash.pm | 28 | #---------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/tools/msvc_gendef.pl | 33 | # ------------------------------------------------------------------------ | COMMENT |
| MEDIUM | src/tools/mark_pgdllimport.pl | 3 | #---------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/tools/mark_pgdllimport.pl | 23 | #---------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/test/recovery/t/044_invalidate_inactive_slots.pl | 40 | # ======================================================================== | COMMENT |
| MEDIUM | src/test/recovery/t/044_invalidate_inactive_slots.pl | 105 | # ============================================================================= | COMMENT |
| MEDIUM | src/test/recovery/t/019_replslot_limit.pl | 430 | # ============================================================================= | COMMENT |
| MEDIUM | src/test/recovery/t/019_replslot_limit.pl | 493 | # ============================================================================= | COMMENT |
| MEDIUM | src/test/recovery/t/019_replslot_limit.pl | 495 | # ============================================================================= | COMMENT |
| MEDIUM | src/test/recovery/t/019_replslot_limit.pl | 553 | # ============================================================================= | COMMENT |
| MEDIUM | src/test/subscription/t/037_except.pl | 73 | # ============================================ | COMMENT |
| MEDIUM | src/test/subscription/t/037_except.pl | 75 | # ============================================ | COMMENT |
| MEDIUM | src/test/subscription/t/037_except.pl | 205 | # ============================================ | COMMENT |
| MEDIUM | src/test/subscription/t/037_except.pl | 207 | # ============================================ | COMMENT |
| MEDIUM | src/test/subscription/t/037_except.pl | 230 | # ============================================ | COMMENT |
| MEDIUM | src/test/subscription/t/037_except.pl | 232 | # ============================================ | COMMENT |
| MEDIUM | src/test/subscription/t/028_row_filter.pl | 23 | # ==================================================================== | COMMENT |
| MEDIUM | src/test/subscription/t/028_row_filter.pl | 77 | # ==================================================================== | COMMENT |
| MEDIUM | src/test/subscription/t/028_row_filter.pl | 79 | # ==================================================================== | COMMENT |
| MEDIUM | src/test/subscription/t/028_row_filter.pl | 179 | # ==================================================================== | COMMENT |
| MEDIUM | src/test/subscription/t/028_row_filter.pl | 181 | # ====================================================== | COMMENT |
| MEDIUM | src/test/subscription/t/028_row_filter.pl | 800 | # ====================================================== | COMMENT |
| MEDIUM | src/test/subscription/t/014_binary.pl | 43 | # ------------------------------------------------------ | COMMENT |
| MEDIUM | src/test/subscription/t/014_binary.pl | 45 | # ------------------------------------------------------ | COMMENT |
| MEDIUM | src/test/subscription/t/014_binary.pl | 84 | # ---------------------------------- | COMMENT |
| MEDIUM | src/test/subscription/t/014_binary.pl | 86 | # ---------------------------------- | COMMENT |
| MEDIUM | src/test/subscription/t/014_binary.pl | 135 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | src/test/subscription/t/014_binary.pl | 137 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | src/test/subscription/t/014_binary.pl | 180 | # --------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | src/test/subscription/t/014_binary.pl | 182 | # --------------------------------------------------------------- | COMMENT |
| MEDIUM | src/test/subscription/t/014_binary.pl | 243 | # ----------------------------------------------------- | COMMENT |
| MEDIUM | src/test/subscription/t/014_binary.pl | 245 | # ----------------------------------------------------- | COMMENT |
| MEDIUM | src/test/subscription/t/032_subscribe_use_index.pl | 24 | # ============================================================================= | COMMENT |
| MEDIUM | src/test/subscription/t/032_subscribe_use_index.pl | 90 | # ============================================================================= | COMMENT |
| MEDIUM | src/test/subscription/t/032_subscribe_use_index.pl | 92 | # ============================================================================= | COMMENT |
| MEDIUM | src/test/subscription/t/032_subscribe_use_index.pl | 178 | # ============================================================================= | COMMENT |
| MEDIUM | src/test/subscription/t/032_subscribe_use_index.pl | 180 | # ============================================================================= | COMMENT |
| MEDIUM | src/test/subscription/t/032_subscribe_use_index.pl | 264 | # ============================================================================= | COMMENT |
| MEDIUM | src/test/subscription/t/032_subscribe_use_index.pl | 266 | # ============================================================================= | COMMENT |
| MEDIUM | src/test/subscription/t/032_subscribe_use_index.pl | 345 | # ============================================================================= | COMMENT |
| MEDIUM | src/test/subscription/t/032_subscribe_use_index.pl | 347 | # ============================================================================= | COMMENT |
| MEDIUM | src/test/subscription/t/032_subscribe_use_index.pl | 408 | # ============================================================================= | COMMENT |
| MEDIUM | src/test/subscription/t/032_subscribe_use_index.pl | 410 | # ============================================================================= | COMMENT |
| MEDIUM | src/test/subscription/t/032_subscribe_use_index.pl | 479 | # ============================================================================= | COMMENT |
| MEDIUM | src/test/subscription/t/032_subscribe_use_index.pl | 481 | # ============================================================================= | COMMENT |
| MEDIUM | src/test/subscription/t/032_subscribe_use_index.pl | 538 | # ============================================================================= | COMMENT |
| MEDIUM | src/test/subscription/t/032_subscribe_use_index.pl | 540 | # ============================================================================= | COMMENT |
| MEDIUM | src/test/subscription/t/032_subscribe_use_index.pl | 607 | # ============================================================================= | COMMENT |
| MEDIUM | src/test/subscription/t/032_subscribe_use_index.pl | 609 | # ============================================================================= | COMMENT |
| MEDIUM | src/test/subscription/t/032_subscribe_use_index.pl | 734 | # ============================================================================= | COMMENT |
| MEDIUM | src/test/subscription/t/011_generated.pl | 104 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | src/test/subscription/t/011_generated.pl | 121 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | src/test/subscription/t/011_generated.pl | 125 | # -------------------------------------------------- | COMMENT |
| MEDIUM⚡ | src/test/subscription/t/011_generated.pl | 129 | # -------------------------------------------------- | COMMENT |
| MEDIUM⚡ | src/test/subscription/t/011_generated.pl | 220 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | src/test/subscription/t/011_generated.pl | 230 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | src/test/subscription/t/011_generated.pl | 232 | # -------------------------------------------------- | COMMENT |
| 56 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | contrib/unaccent/generate_unaccent_rules.py | 117 | # Check if the base letter of this letter has marks. | COMMENT |
| LOW | contrib/sepgsql/t/001_sepgsql.pl | 228 | # Check if the truncate permission exists in the loaded policy, and if so, | COMMENT |
| LOW | src/test/recovery/t/041_checkpoint_at_promote.pl | 38 | # Check if the extension injection_points is available, as it may be | COMMENT |
| LOW | src/test/recovery/t/001_stream_rep.pl | 616 | # Check if the previous segment gets correctly recycled after the | COMMENT |
| LOW | src/test/recovery/t/040_standby_failover_slots_sync.pl | 248 | # Check if the synced slot is invalidated | COMMENT |
| LOW | src/test/recovery/t/040_standby_failover_slots_sync.pl | 889 | # Set two_phase to true and enable the subscription | COMMENT |
| LOW | src/test/recovery/t/044_invalidate_inactive_slots.pl | 58 | # Check if the 'injection_points' extension is available, as it may be | COMMENT |
| LOW | src/test/recovery/t/016_min_consistency.pl | 49 | # Set shared_buffers to a very low value to enforce discard and flush | COMMENT |
| LOW | src/test/recovery/t/035_standby_logical_decoding.pl | 127 | # Check if all the slots on standby are dropped. These include the 'activeslot' | COMMENT |
| LOW | src/test/recovery/t/035_standby_logical_decoding.pl | 305 | # Check if the extension injection_points is available, as it may be | COMMENT |
| LOW | src/test/recovery/t/035_standby_logical_decoding.pl | 632 | # Set hot_standby_feedback to on | COMMENT |
| LOW | src/test/recovery/t/050_redo_segment_missing.pl | 24 | # Check if the extension injection_points is available, as it may be | COMMENT |
| LOW | src/test/recovery/t/046_checkpoint_logical_slot.pl | 26 | # Check if the extension injection_points is available, as it may be | COMMENT |
| LOW | src/test/recovery/t/048_vacuum_horizon_floor.pl | 108 | # Set primary_conninfo to something invalid on the replica and reload the | COMMENT |
| LOW | src/test/recovery/t/047_checkpoint_physical_slot.pl | 27 | # Check if the extension injection_points is available, as it may be | COMMENT |
| LOW | src/test/recovery/t/047_checkpoint_physical_slot.pl | 124 | # Check if the required wal segment exists. | COMMENT |
| LOW | src/test/recovery/t/051_effective_wal_level.pl | 331 | # Set wal_level to 'replica' and restart the primary. Since one logical slot | COMMENT |
| LOW | src/test/perl/PostgreSQL/Test/Cluster.pm | 1723 | # Add node to list of nodes | COMMENT |
| LOW | src/test/perl/PostgreSQL/Test/Utils.pm | 162 | # Check if this environment is MSYS2. | COMMENT |
| LOW | src/test/subscription/t/023_twophase_stream.pl | 463 | # Set max_prepared_transactions to correct value to resume the replication | COMMENT |
| LOW | src/test/subscription/t/021_twophase.pl | 83 | # Set max_prepared_transactions to correct value to resume the replication | COMMENT |
| LOW | src/test/subscription/t/021_twophase.pl | 489 | # Set two_phase to "true" and failover to "true" before the COMMIT PREPARED. | COMMENT |
| LOW | src/test/subscription/t/035_conflicts.pl | 743 | # Set max_retention_duration to a minimal value to initiate retention stop. | COMMENT |
| LOW | src/test/subscription/t/035_conflicts.pl | 770 | # Set max_retention_duration to 0 | COMMENT |
| LOW | …t/modules/test_autovacuum/t/001_parallel_autovacuum.pl | 59 | # Check if the extension injection_points is available, as it may be | COMMENT |
| LOW | …/test/modules/xid_wraparound/t/001_emergency_vacuum.pl | 105 | # Check if these tables are vacuumed. | COMMENT |
| LOW | …/test/modules/xid_wraparound/t/001_emergency_vacuum.pl | 119 | # Check if vacuum failsafe was triggered for each table. | COMMENT |
| LOW | src/test/modules/test_misc/t/007_catcache_inval.pl | 24 | # Check if the extension injection_points is available, as it may be | COMMENT |
| LOW | src/test/modules/test_misc/t/006_signal_autovacuum.pl | 29 | # Check if the extension injection_points is available, as it may be | COMMENT |
| LOW | …t/modules/test_misc/t/010_index_concurrently_upsert.pl | 28 | # Check if the extension injection_points is available | COMMENT |
| LOW | src/test/modules/test_misc/t/003_check_guc.pl | 62 | # Check if this line matches a GUC parameter: | COMMENT |
| LOW | src/test/modules/test_misc/t/005_timeouts.pl | 28 | # Check if the extension injection_points is available, as it may be | COMMENT |
| LOW | src/test/modules/test_misc/t/011_lock_stats.pl | 81 | # Check if the extension injection_points is available | COMMENT |
| LOW | src/test/modules/worker_spi/t/002_worker_terminate.pl | 77 | # Check if the extension injection_points is available, as it may be | COMMENT |
| LOW | src/test/authentication/t/003_peer.pl | 82 | # Check if peer authentication is supported on this platform. | COMMENT |
| LOW | src/test/authentication/t/007_pre_auth.pl | 28 | # Check if the extension injection_points is available, as it may be | COMMENT |
| LOW | src/bin/pg_rewind/t/RewindTest.pm | 132 | # Set wal_keep_size to prevent WAL segment recycling after enforced | COMMENT |
| LOW | src/bin/pg_basebackup/t/040_pg_createsubscriber.pl | 384 | # Check if node S is still a standby | COMMENT |
| LOW | src/bin/pg_amcheck/t/004_verify_heapam.pl | 679 | # Set xmin to xmax of tuple at offset 30. | COMMENT |
| LOW | src/bin/pg_upgrade/t/005_char_signedness.pl | 42 | # Check if the value is successfully updated. | COMMENT |
| LOW | src/bin/pg_upgrade/t/005_char_signedness.pl | 88 | # Check if the default char signedness of the new cluster inherited | COMMENT |
| LOW | src/bin/pg_upgrade/t/002_pg_upgrade.pl | 649 | # Check if there are any logs coming from pg_upgrade, that would only be | COMMENT |
| LOW | src/interfaces/libpq/t/005_negotiate_encryption.pl | 152 | # Check if the extension injection_points is available, as it may be | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | contrib/postgres_fdw/deparse.c | 1065 | * expanded later, but don't forget to add deparse support below. | COMMENT |
| LOW | src/tools/version_stamp.pl | 103 | print "Don't forget to run autoconf $aconfver before committing.\n"; | CODE |
| MEDIUM | src/test/regress/regress.c | 902 | * enough for demonstration purposes. | COMMENT |
| LOW | src/test/recovery/t/006_logical_decoding.pl | 163 | # make sure you can't drop a slot while active | COMMENT |
| LOW | src/bin/pg_dump/pg_backup_archiver.c | 2142 | * a sign byte. If you change this, don't forget to change the file | COMMENT |
| LOW | src/include/mb/pg_wchar.h | 61 | * WARNING: If you add some encoding don't forget to update | COMMENT |
| MEDIUM | src/include/lib/ilist.h | 46 | * Here's a simple example demonstrating how this can be used. Let's assume | COMMENT |
| LOW | src/backend/access/transam/xlog.c | 6036 | * If you change them, don't forget to update the list. | COMMENT |
| LOW | src/backend/access/brin/brin_minmax_multi.c | 634 | /* don't forget to include the null terminator ;-) */ | COMMENT |
| LOW | src/backend/access/common/reloptions.c | 52 | * (vi) don't forget to document the option | COMMENT |
| LOW | src/backend/access/heap/heapam.c | 2213 | * If heaptup is a private copy, release it. Don't forget to copy t_self | COMMENT |
| LOW | src/backend/access/heap/heapam.c | 4350 | * If heaptup is a private copy, release it. Don't forget to copy t_self | COMMENT |
| LOW | src/backend/nodes/bitmapset.c | 1556 | * Note: don't forget to specify bitmap_match as the match function! | COMMENT |
| LOW | src/backend/catalog/system_views.sql | 10 | * executable either --- but by default they will be. So don't forget to | COMMENT |
| LOW | src/backend/utils/adt/expandedrecord.c | 1464 | * But don't forget to mark header as dummy. | COMMENT |
| LOW | src/backend/utils/adt/selfuncs.c | 1068 | /* Don't forget to account for nulls. */ | COMMENT |
| LOW | src/backend/utils/adt/acl.c | 820 | * you make a change here, don't forget to update the GRANT man page, | COMMENT |
| LOW | src/backend/utils/hash/dynahash.c | 1572 | /* don't forget to terminate the rebuilt hash chains... */ | COMMENT |
| LOW | src/backend/regex/regc_nfa.c | 2927 | /* Don't forget to free sclone's donemap when done with it */ | COMMENT |
| LOW | src/backend/storage/lmgr/lock.c | 2100 | /* don't forget to clear waitMask bit if appropriate */ | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | contrib/amcheck/t/005_pitr.pl | 35 | # VACUUM to delete the aforementioned leaf page. Force an XLogFlush() by | COMMENT |
| LOW | src/pl/tcl/sql/pltcl_setup.sql | 194 | # If not a Postgres error, just return the basic error message | COMMENT |
| LOW | src/tools/PerfectHash.pm | 76 | # It's not worth passing this around as a parameter; just use a global. | COMMENT |
| LOW | src/test/kerberos/t/001_auth.pl | 16 | # just add whatever other tests are needed to here. | COMMENT |
| MEDIUM | src/test/ssl/t/SSL/Server.pm | 74 | # mode and this way they will find a port to run on in a more robust way. | COMMENT |
| MEDIUM | src/test/recovery/t/053_standby_login_event_trigger.pl | 15 | # To keep the test robust the event trigger is set up in a dedicated | COMMENT |
| LOW | src/test/recovery/t/015_promotion_pages.pl | 55 | # Now just use a dummy table and run some operations to move minRecoveryPoint | COMMENT |
| MEDIUM | src/test/perl/PostgreSQL/Test/Cluster.pm | 1915 | # so callers can harness this port for the widest range of purposes. | COMMENT |
| LOW | src/test/perl/PostgreSQL/Test/Cluster.pm | 2267 | # because of a timeout and the caller requested to handle that, just return | COMMENT |
| LOW | src/test/perl/PostgreSQL/Test/Cluster.pm | 3429 | # Before release 12 walreceiver just set the application name to | COMMENT |
| MEDIUM | src/test/perl/PostgreSQL/Test/Cluster.pm | 3521 | # harness won't accept a skip; otherwise, it won't accept | COMMENT |
| LOW | src/test/modules/test_pg_dump/t/001_base.pl | 27 | # test_key indicates that a given run should simply use the same | COMMENT |
| LOW | src/bin/pg_dump/t/002_pg_dump.pl | 20 | # test_key indicates that a given run should simply use the same | COMMENT |
| LOW | src/backend/catalog/Catalog.pm | 340 | # parse. We can't just use a regex because of values in | COMMENT |
| LOW | src/backend/catalog/genbki.pl | 323 | # special SQL names for types etc; we just use the names in the source | COMMENT |
| LOW | src/interfaces/ecpg/preproc/parse.pl | 507 | # Not a nonterminal declaration, so just add it to $line. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/test/regress/sql/tsearch.sql | 559 | 'Lorem ipsum urna. Nullam nullam ullamcorper urna.', | CODE |
| LOW | src/test/regress/sql/tsearch.sql | 564 | 'Lorem ipsum urna. Nullam nullam ullamcorper urna.', | CODE |
| LOW | src/test/regress/sql/tsearch.sql | 640 | 'Lorem ipsum urna. Nullam nullam ullamcorper urna.', | CODE |
| LOW | src/test/modules/oauth_validator/t/001_server.pl | 601 | "ALTER SYSTEM SET oauth_validator.authn_id TO 'test\@example.org'"); | CODE |
| LOW | src/test/modules/oauth_validator/t/001_server.pl | 679 | # Allow "user@example.com" to log in under the test role. | COMMENT |
| LOW | src/test/modules/test_shmem/test_shmem.c | 34 | char dummy_data[FLEXIBLE_ARRAY_MEMBER]; | CODE |
| LOW | src/bin/psql/t/001_basic.pl | 363 | "\\copy copy_default from $copy_default_sql_file with (format 'csv', default 'placeholder'); | CODE |
| LOW⚡ | src/include/utils/elog.h | 282 | * "ereturn(context, dummy_value, ...);" is exactly the same as | COMMENT |
| LOW⚡ | src/include/utils/elog.h | 283 | * "errsave(context, ...); return dummy_value;". This saves a bit | COMMENT |
| LOW⚡ | src/include/utils/elog.h | 285 | * actions to take after reporting a soft error. "dummy_value" | COMMENT |
| LOW⚡ | src/include/utils/elog.h | 288 | #define ereturn_domain(context, dummy_value, domain, ...) \ | COMMENT |
| LOW⚡ | src/include/utils/elog.h | 291 | return dummy_value; \ | CODE |
| LOW⚡ | src/include/utils/elog.h | 294 | #define ereturn(context, dummy_value, ...) \ | COMMENT |
| LOW⚡ | src/include/utils/elog.h | 295 | ereturn_domain(context, dummy_value, TEXTDOMAIN, __VA_ARGS__) | CODE |
| LOW | src/backend/optimizer/plan/planmain.c | 264 | * Examine any "placeholder" expressions generated during subquery pullup. | COMMENT |
| LOW | …erfaces/ecpg/test/expected/preproc-pointer_to_struct.c | 163 | strcpy(custs1[0].name.arr, "John Doe"); | CODE |
| LOW | …erfaces/ecpg/test/expected/preproc-pointer_to_struct.c | 167 | strcpy(acme.customers[1].name.arr, "Jane Doe"); | CODE |
| LOW | …nterfaces/ecpg/test/expected/preproc-array_of_struct.c | 158 | strcpy(custs1[0].name.arr, "John Doe"); | CODE |
| LOW | …nterfaces/ecpg/test/expected/preproc-array_of_struct.c | 162 | strcpy(acme.customers[1].name.arr, "Jane Doe"); | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | contrib/amcheck/verify_heapam.c | 1783 | * We go further, because we need to check if the toast datum is corrupt. | COMMENT |
| LOW | src/bin/pg_amcheck/t/004_verify_heapam.pl | 145 | # The purpose of this function is to write a tuple back to disk with some | COMMENT |
| LOW | src/bin/pg_dump/t/006_pg_dump_compress.pl | 599 | # if just one match, we need to check if it's real | COMMENT |
| LOW | src/bin/pg_dump/t/002_pg_dump.pl | 5336 | # if just one match, we need to check if it's real | COMMENT |
| LOW | src/backend/optimizer/util/clauses.c | 4950 | * Note that we need to check if the relation actually has any | COMMENT |
| LOW | src/backend/utils/mb/mbutils.c | 73 | * This variable stores the conversion function to convert from UTF-8 | COMMENT |
| LOW | src/backend/storage/ipc/shm_mq.c | 872 | * The purpose of this function is to make sure that the process | COMMENT |
| LOW | src/backend/executor/execMain.c | 156 | * If the transaction is read-only, we need to check if any writes are | COMMENT |
| LOW | src/backend/replication/slot.c | 2284 | * We need to check if the slot is invalidated here since | COMMENT |
| LOW | src/backend/replication/pgoutput/pgoutput.c | 2311 | * across all publications. So we need to check if the already | COMMENT |
| LOW | src/backend/partitioning/partdesc.c | 447 | * The purpose of this function is to ensure that we get the same | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | src/tools/ci/ci_macports_packages.sh | 75 | # If setting all the required packages as requested fails, we need | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/pl/plpython/sql/plpython_import.sql | 27 | except Exception as ex: | CODE |
| LOW | src/pl/plpython/sql/plpython_ereport.sql | 124 | except Exception as e: | CODE |
| LOW | src/pl/plpython/sql/plpython_ereport.sql | 132 | except Exception as e: | CODE |
| LOW | src/pl/plpython/sql/plpython_spi.sql | 34 | except Exception as ex: | CODE |
| LOW | src/pl/plpython/sql/plpython_spi.sql | 48 | except Exception as ex: | CODE |
| LOW | src/pl/plpython/sql/plpython_spi.sql | 63 | except Exception as ex: | CODE |
| LOW | src/pl/plpython/sql/plpython_transaction.sql | 170 | except Exception as e: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | contrib/unaccent/generate_unaccent_rules.py | 160 | CODE | |
| LOW | contrib/unaccent/generate_unaccent_rules.py | 228 | CODE | |
| LOW | src/tools/generate_editorconfig.py | 22 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | src/tools/pg_bsd_indent/t/001_pg_bsd_indent.pl | 3 | # The test cases come from FreeBSD upstream, but this test scaffolding is ours. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | contrib/unaccent/generate_unaccent_rules.py | 160 | def parse_cldr_latin_ascii_transliterator(latinAsciiFilePath): | CODE |
| LOW | contrib/pgcrypto/scripts/pgp_session_data.py | 287 | def build_literal_data_packet(data: bytes) -> bytes: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/backend/port/aix/mkldexport.sh | 8 | # Usage: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | contrib/pgcrypto/scripts/pgp_session_data.py | 25 | CODE |