Synchronisé depuis GitHub Releases · Studio · Collector · CI · SDKs

Notes de version & changelog.

Toutes les versions publiées de l'écosystème Culprit SQL : binaires Studio & Collector, extension VS Code, garde-fous CI et paquets WebAssembly.

Versions stables actuelles

Flux RSS (RSS)
Culprit SQL Studiov0.6.4Permalien de version →

Culprit SQL Studio 0.6.4

Added

  • ClickHouse diagnostics across SQL Studio, CLI, collector and Plan Viewer. Connect to ClickHouse over read-only HTTP(S) (clickhouse://, verified TLS on port 8443 by default) to inspect system.query_log workloads, exceptions and time-bucketed comparisons, system.processes live requests, MergeTree schema and sorting keys, EXPLAIN PLAN json=1 pipeline steps, and operational health across active parts, merges, failed mutations, Keeper and replication queues, Distributed send queues and asynchronous inserts. culprit collect captures bounded ClickHouse operational windows and targeted query_id + system.part_log follow-up investigations for ADX and ClickHouse archives, and @culpritsql/plans and Plan Viewer parse ClickHouse execution plan JSON offline.
  • Five additional interface languages. SQL Studio, the web viewer and human-readable CLI output now include Simplified Chinese (zh-Hans), Japanese (ja), Korean (ko), Russian (ru) and Portuguese (pt-BR) alongside English, German, Spanish and French.

Improvements

  • Unified Archives welcome screen and scrollable chart change lists. Archives opens with an incident-investigation welcome card listing saved archives, supported warehouses (Azure Data Explorer and ClickHouse) and original-evidence stores (Azure Blob Storage and Amazon S3). Hovering or focusing a change marker on a time chart shows every recorded change in a window-bounded, wheel- and keyboard-scrollable list before selecting it to compare before and after.

Fixes

  • Clearer scan failure messages and ClickHouse connection options in SQL Studio. Failed scans show the full error message alongside workspace recovery details, and ClickHouse connection forms and cards omit SSH jump-host fields that ClickHouse's HTTP(S) transport does not use.
  • Keep Azure SQL firewall login denials from blocking later scans. Login rejections from the SQL firewall (40615 and 40914) confirm that no database session started, so later scans and reads are not held behind unconfirmed connection work.

Full Changelog: github.com/culpritsql/culprit-sql-studio/compare/v0.6.3...v0.6.4

Culprit SQL Studiov0.6.3Permalien de version →

Culprit SQL Studio 0.6.3

Fixes

  • Recover a paused scan in SQL Studio. When Culprit loses confirmation that a database request stopped, the desktop identifies the earlier request and keeps the last saved report available. After verifying that the request stopped, you can resume scanning in the app. Upgrades also recognize older workspace safety records and preserve pending work.
  • Reduce SQL Server collection overhead. Memory-grant reads, activity sampling, index metadata probes, plan-cache lookups and Query Store reads do less work on the monitored database. Incident follow-ups retain their statement and plan evidence.
  • Read ClickHouse archives with native column types. Archive filters preserve the types of the columns used to select published observations.

Improvements

  • Set up telemetry archives in the desktop app. The sidebar has an archive icon. The setup form groups the archive identity, telemetry warehouse and original-evidence storage, with credential guidance for each provider.
  • Browse more published telemetry. Archive window views include schema tables and indexes, storage, memory clerks, grants, spills and jobs when the collector has published those observations.

Full Changelog: github.com/culpritsql/culprit-sql-studio/compare/v0.6.2...v0.6.3

Culprit SQL Studiov0.6.2Permalien de version →

Culprit SQL Studio 0.6.2

Fixes

  • Cross-region collector connection budgeting and warm pool reuse. Bound connection acquisition and gateway-redirect login handshakes by the run's remaining total_timeout_ms while keeping statement_timeout_ms strictly on SQL statement execution, widen SQL Server baseline and diagnostic per-run timeout ceilings to 15 s (1 s per statement), widen persisted scheduler max_reservation limits on upgrade, and retain verified warm worker connection pools across scheduled collector ticks with non-blocking dead-peer eviction.
  • Azure SQL Database standard monitoring presets and collector /ready probe. Support mssql.cleanup on Azure SQL Database and Hyperscale (EngineEdition = 5), bind and verify single-connection SourceProfileGuard authority across operational, wait-counters, settings and deadlock-history under monitoring: standard, record unavailable coverage instead of failing when [culprit_deadlocks] is not yet created, and decouple Kubernetes /ready from informational monitoring gaps and remote target errors while exporting culprit_collector_schedule_failed.

Full Changelog: github.com/culpritsql/culprit-sql-studio/compare/v0.6.1...v0.6.2

Culprit SQL Studiov0.6.1Permalien de version →

Culprit SQL Studio 0.6.1

Added

  • Qualified automatic SQL Server recipes and bounded incident follow-ups. Validated built-in safety policies for bounded SQL Server and Azure SQL Database baseline recipes (activity, settings, cleanup, operational, memory-failures, wait-counters and deadlock-history) alongside bounded root-cause follow-up investigations across SQL Server, PostgreSQL and MySQL (blocking chains, live execution profiles, cache-entry memory, worker starvation, compiler admission, request memory grants, page-latch hot targets/holders/writers, Hyperscale log components, retained plans, tempdb task space and query compilation).
  • Six SQL Server production root-cause diagnoses and Gold deadlock synthesis. Synthesize synchronous statistics refresh stalls (sync-stats-refresh), lock escalations (lock-escalations), blocked log reuse (log-reuse-blocked), operational pressure and configuration checks directly into CulpritFindingsV1, and synthesize bounded deadlock baselines into CulpritIncidentsV1.
  • Cloud posture checks and standalone catalog synthesis. Added Category::Posture checks (public-endpoint, unencrypted-connections, password-auth-enabled, audit-disabled, backup-retention-short and integrity-check-overdue), cloud posture adapters, PostureSnapshot collection and standalone catalog warehouse synthesis.
  • Fleet triage, read-only archive web viewer and archived plan MCP tools. Added warehouse-wide fleet summary views ($NFleetSummary), culprit agent triage, fleet_attention and archived execution plan MCP tools, archive compare views and the standalone culprit-archive-web viewer.
  • Alert notification engine and cloud inventory shard planner. Added pluggable alert evaluation over warehouse windows with five notification channel sinks (culprit notify) and culprit collect sync-inventory with Helm and JSON shard configuration renderers.

Fixes

  • Azure SQL Database process-epoch qualification. Qualify local source and elastic-pool startup epochs from sys.dm_os_sys_info when SERVERPROPERTY('ProcessID') returns NULL on Azure SQL Database (EngineEdition = 5), and check VIEW DATABASE STATE / VIEW DATABASE PERFORMANCE STATE alongside ##MS_ServerStateReader## so contained database identities acquire verified source continuity on standalone tiers and server-state-enabled elastic pools.
  • Packaging, cross-platform inventory rendering and mobile archive layout. Dropped legacy Intel macOS desktop builds with parallelized release codegen, used OS-native secret token paths in JsonConfigRenderer on Windows, and fixed segmented archive filter wrapping on narrow viewports.
Culprit SQL Studiov0.6.0Permalien de version →

Culprit SQL Studio 0.6.0

Added

  • Synthesized warehouse diagnoses in ADX and ClickHouse. The collector runs Culprit's pure diagnostic engine on sealed captures and publishes derived CulpritIncidentsV1, CulpritFindingsV1 and CulpritChangesV1 streams alongside CulpritCollectorConnectionsV1 and the 13 raw evidence tables, plus S3 conditional-object recovery alongside Azure Blob.
  • Source-free archive investigation across Desktop, CLI and MCP. Browse published resources, time windows, incidents, findings and changes (culprit resources, culprit window, culprit incident, culprit mcp --warehouse-evidence and Telemetry archives in the desktop app) using independent warehouse and recovery credentials, with no live connection to production databases.
  • Operator query, Grafana dashboard and paused alert packs. culprit collect queries generates namespace-bound ADX and ClickHouse helper views, an eight-panel Grafana dashboard and three paused tabular alert provisioning rules with explicit publication and freshness guards.
  • Multi-step root-cause investigations. Progressive capture and causal discrimination for parameter-sensitive plan reuse, tempdb/PVS space and cleanup retention, table-valued parameters (TVPs), page-latch hot targets and writers, DDL/metadata lock queues, worker starvation, PostgreSQL subtransaction/MultiXact SLRU pressure, commit/log flush pipelines, parallel worker/operator skew, slow client output consumption and readable-secondary redo/recovery conflicts.
  • Offline Extended Events (.xel) import and native job timelines. Inspect local binary .xel files and exported XML offline in the app, CLI (culprit logs) and MCP (analyze_event_xel) with zero database connections, and project SQL Server Agent, PostgreSQL/TimescaleDB and MySQL/MariaDB scheduled job history with explicit clock qualification.
  • Standalone @culpritsql/plans WebAssembly package and Plan Viewer. Parse, compare and render execution plans, deadlock graphs and binary SQL Server Extended Events (.xel and XML via parseXel, parseExtendedEventsXml and ExtendedEventsViewer) in the browser without database credentials or desktop dependencies.
  • Multi-arch GHCR collector image and OCI Helm chart. Published linux/amd64 and linux/arm64 images at ghcr.io/culpritsql/culprit-collector and OCI Helm chart at oci://ghcr.io/culpritsql/charts/culprit-collector, defaulting to zero replicas with explicit source-quiescence and non-root security gates.

Improvements

  • Broader provider and platform telemetry. Expanded bounded readers across SQL Server, Azure SQL Database, Elastic Pools, Hyperscale (sys.dm_hs_database_log_rate and page-server I/O), Managed Instance, PostgreSQL, TimescaleDB, YugabyteDB, MySQL, MariaDB and SQLite, including readable-replica isolation, columnstore, full-text, CDC/change-feed, memory clerks and compilation gateways.
  • Standard monitoring preset and independent freshness. Configure targets with monitoring: standard and track source acquisition, delivery, synthesis, verification and publication freshness separately without inferring recovery from missing data.

Fixes

  • Bounded ADX alert and status queries. Compact original-revision census keeps multi-cohort recorded-incident alerts and status checks well within Kusto memory and request limits without dropping conflict or completeness checks.
  • Cross-platform CLI and cancellation safety. Run the CLI entry point on an explicit 8 MiB worker stack so saved-report commands never overflow Windows's 1 MiB main-thread stack, and preserve strict unconfirmed-cancellation fencing across native providers.

Upgrade and preview note: Saved scans and collector/recovery namespaces use updated contracts; take a fresh scan and initialize a fresh collector namespace after upgrading. Automatic SQL Server recipes remain gated (Unqualified) pending upstream Tiberius attention-acknowledgement support and per-deployment load qualification; live customer ADX rollout remains opt-in and starts with zero replicas.

Culprit SQL Studiov0.5.6Permalien de version →

Culprit SQL Studio 0.5.6

Added

  • TLS settings for new and saved connections. Choose encryption and certificate verification when adding a connection or editing an existing one. Test the draft settings before saving; available options follow the database provider, and token authentication requires verified TLS.
  • Background collection (preview). Collect PostgreSQL and Azure SQL Database telemetry through the CLI, with a durable local outbox, unattended Azure identity authentication, private Azure Blob recovery and ADX delivery adapters. Source collection and analytical delivery have independent progress and retry handling.

Improvements

  • Broader telemetry coverage. Archive statement statistics, persistent blocking activity, health, replication, settings and schema evidence through the same native readers used by scans and Live. PostgreSQL counter polling and SQL-definition collection have separate cadences.
  • Shorter plan explanations. Dashboard and query summaries stay concise, with assessment details available separately.
  • More responsive coding-agent tools. MCP tools handle requests independently, so a slow operation does not hold up unrelated requests.

Fixes

  • Recovery and delivery. Preserve progress through restarts and recovery-index outages; keep recent captures discoverable while historical delivery catches up.
  • Measurement accuracy. Preserve large counters, native JSON, units, reset information and measurement scope. Peak memory remains distinct from average memory.
  • Collection safety. Bound native reads and retain ownership through cancellation. Unconfirmed database work blocks replacement requests. Updated dependencies include the rustix memory-safety fix.
  • Website publishing. Fixed provider documentation headings that prevented the website from building.

Preview status: Live ADX delivery and production-load qualification remain pending. Background collection is opt-in; deployment examples start with zero replicas.

Full Changelog: github.com/culpritsql/culprit-sql-studio/compare/v0.5.5...v0.5.6

Culprit SQL Studiov0.5.5Permalien de version →

Culprit SQL Studio 0.5.5

Improvements

  • Localization. German, Spanish and French throughout the app and CLI, including dates and numbers.
  • Lighter startup. Roughly two-thirds smaller UI entry bundle.
  • Index verification. Compare plans with hypothetical indexes before creating real ones.
  • UI improvements. Compact scan-error badge, better keyboard navigation and screen-reader support.
  • Broader validation. Automated live-provider, cluster and SSH/TLS tests, plus updated dependencies.

Fixes

  • SQL linting. Improved migration checks and quick fixes that preserve subsequent edits.
  • Editor reliability. Preserved tabs and undo history; closing a tab stops queued statements.
  • Language switching. Cached advice and other report text refresh correctly.
  • Stability and safety. Fixed Windows CLI crashes, plan-parser hangs and SQL-redaction edge cases.

Upgrade note: Take a fresh scan after upgrading; earlier saved scans and history use an unsupported format.

Culprit SQL Studiov0.5.4Permalien de version →

Culprit SQL Studio 0.5.4

Added

  • Remove connections from the app. Each connection card has a Remove button with an inline confirmation, so connections imported from Azure Data Studio, VS Code, DBeaver or DataGrip, discovered in the cloud or added by hand no longer need culprit conn rm. Removing forgets the connection, its keychain password and this device's scratch editor tabs, and leaves the connection if it was open. Its saved reports stay on disk.

Fixes

  • A removal finishes or leaves the connection as it was. When the keychain refused to delete a connection's password, as it does when you deny its prompt, the connection was already gone, the error said otherwise, and the password stayed behind. The password now goes first: a refusal keeps the connection, and removing it again works.
  • A reused name starts with its own history. A connection added, imported, discovered or renamed under the name of a removed one showed the removed connection's last scan on its card and when opened, until its own first scan. Those reports now move to reports/.removed/. A connection saved without a password also never reads one left in the keychain under its name, so another server's password can't be sent to it.

Full Changelog: github.com/culpritsql/culprit-sql-studio/compare/v0.5.3...v0.5.4

Culprit SQL Studiov0.5.3Permalien de version →

Culprit SQL Studio 0.5.3

Fixes

  • Scheduled digests know which lock escalations are new. On a real server, culprit digest --since couldn't match a scan to the previous digest when grading lock escalations, so each table stayed high or medium severity for as long as its average since SQL Server started stayed high, even after the escalations stopped. A table with no new escalations now reads "none since" and leaves the digest's problems on the next run, and a table with new ones says how many happened since the previous digest.
  • Escalations over a weekend stay visible. With the comparison working, a digest taken long after the previous one would have marked its new escalations as informational: Monday's after Friday's, on a two-day window. They now count as new however long the gap, because a digest's counts cover exactly the time since the previous one.
  • Digests compared with an earlier report. culprit digest --report … --since <report> had the same mismatch on real servers, which dropped its lock-escalation comparison and its pg_stat_statements eviction comparison. Both now work.

Full Changelog: github.com/culpritsql/culprit-sql-studio/compare/v0.5.2...v0.5.3

Culprit SQL Studiov0.5.2Permalien de version →

Culprit SQL Studio 0.5.2

Added

  • SSH jump hosts. Connect to private databases through a host or alias from your OpenSSH configuration. Add a route in the connection form or a saved connection's SSH settings, test it before saving, or use the CLI's --ssh, --ssh-port, --ssh-key and --no-ssh options. Culprit uses the system OpenSSH client, configured agent and already-trusted host keys; encrypted keys must be unlocked in the agent. The real database endpoint stays intact for TLS verification, AWS IAM, Microsoft Entra ID and cloud metrics.
  • Result value and row inspector. Double-click a cell, press Enter or choose Inspect to explore long text and JSON in a side panel. Switch between raw and formatted JSON, inspect a whole row, move between rows and copy complete values. Large values expand on request, and JSON formatting preserves large numbers, duplicate keys and escapes.
  • CSV and JSON file export. Export all loaded query-result rows across grid pages. CSV protects formula-like values when opened in spreadsheets; JSON preserves duplicate column names and native value types. Desktop files go to Downloads without overwriting existing files, and the browser demo downloads the same formats.
  • Data-tab filtering and sorting. Enter a WHERE expression or click a column header to cycle ascending, descending and unsorted reads. Previews request up to 1,000 rows, show at most 100 per grid page and use read-only sessions, execution deadlines and the result-size budget. Sorting uses the applied filter; unsent edits remain marked as drafts. Open in editor carries the current filter and ordering into SQL.
  • Editor tabs remembered per connection. Open tabs, unsaved SQL, saved-query links and the active tab survive restarts and connection switches. Renaming a connection carries its workspace along. Restoring tabs never executes their SQL or restores execution consent.

Fixes

  • Reliable preview cancellation. Leaving a table or Data tab, switching connections, reloading or closing a window retires its backend preview. Replacements wait for the retired request to release its slot. MySQL/MariaDB previews tolerate refused timeout settings and explicitly cancel their own tagged query when needed. Setup round-trips no longer consume the query's execution budget, and late server timeout replies no longer cause a false unconfirmed-cancellation warning.
  • Safer SSH routing and clearer connection feedback. Parallel database connections keep separate SSH diagnostics, half-closed streams drain their final response, and owned routes and processes are bounded and cleaned up. IPv6 destinations and literal identity-file paths are validated consistently. Loopback databases reached through SSH retain remote environment defaults; invalid advanced fields are revealed, and unchanged settings do not show a misleading success toast.
  • Resilient editor state. Opening SQL or a saved query does not duplicate tabs under development-mode remounts. Actions rejected at the tab limit are consumed once and cannot leak into another connection. Corrupt legacy state cannot block saving new workspaces; storage failures stay visible and preserve the last stored copy. Typing saves only changed SQL, and adding a tab updates its metadata and selection together.
  • Modal keyboard handling and long-text layout. Result inspection and SSH settings keep Escape and keyboard focus contained when controls disappear or become disabled. Inline SQL, identifiers and finding verification steps wrap within their panels. The SQLite demo uses its database file path correctly.

Full Changelog: github.com/culpritsql/culprit-sql-studio/compare/v0.5.1...v0.5.2

Culprit SQL Studiov0.5.1Permalien de version →

Culprit SQL Studio 0.5.1

Improvements

  • Connection setup. A searchable database picker replaces the provider button grid and shares a row with the connection string. Connection cards group database identity, endpoint, saved findings and settings more clearly.
  • Consistent provider branding. The app and website use bundled, transparent provider logos. Product identities come from the shared engine catalog, including products that share a provider.
  • Complete plan examples. The standalone Plans view derives its supported formats from the core catalog and offers captured sample comparisons for every supported database product. Coverage tests require formats and samples when a product is added.

Fixes

  • Scalable Azure and AWS discovery. Inventory is read in bounded cloud pages and retains at most 20 matching databases. Refined searches can reach later pages; incomplete searches explain their limits. CLI output reports whether more matches may exist, and bulk saving requires a complete search.
  • Responsive cloud searches. Editing search terms or regions, replacing a search, or closing its panel cancels obsolete native work and releases its search slot. Late responses and cancellations cannot overwrite or retire the current search.
  • Cloud CLI lookup from desktop launches. Azure and AWS executables are resolved from PATH and standard install locations on macOS, Linux and Windows, including Windows batch launchers. Only the child process's PATH is extended; shell startup files are not loaded.
  • Bounded cloud authentication and metrics. Azure token acquisition and Monitor reads now share discovery's 15-second subprocess deadline, closed stdin, output limits and process-tree cleanup. Local process failures bypass the unsupported-metrics fallback.

Full Changelog: github.com/culpritsql/culprit-sql-studio/compare/v0.5.0...v0.5.1

Culprit SQL Studiov0.5.0Permalien de version →

Culprit SQL Studio 0.5.0

Added

  • YugabyteDB support. A native YSQL/DocDB provider collects distributed statement counters, DIST plans, sharding and index metadata, retained plan history, sampled activity, unexpected terminations and shared node resources. Live views include native blocking, COPY and index-backfill progress. Hypothetical index testing uses isolated direct backends without creating real indexes. Node, role and retention scope remain explicit.
  • TimescaleDB support. The PostgreSQL provider detects the extension automatically and collects logical hypertable sizes, row estimates, managed chunks and compressed storage. Plans and index advice target the owning hypertable, use supported per-chunk build syntax and keep ordinary PostgreSQL tables separate from managed storage.

Fixes

  • Safer sharing and exports. YugabyteDB dollar-quoted literals, distributed node identifiers and role scope are redacted. Plan comparisons derive their summaries from redacted plans so parameter values cannot leak through comparison prose.
  • Reliable provider collection. Physical partition indexes retain their parent links, later lock rows cannot erase a known blocker, and active-session history uses the shared observation deadline. TimescaleDB collection preserves existing table metadata and tolerates objects disappearing during retention or concurrent schema changes.
  • Consistent engine advice. Planning labels, affected-row counts, wait sampling, session-reset guidance and index advice follow declared engine and product capabilities. MySQL and MariaDB keep their own version-specific index syntax; hypertable advice avoids unsupported concurrent DDL.
  • SQL highlighting. Punctuation remains visible when SQL text is highlighted.

Documentation

  • Engine parity now provides one comparison and a consistently structured guide for every supported provider, covering connection setup, permissions, workload and plans, live activity, schema and indexes, evidence limits and verified versions. The README and website use the same provider catalog.

Full Changelog: github.com/culpritsql/culprit-sql-studio/compare/v0.4.4...v0.5.0

Culprit SQL Studiov0.4.4Permalien de version →

Culprit SQL Studio 0.4.4

Fixes

  • Safer plan exports and updated dependencies. SQL Server native-plan redaction handles parsed XML attributes, including alternate attribute quoting and encoded values. Vulnerable TLS dependencies are updated, and unused ZIP extraction is removed.
  • Bounded queries and reliable cancellation. Queries and measured plans share a 30-second deadline across connection setup, validation and execution; observations and connection tests use 10 seconds after authentication. SQLite stops work when its deadline expires or its caller cancels, including time queued for a worker. Result grids retain at most 10,000 rows or 8 MiB of cell data, while network results are drained so a late database error is still reported.
  • Safer saved state and report selection. Saves are published atomically, concurrent local updates are serialized, and the newest-report pointer follows scan time. Large report reads, exports, comparisons and store updates run in bounded background workers so they cannot freeze the desktop or monopolize async runtime threads.
  • Bounded query-log ingestion. Large or growing logs are sampled within size limits, cut multiline records are discarded, and incomplete coverage is stated explicitly. Invalid or extreme duration values cannot produce infinite totals or variance.
  • Plan and MCP crash fixes. Malformed, oversized and excessively deep SQLite plan trees are rejected before building them. MCP tool calls keep engine operation state off the caller's stack, preventing a stack overflow while opening captured plans.
  • Current connection and window own their results. Late responses from a previous connection, time window or overlapping scan cannot replace the active report, clear its progress indicator or surface a stale error. Failed API initialization can be retried. Renaming a connection carries its active session and remembered window to the new alias and submits only once when Enter is followed by blur.

Performance

  • Lower saved-report memory use. Replay skips obsolete derived views, releases unused JSON early and shares identical retained snapshots and native plan text. Readers that need only a snapshot or comparison statistics avoid replaying the entire report.
  • Responsive large workloads. Query lists are paginated and query summaries are indexed. Editor linting releases its snapshot-cache lock before analysis, allowing other editor requests to proceed.

Full Changelog: github.com/culpritsql/culprit-sql-studio/compare/v0.4.3...v0.4.4

Culprit SQL Studiov0.4.3Permalien de version →

Culprit SQL Studio 0.4.3

Added

  • Multi-statement execution and multiple result panes in the SQL Editor. Clicking Run (⌘↵) on a script or selection containing multiple ;- or GO-separated statements now splits the script into individual statements (respecting single/double/backtick/bracket quotes, PostgreSQL dollar-quoting, and comments) and executes them sequentially in order. When a batch returns multiple row sets, the output pane renders stacked result grids with per-statement row counts, durations, and SQL snippets.

Fixes

  • Runnable lock-escalations Extended Events session script. Comments out the illustrative WHILE 1 = 1 batching loop template in lock-escalations findings so opening the script in the SQL Editor runs the CREATE EVENT SESSION + ALTER EVENT SESSION + SELECT statements immediately without syntax errors.
  • Smart Open in editor filtering and parameter substitution. Hides Open in editor on parameterized write statements (DELETE, UPDATE, INSERT, MERGE with @par0, $1, ?), queries with more than 10 unbound placeholders after plan parameter substitution, my.cnf INI snippets, standalone OPTION (...) query-hint fragments, unfinished <placeholder> / … templates, and DDL/maintenance statements on read-only SQLite connections. For SQL Server SELECT statements whose captured plan records compiled parameter values, Open in editor automatically substitutes the compiled values into the query.
  • SQL Server Plan Cache parameter declarations. Splits leading (@P1 int, …) parameter headers in sys.dm_exec_sql_text plan-cache entries into QueryStat.parameters and QueryStat.text (matching Query Store).

Full Changelog: github.com/culpritsql/culprit-sql-studio/compare/v0.4.2...v0.4.3

Culprit SQL Studiov0.4.2Permalien de version →

Culprit SQL Studio 0.4.2

Fixes

  • Timespan window baselines for cumulative counter findings (lock-escalations, hot-rows, operational-errors). Selecting any timespan window (1h, 6h, 24h, 7d, 30d, or a custom --window) now compares cumulative engine counters against the oldest compatible saved scan inside that window rather than only the immediately preceding scan. An intermediate scan taken a few hours ago with zero additional events no longer hides findings that occurred earlier within the selected window into History. When a pre-window scan from the same server uptime confirms that zero events occurred across the entire selected window, the finding is accurately placed in History.
  • Scheduled CI and Slack digest comparisons (culprit digest). Daily and periodic scheduled digests now compare across Query Store 1-hour interval boundary jitter and retention-capped workload windows (such as a 2-day Query Store cap under a 7-day request) instead of falling back to "No comparable previous digest". Undated since-startup lock escalations and counter findings with rates above 1/week stay in Needs attention on the first digest run or when no prior baseline exists, and ChecksumFailures page-corruption alerts are never suppressed by a zero counter delta.
  • Explicit --since digest baselines and legacy digest upgrades. Passing --since <scan-or-digest> to culprit digest always seeds counter baselines from the specified baseline, and pre-0.4.0 saved digests without identity/measurement envelopes upgrade cleanly for comparison.

Full Changelog: github.com/culpritsql/culprit-sql-studio/compare/v0.4.1...v0.4.2

Culprit SQL Studiov0.4.1Permalien de version →

Culprit SQL Studio 0.4.1

Fixes

  • DDL linter, auto-fix and editor quick fixes. Preserves trailing -- line comments when appending online DDL clauses (ALGORITHM=INPLACE, LOCK=NONE, WITH (ONLINE = ON)), handles PostgreSQL dollar-quoted strings ($$…$$, $tag$…$tag$), MySQL backtick identifiers, SQL Server bracketed identifiers and escaped quotes across multi-statement scripts, and deduplicates unindexed-fk index fixes. In the desktop SQL editor, applying a quick fix on an unindexed foreign key appends the new CREATE INDEX statement instead of replacing the ALTER TABLE statement.
  • CLI, SARIF and MCP lint-sql output. Multi-file culprit lint-sql runs aggregate cleanly across --format text, --format md, --format json and --format sarif with accurate 1-based file and statement spans (including statements with backtick-quoted identifiers). MCP lint_sql now includes summary, fix, fix_sql and verify inline on transient DDL findings, and plan_insights records its sql argument in the MCP audit log.
  • Schema drift and provider collectors. culprit drift now compares foreign-key ON DELETE rules (CASCADE vs NO ACTION), disabled/invalid indexes and index operator classes, and redacts literals inside partition bound expressions when exporting reports. SQLite catalog collection handles multiline index ON/WHERE clauses and word-bounded trigger events (UPDATE vs UPDATE OF col_name). PostgreSQL explain --with-index (HypoPG) strips -- line comments before creating virtual indexes.
  • Query-log ingestion (culprit-querylog). Fixes a slice boundary panic on short timestamp prefixes, recomputes observation window first/last bounds after filtering multi-database logs, and captures structured JSONL error events without durations.

Full Changelog: github.com/culpritsql/culprit-sql-studio/compare/v0.4.0...v0.4.1

Culprit SQL Studiov0.4.0Permalien de version →

Culprit SQL Studio 0.4.0

Added

  • Offline migration and DDL linter (culprit lint-sql, MCP lint_sql, SQL editor). Lint .sql migration files or whole migrations/ directories offline against a saved snapshot's table sizes, row counts, column types, indexes, constraints and active workload. Detects blocking CREATE INDEX, DROP INDEX and ALTER TABLE locks across PostgreSQL (CONCURRENTLY, NOT VALID), SQL Server (ONLINE = ON, WITH NOCHECK) and MySQL / MariaDB (ALGORITHM=INSTANT, ALGORITHM=INPLACE, LOCK=NONE), unindexed or type/collation-mismatched foreign keys, redundant indexes, table-rewriting column changes, and DROP or RENAME statements that break captured queries.
  • DDL auto-fix (--write and editor quick fixes). culprit lint-sql --file <path> --write rewrites fixable DDL statements in place across one or more files or directories. The desktop SQL editor highlights unsafe DDL inline with squiggly underlines, hover cards and one-click Quick fix / Apply all fixes actions.
  • SARIF 2.1.0 output for CI and GitHub Pull Requests (--format sarif). culprit lint-sql, culprit scan, culprit findings, culprit analyze and culprit drift emit SARIF 2.1.0 with stable rule ids and 1-based file/line locations for github/codeql-action/upload-sarif.
  • Virtual index verification (--with-index via PostgreSQL HypoPG). culprit explain --with-index "CREATE INDEX …" (and MCP explain with with_indexes) creates zero-cost hypothetical indexes in a rolled-back transaction when hypopg is available, plans the query against them, and reports whether the planner uses each proposed index and how much the estimated cost drops.
  • Application call-site attribution (file:line). Agent briefs (culprit show, MCP finding) extract application source file paths and line numbers from SQL comments (Marginalia, SqlCommenter, Rails Query Logs, and path/to/file.ext:line markers) and surface them alongside the SQL fix.
  • New checks and advisor guidance.
  • data-corruption: reports page checksum and read failures (pg_stat_database.checksum_failures, SQL Server msdb.dbo.suspect_pages, MySQL / MariaDB corruption counters).
  • Partitioning and time-series storage: detects overflowing DEFAULT partitions, expiring range partitions with no future child partition, and large append-only timestamp-ordered PostgreSQL tables where a BRIN index (USING brin) fits better than a B-tree.
  • Foreign keys, primary keys and vacuuming: escalates unindexed PostgreSQL foreign keys when parent tables have non-HOT updates, flags narrow 32-bit integer primary keys on large tables (narrow-pk), checks per-table disabled autovacuum (autovacuum_enabled = off) and large-table scale factors, checks foreign-key delete rules and collation mismatches, and checks SQLite PRAGMA foreign_keys = OFF.
  • Write amplification and connection health: reports PostgreSQL WAL buffers full, MySQL Innodb_buffer_pool_wait_free, and aborted connection handshakes.
  • Richer schema drift and query-log formats. culprit drift and timeline history now compare triggers, foreign keys (with ON DELETE rules), check constraints and redacted partition bounds. culprit-querylog auto-discovers .jsonl / .ndjson logs and parses OpenTelemetry JSON spans and structured logger envelopes (pino, bunyan, slog, zap, tracing, logrus).

Fixes

  • Broad index seeks and bitmap rechecks. filtered-scan, non-sargable and leading-wildcard now evaluate selective residual filters on broad Index Seek operators as well as full table scans. PostgreSQL Rows Removed by Index Recheck is included in rows_read even when no separate Filter is present.
  • Evidence provenance, database identity and cross-surface invariants. Saved reports record typed source outcomes, measurement clocks, database identity (including canonical file path and Unix inode), plan facts, finding facts and refinement decisions. Cross-surface invariant tests verify that Report findings, Dashboard tiles, Index Advisor, Plan Insights, Agent Briefs, Digests, HTML/Markdown exports and SARIF output agree without contradiction or unredacted literals.

Full Changelog: github.com/culpritsql/culprit-sql-studio/compare/v0.3.9...v0.4.0

Culprit SQL Studiov0.3.9Permalien de version →

Culprit SQL Studio 0.3.9

Added

  • Check coverage explains which checks had enough evidence, which were limited or unavailable, and what each provider cannot establish. Missing evidence no longer looks like a clean health result.
  • SQL Server reports current database log and filegroup capacity, log reuse reasons, shared tempdb allocation, and identity and sequence limits. Growth settings remain distinct from actual filesystem headroom.
  • PostgreSQL detects MultiXact age risks and near-limit sequences, and records archive failures, subscription errors and standby recovery cancellations with their own scope and reset dates.
  • MySQL and MariaDB report auto-increment limits and shared redo buffer waits. MariaDB also reports Galera node readiness; metadata blocking and replication-channel visibility are clearer.
  • SQLite reports per-index planner-statistics coverage, WAL file allocation, recognized structured SQL errors even without durations, and repeated statements within explicitly identified request groups. File allocation and repetition alone do not imply a fault.
  • Plan insights explain deep pagination and measured broad partition access. PostgreSQL trigger timings appear separately from operator timing.

Fixes

  • Findings, health, dashboards, CLI and agent output keep historical counters, shared measurements and selected-window comparisons distinct. Recent untimed application errors retain their own dates even when a linked successful execution is old.
  • Index advice respects unavailable schema evidence and distinguishes index visibility from write maintenance. Small or currently inexpensive queries retain structural scaling guidance.
  • Query rewrites preserve NULL behavior, filtering and result semantics. Generic plans state their parameter and runtime limits; unknown memory usage stays unknown.
  • Restricted PostgreSQL settings no longer abort a scan. Cleanup advice distinguishes catalog retention, application-row retention and ordinary recent writes; unresolved lock visibility is explicit rather than showing zero blocking.

Full Changelog: github.com/culpritsql/culprit-sql-studio/compare/v0.3.8...v0.3.9

Culprit SQL Studiov0.3.8Permalien de version →

Culprit SQL Studio 0.3.8

Fixes

  • Query activity keeps its measurement period. Older complete scan intervals are dated explicitly; recent observed calls stay separate from lifetime totals and are shown as lower bounds when entries were evicted, without inventing a daily rate, average or workload share.
  • Findings, plan insights and Index Advisor use the selected workload and current catalog consistently. Cheap or historical queries retain structural scaling concerns while executable index changes require supporting evidence; existing keys and unavailable definitions are accounted for.
  • Cross-table OR filters share the same rewrite guidance across views. Rewrites preserve permissions, joins, duplicate handling and NULL behavior, and branch selectivity is checked before suggesting an index. Locking reads and writes are excluded from read-only rewrite advice.
  • Upsert alternatives explain concurrency, isolation, retries and trigger requirements. Pool-reset advice preserves required session isolation, and historical outliers no longer justify changing logging for a fast replacement query. Small recorded I/O totals do not rule out historical storage delays or hidden trigger work.
  • PostgreSQL storage distinguishes database data timing from server-wide WAL timing, records each source's own reset, and labels WAL syncs as flushes. Execution time is no longer labeled as measured waiting, overlapping timing is excluded from exclusive shares, and plan counts distinguish current queries from all captured history.
  • SQLite virtual tables remain visible with their original DDL while module-owned storage stays out of schema recommendations. Missing modules preserve the remaining catalog, and index cleanup explains when it uses definitions without usage counters.
  • Long text evidence, including statistics names, uses readable full-width rows in finding details and exports.

Full Changelog: github.com/culpritsql/culprit-sql-studio/compare/v0.3.7...v0.3.8

Culprit SQL Studiov0.3.7Permalien de version →

Culprit SQL Studio 0.3.7

Fixes

  • Schema Columns and Indexes grids keep stable column widths, readable spacing and sticky headers. Long names truncate with their full value on hover, and index-position badges stay on one line.
  • Expanded index usage stays inside the detail pane, with SQL and operations on separate lines. Index notes span the row instead of squeezing into the name column.
  • Relations align their source, target and constraint details. Data preview controls wrap within the pane, and keyboard arrows scroll the focused grid without switching tables.
  • Short windows keep the workspace and table tabs visible, including when many findings are expanded. Large captured-query counts fit their column.

Full Changelog: github.com/culpritsql/culprit-sql-studio/compare/v0.3.6...v0.3.7

Culprit SQL Studiov0.3.6Permalien de version →

Culprit SQL Studio 0.3.6

Fixes

  • Findings distinguish needs attention, optional improvements, information and history. Opportunity counts, health colors, digests and exports use the same classification.
  • Lock counter comparisons respect the selected time window and distinguish new waits from undated history. Quiet intervals alone no longer verify a fix.
  • Query findings lead with measured time and its period. Index candidates need measured workload before offering creation SQL; saved plan statistics remain historical evidence.
  • Counter and batching advice preserves application updates, returned values and transaction requirements. Writes through simple CTEs name their underlying table when known.

Full Changelog: github.com/culpritsql/culprit-sql-studio/compare/v0.3.5...v0.3.6

Culprit SQL Studiov0.3.5Permalien de version →

Culprit SQL Studio 0.3.5

Fixes

  • Saved-file commands apply today's plan and health rules, matching scans opened by connection name.
  • PostgreSQL planner cost defaults no longer imply a tuning problem. Saved SQL Server statistics warnings describe compilation-time evidence and ask for current diagnostics before recommending a change.
  • Frequent calls no longer prove timer-based polling or a log flush per statement. Statistics maintenance and TOP updates name their real target; empty maintenance showplans no longer count as parser failures, and conditional SQL Server plans retain their own operators and measurements.
  • Findings state the cumulative period beside database-wide daily averages, keeping it distinct from query figures measured between Culprit's scans.
  • Plan-level warnings on SQL Server's own catalog no longer suggest application schema changes.

Full Changelog: github.com/culpritsql/culprit-sql-studio/compare/v0.3.4...v0.3.5

Culprit SQL Studiov0.3.4Permalien de version →

Culprit SQL Studio 0.3.4

Fixes

  • Small positive health measurements stay visible: CPU averages such as 0.02275% display as 0.02%, and positive measurements below 0.01% display as <0.01%. Health tiles, resource charts, cloud charts and CLI readings use the same precision; recorded zero and unavailable measurements remain distinct.

Full Changelog: github.com/culpritsql/culprit-sql-studio/compare/v0.3.3...v0.3.4

Culprit SQL Studiov0.3.3Permalien de version →

Culprit SQL Studio 0.3.3

Health reflects measured database activity and the selected period, with historical and shared counters clearly identified.

Fixes

  • Health shows measured database CPU use instead of grading the scheduling share of historical waits. Cache ratios, lifetime peaks, shared counters and normal version storage no longer imply current pressure on their own.
  • Health samples, dated deadlocks and cloud metrics follow the selected period where the source permits it, with limited or cumulative coverage stated explicitly. Sustained resource warnings require enough measured data.
  • Compilation counts and timings come from the selected database's Query Store. Retained compilation history is kept separate from runtime windows; unsupported prorated estimates in older scans are withdrawn.
  • Query, table, storage, replication and health indicators follow the same assessed findings. Brief queues, old shared averages, bulk reads, inactive bounded replication slots and transient idle transactions no longer receive independent alarming colors.

Full Changelog: github.com/culpritsql/culprit-sql-studio/compare/v0.3.2...v0.3.3

Culprit SQL Studiov0.3.2Permalien de version →

Culprit SQL Studio 0.3.2

Findings, fixes and plan explanations now use the same evidence across the desktop app, CLI, agent briefs and exports, including when a saved scan is opened again.

Fixes

  • Recent workload is measured consistently. When enough scans are available, rates, averages and shares on sources with running totals use what Culprit's own scans measured. Other figures name their counting period. Bursts, occasional jobs, statements that ran once and statements that stopped running are described and ranked for the work they actually did.
  • Plans keep their own measurements. A captured plan is compared with its own variant's runs, where available. Plans opened in the app retain the measurements from that scan when another scan, connection or workload window is opened, including side-by-side comparisons.
  • Estimates stay estimates. High page reads alone no longer imply a wrong row estimate or justify statistics, index or forced-plan changes. A residual filter asks for actual row counts and IO before choosing a fix. MySQL's sampled LIMIT values and fixed selectivity guesses no longer justify an index from grouped statement totals.
  • Index advice follows the evidence. Covering columns are preserved, newer requests on the same keys remain active, unique-key equality lookups do not demand a statistics refresh, and duplicate causes are merged. Statements that stopped running and tables that are gone get no new index of their own.
  • Fixes and verification agree. Agent briefs identify where each chosen change belongs: application code, a migration, maintenance or database settings. Diagnostic fixes gather evidence first. Verification compares new runs or counter increases after the change, and distinguishes fewer calls, cheaper runs, insert throughput and changes to stored data.
  • Engine-specific guidance is corrected. PostgreSQL JIT advice respects unknown settings and application overrides. MySQL and MariaDB temporary-table advice distinguishes session limits from shared memory, explains when application connections pick up changes, and does not promise a grouping index removes an aggregate sort. SQL Server planning advice recognizes explicit RECOMPILE hints, and merged lock findings retain each statement's own wait time.
  • SQLite index SQL works in the right schema. Generated CREATE INDEX statements qualify the index name, preserving quoted names, uniqueness, key order and partial filters. VACUUM guidance includes the temporary disk space it can need.
  • Exports handle unusual text safely. Database names cannot end comments in generated fix SQL, LIMIT values cannot bypass literal redaction, and non-ASCII text no longer causes a panic in text helpers. Number formatting agrees between Rust and the app.
  • The browser demo stays current. Saved demo findings, dashboards, index advice, plan insights and share exports are refreshed together with the analysis that produces them.

For developers

  • Golden readings and rules checked across every demo fixture cover findings, briefs, plan explanations and browser output, so an intended fix also checks what users read elsewhere.
  • Provider example executables have engine-specific names, fixing output-file collisions in Windows workspace builds. The demo setup commands use the new names.

Full Changelog: github.com/culpritsql/culprit-sql-studio/compare/v0.3.1...v0.3.2

Culprit SQL Studiov0.3.1Permalien de version →

Culprit SQL Studio 0.3.1

A new connection starts with the engine: pick it, then paste its connection string, or choose the file for SQLite.

New connection

  • The engine first. Pick SQL Server, PostgreSQL, MySQL / MariaDB or SQLite. The box that follows is that engine's, with its own example and the formats it reads; SQLite gets a path and Choose file… instead of a connection string. The engine you last connected with is picked next time.
  • Your pick settles what the text doesn't. A bare host:port/database on any port, or a .NET connection string such as MySQL's Server=…;Uid=…, is read as the engine you picked instead of guessed from the port. A text that names its engine, like a postgres:// URL or a .db path, switches the pick and says so. A connection string pasted before you pick anything picks its engine.
  • What was read, before you connect. The form shows the user, host, port and database it read, never the password, or that Azure SQL signs in with your az login. User and password fields appear only when the string has none. Enter connects and Escape cancels.
  • SQLite files get a name you'd choose: shop/db/production.sqlite3 becomes shop-production and Chinook.db becomes chinook, instead of the whole path.

Full Changelog: github.com/culpritsql/culprit-sql-studio/compare/v0.3.0...v0.3.1

Culprit SQL Studiov0.3.0Permalien de version →

Culprit SQL Studio 0.3.0

SQLite joins SQL Server, PostgreSQL, MySQL and MariaDB, as a preview. And every check, plan insight and dashboard tile was reviewed again for findings the statistics don't support: 122 reviewed, 87 fixed, each with a test.

SQLite (preview)

  • Point Culprit at a .db file. In the app, choose SQLite file… on a new connection. In the CLI, run culprit conn add app --url db/production.sqlite3; a path ending in .db, .sqlite, .sqlite3 or .db3 is enough. Nothing changes in your application: no extension, hook or driver.
  • Safe beside a running app. The file is opened read-only: no writes, and no lock beyond a read. Its one long read, the page sizes from dbstat, is bounded so the application's writers never wait on it: files up to 4 GB in WAL mode, 128 MB with a rollback journal. Row counts come from that read or from sqlite_stat1, never from COUNT(*).
  • Your framework's log is the query history. SQLite records no statements, so Culprit reads the log your framework already writes: Rails, Django, Entity Framework Core, Phoenix/Ecto, or JSON lines. It finds the log beside the database or in its log folder, and never pairs a database with another environment's log. It then ranks statement shapes by the time the log measured. You can also pick the log: Add query log in the app, culprit conn set <name> --query-log <file>, or --query-log <file> for one scan. Only statement shapes, with literals removed, reach the report.
  • What it finds: unindexed foreign keys, duplicate indexes, missing planner statistics (ANALYZE), and a large freelist (VACUUM). It also finds the indexes SQLite builds for itself on every run because none fits, with the CREATE INDEX that builds them once; the index advisor ranks them by the time of the statements that need them. The journal mode is shown but not judged, since only your application knows its concurrency.
  • Plans: EXPLAIN QUERY PLAN is drawn as a plan. Insights point out the indexes SQLite builds on every run and, for statements from your log, filters no index can use (a function around the column, a leading wildcard, NOT IN). SQLite's plans carry no row counts or costs, so scans and sorts are shown, not weighed. Paste the sqlite3 shell's output into Plans or culprit plan show.
  • What it can't show: SQLite keeps no usage counters, sessions or waits, so those views say why they're empty instead of showing zeros.

Fixes

  • Shares of time account for how long a plan was cached. On SQL Server without Query Store, each cached plan counts from its own compile. A plan cached for a month no longer looks like 90% of database time next to one compiled an hour ago.
  • Server-wide numbers aren't graded as your database's. The compile ratio, memory waits since startup, connection churn, a busy MySQL server's row-lock waits and other databases' logical replication consumers are reported as the server's, not graded against the database you scanned.
  • Severity needs an amount everywhere. JIT, missing histograms, WAL volume and read lock waits need about a minute a day, as other time-based findings do. Deadlocks are graded by how often they happen, a failing query needs ten unfinished runs a day for High, and an unstable query needs at least three slow runs.
  • Index advice only where an index can seek. No advice comes from an OR across columns, <>, two columns compared, arithmetic, or a cast such as created_at::date = $1. None names an optimizer-internal column (Opt_Bitmap1005, Expr1003). Neither MySQL's fixed 10% guess nor PostgreSQL's default selectivity counts as an estimate. A hash join that matches a tenth or more of the rows it reads gets none either, and pruned partitions and columnstores are skipped.
  • Session statements aren't your app's work. BEGIN, COMMIT, SET and a pool's SELECT 1 are no longer "the app is polling" or N+1 loops. A pool's DISCARD ALL is named as such, with the fix pointed at the pool.
  • Regressions need a real baseline. A plan regression needs a 20-run baseline and more CPU or reads per run, not just longer waits. A cold cache right after a restart is Low until a day has passed. Parameter sensitivity is graded on the slow calls' extra time, and SQL Server 2022's per-range plan variants aren't read as one plan reused.
  • How long counters have counted is read carefully. SQL Server index counters reset by AUTO_CLOSE, a restore or a failover are dated as such. PostgreSQL uses the earlier of its shared resets. MariaDB's user statistics count from when they started, so turning them on doesn't make every index "unused" at once. "Barely read" needs a week of counters, like "never read".
  • Maintenance advice that fits the cause. Dead rows a vacuum couldn't remove now blame what holds them back, not "vacuum it now". Stale statistics respect the table's own analyze trigger. Aurora, AlloyDB and Neon aren't told to raise max_wal_size, which their storage manages.
  • Fixes that hold where they run. MAXDOP on SQL Server 2014 and older uses the server option. Turning on the slow query log never raises long_query_time. shared_buffers advice needs a hit ratio under 95% and leaves the size to you. AlloyDB, Neon and Supabase get their own settings controls, and buffer pool advice no longer says "parameter group" on Azure or Google.
  • Plan insights read the plan more carefully. BitmapAnd, BitmapOr and BRIN bitmap scans aren't misestimates. A fixed ranking weight isn't shown as a share of the plan. Sorts are weighed by measured time, and a function in a seek key counts once per seek. NOT IN advice needs the statement to say NOT IN. A conversion "stops index use" only when SQL Server's seek warning says so.
  • Dashboard tiles agree with the checks. The deadlocks tile counts only this database's dated deadlocks. Database time is Watch only at a minute a day. Query Store 90% full under AUTO cleanup isn't a warning. Health drops grades from ratios minutes after a restart, lifetime totals and old peaks. Health squares show the worst first, then the healthy ones. Without query history, the indexes tile doesn't claim no new indexes are needed.
  • Findings rank by severity, then impact. A Low finding with a big share of a quiet database's time no longer tops Medium ones.

CLI

  • culprit sources lists what a scan reads on each engine, and which checks each source unlocks.
  • --query-log <file> on conn add, conn set and scan, for SQLite.

For developers

  • Sources: each provider declares what it reads in src/sources.rs and reads it through one rule: a failing source becomes a note and a locked capability, never a failed scan.
  • Checks: each check is a type in a file of its own, listed in its area's CHECKS. A test fails when a check is written but never listed.
  • One file per engine and per platform: EngineSpec, Dialect and Platform replace matching on names. A new query-log format is one module in culprit-querylog.
  • docs/ARCHITECTURE.md says why the code has this shape, measured against the alternatives.

Full Changelog: github.com/culpritsql/culprit-sql-studio/compare/v0.2.9...v0.3.0

Culprit SQL Studiov0.2.9Permalien de version →

Culprit SQL Studio 0.2.9

Safety

  • On PostgreSQL, Culprit's own reads can't be redirected. A scan's sessions now resolve names in the catalog only (search_path = pg_catalog, pg_temp), whatever search_path the database or a role sets, so a schema someone else controls can't stand in for a catalog view or function while Culprit reads statistics. Plans still use the database's own search_path, as the statement's author ran it.
  • Plans fetched on demand follow the same rule as a scan. Opening a query's plan from a report (in the app, with culprit explain --query-id, or through the agent tools) and showing a live session's plan now plan, for a login with more than pg_monitor, only the login's own copy of a statement; another role's is refused with the reason and how to get it.
  • "More than pg_monitor" is read more carefully: both the role a login acts as and the one it logged in as (a role setting can make them differ; a login acting as a shared role calls no statement its own), owning the database, and EXECUTE on functions neither PUBLIC nor pg_monitor can run (such as pg_read_file granted on its own). An extension's functions count as trusted only when a superuser or the login owns the extension. Before PostgreSQL 14, with pg_stat_statements.track = all, such a login plans nothing: statements other roles' functions ran on its behalf are recorded as its own.

Fixes

  • PostgreSQL 12–15 recover from an interrupted plan: a prepared statement left behind by a failed plan no longer stops every plan after it.

Full Changelog: github.com/culpritsql/culprit-sql-studio/compare/v0.2.8...v0.2.9

Culprit SQL Studiov0.2.8Permalien de version →

Culprit SQL Studio 0.2.8

Every check, plan insight and collector was reviewed for findings the statistics don't support. Findings are fewer, quieter on quiet databases, and each says only what the scan measured.

Fixes

  • A report is about the database you scanned. Deadlocks, the transaction holding up cleanup, plan-cache statements and pending memory grants come from this database only, never from another tenant's on the same server or pool. Signals the server keeps for all its databases (InnoDB's history length, Azure's shared compile and login counters) are said to be the server's and aren't graded as this database's.
  • Severity needs an amount, not just a share. Every finding about query time (heavy queries, regressions, parameter sensitivity, spills, plan warnings and insights, SQL Server's tuning advice) needs about a minute of database time a day for Medium and ten for High, so a query that takes 40% of a quiet database's time, seconds a day, is Low. A regression that began this morning is rated over the hours since, not diluted by the week before. A chatty statement is Medium only at 60K round trips a day. Quiet databases now show mostly Low findings.
  • Parameter sensitivity is found when several fast plans share the calls. A statement whose sub-millisecond plans together carry most calls, beside a slow plan still in use, is reported even when no single plan has half of them or an older slow plan has stopped; forcing a plan is offered only when one serves most calls on its own.
  • "Never read" needs a week of counters. Unused, overlapping and over-indexed findings and the index advisor's clean-ups wait until the usage counters have counted a week, and the advisor says why its list is empty until then.
  • No daily rates from a few minutes of data. A threshold on a rate needs an hour of history, and "a day" needs 20 hours, unless the count is already past the daily bar. Pressure counted since the server started (THREADPOOL, row-lock waits, connection peaks) is a total with "since" wording, at most Medium.
  • Index advice the database agrees with. Widening an index keeps it UNIQUE, keeps its filter, key order and ONLINE, and is never offered for a primary key or a clustered index. A disabled or invalid index is brought back rather than built twice. PostgreSQL partitions are judged at their parent, and an index with another operator class (text_pattern_ops) isn't a duplicate. An index is suggested only where a scan keeps at most a tenth of the rows it reads.
  • Plans tell the story of the plan in use. A regression needs the slow plan to have replaced the fast one. Plans used side by side are parameter sensitivity, and SQL Server's own recommendation to force a plan is folded into that query's finding. Estimates are compared per run, and never for an operator that didn't run or that stopped early under a LIMIT/TOP. A plan insight is more than Low only when the plan does real work.
  • Settings advice holds where it runs. On RDS, Aurora, Azure and Cloud SQL the fix names the platform's control instead of ALTER SYSTEM or SET GLOBAL, and no suggestion lowers a setting below today's value.
  • MySQL and MariaDB writes are writes. A busy single-row INSERT is a row-by-row write, not a poll that finds nothing. Rows changed are counted apart from rows sent, and index writes at the table.
  • PostgreSQL counts each statement once, even when several roles run it, and after a statistics reset it reads row counts from the planner until the next vacuum or analyze. How long its counters have counted comes from PostgreSQL itself (the last reset, or when it last discarded statistics after a crash or restore), never from the server's start time, so an index isn't "never read in a week" days after a crash.
  • MySQL's possible keys are matched by their columns. In a join, an index counts for a filtered column when it leads with it, by the catalog, not when its name happens to contain the column's.
  • Replicas and standbys aren't reported as lagging or broken when they're only idle or delayed on purpose. A configured apply delay isn't lag, and a quiet primary's standby is caught up.

Safety

  • Planning never lends your privileges. To estimate a statement, PostgreSQL's planner runs the functions it reaches with the privileges of whoever plans it. Culprit now makes every plan in a read-only transaction that is rolled back. A login with more than pg_monitor (a superuser, an RDS master user, an Azure admin) plans only the statements it ran itself, and none while functions or operators written by other roles are in reach; the scan says what it left out and how to get those plans: a login with only pg_monitor and SELECT on the tables plans them all.

For developers

  • The analysis is a pipeline: prepare, detect, refine, rank. Checks, prepare steps and refine rules all plug in from outside without forking, and every provider records what its sources could read in one Coverage. docs/ARCHITECTURE.md maps the code and lists the evidence rules a check must follow.

Full Changelog: github.com/culpritsql/culprit-sql-studio/compare/v0.2.7...v0.2.8

Culprit SQL Studiov0.2.7Permalien de version →

Culprit SQL Studio 0.2.7

Fixes

  • A conversion the query writes isn't a type mismatch. SQL Server warns about every CONVERT that may sway a plan, including ones in a select list (CONVERT(varchar(36), id)). Culprit read those as an application sending the wrong parameter type and advised switching to varchar. Now only a column SQL Server converts implicitly, to compare it with a value of another type, is a mismatch: in findings, in the plan's insights and in its warnings. One rule, shared by all three.
  • A statement that ran once isn't a pattern. On every engine, findings that rest only on statements that ran once in the window (an export, a backfill, a query someone ran by hand) are Low, rank low and say so first, with "re-scan later" as the first step. One run is no longer called "stopped running, likely changed by a deploy", and the index advisor doesn't suggest an index for it.
  • No index advice where an index can't help. When a heavy query's time goes to a scan whose filter keeps more than a tenth of the rows, the advice is to read fewer rows or columns, not to add an index: the same bar the index advisor, filtered scans and plan insights use.
  • "Ran once", not "ran 1 times".

Full Changelog: github.com/culpritsql/culprit-sql-studio/compare/v0.2.6...v0.2.7

Culprit SQL Studiov0.2.6Permalien de version →

Culprit SQL Studio 0.2.6

App

  • Screenshot the view you're looking at. The camera at the right end of the top bar (or Screenshot this view in ⌘K) copies the workspace as a PNG, ready to paste into a chat or a pull request: the top bar and the view, never the sidebar with your connection names. The window takes the picture itself, so it is exactly what's on screen, scroll positions and theme included, at the screen's full resolution. Nothing is saved to disk. macOS for now.

Full Changelog: github.com/culpritsql/culprit-sql-studio/compare/v0.2.5...v0.2.6

Culprit SQL Studiov0.2.5Permalien de version →

Culprit SQL Studio 0.2.5

Findings

  • Tables whose rows are mostly large values are found on their own. A table of 256 MB or more whose rows average 16 KB or more, most of it in pages kept apart from the rows (SQL Server's LOB pages, PostgreSQL's TOAST), is a large-rows finding: how big, how many rows, how much of it is large values, and the columns that can hold them, from the catalog without reading any data. It's raised when statements read or write whole rows thousands of times a day (they're listed), when the table grows fast since the previous scan (how much a day), and at 10 GB. The fix says what usually helps: read only the columns a statement needs, keep values many rows repeat in one place, clear values a row no longer needs, check how long deleted rows are kept, and compress what must stay.
  • The schema view shows a table's average row and how much of it is large values.

Fixes

  • Row counts on SQL Server without VIEW DATABASE STATE are no longer multiplied for tables with large-value columns. The catalog-only read counted each table's rows once per kind of page it has (in-row, LOB, row-overflow), so such a table showed up to three times its rows.

Full Changelog: github.com/culpritsql/culprit-sql-studio/compare/v0.2.4...v0.2.5

Culprit SQL Studiov0.2.4Permalien de version →

Culprit SQL Studio 0.2.4

Fixes

  • Lock escalations say whether they're new. SQL Server counts them from when it started and keeps no time for each, so a count from last week read like today's. Each scan now compares with the scan before it, and a scheduled digest with the digest before: escalations since then are High and say how many and since when; a count that hasn't grown is Low and says these are history, none since the previous scan. Without an earlier scan the finding stays High and says when the count began. The fix adds an Extended Events session that keeps the next escalation with its statement, which SQL Server doesn't record otherwise.
  • SQL you run from Culprit no longer shows up as your application's workload. Culprit now marks every statement you run, measure or change from the CLI or the app's SQL editor as its own, the way it marks the statements it reads statistics with, so Query Store's copy of them stays out of Top queries and Queries; what you wrote and what you get back are unchanged.
  • Missing-index findings name the queries that asked for them, and when an existing filtered index would serve them if the query used its literal (is_deleted = 0 rather than a parameter), say so instead of suggesting a new index. When it would serve them only in part, what's left is an index filtered the same way, never one keyed on the filter's column.
  • Rebuilding a filtered index to include more columns keeps its filter, and is suggested only for queries that ask for the rows it holds. The suggested DROP_EXISTING statement left out its WHERE, which would have turned it into an index on every row; queries that don't fit the filter, or that Culprit can't show, now get an index of their own.

Full Changelog: github.com/culpritsql/culprit-sql-studio/compare/v0.2.3...v0.2.4

Culprit SQL Studiov0.2.3Permalien de version →

Culprit SQL Studio 0.2.3

Fixes

  • On Azure SQL Database, Health no longer turns red over another database's load. Page life expectancy, batch requests and the plans-compiled ratio come from the performance counters of the server process behind the database, which an elastic pool shares among all its databases. They're now labelled "(whole server)" and shown for context only. The database's own figures from Azure take their place, graded: its storage I/O against its tier's limit over the last hour (with the peak), and its memory in use.
  • Page life expectancy says what it means: how long a page stays in memory once read. Five minutes or more is healthy; under a minute means pages leave memory soon after they're read, often because of large scans.

Full Changelog: github.com/culpritsql/culprit-sql-studio/compare/v0.2.2...v0.2.3

Culprit SQL Studiov0.2.2Permalien de version →

Culprit SQL Studio 0.2.2

Fixes

  • A scan of a filtered index is no longer called a read of the whole table. A queue polled through an index filtered to its pending rows scans that index, which is usually nearly empty, but the plan reports the whole table's size alongside it, so the filtered-scan and forced-plan checks reported a full read of the table, as High. They now count the rows such a scan reads. Any other scan is still taken at the table's size, so a scan under a TOP that the optimizer expects to stop early is still caught.

Full Changelog: github.com/culpritsql/culprit-sql-studio/compare/v0.2.1...v0.2.2

Culprit SQL Studiov0.2.1Permalien de version →

Culprit SQL Studio 0.2.1

Digest

  • culprit digest lists the queries that used the most database time over the window, five by default (--top-queries N, 0 leaves them out): what each does, its statement on one line with literal values redacted, the tables it names, its share of database time, runs and average time, and the findings about it.
  • The index advisor's plan is in the digest: indexes to create (table, keys, includes, why, and the CREATE statement) and to drop or fold into another (unused, duplicate, overlapping, with size and why), Azure SQL's own recommendations included, capped by --top with totals for each.
  • Deadlocks are in the digest, grouped by pattern on the same tables: how many, the latest, how many since the previous digest, the two statements, the lock modes and the fix. When they can't be read, the digest says why instead of reporting none.
  • A scan reads deadlocks over its whole window, a day at least, so a two-day scan reports two days of them.

Fixes

  • Microsoft Entra ID sign-in shows one code, once. Opening a connection asks for a token from several places at once (the report, the dashboard, live polling); each started its own device-code sign-in, so the code on screen kept changing while you typed it, and the sign-ins left waiting held their requests for up to 15 minutes. They now share one sign-in and its token. A sign-in that fails or that you cancel isn't reopened by polling for a minute; az login still works straight away.

Full Changelog: github.com/culpritsql/culprit-sql-studio/compare/v0.2.0...v0.2.1

Culprit SQL Studiov0.2.0Permalien de version →

Culprit SQL Studio 0.2.0

Updates itself

  • The desktop app keeps itself up to date. Once a day, in the background and never at start-up's expense, it checks for a newer release and offers it at the bottom of the sidebar. It downloads the update, verifies its signature against the key built into the app, installs it, and restarts into it when you choose. The command palette checks on demand and turns the daily check off.
  • culprit update updates the CLI to the latest release, checking the download against the release's SHA-256 sums. culprit update --check --json tells an agent whether a newer release is out. The CLI never checks on its own: an agent that runs culprit scan doesn't trigger a network call it didn't ask for.
  • Releases ship signed update packages for macOS, Windows (the installer), and Linux (the AppImage and the Debian package, each updating itself), plus the bare CLI binaries.

0.1.8 and earlier don't have the updater: install 0.2.0 once by hand, and later releases arrive by themselves.

Full Changelog: github.com/culpritsql/culprit-sql-studio/compare/v0.1.8...v0.2.0

Culprit SQL Studiov0.1.8Permalien de version →

Culprit SQL Studio 0.1.8

Findings that match what the database says

  • Lock escalations have their own check, and every escalation is High. Escalation attempts, which SQL Server logs on its own even on idle tables, no longer raise findings.
  • Unused indexes account for their age. An index that may be less than a week old isn't called unused, overlapping or cleanable, and the schema view says it may be new instead of "never read".
  • Automatic tuning reads as it is. Plan corrections SQL Server already applied (Verifying, Success) no longer show as suggestions. Forced plans are listed (forced automatically or by hand, since when, and whether the query still runs) with the SQL to unforce them, and a forced plan that scans a large table an index could seek is its own finding.
  • Azure SQL Database's index recommendations show up, create and drop, with Azure's score and script, merged into the matching missing-index finding.
  • Deadlocks on Azure SQL Database: culprit deadlocks reads the database's deadlock telemetry, which a database user can read.

Windows in hours

  • --window 6h, 90m, 2d or 1d12h on scan, dashboard and waits. The app's window picker adds Last hour and Last 6 hours.
  • The headline keeps the window you asked for, and says when Query Store's hourly intervals make it cover more.

App

  • Plan insights copy as Markdown, all at once from the Insights header or one at a time, with the statement, the fix and how to verify it: ready for a pull request or a coding agent.

Full Changelog: github.com/culpritsql/culprit-sql-studio/compare/v0.1.7...v0.1.8