Postgres에서 컬럼을 삭제하면 실제로 무슨 일이 일어나는가
------------------------------
- PostgreSQL에서 *컬럼을 DROP 해도 실제로 데이터는 삭제되지 않음* — 단지 메타데이터에서 * "숨김 처리"* 됨
- *DROP COLUMN 후에도 내부적으로 컬럼은 존재* 하기 때문에, *1600개 컬럼 제한* 에 도달할 수 있음
- 데이터를 완전히 제거하려면 *VACUUM FULL
또는 수동 테이블 재작성* 이 필요함
- …
------------------------------
https://news.hada.io/topic?id=20520&utm_source=googlechat&utm_medium=bot&utm_campaign=1834
If you have a fediverse account, you can quote this note from your own instance. Search https://sns.lemondouble.com/notes/a6zpyamo3t on your instance and quote it. (Note that quoting is not supported in Mastodon.)