Re: Determine potential change in table size after a column dropped?
От
Laurenz Albe
Тема
Re: Determine potential change in table size after a column dropped?
Дата
Msg-id
599f850b109d98148ee512890ebe6ec4bfbfe26b.camel@cybertec.at
Ответ на
Список
Дерево обсуждения
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 Mon, 2022-01-24 at 08:08 -0800, Wells Oliver wrote: > > > I need only drop the column and VACUUM FULL the table, and not the entire DB, right? > > > > Not that VACUUM (FULL) will *not* physically get rid of a dropped column, > > as it just copies the complete rows to a new table. > > > > You would need something like: > > > > CREATE TABLE newtab (LIKE oldtab); > > INSERT INTO newtab SELECT * FROM oldtab; > > So, there's really no way to reclaim space from a dropped column other than > entirely creating a new table? Correct, as far as I know. Yours, Laurenz Albe -- Cybertec | https://www.cybertec-postgresql.com
В списке pgsql-admin по дате отправления
От: Wells Oliver
Дата: