Postgres Best Practices

tarafından Supabase

Supabase'den Postgres performans optimizasyonu ve en iyi uygulamalar. Postgres sorguları, şema tasarımları veya veritabanı konfigürasyonları yazarken, gözden geçirirken veya optimize ederken bu beceriyi kullanın.

npx skills add https://github.com/supabase/agent-skills --skill supabase-postgres-best-practices

Supabase Postgres Best Practices

Comprehensive performance optimization guide for Postgres, maintained by Supabase. Contains rules across 8 categories, prioritized by impact to guide automated query optimization and schema design.

When to Apply

Reference these guidelines when:

  • Writing SQL queries or designing schemas
  • Implementing indexes or query optimization
  • Reviewing database performance issues
  • Configuring connection pooling or scaling
  • Optimizing for Postgres-specific features
  • Working with Row-Level Security (RLS)

Rule Categories by Priority

PriorityCategoryImpactPrefix
1Query PerformanceCRITICALquery-
2Connection ManagementCRITICALconn-
3Security & RLSCRITICALsecurity-
4Schema DesignHIGHschema-
5Concurrency & LockingMEDIUM-HIGHlock-
6Data Access PatternsMEDIUMdata-
7Monitoring & DiagnosticsLOW-MEDIUMmonitor-
8Advanced FeaturesLOWadvanced-

How to Use

Read individual rule files for detailed explanations and SQL examples:

references/query-missing-indexes.md
references/query-partial-indexes.md
references/_sections.md

Each rule file contains:

  • Brief explanation of why it matters
  • Incorrect SQL example with explanation
  • Correct SQL example with explanation
  • Optional EXPLAIN output or metrics
  • Additional context and references
  • Supabase-specific notes (when applicable)

References

İlgili Skills

web-design-guidelines
sentry
Web Arayüzü Kılavuzlarına uygunluk için UI kodunu inceleyin. "UI'ımı gözden geçir", "erişilebilirliği kontrol et", "tasarım denetimi yap", "UX'i incele" veya "sitemi kontrol et" dendiğinde kullanın…
official
configs-variations
launchdarkly
Yapılandırmaları varyasyonlar oluşturup yöneterek deneyin. Farklı modelleri, istemleri ve parametreleri test ederek en iyi sonucu bulmanıza yardımcı olur…
official
triaging-issues
medusajs
Triages GitHub issues for the Medusa repository. Use when a GitHub issue is opened or receives a new comment. Categorizes the issue, validates it, and emits a…
official
planning-voice-agent-user-interviews
posthog
PostHog'un AI ses ajanı ("robot görüşmeci") tarafından yürütülen bir tur kullanıcı görüşmesi planlayın — otomatik ses ajanı görüşme ürünü. Bir... yakalar.
official
browser-use-terminal
browser-use
Doğrudan tarayıcı kontrolü, Browser Use Terminal CLI aracılığıyla. Kullanıcı web sayfalarını otomatikleştirmek, kazımak, test etmek veya etkileşimde bulunmak istediğinde kullanın — tarayıcıyı siz yönlendirirsiniz…
official
omniverse-realtime-viewer
nvidia
Omniverse Realtime Viewer USD uygulama istekleri ve odaklanmış görüntüleyici referans belgeleri için üst düzey yönlendirici olarak kullanın.
official
examples-auto-run
openai
Python örneklerini otomatik modda, günlükleme, yeniden çalıştırma yardımcıları ve arka plan kontrolü ile çalıştırın.
official
pr-to-go-linter
github
Birleştirilmiş veya açık bir PR deseninden yeni bir pkg/linters analizörü oluşturur.
official