소스 정보
- 저장소
- Dev-Toolbelt/dev-team-agents
- 최근 소스 활동
- 2026년 5월 11일 16:18
- 감지된 SKILL.md 언어
- 영어
- 스타
- 4
- 포크
- 0
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/Dev-Toolbelt/dev-team-agents --skill postgres명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SKILL.md 표시 중
| name | postgres |
| description | PostgreSQL — MVCC, indexes, partitioning, JSONB, query tuning. |
Load when the project uses PostgreSQL (signal: pg, psycopg2, postgres: in docker-compose, DATABASE_URL with postgres://, prisma with postgresql provider).
psql "$DATABASE_URL"
# or with individual vars:
PGPASSWORD="$DB_PASSWORD" psql -h "$DB_HOST" -p "${DB_PORT:-5432}" -U "$DB_USER" -d "$DB_NAME"
# Supabase local dev:
psql "postgresql://postgres:postgres@localhost:54322/postgres"
Key inspection commands:
psql -c "\d+ table_name" # table structure + storage info
psql -c "EXPLAIN (ANALYZE, BUFFERS) SELECT ..."
psql -c "SELECT * FROM pg_stat_user_tables ORDER BY n_dead_tup DESC;"
psql -c "SELECT * FROM pg_stat_activity WHERE state = 'active';"
| Isolation level | Default | Prevents |
|---|---|---|
| Read Committed | ✅ PostgreSQL default | Dirty reads |
| Repeatable Read | — | Non-repeatable reads |
| Serializable | — | Phantom reads |
VACUUMSELECT relname, n_dead_tup FROM pg_stat_user_tables ORDER BY n_dead_tup DESC| Type | Use when |
|---|---|
| B-tree (default) | Equality and range queries on orderable types |
| GIN | Full-text search; JSONB containment (@>); array overlap |
| GiST | Geometric types; range types; nearest-neighbour |
| BRIN | Append-only large tables with sequential correlation (e.g., time series) |
| Hash | Equality-only; rarely preferred over B-tree |
| Partial | Index a subset of rows: CREATE INDEX ON orders(user_id) WHERE status = 'active' |
jsonb (binary storage, indexable, operators) over json (text storage, preserved order)jsonb: CREATE INDEX ON table USING GIN (col) for @> and ? operators| Type | Best for |
|---|---|
| Range | Time series (partition by month/year) |
| List | Enum-like values (region, status) |
| Hash | Even distribution without natural range |
Use pg_partman for automated range partition creation. Always include the partition key in queries to enable partition pruning.
WITH MATERIALIZED (>= 12) or NOT MATERIALIZEDEXPLAIN (ANALYZE, BUFFERS) is mandatory before merging slow queriesSeq Scan on large tables, Rows Removed by Filter, high Buffers hit/read ratio| Gotcha | Fix |
|---|---|
LIKE '%term%' can't use B-tree | Use pg_trgm extension + GIN index |
OFFSET n scans all preceding rows | Use keyset pagination: WHERE id > :last_id |
COUNT(*) is expensive on large tables | Use pg_stat_user_tables.n_live_tup for estimates |
CURRENT_TIMESTAMP vs NOW() | Same within a transaction; clock_timestamp() changes mid-transaction |
| UUID as PK causes index fragmentation | Use gen_random_uuid() (UUIDv4) or UUIDv7 for sequential behaviour |
| Extension | Purpose |
|---|---|
pg_trgm | Trigram similarity for fuzzy search and LIKE index |
pgcrypto | gen_random_uuid(), encryption functions |
uuid-ossp | Alternative UUID generation |
pg_stat_statements | Track slow query statistics |
timescaledb | Time-series optimizations |
PostGIS | Spatial data and geospatial queries |
SOC 직업 분류 기준