C.W.K.
Stream
Lesson 10 of 10 · published

PostgreSQL 최신 따라가기

~12 min · operations, learning

Level 0스키마 새싹
0 XP0/86 lessons0/10 achievements
0/120 XP to next level120 XP to go0% complete

매년 메이저 한 개

PostgreSQL 이 매년 9 월 새 메이저 ship. 각각이 실질적 기능 추가 + 성능 향상. 업그레이드를 무서운 이벤트 아니라 스케줄된 유지보수로 다뤄: 대부분 무사고, 문서 thorough, regression 리스크가 최신 유지 이익 대비 작음.

매 릴리스 봐야 할 거

  • 릴리스 노트 (postgresql.org/about/news/) — 5 분 잘 쓴 거.
  • Postgres Weekly 뉴스레터 — curated 하이라이트.
  • Crunchy Data 와 Cybertec 블로그 — 새 기능 deep dive.
  • PGCon, PGConf.EU, PGConf.NYC 톡 — architect 가 자기 작업 설명.

커뮤니티가 비밀 무기

Postgres 커뮤니티가 소프트웨어에서 가장 친절한 것 중 하나. pgsql-general 메일링 리스트, Discord, Slack — 다 환영. Planner 코드 읽기 누구에게나 열림. Patch 제출 누구에게나 열림. 너가 쓰는 JSONB 설계한 같은 사람들이 메일링 리스트의 질문에 답.

구체적 습관 하나

지난 두 메이저에 추가된 기능 하나 골라 사용. uuidv7(). MERGE. CREATE TABLE ... PARTITION BY HASH. Virtual generated 컬럼. 기능들이 만져야만 위협적이지 않게 됨.

Code

버전별 새 기능 (하이라이트)·text
PG 14 (2021): libpq pipelining, multirange 타입, JSON subscript, range aggregate
PG 15 (2022): MERGE, public schema lockdown, JSON_TABLE, regex_count
PG 16 (2023): standby 에서 logical replication, parallel hash full join, SQL/JSON
PG 17 (2024): 증분 백업, MERGE ... RETURNING, SQL/JSON constructor
PG 18 (2025): uuidv7(), virtual generated 컬럼, libpq 의 OAuth
업그레이드 시 마이그레이션 노트 항상 체크·bash
# 메이저 버전 릴리스 노트 읽기 — breaking change
# https://www.postgresql.org/docs/release/

# In-place 업그레이드엔 pg_upgrade (빠름)
pg_upgrade -b /usr/lib/postgresql/16/bin -B /usr/lib/postgresql/17/bin \
           -d /var/lib/postgresql/16/main -D /var/lib/postgresql/17/main

# 또는 cross-version 깨끗함 위해 pg_dump + restore (느림, 단순)
pg_dump --format=custom mydb > mydb.dump
# 새 PG 설치, 복원
pg_restore -d mydb mydb.dump

External links

Exercise

PG 16-18 에서 한 번도 안 쓴 기능 하나 골라. 사용하는 작은 예제 작성. 프로젝트 어디서 기존 패턴 (extension, ORM hack, 앱측 계산) 대체 가능한지 결정.

Progress

Progress is local-only — sign in to sync across devices.
이 페이지에서 버그를 발견하셨거나 피드백이 있으세요?문제 신고

댓글 0

🔔 답글 알림 (로그인 필요)
로그인댓글을 남기려면 로그인해 주세요.

아직 댓글이 없어요. 첫 댓글을 남겨보세요.