유틸리티 쓰니 text로 생성하고

기존에 다른 사람이 생성한걸 보니 character varying으로 많이 해놔서 타입을 보니.

 

text = varchar (무제한)

char = char (고정 길이)

varchar = character varying (길이 제한)

 

타입자체가 성능에 영향을 미치지는 않는다는데.. 어느게 나으려나 고민할 필요도 없는건가..

Different from other database systems, in PostgreSQL, there is no performance difference among three character types. In most situation, you should use text or varchar, and varchar(n) if you want PostgreSQL to check for the length limit.

[링크 : http://www.postgresqltutorial.com/postgresql-char-varchar-text/]

[링크 : https://codeday.me/ko/qa/20190305/2011.html]

 

 

'프로그램 사용 > postgreSQL' 카테고리의 다른 글

postgres sequence - auto increment  (0) 2019.08.13
postgresql 변수 타입  (0) 2019.08.12
postgresql - 테이블 형상 보기  (0) 2019.08.08
psql 테이블 목록보기  (0) 2019.08.08
pgfutter  (0) 2019.08.06
Posted by 구차니