postgres

Fail

Audited by Runlayer on Mar 9, 2026

Risk Level: HIGH
Scan Summary
Max Score
92%
Files
23
Flagged
18
Chunks
23
Flagged Files (18)
postgres/references/backup-recovery.mdHIGH
91.6%

Malicious tool definition detected

Faster for large clusters; includes all databases. Flags: `-Ft -z -P` for compressed tar with progress.

postgres/references/wal-operations.mdMEDIUM
85.8%

Malicious tool definition detected

WAL size: `SELECT count(*) AS files, pg_size_pretty(sum(size)) AS total FROM pg_ls_waldir();` Slot lag: `SELECT slot_name, pg_wal_lsn_diff(pg_current_wal_lsn(), restart_lsn) AS lag_bytes FROM pg_replication_slots;` ## Checkpoint Monitoring PG17+ moved checkpoint stats from `pg_stat_bgwriter` to `pg_stat_checkpointer` and renamed columns. `SELECT num_timed, num_requested, write_time, sync_time, buffers_written FROM pg_stat_checkpointer;` Backend-direct writes (formerly `buffers_backend` in `pg_st

postgres/references/ps-connections.mdMEDIUM
78.7%

Malicious tool definition detected

postgresql://<user>:<password>@<host>.horizon.psdb.cloud:5432/<database>?sslmode=verify-full&sslrootcert=system&sslnegotiation=direct ``` Use port **6432** for PgBouncer (applications/OLTP).

postgres/references/monitoring.mdMEDIUM
78.6%

Malicious tool definition detected

postgres/references/mvcc-transactions.mdMEDIUM
78.0%

Malicious tool definition detected

postgres/references/ps-insights.mdLOW
74.6%

Malicious tool definition detected

Both configurable in the Extensions tab on the Clusters page. More: [PlanetScale Insights docs](https://planetscale.com/docs/postgres/monitoring/query-insights) ## Optimization Checklist - Remove unused indexes (0 scans) - Remove duplicate indexes - Archive audit/log tables >10 GB - Review tables >100 GB for partitioning **Always confirm with a human before removing indexes, dropping tables/partitions, or archiving data.** These are destructive actions that cannot be easily undone. More: [optimi

postgres/references/replication.mdLOW
71.2%

Malicious tool definition detected

postgres/references/process-architecture.mdLOW
69.4%

Tool passed security scan

postgres/references/index-optimization.mdLOW
68.5%

Tool passed security scan

postgres/references/ps-cli-commands.mdLOW
66.8%

Tool passed security scan

postgres/references/mvcc-vacuum.mdLOW
65.1%

Tool passed security scan

postgres/references/memory-management-ops.mdLOW
63.3%

Tool passed security scan

postgres/references/storage-layout.mdLOW
62.7%

Tool passed security scan

postgres/references/ps-connection-pooling.mdLOW
62.1%

Tool passed security scan

postgres/references/ps-cli-api-insights.mdLOW
59.4%

Tool passed security scan

postgres/references/ps-extensions.mdLOW
55.8%

Tool passed security scan

postgres/references/optimization-checklist.mdLOW
54.6%

Tool passed security scan

postgres/SKILL.mdLOW
52.8%

Tool passed security scan

Passed Files (5)Click to expand
postgres/references/partitioning.mdOK
43.2%

Tool passed security scan

postgres/references/indexing.mdOK
34.6%

Tool passed security scan

postgres/references/query-patterns.mdOK
33.7%

Tool passed security scan

postgres/references/pgbouncer-configuration.mdOK
32.4%

Tool passed security scan

postgres/references/schema-design.mdOK
18.1%

Tool passed security scan

Audit Metadata
Max File Score
92%
Classification
KNOWN_SERVER_PARTIAL_KNOWN
Files Scanned
23
Files Flagged
18
Chunks Analyzed
23
Analyzed
Mar 9, 2026, 09:19 PM
Security Audit — runlayer — postgres