# Postgres

> แนวทางการใช้งาน PostgreSQL ซึ่งเป็น world's most advanced open source relational database system

- Skill: `newkub/postgres` (Agent Skill, multi-file: 19 files)
- Install (CLI): `npx skillmds@latest add newkub/postgres`
- Raw SKILL.md: https://api.skillmd.com/api/skills/newkub/postgres/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: newkub (https://skillmd.com/u/newkub)
- Updated: 2026-09-10
- Page: https://skillmd.com/skills/newkub/postgres

---

## Goal

ใช้งาน PostgreSQL สำหรับ relational database


## Scope

ใช้สำหรับ relational database ที่ powerful, ACID transactions, complex queries, extensions (PostGIS, pgvector, ฯลฯ), และ data integrity และ reliability


## Execute

- เชื่อมต่อ database
- สร้าง database
- สร้าง table
- Insert data
- อ่าน `guide/installation.md` สำหรับการติดตั้งและ setup
- อ่าน `guide/quick-start.md` สำหรับเริ่มต้นใช้งาน
- อ่าน `guide/key-concept.md` สำหรับแนวคิดหลัก
- อ่าน `guide/how-it-works.md` สำหรับวิธีการทำงาน
- อ่าน `guide/features.md` สำหรับ features ที่มี
- อ่าน `guide/patterns.md` สำหรับ patterns ทั่วไป
- อ่าน `guide/best-practices.md` สำหรับ best practices
- อ่าน `guide/integration.md` สำหรับ tool integration
- อ่าน `guide/architecture.md` สำหรับ system architecture
- อ่าน `guide/structure.md` สำหรับ project structure
- อ่าน `guide/troubleshooting.md` สำหรับปัญหาทั่วไป


## Rules

- ใช้ `psql` สำหรับ command-line interface
- ใช้ SQL สำหรับ queries
- ใช้ transactions สำหรับ ACID compliance
- ใช้ extensions สำหรับ extend functionality
- ใช้ backticks สำหรับ commands, SQL keywords
- ใช้ code blocks สำหรับ examples
- ใช้ ansi markdown diagrams สำหรับ flow และ architecture


## Expected Outcome

- Database ที่ configured อย่างถูกต้อง
- Queries ที่ optimized
- Data integrity ที่ maintained
- Extensions ที่ integrated อย่างเหมาะสม

