PostgreSQL database patterns for query optimization, schema design, indexing, and security. Based on Supabase best practices.
73
60%
Does it follow best practices?
Impact
96%
1.12xAverage score across 3 eval scenarios
Passed
No known issues
Optimize this skill with Tessl
npx tessl skill review --optimize ./docs/ja-JP/skills/postgres-patterns/SKILL.mdSchema design with correct data types and indexes
bigint IDs
100%
100%
text for strings
0%
100%
timestamptz for timestamps
100%
100%
numeric for money
100%
100%
boolean for flags
100%
100%
Composite index equality-first
100%
100%
Covering index INCLUDE
0%
0%
Partial index WHERE clause
100%
100%
Cursor pagination pattern
100%
100%
No OFFSET usage
100%
100%
Job queue processing and JSONB/full-text indexing
GIN index for JSONB
100%
100%
GIN index for full-text
100%
100%
BRIN index for timestamp
100%
100%
FOR UPDATE SKIP LOCKED
100%
100%
RETURNING clause
100%
100%
UPSERT ON CONFLICT
100%
100%
EXCLUDED reference
100%
100%
No SELECT then INSERT anti-pattern
100%
100%
RLS optimization, security hardening, and monitoring setup
RLS SELECT auth.uid() wrap
100%
100%
RLS USING clause
100%
100%
max_connections = 100
0%
100%
work_mem = 8MB
0%
100%
idle_in_transaction_session_timeout
100%
100%
statement_timeout
100%
100%
pg_stat_statements extension
100%
100%
REVOKE public schema
53%
100%
pg_reload_conf
100%
100%
ALTER SYSTEM used
100%
100%
5df943e
Table of Contents
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.