Check the column size in PostgreSQL

곽태욱·2023년 2월 5일
0

https://stackoverflow.com/questions/18316893/how-to-estimate-the-size-of-one-column-in-a-postgres-table

SELECT
    pg_size_pretty(sum(pg_column_size(컬럼이름))) as total_size,
    pg_size_pretty(avg(pg_column_size(컬럼이름))) as average_size
FROM 테이블이름;
profile
이유와 방법을 알려주는 메모장 겸 블로그. 블로그 내용에 대한 토의나 질문은 언제나 환영합니다.

0개의 댓글