postgresql

Design PostgreSQL schemas and tune performance for OLTP and analytics workloads.

Updated Jan 26, 2026
One-click install
npx skills add https://github.com/simplerick0/com.ackhax.configs --skill postgresql-simplerick0
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: postgresql
Source: https://github.com/simplerick0/com.ackhax.configs/tree/main/skills/database/postgresql
Command: npx skills add https://github.com/simplerick0/com.ackhax.configs --skill postgresql-simplerick0

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

PostgreSQL schema design and performance tuning for data-driven applications.

Core Features & Use Cases

  • Schema design best practices for relational and JSONB data
  • Performance tuning: indexing, partitioning, query optimization
  • Use Case: Build scalable OLTP and analytics workloads with JSONB and advanced indexing

Quick Start

  • Install PostgreSQL client and server, connect with psql, and begin modeling with recommended patterns
  • Create a sample schema incorporating JSONB, partitioning, and appropriate indexes

Frequently Asked Questions about postgresql

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I design a PostgreSQL schema with JSONB columns for scalable OLTP workloads?

PostgreSQL schema design with JSONB combines relational structures and flexible document storage to support scalable OLTP workloads. You model JSONB columns alongside relational tables using recommended patterns to balance query performance and data flexibility.

What is the best way to optimize PostgreSQL query performance using advanced indexing strategies?

PostgreSQL query performance tuning uses advanced indexing strategies like partial, expression, and GIN indexes to accelerate data retrieval. You apply these indexes based on specific query patterns and workload characteristics to minimize execution latency.

When do I need table partitioning in PostgreSQL for analytics workloads?

PostgreSQL table partitioning is needed for analytics workloads managing large datasets by dividing tables into smaller physical segments. You implement partitioning to improve query throughput and simplify maintenance on high-volume analytical tables.

Can I use PostgreSQL for both transactional and analytics workloads in data-driven applications?

PostgreSQL supports both OLTP and analytics workloads in data-driven applications through combined schema design and performance tuning. You configure partitioning and advanced indexing patterns to handle concurrent transactions and analytical queries efficiently.

How does PostgreSQL JSONB data modeling compare to traditional relational schema design?

PostgreSQL JSONB data modeling offers schema flexibility for semi-structured data, whereas traditional relational design enforces strict data integrity. You blend both approaches using concrete patterns to optimize storage and query performance based on application requirements.