Fading Coder

One Final Commit for the Last Sprint

Installing and Configuring PostgreSQL 15 with Streaming Replication on Rocky Linux 9

1. Enable EPEL and CRB Repositories dnf config-manager --set-enabled crb dnf -y install epel-release epel-next-release If the command dnf config-manager is not found, run: dnf install 'dnf-command(config-manager)' -y 2. Install PostgreSQL 15 dnf module -y install postgresql:15 3. Initialize the Data...

Building a Vector Extension for PostgreSQL

Vector databases have surged in popularity, especially with the rise of AI and semantic search applications. Rather than building a database from scratch, we can extend an existing, robust system like PostgreSQL. Thanks to its well-documented extension API and strong ecosystem—exemplified by project...

Understanding Divergent String Sort Orders in PostgreSQL

PostgreSQL comparison and sorting behavior for text data depends on the collation setting. Running an ORDER BY on the same column can yield different sequences when the underlying collation changes. The example below demonstrates the phenomenon using a simple table containing letters and a leading-s...

Greenplum Cluster Operations and Maintenance Guide

Starting the Cluster gpstart -a # bring the entire cluster online gpstop -r # restart after configuration changes that require reboot gpstop -u # reload config files without stopping services Master-only Maintenance Mode gpstart -m # start master in utility mode PGOPTIONS='-c gp_session_role=utility...

Installing PostgreSQL 12 with PostGIS on Rocky Linux 9

Enable the CRB and EPEL repositories, then add the official PostgreSQL YUM repositroy: dnf install 'dnf-command(config-manager)' -y dnf config-manager --set-enabled crb dnf install -y epel-release dnf install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-9-x86_64/pgdg-redhat-repo-late...

Practical PostgreSQL Operations and Solutions

tk.mybatis Pagination Control // Set maximum results for query // Append SQL clause directly as shown below // Note SQL keyword order for similar requirements Example queryExample = new Example(Entity.class); queryExample.setOrderByClause("driver_code ASC LIMIT " + maxResults); PostgreSQL...

Strategies for Efficient Date and Time Processing in PostgreSQL

Choosing the Right Temporal Data Types Efficient handling of time-related data begins with selecting the appropriate column types. PostgreSQL supports several distinct types, including timestamp, timestamptz, date, and time. The timestamp type stores both date and time without time zone information,...

Automating Real-Time Data Monitoring and Anomaly Detection in PostgreSQL

Real-time data monitoring and automated anomaly detection are essential for maintaining data quality and security in today's data-driven operasions. In PostgreSQL, a combination of built-in tools, extensions, and user-defined logic enables these capabilities efficiently. Below, we explore practical...

Managing and Resolving Data Type Conversion Failures in PostgreSQL

PostgreSQL is known for its strict type system. Unlike some database that perform aggressive implicit type coercion, PostgreSQL often requires explicit instructions when transforming data from one format to another. Failing to handle these transitions correctly results in runtime exceptions that can...

Managing Data Archiving, Recovery, and Access Control in PostgreSQL

Accumulated historical data degrades database performance and consumes significant storage. Archiving relocates infrequently accessed records to external mediums, maintaining optimal query speeds for active datasets while preserving data for compliance or analytical requirements. Data Archiving Tech...