PostgreSQL - Empty table

后端 未结 2 1592
傲寒
傲寒 2021-02-19 10:47

I have a table called EVENTS on my PostgreSQL DB schema.
It is empty, i.e. when I execute

SELECT * FROM EVENTS

I get an empty results set.<

2条回答
  •  感动是毒
    2021-02-19 11:13

    If you have dead rows or bloat in your table, VACUUM will not actually reclaim its memory but make it reusable and this is used when you insert data to the table next time.

    To reclaim the memory used, try

    VACUUM FULL events;

提交回复
热议问题