postgres-patterns
PostgreSQL database patterns for query optimization, schema design, indexing, and security. Based on Supabase best practices.
Target: Databases. Automatically collected · unverified.
Excerpt from the author’s documentation
Extracted from a fixed version of SKILL.md in its original language. This is the author’s documentation; installation, compatibility and runtime results have not been verified by this site.
Read the original Japanese text
Topics in the source
- PostgreSQL パターン
- 起動タイミング
- クイックリファレンス
- インデックスチートシート
- データタイプクイックリファレンス
- 一般的なパターン
- アンチパターン検出
- 設定テンプレート
PostgreSQLベストプラクティスのクイックリファレンス。詳細なガイダンスについては、database-reviewer エージェントを使用してください。 SQLクエリまたはマイグレーションの作成時 データベーススキーマの設計時 低速クエリのトラブルシューティング時 Row Level Securityの実装時 コネクションプーリングの設定時 | クエリパターン | インデックスタイプ | 例 | |--------------|------------|---------| | WHERE col = value | B-tree(デフォルト) | CREATE INDEX idx ON t (col) | | WHERE col > value | B-tree | CREATE INDEX idx ON t (col) | | WHERE a = x AND b > y | 複合 | CREATE INDEX idx ON t (a, b) | | WHERE jsonb @> '{}' | GIN | CREATE INDEX idx ON t USING gin (col) | | WHERE tsv @@ query | GIN | CREATE INDEX idx ON t USING gin (col) | | 時系列範囲 | BRIN | CREATE INDEX idx ON t USING brin (col) | | 用途 | 正しいタイプ | 避けるべき | |----------|-------------|-------| | ID | bigint | int、ランダムUUID | | 文字列 | text | varchar(255) | | タイムスタンプ | timestamptz | timestamp | | 金額 | numeric(10,2) | float | | フラグ | boolean | varchar、int | 複合インデックスの順序: カバリングインデックス: 部分インデックス: RLSポリシー(最適化): UPSERT: カーソルページネーション: キュー処理: Agent: database-reviewer - 完全なデータベースレビューワークフロー Skill: clickhouse-io - ClickHouse分析パターン Skill: backend-patterns - APIとバックエンドパターン -- Supabase Agent Skills)(MITライセンス)に基づく
- Source repository
- affaan-m/ECC
- Source file
- docs/ja-JP/skills/postgres-patterns/SKILL.md
- Fixed revision
- d2ef2680594f9a17526a6e1a2e18b3d242c5d17b
Sources and evidence
This record was collected automatically. Its documentation, suitability and runtime behavior have not been manually verified.
Author: affaan-m/ECC · original repository metadata. Documentation review: Not reviewed. Last source check: 2026-11-09T14:01:49.539Z.
Categories are inferred from names, descriptions and paths. They do not establish compatibility.
License and attribution
MIT. Third-party content and copyright remain with their authors. Refer to the original license and terms.
Original license ↗Synchronization, copying and user-reported success do not mark a resource as runtime-tested.
Limitations and notes
- Collecting metadata does not mean this site has installed, adapted, runtime-tested or security-reviewed the resource.