Database tutorial - IT technology blog

pg_cron: Schedule PostgreSQL Tasks Inside the Database Without OS Cron

pg_cron is a PostgreSQL extension that schedules SQL jobs — VACUUM, data archiving, threshold notifications — directly inside the database as a background worker. No external cron, no credential sprawl, no silent failures. This guide covers installation, three real-world use cases, and the practices that keep pg_cron solid in production.
Database tutorial - IT technology blog

PostgreSQL Encryption at Rest: Protecting Sensitive Data with pgcrypto and Column-level Encryption

At 2 AM, database credentials leak far more often than hard drives get stolen — yet most teams rely on full-disk encryption and call it done. This guide walks through the four PostgreSQL encryption approaches, their real-world trade-offs, and a concrete implementation of column-level encryption using pgcrypto to protect sensitive fields even when someone has a valid database session.