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
обсуждение исходный текст
Ответ на Re: Determine potential change in table size after a column dropped?  (Wells Oliver <wells.oliver@gmail.com>)
Список pgsql-admin
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
Дата:
Сообщение: Re: Determine potential change in table size after a column dropped?
Следующее
От: Laurenz Albe
Дата:
Сообщение: Re: Determine potential change in table size after a column dropped?