Re: Determine potential change in table size after a column dropped?

Поиск
Список
Период
Сортировка
Искать
От
David G. Johnston
Тема
Re: Determine potential change in table size after a column dropped?
Дата
Msg-id
CAKFQuwYRadodYVeoK3e1oZ8q=rRVCxDT89HVMADt87HDXK8YWQ@mail.gmail.com
Ответ на
Список
Дерево обсуждения
Determine potential change in table size after a column dropped? Wells Oliver <wells.oliver@gmail.com>
Re: Determine potential change in table size after a column dropped? Vijaykumar Jain <vijaykumarjain.github@gmail.com>
Re: Determine potential change in table size after a column dropped? Ron <ronljohnsonjr@gmail.com>
Re: Determine potential change in table size after a column dropped? Wells Oliver <wells.oliver@gmail.com>
Re: Determine potential change in table size after a column dropped? Laurenz Albe <laurenz.albe@cybertec.at>
Re: Determine potential change in table size after a column dropped? Thomas Kellerer <shammat@gmx.net>
Re: Determine potential change in table size after a column dropped? Wells Oliver <wells.oliver@gmail.com>
Re: Determine potential change in table size after a column dropped? Laurenz Albe <laurenz.albe@cybertec.at>
Re: Determine potential change in table size after a column dropped? "David G. Johnston" <david.g.johnston@gmail.com>
On Sat, Jan 22, 2022 at 10:09 AM Wells Oliver <wells.oliver@gmail.com> wrote:
I need only drop the column and VACUUM FULL the table, and not the entire DB, right?

Do you seriously think that vacuuming the entire database is a possible requirement here?

In terms of estimated space savings, the data type documentation tells you how much space each data type consumes.  A reasonable first estimate, knowing nothing else about the internals of the system, is to multiply that by the number of rows.  That would provide a lower-bound estimate.  If that amount makes the effort worth it then no further info is needed.

David J.

В списке pgsql-admin по дате отправления
От: Wells Oliver
Дата:
От: Laurenz Albe
Дата:
FAQ