Supabase Postgres Best Practices

supabase-community/supabase-plugin/skills/supabase-postgres-best-practices

作者 supabase-communityf3f332e0164c34a8392772811737fda0cb972d06MIT31 個星標收錄於 2026年10月9日更新於 2026年10月9日儲存庫10 天前更新

Postgres best practices maintained by Supabase, for Postgres running anywhere. Load this skill BEFORE writing or changing anything that lives in a Postgres database: creating or altering tables and columns (including choosing column types), schema design, migrations and declarative schema files, RLS policies and the tests that verify them, indexes, triggers, database functions, queues and scheduled jobs (pg_cron, pgmq), vector/semantic search (pgvector), and restoring dumps (pg_restore) or importing data. Also load it when diagnosing slow queries, high CPU, timeouts, EXPLAIN plans, connection exhaustion, locking, bloat, or rows visible to the wrong user or tenant. This is not just a performance guide — schema, migration, security, and SQL authoring tasks need these rules too, even for a one-column change or a single query.

僅公開檔案列表。將技能安裝到工作區後即可檢視檔案內容。

路徑大小類型
CHANGELOG.md5.6 KBtext/markdown
references/advanced-full-text-search.md1.4 KBtext/markdown
references/advanced-jsonb-indexing.md1.4 KBtext/markdown
references/conn-idle-timeout.md1.3 KBtext/markdown
references/conn-limits.md1.3 KBtext/markdown
references/conn-pooling.md1.3 KBtext/markdown
references/conn-prepared-statements.md1.5 KBtext/markdown
references/_contributing.md4 KBtext/markdown
references/data-batch-inserts.md1.3 KBtext/markdown
references/data-n-plus-one.md1.3 KBtext/markdown
references/data-pagination.md1.3 KBtext/markdown
references/data-upsert.md1.4 KBtext/markdown
references/lock-advisory.md1.5 KBtext/markdown
references/lock-deadlock-prevention.md1.8 KBtext/markdown
references/lock-short-transactions.md1.3 KBtext/markdown
references/lock-skip-locked.md1.3 KBtext/markdown
references/monitor-explain-analyze.md1.4 KBtext/markdown
references/monitor-pg-stat-statements.md1.4 KBtext/markdown
references/monitor-vacuum-analyze.md1.5 KBtext/markdown
references/query-composite-indexes.md1.4 KBtext/markdown
references/query-covering-indexes.md1.3 KBtext/markdown
references/query-index-types.md1.5 KBtext/markdown
references/query-missing-indexes.md1.2 KBtext/markdown
references/query-partial-indexes.md1.3 KBtext/markdown
references/schema-constraints.md1.8 KBtext/markdown
references/schema-data-types.md1.4 KBtext/markdown
references/schema-foreign-key-indexes.md1.6 KBtext/markdown
references/schema-lowercase-identifiers.md1.7 KBtext/markdown
references/schema-partitioning.md1.5 KBtext/markdown
references/schema-primary-keys.md1.8 KBtext/markdown
references/_sections.md1.6 KBtext/markdown
references/security-privileges.md1.5 KBtext/markdown
references/security-rls-basics.md1.3 KBtext/markdown
references/security-rls-performance.md2.1 KBtext/markdown
references/_template.md1 KBtext/markdown
SKILL.md3.2 KBtext/markdown

來源與署名

來源:supabase-community/supabase-plugin位於skills/supabase-postgres-best-practices提交f3f332e

授權條款: MIT

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架