David Cao

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.

Understanding Logical Replication in PostgreSQL

Logical replication is an advanced feature in PostgreSQL that allows the replication of database changes at a logical level, meaning it replicates the changes made to data rather than replicating the physical data itself. Introduced in PostgreSQL 10, logical replication…

Understanding the ANALYZE Command in PostgreSQL

The ANALYZE command in PostgreSQL is used to collect statistics about the contents of tables and indexes. These statistics are essential for the query planner to generate efficient query execution plans, improving the overall performance of database queries. By gathering…

Understanding the SET Command in PostgreSQL

The SET command in PostgreSQL is used to configure session-level parameters. Unlike global configuration changes, which affect the entire PostgreSQL server and require administrative access, the SET command allows users to modify settings that are valid only for the current…

SET vs ALTER in PostgreSQL

In PostgreSQL, SET and ALTER are two SQL commands that can be used to modify configuration settings, but they differ in their scope, persistence, and use cases. SET Command The SET command is used to temporarily change a configuration parameter…

How to Update PostgreSQL Server Configurations Without Downtime

Introduction Updating PostgreSQL server configurations is a critical part of database administration. While the simplest method to update configurations is by modifying the postgresql.conf file and restarting the server, this approach can cause downtime, which is especially problematic in high-availability…