# PostgreSQL 14에 추가된 Multiranges 컨셉 및 주요 기능

> Clean Markdown view of GeekNews topic #6371. Use the original source for factual precision when an external source URL is present.

## Metadata

- GeekNews HTML: [https://news.hada.io/topic?id=6371](https://news.hada.io/topic?id=6371)
- GeekNews Markdown: [https://news.hada.io/topic/6371.md](https://news.hada.io/topic/6371.md)
- Type: news
- Author: [xguru](https://news.hada.io/@xguru)
- Published: 2022-04-15T09:34:01+09:00
- Updated: 2022-04-15T09:34:01+09:00
- Original source: [cybertec-postgresql.com](https://www.cybertec-postgresql.com/en/multiranges-in-postgresql-14/)
- Points: 8
- Comments: 3

## Topic Body

- 기존 Range Type을 멀티로 설정 가능   
  - int4multirange(int4range(10, 20), int4range(40, 50))  
- 데이터 타입처럼 사용가능하며, 다른 값처럼 테이블에 저장 가능   
- Range는 "무한(infinity)" 개념 지원  
- Range 간에 기본 연산식으로 계산 가능   
- range_agg 함수로 즉석에서 range들을 Aggregation

## Comments



### Comment 9673

- Author: japansea
- Created: 2022-04-15T12:12:51+09:00
- Points: 1

mysql을 오래써서 그런지 pgsql은 커맨드 명령어가 익숙해지지 않네요. 많이 써봐야겠죠.  
지금은 timescaledb를 현업에서 쓰고 있어요.

### Comment 9677

- Author: eastsea
- Created: 2022-04-15T16:20:37+09:00
- Points: 2
- Parent comment: 9673
- Depth: 1

japansea님

### Comment 9679

- Author: japansea
- Created: 2022-04-15T18:57:52+09:00
- Points: 1
- Parent comment: 9677
- Depth: 2

네???
