Varto
Хочете будувати кар’єру в Data Science та AI? Vodafone Big Data Lab відкриває новий набір —>

"Swiss Army Knife" for PostgreSQL: Ukrainian developer releases open source tool for database analysis

A Ukrainian developer with over 10 years of experience in fintech has created and made public pg_reports, a comprehensive solution for monitoring and analyzing PostgreSQL databases. The tool will be especially useful for Ruby developers, but it also works great as a standalone solution.

Leave a comment
Add to Google
"Swiss Army Knife" for PostgreSQL: Ukrainian developer releases open source tool for database analysis
A Ukrainian developer with over 10 years of experience in fintech has created and made public pg_reports, a comprehensive solution for monitoring and analyzing PostgreSQL databases. The tool will be especially useful for Ruby developers, but it also works great as a standalone solution.

“I worked in fintech for over 10 years, specifically with payment systems and cryptocurrencies. I was recently laid off. Many years ago, my colleagues and I started compiling SQL scripts, mostly based on pg_stat_statements, to see the main problems of a highly loaded system in a single dashboard. In my opinion, this is one of the best tools in the world for database analysis in both development and production environments,” the developer under the nickname ElAvat said on Reddit.

In addition, the repository contains a rich database of materials in English and Ukrainian, dedicated to the intricacies of working with PostgreSQL. Both the tool itself and the built-in scripts will be a real find and a source of valuable knowledge for any backend developer, the author of the project believes.

The pg_reports library, which comes as a Ruby gem, offers a full-featured control panel (web dashboard in a dark theme) for in-depth PostgreSQL diagnostics. It is designed for both Ruby on Rails integration and standalone execution.

Key features of the tool

  • Standalone and embedded modes: can be mounted inside a Rails application or run as a separate server (pg_reports server) to diagnose any PostgreSQL database without the need for the framework itself.
  • Multi-database monitoring: automatically discovers all databases on the cluster and allows you to switch between them in one click.
  • Deep query and index analysis: using pg_stat_statements, it detects slow and "heavy" queries, duplicate, missing, or incorrect indexes, and automatically generates Rails migrations to remove unused indexes.
  • Intelligent EXPLAIN ANALYZE analyzer: analyzes the query execution plan, highlights "bottlenecks" in the code, detects sequential scans of large tables, dumping sorts to disk, and provides specific optimization recommendations.
  • Built-in SQL console and real-time monitor: includes a secure editor for selections (SELECT only) with timeout and query limit protection, as well as a tool for online SQL query interception with the ability to jump to a specific line of code in the IDE (VS Code, Cursor, RubyMine).
  • Integration with artificial intelligence and Telegram: allows you to upload ready-made prompts with problem context to Claude Code, Cursor or Codex, send reports to Telegram and export metrics to Grafana / Prometheus.

The project is released under the MIT Open License. The source code and installation instructions are available in the GitHub repository and the RubyGems service. The developer is currently continuing to improve the tool and plans to soon release Docker containers for even easier launch.

Ukrainian company Zibra AI launches ZibraXYZ: technology for Physics AI that compresses data by 30 times without the need for decompression
Ukrainian company Zibra AI launches ZibraXYZ: technology for Physics AI that compresses data by 30 times without the need for decompression
On the topic
Ukrainian company Zibra AI launches ZibraXYZ: technology for Physics AI that compresses data by 30 times without the need for decompression
Read the country's main IT news in our Telegram
Read the country's main IT news in our Telegram
On the topic
Read the country's main IT news in our Telegram

Have important news to share? Message our Telegram bot

Key events and useful links in our Telegram channel

Discussion
No comments yet.