IT 기술/Database

PostgreSQL 15 Release!!

ㅇㅔ ㄷㅡ 2022. 10. 30. 23:38

오랫만에 들른 PostgreSQL 홈페이지 첫 화면에서 15 버전이 정식 배포되었다는것을 알게 되었다.

Release note : https://www.postgresql.org/about/news/postgresql-15-released-2526/

 

PostgreSQL 15 Released!

**October 13, 2022** - The PostgreSQL Global Development Group today announced the release of [PostgreSQL 15](https://www.postgresql.org/docs/15/release-15.html), the latest version of …

www.postgresql.org

WAL file 압축, Window function 성능 향상, json format의 로그 지원 등등 여러가지가 설명되어 있는데, 내 시선을 강탈한건 바로 "MERGE 구문 지원"

PostgreSQL 15 includes the SQL standard MERGE command. MERGE lets you write conditional SQL statements that can include INSERT, UPDATE, and DELETE actions within a single statement.

 

 Oracle로 DBA 생활을 시작해서인지 PostgreSQL에서는 merge 구문을 지원하지 않는 점이 참 아쉬웠었다. 그동안 PostgreSQL에서는 with 구문을 이용해서 insert와 update를 한번에 처리했었지만, 이제 다른 선택지가 생겼으니 잘 돌아가는지 테스트 해봐야겠다. 곧 테스트할 시간이 생기겠지... 지금은 안돼... 힘들다.

 

https://www.postgresql.org/docs/15/sql-merge.html

 

MERGE

MERGE MERGE — conditionally insert, update, or delete rows of a table Synopsis [ WITH with_query [, ...] ] MERGE …

www.postgresql.org