postgres-best-practices

Apply PostgreSQL performance best practices to Supabase-based deployments.

1|Updated Jun 10, 2025
One-click install
npx skills add https://github.com/Columbia-Cloudworks-LLC/EquipQR --skill postgres-best-practices-columbia-cloudworks-llc
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: postgres-best-practices
Source: https://github.com/Columbia-Cloudworks-LLC/EquipQR/tree/main/.github/skills/postgres-best-practices
Command: npx skills add https://github.com/Columbia-Cloudworks-LLC/EquipQR --skill postgres-best-practices-columbia-cloudworks-llc

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

EquipQR's Postgres deployments often face performance and security challenges across multi-tenant apps. This skill provides a consolidated, Supabase-aligned guide of best practices for queries, indexes, RLS, and schema design that can be applied in migrations and day-to-day SQL work.

Core Features & Use Cases

  • Comprehensive guidance across query performance, connection management, RLS, schema design, and concurrency.
  • Practical examples for migrations, role permissions, indexing strategies, and partitioning tailored to EquipQR.
  • RLS with performance-aware patterns and safety checks for multi-tenant data.

Quick Start

Review a migration or SQL change, and implement recommended indexing, RLS, and partitioning patterns to improve performance and security.

Frequently Asked Questions about postgres-best-practices

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

FAQPage Schema
How do I optimize PostgreSQL query performance in a multi-tenant Supabase deployment?▼

PostgreSQL query performance in multi-tenant Supabase deployments is optimized by applying targeted indexing strategies, partitioning, and performance-aware data access patterns during migrations and day-to-day SQL work.

What are the best practices for writing RLS policies in PostgreSQL without hurting performance?▼

Writing RLS policies without hurting PostgreSQL performance requires using performance-aware patterns and safety checks to ensure secure, efficient data access in multi-tenant environments.

Does this PostgreSQL best practices guide cover schema design and connection management?▼

This PostgreSQL best practices guide covers schema design, connection management, concurrency, role permissions, and monitoring tailored for Supabase-based Postgres deployments.

What's the best way to structure PostgreSQL indexes for multi-tenant applications?▼

The best way to structure PostgreSQL indexes for multi-tenant applications is to align indexing strategies with your specific schema design and data access patterns to improve overall query performance.

When should I use partitioning instead of standard indexing in PostgreSQL?▼

You should use partitioning instead of standard indexing in PostgreSQL when managing large datasets that require improved query performance and concurrency, guided by schema design best practices.