Skip to Content

David Cao

David is a Cloud & DevOps Enthusiast. He has years of experience as a Linux engineer. He had working experience in AMD, EMC. He likes Linux, Python, bash, and more. He is a technical blogger and a Software Engineer. He enjoys sharing his learning and contributing to open-source.

Determining whether a table is actively used or has become obsolete is an important task in database management. PostgreSQL offers various techniques to assess table usage, helping administrators optimize resources and identify potential candidates for archival or removal. Real-time Monitoring with pg_stat_user_tables The pg_stat_user_tables system view is a valuable resource for monitoring table activity in …

Read More about How to Check Table Usage in PostgreSQL: Methods for Monitoring Activity

Effectively monitoring running queries in a PostgreSQL database is essential for maintaining performance and ensuring smooth operations. In this article, we will explore various techniques and tools available to check the status of your queries, gain valuable insights into their execution, and troubleshoot any potential performance issues. Leveraging the pg_stat_activity View The pg_stat_activity system view …

Read More about How to Check Running Queries in PostgreSQL

In PostgreSQL, query blocking occurs when one query is waiting for a resource held by another query, resulting in performance bottlenecks. This article explores techniques for identifying active or blocked queries in PostgreSQL and pinpointing the source of the block. By following the methods outlined below, you can effectively troubleshoot and resolve query blocks to …

Read More about How to Identify and Resolve Blocked Queries in PostgreSQL

Slow queries can have a significant impact on the performance of your PostgreSQL database and, consequently, on the user experience of your application. This comprehensive guide will walk you through the process of diagnosing and resolving slow query performance issues using various PostgreSQL tools and techniques. By the end, you’ll be equipped with practical strategies …

Read More about Troubleshooting Slow Queries in PostgreSQL: A Step-by-Step Guide

PostgreSQL is known for its powerful query processing capabilities, but sometimes even the most efficient queries can run slowly if not properly optimized. Understanding how PostgreSQL executes queries is key to troubleshooting and improving database performance. In this article, we’ll dive into how you can use the EXPLAIN and EXPLAIN ANALYZE commands to gain insights …

Read More about How EXPLAIN and EXPLAIN ANALYZE Improve PostgreSQL Performance – Understanding PostgreSQL Execution Plans

PostgreSQL is renowned for its robustness, scalability, and flexibility, making it one of the most powerful relational database management systems available today. However, like any complex software, even the best PostgreSQL setups can encounter performance issues, slow queries, or unexpected failures. Whether you’re managing a mission-critical application or a high-traffic web service, understanding how to …

Read More about The Ultimate PostgreSQL Troubleshooting Guide: Performance, Queries, and Logs

PostgreSQL’s Write-Ahead Logging (WAL) system plays a crucial role in ensuring data integrity and enabling features like replication and point-in-time recovery. However, WAL files can sometimes fail to be deleted, leading to excessive disk space consumption. In this article, we will explore three common reasons why WAL files might not be deleted in PostgreSQL and …

Read More about 3 Reasons Why PostgreSQL WAL Files Are Not Deleted

Ever wondered how companies like Instagram and Reddit manage millions of data points seamlessly? Behind many successful applications lies PostgreSQL, the open-source database powerhouse that’s been quietly shaping the digital world for over 30 years. Unlike your everyday spreadsheet, PostgreSQL  is like having a highly organized librarian who not only stores your data but ensures …

Read More about Getting Started with PostgreSQL: A Beginner’s Guide to Database Management

NetworkManager Tools NetworkManager is a system service in Linux distributions that manages network devices and connections. Here are some tools you can use to control NetworkManager and refresh the network interface configuration: nmcli: This is a command-line tool for interacting with NetworkManager. You can use it to control connections, devices, and other networking aspects. To …

Read More about Restarting a Network Interface in RHEL 9

This article provides a comprehensive guide on renaming network interfaces in Red Hat Enterprise Linux (RHEL), focusing on the differences between the traditional ifcfg format and the newer keyfile format for NetworkManager connection profiles. Understanding RHEL’s Network Interface Naming Traditionally, Linux kernels assigned interface names like eth0, eth1, etc., based on the order of detection …

Read More about How to Rename a Network Interface in Linux